Skip to Content
0
Former Member
Oct 14, 2005 at 07:30 PM

Retrieve IDoc Segment Format

82 Views

I am using the SAP function IDOC_SEGMENT_STRUCTURE_READ to retrieve the structure of an IDoc segment. This function returns a table SEGMENT_STRUCT of type LEDID_T_SEGMENT_STRUCT.

When I call this function from my ABAP function, I am using the following definition for the table I am sending to IDOC_SEGMENT_STRUCTURE_READ:

Data: lt_segstru type table of LEDID_T_SEGMENT_STRUCT.

I am using the same type in my internal function as is used in the SAP function, but when I try to activate my function, I am receiving the following error:

The type "LEDID_T_SEGMENT_STRUCT" is unknown.	

I see that LEDID_T_SEGMENT_STRUCT points to the type group of LEDID. How do I write my table definition in my calling function to match the format of the table returned in IDOC_SEGMENT_STRUCTURE_READ?