Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP IDOC

Former Member
0 Likes
504

somebody knows as it is the correct way to generate a IDOC with a program Z in abap I I use

CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_CREATE'

CALL FUNCTION 'EDI_SEGMENTS_ADD_BLOCK'

CALL FUNCTION 'EDI_DOCUMENT_CLOSE_CREATE'

CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'

but not if it is the correct form but

1 ACCEPTED SOLUTION
Read only

Laxmana_Appana_
Active Contributor
0 Likes
431

Hi,

You need to use FM : MASTER_IDOC_DISTRIBUTE to create idoc.fill the data in the tables EDIDC,EDIDD and generate the IDOC.

check this link:

Regards

Appana

somebody knows as it is the correct way to generate a IDOC with a program Z in abap I I use

CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_CREATE'

CALL FUNCTION 'EDI_SEGMENTS_ADD_BLOCK'

CALL FUNCTION 'EDI_DOCUMENT_CLOSE_CREATE'

CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'

but not if it is the correct form but

1 REPLY 1
Read only

Laxmana_Appana_
Active Contributor
0 Likes
432

Hi,

You need to use FM : MASTER_IDOC_DISTRIBUTE to create idoc.fill the data in the tables EDIDC,EDIDD and generate the IDOC.

check this link:

Regards

Appana