cancel
Showing results for 
Search instead for 
Did you mean: 

Transferring SRM fields to PR custom fields.

Former Member
0 Kudos

Hello Gurus,

We are on SRM 5.0. We have a requeriment to transfer certain information from SC to PR custom fields. To do it we have implemented the BADI BBP_CREATE_BE_RQ_NEW and fill out the table EXTENSIONIN but unfortunately it doesn't work.

My code is the following:

 

      ls_extensionin-structure  = 'BAPI_TE_REQUISITION_ITEM'.

      ls_extensionin-valuepart1 = <wa_cs_rq_document>-preq_item. " Item number

      ls_extensionin-valuepart2 = 'ZZCREATOR'.                   " Custom field in PR.

      ls_extensionin-valuepart3 = lv_pernr.       " Value

      APPEND ls_extensionin TO cs_rq_document-it_extensionin.

What is wrong?

Any code example to understand the right logic?

The fields from PR are not creted into SC.

Thanks,

David.

Accepted Solutions (1)

Accepted Solutions (1)

konstantin_anikeev
Active Contributor
0 Kudos

Should work like that (no field name necessary, only length).

                   ls_ct_req_extension-structure = 'BAPI_TE_REQUISITION_ITEM'.

                  ls_ct_req_extension-valuepart1+0(5) = ls_req_items-preq_item.

                  ls_ct_req_extension-valuepart1+5 = lv_email.

Answers (0)