‎2009 May 14 6:21 AM
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
‎2009 May 14 6:32 AM
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
‎2009 May 14 6:32 AM
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
‎2009 May 14 4:19 PM
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
‎2009 May 14 4:24 PM
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
‎2009 May 14 4:31 PM
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
‎2009 May 15 5:23 AM
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