Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding tabs for additional data in sales (more then the 5 the badi provides)

Koja78
Participant
0 Kudos

Dear all,

I have implemented ZBADI_SLS_HEAD_SCR_CUS_B in order to create new tabs in the sales order transaction.  This has worked like a charm.  (thanks to http://scn.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs/blog/2013/12/12...)

However as we have a lot of extra fields .. I was wondering if it was possible to extend this and have more than the 5 extra tabs.

Using a repair to change the following constants did not help.

   CONSTANTS: cv_badi_max_tabs_cus TYPE i VALUE '5',

   cv_badi_max_tabs_int TYPE i VALUE '5'.

Regards

1 ACCEPTED SOLUTION

Koja78
Participant
0 Kudos

I got up to 9 tabs in the header...

So what you need to do is :

1) http://scn.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs/blog/2013/12/12...)
2) add more then the 5 tabs in activate_tab_page

3) repair MV45ATOP and adapt cv_badi_max_tabs_cus to the number you need

4) with transaction VFBS you need to add the necessary entries to:  (the error messages in the sales transaction will guide you)

     -     T185V

     -     T185F

     -     T185

And there you go.

7 REPLIES 7

former_member1716
Active Contributor
0 Kudos

Hi Koenraad,

Thanks for your kind words towards my blog

Regarding your question,

Yes SAP allows adding upto 5 tabs.

Regards,

Satish

former_member1716
Active Contributor
0 Kudos

I think appending 5 different entries to CT_CUS_ITEM_TAB from LS_ITEM_SCR will help you achieving your requirement.

regards,

Satish

Koja78
Participant
0 Kudos

Satish,

I know... but I need more then 5 :-).  I want moreeeeeeeeeeeeeeeeeeee...

A next step seems to be adding entries to table TAXITABS.  Now I have more then 5 tabs.. however the screens past 5 don't work.

I get an error msg "Requested function K_CUS_BADI_6 is not available here".

Keep on searching

0 Kudos

Ok, but SAP allows only upto 5 tabs as per my knowledge. If You come with the solution, Please let us know

regards,

Satish

Koja78
Participant
0 Kudos

I'm on to something but it involves adding many entries in the screen flow control (VFBS)

Koja78
Participant
0 Kudos

I got up to 9 tabs in the header...

So what you need to do is :

1) http://scn.sap.com/community/abap/switching-enhancing-and-adapting-standard-programs/blog/2013/12/12...)
2) add more then the 5 tabs in activate_tab_page

3) repair MV45ATOP and adapt cv_badi_max_tabs_cus to the number you need

4) with transaction VFBS you need to add the necessary entries to:  (the error messages in the sales transaction will guide you)

     -     T185V

     -     T185F

     -     T185

And there you go.

0 Kudos


Also use VFBS to fill in the missing entries in TAXITABS table.