cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing Idocs created by BAPI Created Documents

Former Member
0 Kudos

Hi guys,

I have a big problem that i could really need some help, i use a BAPI:

BAPI_ACC_DOCUMENT_POST to create documents, in same cases depending on the accounts used there are some CO documents created and their equivalent idocs.

I searched everywhere but i didn't find any way to get the number of the idoc generated by the CO document that is created, does anyone have any suggestions on what to do ???

In regular Documents i use this Function:

SREL_GET_NEXT_RELATIONS

but in this case it doesn't work even after many trials !

I would really aprecciate the help !

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks !

Former Member
0 Kudos

Hi

If you are trying to find the idoc number that created a document, there is a way you can find it out.

Note down the important field details of the document that would help you identify the idoc that created it.

Go to transaction WE05. Using the date range the document got posted, pull up a list of idocs.

Then click on the List Specific segment, put in the segment name of the idoc and click continue.

It will bring up a table of table. You can find the row that contains the field information you have and by that approach find the idoc that created the document.

Hope this helps

Deepa

Former Member
0 Kudos

Yes, its the idoc number i really need but...... i was trying to avoid WE05 and WE09 as a way to get idoc number from the respective segment because i am going to need to extract this idoc number in a heavy batch job... and any gain of speed i can arrange is very valuable!

But if i there isn't any other way .... so it will be done.

You talked about the date range of the document, what is the most accurate and eficient dates to use .. is the document posting date ? and if i am migrating previosly created documents from one machine to another.... what date should i use ?

Thanks for the Help,

Nuno Jesus

Former Member
0 Kudos

Hi

The document posting date can be used to look for idoc numbers if you donot know the date the idocs were created.

But if you know the dates the idocs were created, you should just restrict the date range to that creation date.

Hope this helps

Deepa

Former Member
0 Kudos

Ok, thanks a lot for the help.

It seems there is no other way than this !

Thanks for the help !