05-12-2008 10:18 AM
Hi ALL
Each IDOC having Data records.I want the tables for Idoc data records for genarating report.
Ex : W.r.t 10001 idoc ,we forwarded the following information likke sold toparty, material, qty,---
Regards
Raj
05-12-2008 10:20 AM
Hi,
EDIDC Stores the Control information an IDOC
EDID4 Stores the Data Records from 4.0 onwards
EDIDS Stores the Status of an IDOC
Regards
Kiran Sure
05-12-2008 10:22 AM
Hi,
Filling control record information in a structured variable of
type EDIDC
Filling Data record information in an internal table of type
EDIDD.
Filling of control information in an internal table of type EDIDC.
Where each record of a table contains information of each
receiver.( multiple records in case of multiple receivers ) .
Database table
EDIDC Stores Control records
EDID4 Stores Data records
EDIDS Stores status records
TBDLS- stores logical systems.
EDIDD_OLD IDoc Data Record
Regards,
Raj.
05-12-2008 10:24 AM
Hi,
Table for Control Record : EDIDC
Table for Data Records : EDID4
Table for Status Records : EDIDS
Regards,
Farheen
05-12-2008 10:37 AM
HI Fathima
In EDID4 ,total information is not there.It is having few data only!
Regards
RAj
05-12-2008 10:41 AM
Hello Raj,
Whatever has been said is true. EDIDD-SDATA has limitations by way of number of characters. It cannot exceed 1000. Segment structures are to be paid attention to.
Warm Regards,
Indu Shekar
05-12-2008 10:45 AM
Hi Shekar
Thanks for ur reply
EDIDD is the Structure,how cen we pick the data!
Regards
Raj
05-12-2008 12:19 PM
Hello,
EDID2 holds data from 3.0 onwards. EDID4 holds data from 4.0 onwards.
Delcare an internal table record structure simial to EDIDD.
Read records into the table through a simple select comparing the idoc number.
You can then loop through the internal table to access the segments.
Here is the sample code:
For populating internal table idoc_data with data from the IDoc:
-
SELECT * FROM EDID4 INTO CORRESPONDING
FIELDS OF TABLE T_IDOC_DATA
FOR ALL ENTRIES IN T_IDOC_CONTROL
WHERE DOCNUM = T_IDOC_CONTROL-DOCNUM.
Looping through to access segments:
-
LOOP AT idoc_contrl.
LOOP AT idoc_data WHERE docnum = idoc_contrl-docnum.
CASE idoc_data-segnam.
WHEN 'E1EDK14'.
<Whatever you want to do>
WHEN 'E1EDKA1'.
<Whatever you want to do>
WHEN OTHERS.
<Whatever you want to do>
ENDCASE.
ENDLOOP.
ENDLOOP.
05-12-2008 10:27 AM
in a program
u use only two structures
edidd - to store data information
edidc - to store control information
edidd-sdata stores data in a string form
edids - has status information..
Please reward points
12-23-2009 9:58 AM