Ansicht
Dokumentation
EDI_DOCUMENT_CLOSE_CREATE - EDI interface: Close IDoc after insertion
Fill RESBD Structure from EBP Component Structure CL_GUI_FRONTEND_SERVICES - Frontend ServicesThis documentation is copyright by SAP AG.
Functionality
An IDoc should be generated.
Closing an IDoc ; the IDoc number is obtained via the internal
number assignment. This number is used to write the entire IDoc to the
database.
Data records in EDID2; Status records in EDIDS; Control record in EDIDC
Example
After using function modules
EDI_DOCUMENT_OPEN_FOR_CREATE and
EDI_SEGMENT_ADD_NEXT or EDI_SEGMENTS_ADD_BLOCK
an IDoc is opened and filled with data which is stored in internal tables, the function module should close the IDoc and
store it in the database.
*
* Ident - Identification from the open function module
tables: edidc.
data: syntax_return like sy-subrc.
call function 'EDI_DOCUMENT_CLOSE_CREATE'
exporting
identify = ident
importing
idoc_control = edidc
syntax_return = syntax_return
exceptions
document_not_open = 01
document_no_key = 02
failure_in_db_write = 03
parameter_error = 04.
Notes
Further information
Parameters
IDENTIFIERIDOC_CONTROL
NO_DEQUEUE
SYNTAX_RETURN
SYN_ACTIVE
Exceptions
DOCUMENT_NOT_OPENDOCUMENT_NO_KEY
FAILURE_IN_DB_WRITE
PARAMETER_ERROR
Function Group
EDI1SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 2380 Date: 20240523 Time: 120431 sap01-206 ( 25 ms )