‎2007 Jun 25 5:01 PM
Hi all,
I am having difficulty in generating IDoc using BAPI-ALE.
Does anybody has a step by step process for setting up this process for BAPI 'StandardMaterial'? or any other master data transfer?
I need to send IDocs from R/3 to WEBsphere.
Best Regards
Rajendra
‎2007 Jun 26 4:17 AM
Hi Rajendra,
Let me clear you one concept. Bapi is not in any way used for generating idoc. If you want to pass the information from R/3 to external system WEBspere in your case , you can use standard programme to generate idoc. or in another approach you call required BAPI from websphere to get the data from R/3. Then uploading the data into WEBsphere is its look out.
We go for BAPI - ALE integration when we are getting the data from external system say WEBsphere into R/3. Then according to the message type concerned process code is called which in turn calls the bapi to upload data into R/3.
These are the steps for bapi-ale integration.
Generate the BAPI/ALE interface in the transaction BDBG, it will generate 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.
Award points if useful else please getbk,
Aleem.
‎2007 Jun 26 4:32 AM
Hi Rajendra,
->First identify the BAPI will caters to your requirement and the business object to which it is related.
->Copy the bapi as ZBAPI, Modify it according to the requirement.
->Release the ZBAPI.
->Copy the business object as ZOBJ in SWO1.
-> Add an API Method to that object. In the ABAP tab of that method call the above modified ZBAPI. Make it an instance independant method. Release the object and generate binding.
-> Now goto BDBG and give the ZOBJ in object field and ZBAPI in method and generate an ale interface.Accept all the default values.
Get back if you have any doubts.
Regards,
Younus
<b>Reward Helpful Answers:-)</b>