10-13-2008 3:12 PM
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
10-13-2008 3:23 PM
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
10-13-2008 3:25 PM
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
10-13-2008 5:15 PM
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.