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

Inbound Idoc Simulation

former_member225688
Participant
0 Likes
5,851
can i simulate inbound i doc before posting so that i will come to know that it is having some errors
so that i wont post that
and no new i doc will be created
same like we can simulate Invoice postings in test mode
can simulate I Doc also
so that we can come to know it contains error or not
????????????????????????

1 ACCEPTED SOLUTION
Read only

TuncayKaraca
Active Contributor
0 Likes
4,374

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.

18 REPLIES 18
Read only

Former Member
0 Likes
4,374

No it is not possible.

/Michael

Read only

TuncayKaraca
Active Contributor
0 Likes
4,375

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.

Read only

0 Likes
4,374

IDOC_INBOUND_SINGLE this the function module i am using

any idea about BAPI and test mode.

Read only

0 Likes
4,374

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.

Read only

0 Likes
4,374

    Hi Karaca 

Sorry for delayed response. Below are the information needed.

  Inbound Process code INVL

    Inbound Function module :  IDOC_INPUT_INVOIC_MRM

Read only

0 Likes
4,374

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

Read only

0 Likes
4,374

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.

Read only

0 Likes
4,374

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

Read only

0 Likes
4,374

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'.

Read only

0 Likes
4,374

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.

Read only

0 Likes
4,374

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.

Read only

0 Likes
4,374

BAPI_ACC_DOCUMENT_CHECK i do have find this BAPI which will check however not sure .

Any idea about this too ??

Thnaks

Read only

0 Likes
4,374

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

Read only

0 Likes
4,374

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.

Read only

0 Likes
4,374

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.

Read only

former_member491621
Contributor
0 Likes
4,374

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

Read only

Former Member
0 Likes
4,374

This message was moderated.

Read only

former_member182354
Contributor
0 Likes
4,374

Hi,

     Use WE19 instead and try to post in debug mode in foreground and if you find an error abort the operation

Raghav