cancel
Showing results for 
Search instead for 
Did you mean: 

Extension of BAPI_SALESORDER_CREATEFROMDAT2

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186078
Active Participant
0 Kudos

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.