Skip to Content
0

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

Jul 19, 2017 at 06:27 PM

99

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jan 05 at 05:42 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded