Application Development and Automation 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: 
Read only

BAPI Extension - Sales Order(VBAK, VBAP)

Former Member
0 Likes
5,266

Hi all,

Please help me in the issue . I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.

Thanks in advance,

Hi all,

Please help me in the issue . I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.

Thanks in advance,

4 REPLIES 4
Read only

Former Member
0 Likes
2,316

Hi,

Refer to the documentation of the BAPI "BAPI_SALESORDER_CREATEFROMDAT2". It will update custom fields as well.

Please refer to the documentation given for EXTENSIONIN parameter of this BAPI. It contains all the details to handle custom fields updation.

Hope this helps you!!

Regards,

Ganga

Read only

Former Member
0 Likes
2,316

Hi Eric,

Extensions for VBAK, VBAP can be filled like this:

CLEAR e_extension.

e_extension-structure = 'BAPE_VBAK'. ---> For VBAK

e_extension-valuepart1+10 = VAL1

e_extension-valuepart1+46 = VAL2.

e_extension-valuepart1+56 = VAL3.

e_extension-valuepart1+59 = VAL4

APPEND e_extension TO t_extension.

The same for VBAP

CLEAR e_extension.

e_extension-structure = 'BAPE_VBAP'. ---> For VBAP

e_extension-valuepart1+10 = VAL1

e_extension-valuepart1+46 = VAL2.

e_extension-valuepart1+56 = VAL3.

e_extension-valuepart1+59 = VAL4

APPEND e_extension TO t_extension.

CALL FUNCTION 'BAPI_SALESORDER...."

...

TABLES

...

extensionin = t_extension.

Hope this helps.

Ernesto

Edited by: Ernesto Caballero on Feb 24, 2010 3:03 PM

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,316

Read OSS [Note 143580 - Information on SD BAPIs and customer enhancement concept|https://service.sap.com/sap/support/notes/143580] which describes the process to implement your requirement.

Regards,

Raymond

Read only

Former Member
0 Likes
2,316

answersd