LSMW Methods - BAPI and IDOC - why used together?
Hi,
There are four mathods available in LSMW:
- Direct Input
- BAPI
- IDOC
- BDC
Among these BAPI and IDOC always go hand in hand. In case we choose to go in for IDOC, we will have to enter the partner profile settings for an inbound IDOC. But in case we choose to go with th BAPI method, even then we have to mention the inbound IDOC settings.
I would like to know why is this so; if there is a provision for two separate methods, why do we need to use IDOC if a BAPI is selected.
Please advise.
Regards,
Namrata
In LSMW, BAPI method by default uses iDoc as a medium exchange in order to be passed as parameters to it. Actually, a text file is created when you convert the data with iDoc format. From there, you have two options: Either go on with LSMW steps (create idocs from text file, then run idoc transactions) OR go on with SXDA workbench (create a project there and run a job which essentially calls the BAPI).
There are two different methods because SAP developed them at different times. First, they had the ALE layer (as middleware for SAP to SAP/non-SAP communication) that uses the idoc as medium exchange, then at a later time BAPIs were developed as RFC function modules/object methods. Since idoc were already in place, they used that as medium exchange for BAPIs, too.
I hope that is clearer now.
Similar Messages
-
Screen shots of lsmw using bapi and idoc.
hi
can anybody plz send me the step by step lsmw procedure using
bapi and idoc screen shots.
regards
vijayRefer this link... it has step by step procedure with screen shots....
http://www.****************/Tutorials/LSMW/LSMWMainPage.htm
Regards,
Pavan -
Want some good links on BAPI and IDOC's.......
Hi,
Can I get some good links and some good material in BAPI and IDOC's.
Thanks in advance.
Message was edited by: Deepak333 khi
http://cma.zdnet.com/book/abap/ch03/ch03.htm
http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help For Dictionary.
http://sappoint.com/abap/
for SAPscripts
For follg., refer http://www.henrikfrank.dk/abapuk.html
Please note that I do not offer any support for the examples !
ABAP objects and control technology
IDOC
SapScript
Performance tuning
BAPI Programming
Visual Basic Integration - Using the DCOM Connector and BAPI OCX (Only available in Danish)
JAVA and the SAP java connector
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
for keywords
very useful link for all
http://www.sapgenie.com/abap/index.htm
http://www.sap-img.com/abap.htm
http://www.sapdevelopment.co.uk/tips/tipshome.htm
http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
http://www.thespot4sap.com/
http://www.kabai.com/abaps/q.htm
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapgenie.com/abap/tips_and_tricks.htm
http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
For FAQ
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.sapgenie.com/faq/abap.htm
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm
Weblog for receive email and processing it through ABAP
/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
For Logical database
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
very useful
http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
Useful link to websites
http://www.hernangn.com.ar/sap.htm
Useful for background
http://www.sappoint.com/basis/bckprsng.pdf
http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
For posting weblog,
/people/sap.user72/blog/2005/06/28/sdn-weblogs-making-it-easier
Dynamic Internal table -weblog in sdn
/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
Smartforms
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
ALV
http://www.geocities.com/mpioud/Abap_programs.html
Mail
http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
Sending mail in background or spool mail
http://www.sap-basis-abap.com/sapac018.htm
BOM Explosion
/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
BOM
http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
http://www.sap-basis-abap.com/sappp007.htm
OLE
http://www.sapgenie.com/abap/ole.htm
http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
ALVGRID with refresh
http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
For language setting and decimal separator
/people/horst.keller/blog/2004/11/16/abap-geek-7-150-babylonian-confusion
Oracle queries
http://sqlzoo.net/
To format SQL
http://www.sqlinform.com/
SCOT settings
http://www.sap-img.com/basis/basis-faq.htm
Status Icon [ALV,Table Control,Tab Strip]
http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
ALV Group Heading
http://www.sap-img.com/fu037.htm
For multiMedia
/people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
Uploading LOGO in SAP
http://www.sap-img.com/ts001.htm
LSMW
http://www.sap-img.com/sap-data-migration.htm
http://www.sapgenie.com/saptech/lsmw.htm
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
OOPS ALV
OOPS - Events.
Editable ALV
Tree
TabStrip
Multigrid
Check this for basic concepts of OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/abap objects/abap code sample to learn basic concept of object-oriented programming.doc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/alv grid/abap code sample to display data in alv grid using object oriented programming.doc
Tabstrip
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/alv grid/abap code sample for tab strip in alv.pdf
Editable ALV
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/alv grid/abap code sample to edit alv grid.doc
Tree
http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
General Tutorial for OOPS
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
Function Module
http://www.geocities.com/victorav15/sapr3/abapfun.html
Smartforms
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Table Control
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/table control in abap.pdf
regards
Arun -
Hai friends,
Thank you for the earlier replies.
Now i want to know the functoional flow of the HR module and list of BAPIs and IDOCs invloved in the HR.
thanks and replies will get good points.
ElamaranFor Fm`s and BAPI`s go to SE37 AND search on HR and RH
for Idocs go to WE30 search HR ....
for HR tables and Transactions
http://www.planetsap.com
http://www.atomhr.com/
http://www.sapcookbook.com/preview_hr_questions.htm
http://sap.ittoolbox.com/topics/t.asp?t=302&p=302&h1=302
http://help.sap.com/saphelp_470/helpdata/EN/8a/6a46347969e94be10000009b38f83b/frameset.htm
Re: What is ABAP-HR?
HR_Reports
Pl. award the points if it helps you ...
Thanks
Message was edited by: Saquib Khan -
Pur. Info Records by BAPI and Idoc
Hi,
Am uploading Purchasing Info Records by LSMW-Direct method.
Can anyone guide to do the same by BAPI and also by Idoc method...
Please let me know the advantages and disadvantages for the above methods over another.
ThanksIdoc type :INFREC01
message type : INFREC
FM : IDOC_INPUT_INFREC
I have done output and above details are inbound ,i guess it should work
I do not know about BAPI ..
Thanks
Seshu -
In which situation we will us e BAPI and IDOCS
Hi friends,
pls explain in which situation we will us e BAPI & IDOC, why ?
Regards
Jagadeeshwar.BHi,
Both are used for data transfer.
BAPIS are interfaces which enables to communicate with sap aswellas nonsap systems. IDOCS are intermediate documents sent between sap and nonsap systems.
BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
But BAPIs are synchronous ( i.e. the systems must be online) whereas IDOCS are synchronous ( ie. both systems need not be online .
we can make bapis asynchronous using the IDOCS.
thanks and regards. -
Difference between BAPI and IDocs
hello all
what is difference between BAPI and IDocsHi,
BAPI
One of the big plusses for BAPIs is that the interface and function are not supposed to change. This is a big plus when you do upgrades or hot packs because the transaction can change (format, required inputs etc) which means you then need to update the call transaction.
Some of the BAPIs are better documented and easier to use than others. You usually need to perform the BAPI that actually does the COMMIT after you call your BAPI.
The Program coding for calling a BAPI is usually cleaner than setting up the screen flow etc for the Call Transaction.
You don't need to worry about special data circumstances interrupting the normal data flow of the screens and causing errors because of that.
BAPIs probably have better performance since they don't do the screen flow processing.
In general if the BAPI exists for the transaction you want to perform and you can figure out how to use it the BAPI is probably the best way to go.
BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
IDOC
IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
The philosophical difference between EDI and ALE can be pinned as follows: If we send data to an external partner, we generally speak of EDI, while ALE is a mechanism to reliable replicate data between trusting systems to store a redundant copy of the IDoc data. The difference is made clear, when we think of a purchase order that is sent as an IDoc. If we send the purchase order to a supplier then the supplier will store the purchase order as a sales order. However, if we send the purchase order via ALE to another R/3 system, then the receiving system will store the purchase order also as a purchase order.
Regards,
Bhaskar -
Hai,
is it possible to use BAPI's in IDoc 's Instead of DATA conversion method?
Which bapi is for populating Invoice in idoc?
Thanks
AviHai,
Yes, BAPI's can be used in Idoc's , For populating the Fields in the screen,
BAPI_INCOMINGINVOICE_CREATE .this is the BAPI for invoice
Thanks
MAnju -
How to create and modify IDocs generated by BApis, as per my knowledge we have to use BDBG transaction but , i am not sure how to use this one. In my scenario our company is using customer BApis and i have to change IDocs created by this according to new tax calculations. If any one know the procedure Please inform me.
Thanking you in advance,
HariHi, I have just try some code for test, and now have some result to paste for you.
At first, the ALE_XXXX function module I mentioned is generate though BDBG for call to create a IDOC.
The INPUT_XXXX function module is for receive IDOC, and it will call BAPIXXXX inside it.
you can have a check, on these two kinds of function.
I list a sample for my test, hope it will be helpful.
First, let assume that we want a BAPI to convert to IDOC way, I choose BAPI_PROFITCENTER_CHANGE, object type is BUS0015, and it already has a ALE MESSAGE 'PROFITCENTER_CHANGE'. (all of these can be found in BAPI explore)
And second, you use BDBG to find out the two function associated with this BAPI, they are
ALE_PROFITCENTER_CHANGE
IDOC_INPUT_PROFITCENTER_CHANGE
you can create a report program to call ALE_XXX function, you will find the interface of ALE_XXX is very similar with the BAPI function.
you also should create a process code, connect it with the INPUT_XXX function, that will be used to handle IDOC 'PROFITCENTER_CHANGE' when ALE receive the IDOC from outside.
After that, everything is ok, you call your report program, and you can see the IDOC creatad and sent, which create by the ALE message.
And also can see that the IDOC import into the target logical system.
That's the simple process of my test, hope it will be hepful to you. -
Which BAPI and how to use it in order to modify results
Hello,
I need to enter the results of an Inspection Lot using an external program.
Below is a screenshot of QA32:
- The round circles show what I know;
- The arrow shows what I wish to modify;
I would appreciate some help on the following topics:
- Which BAPI to use;
- How to fill the BAPI;
- Does the BAPI need BAPI_TRANSACTION_COMMIT after?
Thanks in advance for your help.
Regards,
JoãoHi,
Not certain what your external system is, but it may be worthwhile to go through the QM-IDI documentation to see if that meets your requirements
http://help.sap.com/saphelp_erp60_sp/helpdata/en/26/b43927506511d182c20000e829fbfe/frameset.htm
Alternately, take a look at BAPI_INSPOPER_GETDETAIL to determine how the lot expects to receive results, and BAPI_INSPOPER_RECORDRESULTS to set the results accordingly
Regards,
JL -
Bapis and IDOC for Service order... etc.
Hi Experts,
Can any body please tell me what are the bapis for creating
following things.
Create Service Order or Sales Order
Update Service Order
Goods Issue & Goods Receipt
Inventory Balanceses
Purchase Requisition Information
Purchase Order Information
For this above are there any standard inbound and outbound
idoc for data transfer.
Thanks & Regards,
ChetanHi,
Thank you very much For the Information.
I had asked one more question below that.
"For this above are there any standard inbound and outbound
idoc for data transfer".
Thanks & Regards,
Chetan -
Aperture, File Vault, and Time Machine used together?
I am interested to know if I could setup a system to run like this:
1. Create a user account with File Vault turned on
2. Use Aperture inside the File Vault protected profile, thus the Aperture Library is encrypted
3. Plug in an external drive and use Time Machine as normal.
I have heard that in order to use Time Machine and Aperture that one must tell Time Machine to NOT backup the Aperture library. However, if File Vault is used doesn't Time Machine only backup the encrypted volume upon logout?
Can anyone foresee this causing problems? Thanks!Time Machine and File Vault aren't a particularly good combination.
See #25 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum), for details and some possible alternatives. -
HT204136 Restoring from iCloud and iTunes backup used together
How would I restore my iPhone if I'm doing iCloud and iTunes backup together? The articles lists that as an option, but when it comes time to restore, can't you only pick one to restore from?
Here are a couple links that might help you decide
iCloud: iCloud storage and backup overview
http://support.apple.com/kb/PH12519
About iOS and iTunes Backup
http://support.apple.com/kb/ht4946 -
When and Why we use BAPI, RFC and IDOC.. in XI
Hi,
Could any one tell me why we some time use BAPI, and some times use RFC and some times use IDOC while communicating with the SAP systems.
Is there any differences while using the same.
regards,
SunilSunil,
RFC and BAPI are same as per the technical point of view both are remote enabled function module..
BAPI is provided by SAP while RFC is created by a developer..
IDoc is another proprietary technology of SAP for exchnaging messages .
Difference lies here :
1. For RFC/BAPI you need to use RFc adapter
while for IDoc you need to use IDoc adapter..
2. For RFC you need to create RFC destinations not for Idoc
3. For Idoc you also need to manage Partners Profiles..inn R3..
These are few differences in using RFC/BAPI and Idoc...not the only ones..
Feel free for any clarification..
Regards, -
LSMW what BAPI to use to load Business Partner?
Could anyone tell me what BAPI to use for business partner? i think its part of CRM..... I'll work out what a BAPI is later! But i gather batch recording is not the go?
I don't know anything about SAP, BAPIs and Idocs and Batch recordings!!! I have a number of flat files, I want to import please show be some direction, would be appreciated.
mikeThanks,
Yes we have used the recording tool and actually loaded one file in the SAP system, as a test, however we have fields in "tabs" ie one customer has many phone numbers - a multi structure record. I believe the recording tool is no good for such cases!
I'm not sure whether I have need to have one input file or whether I need to have two files one for cutomer and another for phone details.
The 2nd question is my original question what BAPI or other method can I use for customer (business partner) details, as the recording method is no good for data with 1 to many relationships. HELP!
Maybe you are looking for
-
How to pass javascript variable to jsp function
i want to check which table header (that is <th> in html )is clicked and based on that a jsp funtion do a query in database and should show records in sorted way according to which column head is clicked. Table is created in html. My function is Vect
-
Substitute tasks not shown in UWL but available in SBWP
Hi, I am trying to test substitute functionality in our custom iview. I have added code(available in attached file) in UWL XML which shows Manage Substitution button and substitute tasks are shown in SBWP but not in UWL. What else I need so tasks sh
-
Filtering XML data by first letter
I have an XMLList of plant data. I know how to display a subset of data based on matching (thanks, Tracy): _plantsA = _myPlants.(@plantName == "Abelia"); or _cheapPlants = _myPlants.(@price<=5); But what's the syntax for matching plants whose name BE
-
How are reviews organized?
I always thought reviews in iTunes Store where organized by date with the most resent being first. However it appears to be random when reviewing TV shows on my iPhone running iOS 6. How are they organized then?
-
i need new type of Questions, a matrix with multiple text boxes in row? is it available or how we can build one?