on 04-03-2013 3:52 PM
Hello Friends,
We have a requirement to populate the “Vendor text" tab in SRM with the "Material Basic Data text" while creating the Shopping Cart. I mean to say that it should be auto –populated the problem is we have BADI's which will transfer the values to the backend ECC system but not to populate the values in SRM side. We are using SRM 7.0 Version.
Could you please suggest how we can fix this issue.
Advance Thanks for your help in this regard.
Thanks
Sada
I think you will need to build an RFC call to ECC system and fill the text in BBP_DOC_CHANGE_BADI
Regards,
Sushil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sada,
you can try something like that (inside of change badi)
DATA ls_mat TYPE bapimatdoa.
DATA lv_material TYPE matnr.
FIELD-SYMBOLS: <fs_item> LIKE LINE OF it_item,
<fs_text> LIKE LINE OF ct_longtext.
LOOP AT it_item ASSIGNING <fs_item> WHERE ordered_prod IS NOT INITIAL. " Only for prod positions
lv_material = <fs_item>-ordered_prod.
CALL FUNCTION 'META_MATERIAL_GETDETAIL'
EXPORTING
material = lv_material
logical_system = <fs_item>-be_log_system
IMPORTING
material_general_data = ls_mat.
DELETE ct_longtext WHERE guid = <fs_item>-guid AND tdid = 'ITXT'. " Clear vendor text
APPEND INITIAL LINE TO ct_longtext ASSIGNING <fs_text>.
IF <fs_text> IS ASSIGNED.
<fs_text>-guid = <fs_item>-guid.
<fs_text>-tdid = 'ITXT'.
<fs_text>-tdspras = sy-langu.
<fs_text>-tdline = ls_mat-matl_desc.
UNASSIGN <fs_text>.
ENDIF.
ENDLOOP.
Best Regards
Konstantin
Hi Sada,
I assume you have already did the filter settings in SRM for material long text via R3AC1? Please refer below SCN thread if you have not already; http://scn.sap.com/message/6712603
Hope this helps.
Thank you
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.