SAP Function SEGMENT_READ_COMPLETE - Read segment structure in one release (RFC-compatible)

Parameter Reference Type Length Default Optional Text
PI_APPLREL SEGDEFARL C 10 SPACE X IDoc Development: Application Release of Segment Definition
PI_RELEASE SYST-SAPRL C 4 SY-SAPRL X Release
PI_SEGTYP EDI_IAPI12-SEGMENTTYP C 30 Segment type
PI_VERSION EDI_VERREC-VERSION C 1 '3' X Version of IDoc record types

Parameter Reference Type Length Text
PE_HEADER EDI_SAPI01 u 218 Header data for segment type

Parameter Reference Length Optional Text
PT_FIELDS EDI_IAPI12 245 X Structure of segment type (fields)
PT_FVALUES EDI_IAPI14 140 X Possible values for segment fields

Exception Text
SEGMENT_STRUCTURE_UNKNOWN Structure could not be read
SEGMENT_UNKNOWN Segment unknown in release

Functionality
This function module determines the attributes and structure of an IDocsegment in a specified release, taking into accountthe structure of the IDoc record types used.
The following information can be read:

Attributes

  • Description

  • Indicator for qualified segment

  • Person responsible and last user to make changes (incl.time details)

  • Segment definition

  • Version

  • Relevant release for the segment definition

  • Number of fields in the segment

  • Export length
  • Segment structure

    • Segment type

    • Field name

    • Field lenghts (internal and external)

    • Position of the field in the segment

    • Specification of the first and last byte in the field in the IDoc data
    • record (the version of the IDoc record types is taken intoconsideration)
      • Data element, domain and screen data type of the field

      • Indicator for the ISO code

      • Name of the value table
      • Permitted values for the segment fields:

        • Segment name and field name

        • Lower value / single value

        • Upper value

        • Explanatory short text

        • Note: if the data element of the segment field refers to a domain withfixed values, these values are given as permitted field values.

          Example

          Notes

          Description
          Attributes of the segment type

          Description
          SAP release

          Description
          Segment type

          Value range
          All segment types defined in the system

          Description
          Version of the IDoc record types

          Description
          Segment fields

          Description
          Permitted values for the segment fields