2022 Oct 17 4:12 PM
Hi All,
I have a requirement to overwrite 2 fields: I] KVGR1 II] ZZ_PROJECTID both these fields belongs to VBAK.
I have to fetch these fields from w_ref_doc. So using Select query I store the data into an internal table as follows:
SELECT KVGR1 ZZ_PROJECTID
FROM VBAK
INTO TABLE LT_VBAK
WHERE VBELN = W_REF_DOC.
Now, to assign these values into the BAPI Structure For SO Creation. FM used: BAPI_SALESORDER_CREATEFROMDAT2
FOR KVGR1, there is a field in BAPI and I have assign the value as follows:
(ls_order_header_in LIKE bapisdhdl)
ls_order_header_in-CUST_GRP1 = lt_vbak-KVGR1.
But for ZZ_PROJECTID, there is no similar field. Can anybody please suggest me the ways to pass the ZZ_PROJECTID value to BAPI.
Regards,
Ankita
2022 Oct 17 5:32 PM