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_CREATEFROMDAT2

Former Member
0 Likes
742

Hi all,

Having strange problem when attempting to use that BAPI. Online test through SE37 is OK, the order created but when I try to see it through VA03, system gives me error message 'SD Document 697 is not in the database or has been archived'.

Another anomaly is when trying to put the BAPI in my program with same contents, another error message coming : 'Sales document was not changed'.

Would you pls help me on these matter?

Many thanks ya

Alia

Alia.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

u have to have to use commit work(ABAP4_COMMIT_WORK) after running this BAPI_SALESORDER_CREATEFROMDAT2 in se37

go to se37

from menu

function modules->test->test sequence

enter BAPI_SALESORDER_CREATEFROMDAT2 in 1st line and

ABAP4_COMMIT_WORK in 2nd line then execute & see the result

regards

gv

Message was edited by: Venkat

5 REPLIES 5
Read only

Former Member
0 Likes
699

u have to have to use commit work(ABAP4_COMMIT_WORK) after running this BAPI_SALESORDER_CREATEFROMDAT2 in se37

go to se37

from menu

function modules->test->test sequence

enter BAPI_SALESORDER_CREATEFROMDAT2 in 1st line and

ABAP4_COMMIT_WORK in 2nd line then execute & see the result

regards

gv

Message was edited by: Venkat

Read only

0 Likes
698

Hi I did it, using BAPI_TRANSACTION_COMMIT after executing the BAPI CREATEFROMDAT2, but still cant display the order.

alia

Read only

0 Likes
698

did u do in this way

from menu...

function modules->test->test sequence

if u execute in separate window it will not work..

or

did u switch-on the test flag...TESTRUN in import parameters

regards

gv

Message was edited by: Venkat

Read only

0 Likes
698

Hello Venkat.

I did your instruction, but still cant see the order.

Alia

Read only

0 Likes
698

Hi Venkat.

Im sorry, my mistake, forgot one step to go back and run the second step. Now I can see the order.

Huge thanks ya.

Alia