‎2008 Aug 19 1:32 PM
I am creating the SO through BAPI_SALESORDER_CREATEFROMDAT2 from SE37. After execution i am getting the Sales Order Number. Soon after that i am using BAPI_TRANSACTION_COMMIT. When i go to VA03 i am getting an error like " SD document <NUM> is not in the database or has been archived "
‎2008 Aug 19 2:06 PM
Hello.
Like as have been said, you can create a program to do that.
However, you can do it in SE37 too. You cannot use BAPI_SALESORDER_CREATEFROMDAT2 and then BAPI_TRANSACTION_COMMIT separately. You must create a test sequece:
SE37->Function Module->Test->Test Sequencies (in menu area), inserting this two FM's.
Regards.
Valter Oliveira.
‎2008 Aug 19 2:02 PM
do u using SE37 to create a SO with BAPI ?
a BAPI needs to be committed afterwards.
You have to use a report or something else to call the BAPI and afterwards the BAPI_TRANSACTION_COMMIT.
‎2008 Aug 19 2:04 PM
I am creating the SO through BAPI_SALESORDER_CREATEFROMDAT2 from SE37. After execution i am getting the Sales Order Number. Soon after that i am using BAPI_TRANSACTION_COMMIT. When i go to VA03 i am getting an error like " SD document <NUM> is not in the database or has been archived "
if you are creating SO from se37 and calling BAPI_TRANSACTION_COMMIT also from se37 than it is totally isolated process each other.you must use a report program for that and call BAPI_TRANSACTION_COMMIT in report program.
Amit.
‎2008 Aug 19 2:06 PM
Hello.
Like as have been said, you can create a program to do that.
However, you can do it in SE37 too. You cannot use BAPI_SALESORDER_CREATEFROMDAT2 and then BAPI_TRANSACTION_COMMIT separately. You must create a test sequece:
SE37->Function Module->Test->Test Sequencies (in menu area), inserting this two FM's.
Regards.
Valter Oliveira.