I am using BADI ME_GUI_PO_CUST to create customer fields for transaction ME21N.
This is the code i have for my method 'SUBSCRIBE',
I have designed a custom screen, the program name is
ZSUB_BADI and the subscreen number is '0001'.
I have created a structure called 'ZPOTBL' and the field on my screen is referring to this structure.
I dont know what i could be doing wrong, however i m unable to see the the customer field.
I believe it has to do with the values i m passing, am i using the wrong program name or wrong screen number.
we want to add a customer subscreen on the item detail tab
CHECK IM_APPLICATION = 'PO'.
CHECK im_element = 'HEADER' or im_element = 'ITEM'.
*CHECK im_element = 'ITEM'.
IF IM_ELEMENT = 'ITEM'. " 'Header ' . "
each line in re_subscribers generates a subscreen. We add one
*subscreen in this example
the name is a unique identifier for the subscreen and defined in this
LS_SUBSCRIBER-NAME = 'ZSUB_BADI'.
the dynpro number to use
LS_SUBSCRIBER-DYNPRO = '0001'.
the program where the dynpro can be found
LS_SUBSCRIBER-PROGRAM = 'ZSUB_BADI'. "'SAPLMEGUI'.
each subscreen needs his own DDIC-Structure
LS_SUBSCRIBER-STRUCT_NAME = 'ZPOTBL'.
a label can be defined
LS_SUBSCRIBER-LABEL = 'SANDEEP'.
the position within the tabstrib can be defined
LS_SUBSCRIBER-POSITION = 12.
the height of the screen can be defined here. Currently we suport two
value <= 7 a sevel line subscreen
value > 7 a 16 line subscreen
LS_SUBSCRIBER-HEIGHT = 7.
APPEND LS_SUBSCRIBER TO RE_SUBSCRIBERS.
any help would be rewarded.