‎2007 Jun 05 6:01 AM
Hi experts!
I have some doubts
How we find Business objects?
How we find a bapi for particular screen?
Is there any other way of finding an error in Call transaction except checking in BDCMSGCOLL?
Thanks in advance
jawad
‎2007 Jun 05 6:07 AM
Hi,
1) You can find the business objects in the transaction SWO1.
2) Check the BAPI transaction...Or try searching in SE37..with BAPI* with the appropriate transaction..like BAPIMATERIAL.
3) The other way is checking SY-SUBRC after the call transaction...
Thanks,
Naren
‎2007 Jun 05 6:02 AM
Hi Jawad
you can find business objects using SE80.
Is there any other way of finding an error in Call transaction except checking in BDCMSGCOLL?
<b>No other Alternative way for this.</b>
Regards,
Sree
Message was edited by:
sree ram
‎2007 Jun 05 6:05 AM
hi,
you can find business objects using SE80. In that click on Repository information sytem. or use SE90
‎2007 Jun 05 6:07 AM
Hi,
1) You can find the business objects in the transaction SWO1.
2) Check the BAPI transaction...Or try searching in SE37..with BAPI* with the appropriate transaction..like BAPIMATERIAL.
3) The other way is checking SY-SUBRC after the call transaction...
Thanks,
Naren
‎2007 Jun 05 6:09 AM
Hi
How we find Business objects?
Goto <b>SWO1</b> Tcode and press F4 you will get all the business objects
How we find a bapi for particular screen?
Use the Tcode <b>BAPI</b> to find all the BAPIs.
Is there any other way of finding an error in Call transaction except checking in BDCMSGCOLL?
No other way, you have to use this BDCMSGCOLL
Reward points if useful
Regards
Anji
Reward points if useful
Regards
Anji
‎2007 Jun 05 6:11 AM
hi Jawad
<b>Use of BAPI in Custom programs</b>
<b>Step 1</b>: First step is to identify the application area. Then go to the transaction code BAPI and obtain the corresponding BAPI.
Eg : if your dealing with a sales order , in the BAPI explorer , go to sales and distribution-> sales->sales order.
<b>Step 2:</b> Refer to the documentation of the method to know how to use the BAPI.
Eg : In order to create a sales order, select the BAPI CreateFromDat2. (BAPI_SALESORDER_CREATEFROMDAT1).
<b>Step 3</b>: Simulate the desired output using SE37 transaction. Do sample testing with the function module found. SAP does not specify flag population part to control the update. That you can achieve by some trial run of the function module.
<b>Example :</b>
Call function BAPI_SALESORDER_CREATEFROMDAT1
EXPORTING
Order_header_in = s_order_header
IMPORTING
Salesdocument = w_sales_docno
Return = s_return
TABLES
Order_items_in = t_order_item
Order_partners = t_order_partner
Order_item_out = t_order_item_out.
Here, in the s_order_header structure we fill all the header data of the sales order to be created.
Eg:- s_order_header-sales_org = FR03,
s_order_header_distr_chan = 01. Etc..
In t_order_item table we fill all the item data of the sales order, eg. T_order_item-material = M13321,
T_order_item-plant = 0033.
append t_order_item.
Similarly we fill, t_order_item_out,t_order_partner tables.
In the structure s_return, we will get the return messages from the BAPI , eg. Sales order created successfully or
Error in item 020.
If the BAPI is successful, the number of the sales order created will be returned in the field, w_sales_docno.
Once , the BAPI is successful, to commit the changes to the database, we must use the function module,
BAPI_TRANSACTION_COMMIT.
Eg,
CALL FUNCTION BAPI_TRANSACTION_COMMIT
EXPORTING
wait = X.
Thus, we can create a sales order, using the appropriate BAPI, and similarly, we can use BAPIs for many other applications.
<b>LINKS FOR BAPIS</b>
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
List of all BAPIs
http://www.planetsap.com/LIST_ALL_BAPIs.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
regards
ravish
<b>plz dont forget to reward points if helpful</b>
‎2007 Jun 05 6:22 AM
Hi Jawad,
1. You can view the business object using the transaction SWO1.
2. Finding a BAPI can sometimes be a pain. To search for standard BAPI's just type BAPI_*, type in a meaningful description and hit F4. If its your day, well you'll get it in the first hit. Or else, go through the list and search for BAPIs that would suit your requirements. And then, finally, what's SDN for :-). You can always post your requirements and your queries will be solved in a flash.
3. I'm not sure. I guess BDCMSGCOLL is the only option. Please post back if you find an alternative.
Regards
Anil Madhavan