Skip to Content
avatar image
Former Member

Extension paramter in BAPI_PO*

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?



Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 13, 2008 at 02:23 PM


    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,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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)




      then in your program pass data as follows.


      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.