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

IDoc_Doc.Num?

Former Member
0 Likes
1,291

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
Read only

Former Member
0 Likes
1,253

Hi,

Yes.

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

Regards,

Ferry Lianto

Hi Experts,

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

ThnaQ.

Message was edited by:

Srinivas

9 REPLIES 9
Read only

former_member187255
Active Contributor
0 Likes
1,253

Control Record will contain the IDoc Number.

Message was edited by:

Ch@ndra

Read only

Former Member
0 Likes
1,254

Hi,

Yes.

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

Regards,

Ferry Lianto

Read only

0 Likes
1,253

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

Read only

0 Likes
1,253

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.

Read only

0 Likes
1,253

ThanQ Arun.

Read only

Former Member
0 Likes
1,253

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.

Read only

0 Likes
1,253

ThanQ Arun,

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

ThanQ.

Read only

Former Member
0 Likes
1,253

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

Read only

0 Likes
1,253

ThanQ Ferry.