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

Idoc creation - Different Message types

Former Member
0 Likes
700

Hi All,

Is there an efficient way of to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?

Please advise.

Regards,

Meghna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
662

Hi,

Can you be more clear abt the requirement like why you need to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?

programatically yes its possible,based on message type you can fill the respective idoc types.

If EDIDC-MESTYP = 'DEBMAS'.

fill DEBMAS05 idoc type.

else if EDIDC-MESTYP = 'ORDERS'.

fill ORDERS05 idoc type

endif.

regards,

naveen

5 REPLIES 5
Read only

Former Member
0 Likes
663

Hi,

Can you be more clear abt the requirement like why you need to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?

programatically yes its possible,based on message type you can fill the respective idoc types.

If EDIDC-MESTYP = 'DEBMAS'.

fill DEBMAS05 idoc type.

else if EDIDC-MESTYP = 'ORDERS'.

fill ORDERS05 idoc type

endif.

regards,

naveen

Read only

0 Likes
662

Thanks Naveen.

My requirement is to create both.

Here's what I am planning to do:

fill DEBMAS05 idoc type.

append EDIDD.

fill ORDERS05 idoc type.

append EDIDD.

I'm planning to use INBOUND IDOC Process function module to create these idocs.

For performance reasons do you want me to call this FM twice or only once for both.

Please advise.

Meghna

Read only

0 Likes
662

Hi Meghna,

there is a option you can assign the DEBMAS05,ORDERS05 idoc type for the Partner profile..

so when ever the data come for a particular partner the both DEBMAS05,ORDERS05 will be created..

Regards,

Prabhudas

Read only

0 Likes
662

Thanks for your reply.

We have lot of custom development and we have to go with an ABAP program to create these Idocs.

Here's what I am planning to do:

fill DEBMAS05 idoc type.

append EDIDD.

fill ORDERS05 idoc type.

append EDIDD.

I'm planning to use INBOUND IDOC Process function module to create these idocs.

For performance reasons do you want me to call this FM twice or only once for both ( by appending EDIDD both debmas and orders records ).

Please advise.

Meghna

Read only

0 Likes
662

Hi,

As both are diffrenet message types ( incase inbound idoc) , the FM's will be different and so u have to call both FM's twice.

if it is outbound idoc , then after filling EDIDD for DEBMAS pass it to MASTER_IDOC_DISTRIBUTE fm .

//ly after filling EDIDD for ORDERS pass it to MASTER_IDOC_DISTRIBUTE fm .

regards,

Naveen