Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Passing custom fields to BAPI

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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.

0 Kudos

can i use customer exits/badi's for the same?

0 Kudos

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.

Former Member
0 Kudos

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