cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-populate Vendor text in SRM with MM basic data text

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I think you will need to build an RFC call to ECC system and fill the text in BBP_DOC_CHANGE_BADI

Regards,

Sushil.

Former Member
0 Kudos

Sushil,

Thanks for the update, but we have  already implemented the BADI .But how to pass those values into the " Vendor  text" tab of the shopping cart.

Please suggest.

Thanks

Sada

konstantin_anikeev
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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