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: 

Badi and Flow Logic

Former Member
0 Kudos

Hi all,

Please bare with me while I explain my requirement and hope for a solution.

We are working in FI module.My requirement is need to create extra tabs for Customer Master transaction(Creations and Changes),like when I go to the XD01 or XDO2or FD02 transactions and click on Company code we have four tabs(Account management,pay trnxsetc).Here I need to create an extra tab as per the customer requirement.

I did create a subscreen with the required ZFields.Found the BADI CUSTOMER_ADD_DATA_CS.

I am confused about the Tab Control events to be done in PBO or BADI.

Can anyone guide me what are the events to be done in PBO and PAI as well in BADI.

Your help is greatly appreciated.

Thank you,

Ann.

2 REPLIES 2

Former Member
0 Kudos

I have coded a similar requirement.

In the method GET_TAXI_SCREEN of the BADI CUSTOMER_ADD_DATA_CS is where the bespoke screen is defined. Look at the code below.

CASE i_taxi_fcode.

WHEN zcl_im_1_jam_addl_fields_c=>sold_to_view.

IF NOT ca_is_sold_to IS INITIAL.

*Check the partner function of the customer

e_screen = '0200'.

e_program = 'SAPLZSD_CUSTADDLF'.

e_headerscreen_layout = ' '.

ENDIF.

WHEN zcl_im_1_jam_addl_fields_c=>ship_to_view.

IF NOT ca_is_sold_to IS INITIAL.

*Check the partner function of the customer

e_screen = '0100'.

e_program = 'SAPLZSD_CUSTADDLF'.

e_headerscreen_layout = ' '.

ENDIF.

IF NOT ca_is_ship_to IS INITIAL.

*Check the partner function of the customer

e_screen = '0100'.

e_program = 'SAPLZSD_CUSTADDLF'.

e_headerscreen_layout = ' '.

ENDIF.

ENDCASE.

There is some config which also needs to be set up. This config will define the SY-UCOMM that is to be used. I never did this config so I couldn't tell you where it is.

0 Kudos

Martin,

Thank you for the quick response.

This is very helpful,I will start working on it and get back to you once it is done or need any more help.

Thank you,

Ann