Application Development 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: 

Creating IDOC from ABAP Program

Former Member
0 Kudos

Hi folks,

Could any one tell me the procedure how to process IDOC form ABAP program. for example i want to send MATMAS idoc to other system. now we are able to send through Tcode BD10 to XI. we jsut want to send through ABAP program. is it possible to do so..if so could u pls let me know the procedure..thanks in advance.

santosh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Just check abap program RBDSEMAT.

In short:

- select the materials you want to send.

- call following function module:

CALL FUNCTION 'MG_IDOC_CREATE_FULL_MAT'

EXPORTING

rcvpfc = ' '

rcvprn = receiver_prn

rcvprt = receiver_prt

sndpfc = ' '

sndprn = ' '

sndprt = ' '

message_type = mestyp

TABLES

marakey = t_matkeypack

EXCEPTIONS

OTHERS = 0.

1 REPLY 1

Former Member
0 Kudos

Just check abap program RBDSEMAT.

In short:

- select the materials you want to send.

- call following function module:

CALL FUNCTION 'MG_IDOC_CREATE_FULL_MAT'

EXPORTING

rcvpfc = ' '

rcvprn = receiver_prn

rcvprt = receiver_prt

sndpfc = ' '

sndprn = ' '

sndprt = ' '

message_type = mestyp

TABLES

marakey = t_matkeypack

EXCEPTIONS

OTHERS = 0.