2007 Mar 13 7:21 PM
Hi Experts,
In Inbound direction, Does an IDoc Control Record & Data Records contains the Document mumber?
ThnaQ.
Message was edited by:
Srinivas
2007 Mar 13 7:28 PM
Hi,
Yes.
For IDoc number, you can check IDoc control record (EDIDC-DOCNUM).
Regards,
Ferry Lianto
2007 Mar 13 7:28 PM
Control Record will contain the IDoc Number.
Message was edited by:
Ch@ndra
2007 Mar 13 7:28 PM
Hi,
Yes.
For IDoc number, you can check IDoc control record (EDIDC-DOCNUM).
Regards,
Ferry Lianto
2007 Mar 13 7:34 PM
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
2007 Mar 13 8:05 PM
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.
2007 Mar 13 8:09 PM
2007 Mar 13 7:34 PM
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.
2007 Mar 13 7:46 PM
ThanQ Arun,
I understood. But, y dont u reply for my further querry(its located,just above ur answer).
ThanQ.
2007 Mar 13 7:50 PM
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
2007 Mar 13 7:51 PM