‎2014 Jun 10 11:38 AM
Dear everyone
I am trying to use the testing function of a function module in order to understand how the following
function module works.
<Function module>
BAPI_SALESORDER_CREATEFROMDAT2 --> This function module is to create a sales order
I input several data in the test function, and I was the successful result with some sales order number.
However, this sales order is not actually registered in the system.
Would it be possible to run the function module (in the test mode), so that it would actually
register those documents (ex. sales orders) in the system.
I would like to see the actual sales orders to understand how the function module works.
Thank you very much in advance
Takashi
‎2014 Jun 10 11:40 AM
Dear everyone
※Sorry, my initial message was hard to understand. So I will write it again.
I am trying to use the testing function of a function module in order to understand how the following
function module works.
<Function module>
BAPI_SALESORDER_CREATEFROMDAT2 --> This function module is used to create a sales order
I input several data in the test function, and I've got the successful result with some sales order number.
However, this sales order is not actually registered in the system.
Would it be possible to run the function module (in the test mode), so that it would actually
register those documents (ex. sales orders) in the system?
I would like to see the actual sales orders to understand how this function module works.
Thank you very much in advance
Takashi
‎2014 Jun 10 12:39 PM
Hi,
You are not able to find the sales order in the system because the data is not committed to the database yet. You can run the BAPI_TRANSACTION_COMMIT function module after the Sales order create function module to achieve this. Similar discussions are already answered in the forum. Please search.
After executing the Sales order BAPI, execute the below BAPI as shown here
Cheers,
Mahesh
‎2014 Jun 10 12:43 PM
Hi Takashi,
I guess you are run this FM in "se37".
If you are using source code in "se38",
please add FM "BAPI_TRANSACTION_COMMIT" after called the FM.
Regards.
‎2014 Jun 10 3:51 PM
‎2014 Jun 16 4:39 AM
Sorry, Mahesh-san
Would you happen to know how to give points to the people who answered my question?
For some reason, I cannot find any point button for this discussion...
Kind regards,
Takashi
‎2014 Jun 11 8:56 AM
Thank you very much for your kind help, everyone!
I wanted to give you the points for your help, but for some reason, I cannot find the
point button anymore...
If I find it later, I will give you the points.
Anyhow, thank you very much for your support. I really appreciate it!
Takashi
‎2014 Jun 16 4:54 AM
Hi Takashi,
The answer to your query is, in actuals there are some FMs that require explicit COMMIT, hence for the same set of FMs, SAP has provided a Standard Commit BAPI as BAPI_TRANSACTION_COMMIT.
The same is said by other fellows in the thread, when you are testing you can use the procedure as said by Mahesh in the thread responses.
BR/Thanks
Pranav Agrawal