‎2013 Feb 15 2:12 PM
‎2013 Feb 15 2:24 PM
Dnyaneshwar,
Some inbound IDOC processing programs (function module) use BAPIs, and some BAPIs support test mode. If the function module uses a BAPI in your case, you can debug the program and set test module before the BAPI is called.
‎2013 Feb 15 2:19 PM
‎2013 Feb 15 2:24 PM
Dnyaneshwar,
Some inbound IDOC processing programs (function module) use BAPIs, and some BAPIs support test mode. If the function module uses a BAPI in your case, you can debug the program and set test module before the BAPI is called.
‎2013 Feb 15 3:02 PM
IDOC_INBOUND_SINGLE this the function module i am using
any idea about BAPI and test mode.
‎2013 Feb 15 3:10 PM
Dnyaneshwar,
IDOC_INBOUND_SINGLE is a general function module to start the inbound process, but eventually a real process code (function module) will be called.
What is your inbound process code? Check transaction WE42.
‎2013 Feb 18 10:21 AM
Hi Karaca
Sorry for delayed response. Below are the information needed.
Inbound Process code INVL
Inbound Function module : IDOC_INPUT_INVOIC_MRM
‎2013 Feb 18 1:50 PM
Hi Dnyan,
Befor posting the IDOC ..... just debug this IDOC and before calling this FM : IDOC_INPUT_INVOIC_MRM put a test externally that it is going to be as per the requirement or not ....
First check for this FM that it is having that test facility or not.
If not then You need to test and simulate it by your external test or dataset comparing technique.
Coz some of them contains this test mode functionality in IDOC posting.
Hope this will help ....
Regards,
AKS
‎2013 Feb 18 3:32 PM
Hi Dnyaneshwar,
IDOC_INPUT_INVOIC_MRM function module finally calls MRM_INVOICE_CREATE function module in mrm_invoice_create subroutine (include LMRMHF1E).
And MRM_INVOICE_CREATE function module seems supporting simulation (test mode), import parameter i_simulation.
But where MRM_INVOICE_CREATE is called - the parameter is not used, but inside the MRM_INVOICE_CREATE you can debug and you can put 'X' to i_simulation, in this case the function module won't create the invoice, just it will simulate and give success or errors.
‎2013 Feb 20 1:58 PM
Hi Karaca,
Thanks a lot for the help.
However i tried to find the i_simulation in MRM_INVOICE_CREATE and unable to find. I tried all the way debugging and getting results however i am unable to find. And i want to stop IDOC to be created so will that help ?
As i am new asking small small things .
Regards
Dnyan
‎2013 Feb 20 3:48 PM
Hi Dnyan,
When MRM_INVOICE_CREATE is called in IDOC_INPUT_INVOIC_MRM function module, I_SIMULATION import parameter is not used, but if you but a stop at the begining of MRM_INVOICE_CREATE function module, you can manipulate I_SIMULATION as 'X'.
‎2013 Feb 21 10:12 AM
Thanks a lot Karaca
I have checked with this however i am bit confused if it will stop idoc creation . As even if i put X to i_simulation its creating idoc with status 51 and not posting the document as there is a error.
‎2013 Feb 21 10:43 AM
BAPI_ACC_DOCUMENT_POST and also if any idea about this BAPI if it supports test check. I mean simulation or not please help here.
Thanks a lot
Regards
Dnyan.
‎2013 Feb 21 10:50 AM
BAPI_ACC_DOCUMENT_CHECK i do have find this BAPI which will check however not sure .
Any idea about this too ??
Thnaks
‎2013 Feb 22 4:08 PM
Hi Dnyaneshwar,
BAPI_ACC_DOCUMENT_CHECK : will be used to check the consistency of FI documents. Will give errors if anything is wrong.
BAPI_ACC_DOCUMENT_POST : will be used post FI documents. It does not support simulation. It will directly post the documents.
The parameters are almost the same for these BAPIs.
Hope this helps
‎2013 Feb 22 4:44 PM
Dnyan,
MRM_INVOICE_CREATE function module i_simulation parameter doesn't prevent IDOC is created! It's simulating only Invoice creation without creating it. And if there is an error IDOC will be created with 51 as you said, but if there is no error the invoice won't be created.
‎2013 Feb 22 4:49 PM
Dnyan.
Aniket is right!
BAPI_ACC_DOCUMENT_CHECK: Using this method it can be checked whether a posting to accounting is possible.
It's just checking something, it's not posting, read-only. So there is no need for simulation.
BAPI_ACC_DOCUMENT_POST: Using this method you can create a posing in accounting for certain business transactions.
It doesn't support simulation.
‎2013 Feb 20 6:10 PM
Hi Dnyaneshwar,
You can check WE19(Test Tool for Idoc).
Please read the documentation in the below link. It might be helpful
http://help.sap.com/saphelp_nw70/helpdata/en/dc/6b80f643d711d1893e0000e8323c4f/content.htm
Hope this helps
‎2014 Feb 05 4:50 PM
‎2014 Feb 05 5:03 PM
Hi,
Use WE19 instead and try to post in debug mode in foreground and if you find an error abort the operation
Raghav