cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC number doubt

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi.

i have a doubt about the Idoc ID that SAP asing automaticaly.

I have a concept that ID is correlative, isnt it?

sometimes i check we05 or we02 an i can see that the sistem, does not use a correlative number for IDocs of same type.

I saw it in Z IDocs particulary.

Is there any configuration that i can do so the system will generate IDocs ID correlative?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Hope you are asking about INBOUND IDOCs which are posted into SAP ECC from SAP PI. If that is the question here is the answer

Example scenario:

Sender(some format)---->PI-----> converting and sending in IDOC format to SAP ECC

in SAP ECC we05(or)we02-->select inbound IDOC which you received from SAP PI

step1: select any IDOC number and double click on it

setp 2: click on "control record"

step 3: in "Details" tab-->identification -->  EE <SAP PI Message ID>


Take this message id and search in PI, you will find corresponding message in moni


rodrigoalejandro_pertierr
Active Contributor
0 Kudos

sorry the doubt is not clear, lets try again

i have an application in SAP which send Idocs to an external app using SAP PI as middleware

when the app send the IDoc, this IDoc has an ID (IDoc number)

Those ID should be correlatives E.X:

000000000000100001

000000000000100002

000000000000100003

000000000000100004

but in particular for Z Idocs, the ID are not correlatives when the IDocs are generated in ECC.

000000000000100001

000000000000100004

000000000000100002

000000000000100003

So, what i need is to know if it is possible to check any configuration in ECC side to gaurantee that the Z IDocs will be generated in order.

000000000000100001

000000000000100002

000000000000100003

000000000000100004

hope it is more clear now.

Rgds

Former Member
0 Kudos

Yes, we can send those IDOC in same order using EOIO queue configuration.

Step1: in SAP Application WE20 (partner profile)-->chose your partner type( I am taking LS)-->select SAP PI Partner profile-->in outbound parameters select your IDOC type and double click-->in "Outbound Options tab"-->select "Queue processing" and give some name(this is nothing but RULE Name)

Step2:

Goto WE85-->edit  and add new RULEName(same name which you given in WE20) and Functional module name

These entries will store in EDPO_QUEUE table

Step 3: SE37

define FM and mention your own queue name

example function module

FUNCTION z_idoc_queue.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(CONTROL) LIKE  EDIDC STRUCTURE  EDIDC
*"  EXPORTING
*"     VALUE(NAME) TYPE  CHAR16
*"  TABLES
*"      DATA STRUCTURE  EDID4
*"----------------------------------------------------------------------
************************************************************************
* Program: Z_IDOC_QUEUE                                            *

* Program Title : Set queue names for message              *
        *
************************************************************************

*                                                                      *
************************************************************************


IF control-mestyp = 'ORDRSP'.//<IDOC-MSG type>
CASE control-mesfct.
WHEN '1'. //this number is nothing but Message function no in partner profile(WE20) for msg type
name
= 'Z_MAN_ORD1'.
WHEN '2'.
name
= 'Z_MAN_ORD2'.
ENDCASE.
ENDIF.

ENDFUNCTION.



SAP Hepl: http://help.sap.com/saphelp_erp2004/helpdata/en/00/9ffe3e432fd861e10000000a114084/content.htm


If I answer your question, please add points

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

please read my question!!!! you are not responding at all. the problem is not about the QoS is about the IDocs ID or IDoc number or wahtever you want to call it.

Former Member
0 Kudos

not sure how to control on IDOC numbers generation

hope this might be useful(not sure how far it is useful in your case)

SNRO for object EDIDOC

and number generation range