cancel
Showing results for 
Search instead for 
Did you mean: 

Error in PO creation in backend (SRM to R/3)

Former Member
0 Kudos

Hello,

We need to add contract no and contract item no to EKPO table in backend.

For this reason we implemented BADI : BBP_ECS_PO_OUT_BADI in SRM system.

Also updated bbp_cufmap table with necessary information.

<b>Code in the BADI :</b>

Loop at IT_ITEM into lv_item.

lv_cust-refobject = 'POITEM'.

lv_cust-fieldname = 'ZZ_SRM_CTRNO'.

lv_cust-REFFIELD1 = 'PO_ITEM'.

lv_item1 = LV_ITEM-NUMBER_INT.

lv_cust-REFVAL1 = LV_ITEM1.

lv_cust-container = 'ABCD'.

lv_cust-type = 'C'.

append lv_cust to ct_bapi_customer_fields.

EndLoop.

Still we get following error message :

PO XXXXXXXX : Data objects in a Unicode program are not converti ble.

Any pointers...what could be reasons...

Warm Regards,

Girish Dhondge

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Refer notes 458591 and 672960 fro customer fields.Maintain the same fields in maintained the same field in Backend system in customer includes CI_EKPODB & CI_EKPODBX.

The Backend PO is created by calling the Function B470_PO_CREATE in SRM.Debug this function to see if the field mapping is OK.

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Hi

Which SRM version are you using ? What's the detailed requirement ?

<b>Please ensure that you have declared the internal tables and other data declarations compatible as per the BADI Structures.

Also you need to follow the sequence of the fields in which order they are appearing.</b>

<u>CT_BAPI_CUSTOMER_FIELDS table should have same structure definition as lt_cust (table of lv_cust), in your case.</u>

Loop at IT_ITEM into lv_item.

lv_cust-FIELDNAME = 'ZZ_SRM_CTRNO'.
lv_cust-REFOBJECT = 'POITEM'.
lv_cust-REFFIELD1 = 'PO_ITEM'.
lv_cust-REFVAL1   = LV_ITEM1.
* REFFIELD2
* REFVAL2
TYPE           = 'C'.
lv_cust-CONTAINER = 'ABCD'.

append lv_cust to ct_bapi_customer_fields.
clear lv_cust.

EndLoop.

Please paste the complete Short dump details using ST22 transaction for better analysis.

Also refer to these links ->

Hope it will help.

Regards

- Atul