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: 

Extension paramter in BAPI_PO*

Former Member
0 Kudos

Hi All,

I have added some custom fields in PO transaction.

Now when i am trying to update the custom fields for PO using BAPI for create or change BAPI_PO_CHANGE,

There are paramteres EXTENSIONIN and EXTENSIONOUT.

Could you let me know how and what to fill these parameters?

regards

Shiva

3 REPLIES 3

Former Member
0 Kudos

Hi,

Extension parameters in BAPI_PO_* are used to populate the new custom fields (using screen exit) added in the transaction.

If the user wants to save the values for the new custom fields, there values are to be populated into the database tables (Extended with append structure) using extension parameters in BAPI_PO_* (for this it may also requires to implement a BADI also).

With Regards,

Dwaraka.S

0 Kudos

Hi,

i am aware of the functionality,

But how do i fill the paramteres: there are some fields : Strucutre and Value part1, value part 2...etc

Help me in filling the same

Regards

Shiva

0 Kudos

first you create a custom structure with the required fields. And the first field should be EBELP (Key field).

eg: if you want to pass data to custom fields like ZXXX(length 10), ZYYY(length 20).

then do as follows.

Create a custom structure as follows.

Structure name: ZCUSTOM (let)

EBELP

ZXXX

ZYYY.

then in your program pass data as follows.

EXTENSIONIN-STRUCTURE = 'ZCUSTOM'.

EXTENSIONIN-FIELD1+0(10) = '0000000010'. "Line item number.

EXTENSIONIN-FIELD1+10(10) = Value for ZXXX.

EXTENSIONIN-FIELD1+20(20) = Value for ZYYY.

append EXTENSIONIN.

then pass EXTENSIONIN to BAPI.