‎2006 Feb 16 1:31 PM
Hi All,
How can i handle the Quantity field using BAPIPAREX?
EX.
I have added the following custom fields to the standard table EKKO.
zf_base (Price per ton, CURRENCY)
zreq_tons (Tons Required,QUANTITY)
zpo_issue_date (PO Issue date,Date)
Here I am using the bapi 'BAPI_PO_CREATE1' to create Purchase Order. How can i pass the above fields to BAPI.
‎2006 Feb 16 1:52 PM
Veera,
I believe that you will need to create "Z" version of the BAPI. In that ZBAPIXXXXX, you can append your fields and necessary logic.
‎2006 Feb 16 3:07 PM
‎2006 Feb 16 3:09 PM
If you can find that SAP has placed UEs/BADIs into the BAPI, then certainly yes.
You would need to scan thru it to find if they exist.
‎2006 Feb 16 3:27 PM
U dont have to create a Z verion. u can use extensionIN parameter. take a look at the bapi funtion module documentation. here is the hint,
<b>Customer's Own Fields (Import Parameters)</b>
This table allows you to add to the import parameters of the BAPI without modifying it.
The customer enhancement SAPL2012 allows you to add to or modify the PurchaseOrder.Change and PurchaseOrder.CreateFromData1BAPIs by:
Adapting existing SAP database tables
o Adding customer-specific fields to SAP tables
o Including existing database fields
Including additional customer-specific database tables
The following BAPI Table Extensions are available:
BAPI_TE_MEPOHEADER
BAPI_TE_MEPOHEADERX
BAPI_TE_MEPOITEM
BAPI_TE_MEPOITEMX
BAPI_TE_MEPOACCOUNTING
BAPI_TE_MEPOACCOUNTINGX