on 2024 Jan 10 10:04 AM
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
Request clarification before answering.
Use the class CL_ABAP_CONTAINER_UTILITIES to map structure to extensionin[X] records
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 22 | |
| 16 | |
| 13 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.