Skip to Content
avatar image
Former Member

Extension of BAPI_SALESORDER_CREATEFROMDAT2

In sales order BAPI Method, we have table structure "EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL

"

to populate the custom fields in table structure VBAK,VBA & VBEP.

We have custom fields in VBAK and VBAP and we need to populate them in sales order.

Please let me know how to pass the values for customer fields using this structure.

If provided with example, it will be really great.

Thanks in advance

Joe G A

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 27, 2006 at 05:48 AM

    Hi Joe,

    How to pass the extension values to the custom structures through the mentioned BAPI is clearly given in the function module documentation.

    However, I am once again giving you the sample code:

    In the structure we need to pass BAPE_VBAK

    STRUCTURE = BAPI_VBAK.

    And if you have extended the VBAK table with the following fields:

    are having following fields

    Field name Data type Value Desc

    VBELN - VBELN - 17461- Sales order number

    ZZVPRSV - CHAR 1 - 1 - Print control indicator

    ZZTXT - CHAR 10 - ABCD - Some short Text

    ZZPOI - DATUM - 20060427 - Issue date

    Then the code would be:

    EXTENSIONIN-STRUCTURE = BAPI_VBAK.

    EXTENSIONIN-VALUEPART1 = '00000174611ABCD 20060427'.

    If you require more information, please check the Help documentation in Customer Enhancements and Modifications part.

    Add comment
    10|10000 characters needed characters exceeded