‎2007 Jun 21 11:20 PM
Hi ,
Can any one help me with the issue i have , we are trying to load data from legacy system to SAP(using Ascential to load data) . Ascential has the capability of sending IDOCs to the SAP system .I need to know how i can use the BAPI to load data ( the parameters for the bapi would be provided by and inbound IDOC ) .
So there would be an inbound IDOC from Ascential to SAP and using the data in the IDOC a BAPI should be called and then post the data .
I have a BAPI called " FunctionalLocation " can be vfound in Tcode BAPI under Plant maintenance under technical objects .
and when i click the create method in that bapi and go into the detail tab i get to see that ALE message type ....... when i click on t hat i go to a transaction where i can generate an interface for the BAPI and now click on display interface ...to view the interface .
i need to understand the following points ( will be thankfull if any one can help ) .
1) do i need to create an inbound process code for this function module in the example above
2) do i need to set up the inbound process ... so that once an idoc hits the SAP system the appropiate function module is called ................
Vamsi
‎2007 Jun 22 5:28 AM
Hi Vamsi,
When the BAPI/ALE interface is generated in the transaction BDBG, it will generat the IDOC type, Message type and the inbound Function module.
Further we need to:
Assign the IDOC type , Message type , Business object and the FM in WE57.
Create an inbound process code using the Trasaction WE42
and Link it to the FM.
In the customer distribution model use ADD BAPI under the model view.
Hope this will give u the solution.
Regards,
Varma
‎2007 Jun 22 5:09 AM
Hello,
I understand that your requirement is to generate a ALE interface / IDoc container for a BAPI if it does not have one. If so, I suggest you to check the OSS 731418, and by tx. BDBG to generate the IDoc interface for a BAPI on SAP system. most important point is that the BAPI should be in 'Released' state. Ic case the BAPI is not released, you can create a Z BAPI which just calls the original BAPI and release this BAPI and generate an IDoc interface.
I have followed the same procedure to create the IDoc interface for BAPI_PO_CREATE1 for data migration activity.
Hope this helps.
Best Regards, Murugesh AS
‎2007 Jun 22 5:28 AM
Hi Vamsi,
When the BAPI/ALE interface is generated in the transaction BDBG, it will generat the IDOC type, Message type and the inbound Function module.
Further we need to:
Assign the IDOC type , Message type , Business object and the FM in WE57.
Create an inbound process code using the Trasaction WE42
and Link it to the FM.
In the customer distribution model use ADD BAPI under the model view.
Hope this will give u the solution.
Regards,
Varma
‎2007 Jun 22 6:22 AM
Hi Vamsi,
Small corrections in the earlier reply ..which are in [ ]
When the BAPI/ALE interface is generated in the transaction BDBG, it will generat the IDOC type, Message type and the inbound Function module.
Further we need to:
[ Maintain FM Attributes in Tcode BD51 ]
Assign the IDOC type , Message type , Business object and the FM in WE57.
Create an inbound process code using the Trasaction WE42
and Link it to the FM.
[ you can perform these activities from SAP Easy Access
Tools->ALE->ALE Development->IDOC-> Inbound Processing -> Function Module
1. Maintain Attributes (BD51) and 2. Assign IDOC type and Message type (WE57)
3. Define Process code and 4.Check Consistency ]
In the customer distribution model use ADD BAPI under the model view.
Hope this will give u the solution.
Regards,
Varma