on 06-27-2007 7:51 AM
Could someone please tell me how to create F4 (search help) help on the SRM front end screen for a custom field.
Thanks,
Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atul,
I added a custom field company code(ZCOCODE) on the Limit(Service)shopping cart.
This company code already exists on other shopping carts.
I created a ZCOCODE field and added the existing data element BUKRS for that.
And it has default search help (C_T001).But there was no data in the T001 table.
It needs to get from the R/3 back end system through BAPI or something
which it gets the same way for the company code of other shopping carts.
Implementation name: Z_BBP_CUF_BADI_2
Definition name : BBP_CUF_BADI_2
MODIFY SCREEN method:
method IF_EX_BBP_CUF_BADI_2~MODIFY_SCREEN .
FIELD-SYMBOLS : <FS_ES_FIELDS> TYPE BBPS_CUF_DISPLAY.
*BREAK-POINT.
IF IS_ITEM-ITM_TYPE <> 'LIMI'. " AND IS_ITEM-PRODUCT_TYPE <> '02'.
LOOP AT ET_FIELDS ASSIGNING <FS_ES_FIELDS>.
IF <FS_ES_FIELDS>-FIELDNAME = 'ZCOCODE' .
<FS_ES_FIELDS>-XDISPLAY = SPACE.
<FS_ES_FIELDS>-XINPUT = SPACE.
CLEAR : ES_FIELDS-XDISPLAY , ES_FIELDS-XINPUT.
ENDIF.
ENDLOOP.
ENDIF.
endmethod.
MODIFY INPUT Method
IF IV_FIELDNAME = 'ZCOCODE'.
L_VALUE = EV_VALUE.
EXPORT L_VALUE FROM L_VALUE TO MEMORY ID 'ZCODE'.
ENDIF.
IF IV_FIELDNAME = 'CO_CODE'.
IMPORT L_VALUE TO L_VALUE FROM MEMORY ID 'ZCODE'.
EV_VALUE = L_VALUE.
ENDIF.
MODIFY_OUTPUT method
method IF_EX_BBP_CUF_BADI_2~MODIFY_OUTPUT .
DATA : L_VALUE LIKE EV_VALUE.
IF IV_FIELDNAME = 'ZCOCODE'.
EV_VALUE = IS_ITEM-BE_CO_CODE.
ENDIF.
Appreciate any suggestions.
Thanks,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.