Application Development and Automation 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: 
Read only

Problem adding a new custom tab in transaction TX01

Former Member
0 Likes
1,011

Hi Friends

I have a problem, I need to add a new custom tab in transaction TX01.

Do u know if there is a BADI or BAPI to create the tab?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
750

To add a new custom tab in TX01transactions you have to follow these steps:

1. (SE80) Create a dynpro as SUBSCREEN, with the structure (fields, tablecontrols...) you want in the new tab, located in a modul-pool.

Example: Program: ZCFM001

Dynpro: 1010

2. (SE18) Create your custom implementation of BADI FTR_CUSTOMER_EXTENT. This will create a Z class where you can program the new tab management.

Example: Implementation: ZAMPLIACIOTM001

Class: ZCL_IM_AMPLIACIOTM001

3. (SE24) Implement method EVT_APPLICATION_START of your new class. This method is called when the transaction is going to be painted, and manages (among other things) which tabs need to be shown. In general terms, you will have to assign your dynpro to a function code.

This BADI offers you 2 custom function codes, and so, the ability to add two custom tabs. These function codes are OPEN_TRTM_CUST_01 and OPEN_TRTM_CUST_02.

To add your dynpro to a function code, you have to identify this relationship in the internal table (parameter) PC_TAB_BADI_TABS. This is the table that contains the custom tabs to be added.

To do this, you have to add the following piece of code:

DATA: LS_BADI_TABS TYPE FTROP_BADI_SUBSCREEN.

4.1. Modify the tab structure.

LS_BADI_TABS-REPID = ZCFM001. "Report

LS_BADI_TABS-TEXT_TAB = 'New Tab'. "Text (max. 30 CHAR) to display

LS_BADI_TABS-DYNNR = '1010'. "Subscreen

4.2. Add the new tab.

MODIFY PC_TAB_BADI_TABS

FROM LS_BADI_TABS

TRANSPORTING REPID DYNNR TEXT_TAB

WHERE FCODE = 'OPEN_TRTM_CUST_01'.

And that's it! Now you will be able to see you new tab in these transactions.

I hope this helps you.

Hi Friends

I have a problem, I need to add a new custom tab in transaction TX01.

Do u know if there is a BADI or BAPI to create the tab?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
751

To add a new custom tab in TX01transactions you have to follow these steps:

1. (SE80) Create a dynpro as SUBSCREEN, with the structure (fields, tablecontrols...) you want in the new tab, located in a modul-pool.

Example: Program: ZCFM001

Dynpro: 1010

2. (SE18) Create your custom implementation of BADI FTR_CUSTOMER_EXTENT. This will create a Z class where you can program the new tab management.

Example: Implementation: ZAMPLIACIOTM001

Class: ZCL_IM_AMPLIACIOTM001

3. (SE24) Implement method EVT_APPLICATION_START of your new class. This method is called when the transaction is going to be painted, and manages (among other things) which tabs need to be shown. In general terms, you will have to assign your dynpro to a function code.

This BADI offers you 2 custom function codes, and so, the ability to add two custom tabs. These function codes are OPEN_TRTM_CUST_01 and OPEN_TRTM_CUST_02.

To add your dynpro to a function code, you have to identify this relationship in the internal table (parameter) PC_TAB_BADI_TABS. This is the table that contains the custom tabs to be added.

To do this, you have to add the following piece of code:

DATA: LS_BADI_TABS TYPE FTROP_BADI_SUBSCREEN.

4.1. Modify the tab structure.

LS_BADI_TABS-REPID = ZCFM001. "Report

LS_BADI_TABS-TEXT_TAB = 'New Tab'. "Text (max. 30 CHAR) to display

LS_BADI_TABS-DYNNR = '1010'. "Subscreen

4.2. Add the new tab.

MODIFY PC_TAB_BADI_TABS

FROM LS_BADI_TABS

TRANSPORTING REPID DYNNR TEXT_TAB

WHERE FCODE = 'OPEN_TRTM_CUST_01'.

And that's it! Now you will be able to see you new tab in these transactions.

I hope this helps you.

Read only

0 Likes
750

Thank u

Read only

0 Likes
750

Hi

I activated the BADI and the customer screens. BADI is working fine. But the problem is i am not getting the data entered in the customer screen inside my BADI. How to get the customer data inside my BADI. Any Idea?

Thanks&Regards,

Sayanna Damerla