2006 Sep 12 6:02 PM
All,
Whenever a change is made to a customer, or an entry is created, I need to send them to a non-sap system using IDOCS.
But my requirement is I need to send the customer classification information as part of this IDOC.
Can I send DEBMAS and CLFMAS together in one IDOC?
How can I handle this? How can I populate CLFMAS IDOC when ever a change is made to a customer or new custmer is created?
Thanks,
2006 Sep 12 7:38 PM
Hi Somen,
I think you can co-relate DEBMAS IDoc with CLFMAS IDoc.
Segment E1KNA1M-KUNNR = E1OCLFM-OBJEK.
Please check logic in program RBDSEDEB.
There is a logic to find customer for selected classes. Check link between table KSSK and KNA1.
Then you can extend IDoc DEBMAS to have class information as Michael mentioned earlier for your middelware mapping purposes.
Again, hope this will help.
Regards,
Ferry Lianto
Message was edited by: Ferry Lianto
Message was edited by: Ferry Lianto
2006 Sep 12 6:09 PM
Hi Somen,
You can not send DEBMAS and CLFMAS together in one IDOC.
To generate IDoc CLFMAS, you can use standard program RBDSECLF (t/code BD93) or program RCCLDIHI (t/code CLHI) for class hierarchies.
Also you can generate from change pointer (t/code BD21) for any changes made to a customer or new custmer is created.
Hope this will help.
Regards,
Ferry Lianto
2006 Sep 12 6:45 PM
Ferry,
Thanks for the response. I will be using change pointer for changes to customers not for classifications.
So I think I should develop an RFC function which can read the classification data of that customer.
Is there any function module available for this?
Thanks,
2006 Sep 12 6:54 PM
Hi Somen,
Perhaps you can use user exits <b>EXIT_SAPLBD11_001</b> to generate CLFMAS IDoc while generating DEBMAS IDoc using change pointer (BD21).
The enhancement name is ALE00001. This user exits can be called from BD21. So basically, you can add your custom code inside the user exits to call FM MASTERIDOC_CREATE_REQ_CLFMAS or submit program RBDSECLF.
I never done before but give it try.
Again, hope this wil help.
Regards,
Ferry Lianto
2006 Sep 12 7:11 PM
Thanks again for the quick response.
I am just wondering....if I generate CLFMAS and DEBMAS idocs, is there any way to co-relate that this particular CLFMAS idoc is for this DEBMAS idoc.
To put simple, I need to know, whether it is possible that the classification data in CLFMAS idoc belong to the right customer in DEBMAS idoc.
This is important as, the middleware will be using this data for mapping.
Thanks,
2006 Sep 12 7:27 PM
If you need the classification data for a specific customer concurrently in your middleware application, you might want to consider extending the customer IDoc to include the necessary classification data.
2006 Sep 12 7:38 PM
Hi Somen,
I think you can co-relate DEBMAS IDoc with CLFMAS IDoc.
Segment E1KNA1M-KUNNR = E1OCLFM-OBJEK.
Please check logic in program RBDSEDEB.
There is a logic to find customer for selected classes. Check link between table KSSK and KNA1.
Then you can extend IDoc DEBMAS to have class information as Michael mentioned earlier for your middelware mapping purposes.
Again, hope this will help.
Regards,
Ferry Lianto
Message was edited by: Ferry Lianto
Message was edited by: Ferry Lianto