Ansicht
Dokumentation

EDI_SEGMENTS_GET_RANGE - EDI interface: Read part of section from data records for IDoc

EDI_SEGMENTS_GET_RANGE - EDI interface: Read part of section from data records for IDoc

Vendor Master (General Section)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

When you call the function module 'EDI_SEGMENTS_GET_RANGE, a range of data records is delivered.

To do this the IDoc must have been opened in read or process mode.

Example

* IDoc opened with EDI_DOCUMENT_OPEN_FOR_READ

data: docnum like edidc-docnum.
data: from-seg like edidd-segnum,
to-seg like edidd-segnum,
anzahl_fehlend like edidd-segnum.
data: begin of int_edidd occurs 0.
include structure edidd.
data: end of int_edidd.

from-seg = 4.
to-seg = 8.

call function 'EDI_SEGMENT_GET_RANGE'
exporting
document_number = docnum
from_segment = from-seg
to_segment = to-seg
importing
number_of_missing_segments = anzahl_fehlend
exceptions
others = 04.

Notes

Further information





Parameters

DOCUMENT_NUMBER
FROM_SEGMENT
NUMBER_OF_MISSING_SEGMENTS
RANGE_EDIDD
TO_SEGMENT

Exceptions

DOCUMENT_NUMBER_INVALID
NO_RANGE_OF_EDIDD

Function Group

EDI1

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1928 Date: 20240523 Time: 093255     sap01-206 ( 21 ms )