Application Development 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: 

IDoc_Doc.Num?

Former Member
0 Kudos
201

Hi Experts,

In Inbound direction, Does an IDoc Control Record & Data Records contains the Document mumber?

ThnaQ.

Message was edited by:

Srinivas

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos
163

Hi,

Yes.

For IDoc number, you can check IDoc control record (EDIDC-DOCNUM).

Regards,

Ferry Lianto

9 REPLIES 9

former_member187255
Active Contributor
0 Kudos
163

Control Record will contain the IDoc Number.

Message was edited by:

Ch@ndra

ferry_lianto
Active Contributor
0 Kudos
164

Hi,

Yes.

For IDoc number, you can check IDoc control record (EDIDC-DOCNUM).

Regards,

Ferry Lianto

0 Kudos
163

ThanQ all.

I am going thru one example prog., in that he mentioned like the efollowing(in <b>inbound direction),</b>

<i><b>loop at idoc_data where docnum eq idoc_contrl-docnum.</b></i> (here idoc_data is EDIDD),

(Here the docnum is not variable, he did not declared and not passed valur for it any where)

So, is it right/mistake? I mean Does the Data Records contains the Document Number?

ThanQ.

Message was edited by:

Srinivas

0 Kudos
163

srinivas,

the loop might be for the data record internal table, before that the programmer should have looped it for the control record.

like,

loop at idoc_control.

.....

loop at idoc_data where docnum eq idoc_control-docnum.

....

endloop.

endloop.

so this docnum is from the control record not from the data record. so the programmer is right in his point of view.

Hope u understood.

Regards....

Arun.

Reward points if useful.

0 Kudos
163

ThanQ Arun.

Former Member
0 Kudos
163

srini,

control record in idoc contains the idoc number along with sender , receiver, message type and idoc type. Without idoc number it is hard to monitor the idoc as well as testing the idoc. so idoc number will be there for inbound as well as outbound idoc but it is unique.

Regards...

Arun.

Reward points if useful.

0 Kudos
163

ThanQ Arun,

I understood. But, y dont u reply for my further querry(its located,just above ur answer).

ThanQ.

ferry_lianto
Active Contributor
0 Kudos
163

Hi Srinivas,

loop at idoc_data where docnum eq idoc_contrl-docnum. (here idoc_data is EDIDD),

So, is it right/mistake? I mean Does the Data Records contains the Document Number?

Yes, above code is correct and EDIDD contains IDoc number.

Regards,

Ferry Lianto

0 Kudos
163

ThanQ Ferry.