cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:- Addition of new field to Dispute case creation - BADI-FDM_USER_SCREEN

0 Kudos

Hi,

I want to add a custom field in dispute case creation from AR. I found BADI-FDM_USER_SCREEN. It has 4 methods

GET_CREATE_SCREEN, CREATE_SCREEN_PBO, CREATE_SCREEN_PAI ,DETAIL_NEEDED

I have created a custom screen and program.Added new fields in the screen. Passed screen no and custom program name to GET_CREATE_SCREEN attributes. Then PBO event - CREATE_SCREEN_PBO is called. Where is the link between the custom defined user screen PBO event and BADI-Create_Screen_pbo event ? I am not able to get it. Please let me know how to connect PBO-Screen to custom screen.

Accepted Solutions (0)

Answers (1)

Answers (1)

Hallo Rama.

I think arrived a late, sorry.

One Way is create a Function Group

ZFUNC_FDM_USER_SCREEN.

in function group create a subscreen 0100, for example..

Too, create a structure like estandard in this Function Group "GS_DISPUTE_DATA".

TYPE FDM_AR_DISPUTE_UI.

2 Function Modules,

One to get the datas "Z_GET_DISP_DAT"

gs_dispute_data = e_dispute.

Another one, to Set To estandard "Z_SET_DISP_DAT"

1- Use method Get_Create_Screen,, to say program/subscreen:

METHOD if_ex_fdm_user_screen~get_create_screen.


e_dynnr = '0100'.
e_progname = 'SAPLZFUNC_FDM_USER_SCREEN'.

ENDMETHOD.

In create_screen_pbo, call the function you create to pass the estructure standard "I_DISPUTE_DATA"

METHOD if_ex_fdm_user_screen~create_screen_pbo.

Call Function "Z_SET_DISP_DAT"

IMPORTING

e_dispute = i_dispute_data.

ENDMETHOD.

For set to standard structure Values get it from your SubScreen using the last function "Z_SET_DISP_DAT", calling in

method create_screen_pai,

To pass the attributes in the estructure, FDM_UI_READ_ATTRIBS Function could help you.

Regards