cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create mass PO create Program through "BAPI_PO_CREATE1" for PO custom fields

0 Kudos
1,646

I have created a custom program for mass PO creation through BAPI: 'BAPI_PO_CREATE1'.
There are some custom fields like- ZNATPROC, ZTYPSUP & ZTYPSUP OF EKKO.

For these fields, value is not populating for custom fields. I have correctly passed the values for these fields in Bapi through " extensionin" tab. but I'm getting an error- "WA_EXT-VALUEPART1" and "WA_HEADER" cannot be converted to each other in a Unicode program. Please suggest the correct solutions.

Thanks in advance.

Thanks and regards,

Satya Pandit

Accepted Solutions (0)

Answers (2)

Answers (2)

RaymondGiuseppi
Active Contributor

Use the class CL_ABAP_CONTAINER_UTILITIES to map structure to extensionin[X] records

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert

Problem seems to be that WA_HEADER is a structure (with multiple fields), while VALUEPART1 is a simple scalar field of type CHAR240. These cannot be assigned to each other.