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_SALESORDER_CREATEFROMDAT1

Former Member
0 Likes
1,585

Hi all,

Please help me in the issue. I have added custom fields to va01 in header and item levels and appended the strutures vbak and vbak. I using bapi BAPI_SALESORDER_CREATEFROMDAT1 to create sales order . how to update the addtional fields which were added to va01 through bapi .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,405

Hi,

You need to append the same custom fields to the following structures which are used in BAPI.

For header : BAPISDHEAD

For Item : BAPIITEMIN.

Regards,

Chandravadan

11 REPLIES 11
Read only

Former Member
0 Likes
1,405

hi,

you have to extend the structure used in the BAPI , by appending the new custom fields in it.

hope this helps

regards

RItesh

Read only

Former Member
0 Likes
1,406

Hi,

You need to append the same custom fields to the following structures which are used in BAPI.

For header : BAPISDHEAD

For Item : BAPIITEMIN.

Regards,

Chandravadan

Read only

0 Likes
1,405

do i need to copy BAPI_SALESORDER_CREATEFROMDAT1 into Z and add the custom fields to the bapi.

Read only

0 Likes
1,405

hi,

no their is no need to copy the BAPI.

regards

RItesh

Read only

0 Likes
1,405

This message was moderated.

Read only

0 Likes
1,405

This message was moderated.

Read only

0 Likes
1,405

in BAPISDHEAD append structure we need to add custom fields right and do we need to do any other code enhanceing other that adding append structure in BAPISDHEAD.

Read only

0 Likes
1,405

Hi,

Using "BAPI_SALESORDER_CREATEFROMDAT1", we will not be able to update custom fields. Instead, use 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
1,405

This message was moderated.

Read only

Former Member
0 Likes
1,405

This message was moderated.

Read only

Former Member
0 Likes
1,405

hi,

In function module "SD_SALESDOCUMENT_CREATE" where the EXTENSIONIN parameter values are getting populated.

Doing this you will get a better idea how the system is populating the values from the extension.

Also you need to pass theZ fields in the update structure aswell followed by X or SPACE.

WIth Regards,

Ritesh