FAQ's BDC & LSMW
Hi All please answer these Questions,
1. What is BDC ?
2. What is call transaction method ? what is the
syntax/procedure?
3. What is session method and what is the
syntax/procedure?
4. Difference between call transaction & session method?
5. which of these methods can be best used in background
process?
6. What is direct input method?
7. How LSMW is advantageous than normal BDC?
8. what are the steps in lsmw?
9. IN LSMW can you use BAPI, ?
10. Can you call a bdc from a report program?
11. what is the difference between synchronus &
asynchronus methods?
12. call transaction uses synchronus or synchronus method?
13. session method uses synchronus or synchronus method?
14. What is bapi?
15. how bapi is different from call transaction/session?
16. what r the advantages of bapi?
17. for uploading master data(ex:customer data) into sap,
which methods you prefer? call
transaction/session/lsmw/bapi? why?
18. tell any 2 standard bapi function modules used for
uploading sales order data?
Thnaks in advance
Ranjith
Hi,
1.BDC is Batch Data Communication where data is transferred from legacy system to SAP system.
Different methods of BDC are
1. Call Transaction Method.
2. Session Method
3. Direct Input method.
2. Call Transaction Method is one of the method in BDC for Data Transfer.
Syntax :
CALL TRANSACTION trans [using bdctab MODE mode].
Where trans = Transaction Code
Bdctab = Internal table of structure BDCDATA.
Mode = Display mode.
Three possible entries are there for MODE.
A - Display all .
E - Display errors only.
N - No Display.
Procedure :
1. Prepare a BDCDATA structure for the transaction that u wish 2 run.
2. With a CALL TRANSACTION USING statement,call the transaction and prepare the BDCDATA structure. For example:
CALL TRANSACTON ZSRC USING BDCDATA MODE A.
MESSAGES INTO MESSTAB.
IF SY-SUBRC <> 0.
<Error_handling>.
ENDIF.
3. Procedure :
1. Generate the batch input session using function module BDC_OPEN_GROUP.
2. The proceed as follows for each transaction that the session contains:
a . In the BDCDATA structure, enter the value for all screens and fields that must be processed in the transaction.
b. Use BDC INSERT to transfer the transaction and the BDCDATA structure to the session.
c.Close the batch input session with BDC CLOSE GROUP
d.Start to process the generated session.
4.Session method.
1) asynchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) synchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
5.Call Transaction method.
6.Direct Input is a technique which doesnot create a session but stores data directly.To enhance the batch input procedure, the system offers the direct input technique, especially for transferring large amounts of data.
7.In LSMW ,there are two more import techniques (BAPI,IDoc) & Mapping can be done automatically.It contains 17 to 18 steps for migrating the data.It's an automatic procedure.
8.Goto Transaction 'LSMW' and execute it.We can view the steps.
9.Yes,We can.There is an option in 'Maintaining Object Attributes'.
12.Synchronous processing.
In Database Update,it may be Synchronous or Asynchronous.
13.Asynchronous processing.
In Database Update,it is Synchronous.
14.BAPI(Business Application Programming Interface) they are actually methods (business functions) exposed by the sap environment to manipulate business objects defined in the business objects repository. other sap or non sap systems can use these bapis for their business operations.
16: regarding advantages for BAPI, please refer: http://help.sap.com/saphelp_nw04/helpdata/en/7e/5e11dc4a1611d1894c0000e829fbbd/frameset.htm
Similar Messages
-
Best practice to upload data for Appraisals: BDC, LSMW or functional module
Hi,
I have heard that BDC and LSMW do not work for data upload in appraisals. Is it true?
Can we use ECATT or SECATT to upload data in appraisals?
I somewhere got the information that functional modules
HRHAP_DOCUMENT_PREPARE
HRHAP_DOC_UPDATE_BODY_AND_SAVE
HRHAP_DOCUMENT_CREATE
are used to upload the data for appraisals?
Many of my earlier clients found it very hectic to create appraisal templates every year (PHAP_CREATE). They needed something automated for this. I managed to suggest them manual upload or SECATT, but I am not sure if BDC/LSMW work for this.
Can somebody throw some light on this?
Best regards,
Veera Sasidhar JangamHi,
You need to write a code for same and use function modules available as those does direct updates to database.
If client is not bothered about look and feel during dataload or do not care about display infotypes during data updates then use above method otherwise BDC needs to be written with screen control programming in it.
Thanks,
Ameet -
Can anyone please let me know the issues faced while upgrading bdc & Lsmw from lower version to higher version.
Hi
The following problems can be encountered
1. Absence of certian screen fields.... usually the custom fields which are in lower version and not transported to higher version.
2. Screen flow might change. Thus make sure that screen flow defined in BDC is same as the actual screen flow in the transaction.
Regards,
Vara -
hello...
I have gone through this forum on the basics of lsmw and bdc,
could any1 sumup when one would go for BDC and when LSMW?
I Would appreciate if anyone could come up with a real world scenario for having used BDC/ LSMW.
Thanks in advance -
hank,Hi,
*Ws_upload is a FM which will transfer Presentation Server File to Internal Table ie it Uploads a file from the presentation server into an internal table.
upload is a FM which will transfer Presentation Server File to Internal Table with Len
Data which is available in a file on the presentation server is transferred in an internal table. ASCII and binary files can be transferred.
But both these FM's are obsolete - do not use . Use GUI_UPLOAD instead
Edited by: anil sasidharan on Apr 6, 2009 4:13 PM
Edited by: anil sasidharan on Apr 6, 2009 4:20 PM -
hello all,
please tell me about difference between bdc , lsmw, bapi
Moderator Message: Search for available information before posting.
Edited by: kishan P on Dec 28, 2010 4:32 PMHi Karthik,
All the 3 can be used for the same purpose.
BDC - was the first provided by SAP for mass data entry in to SAP Database with Screen checks
LSMW - Originated as a 3rd party tool with many more functionalities and ease of use
BAPI - Some times the transaction screens changes, in those cases the BDC's fail as they purely refer to the screen elements. BAPI's provide a more consistent way to make entries in SAP systems without referencing the screen elements but still adhering to the underlying business logic, so the data entry is syntactically and semantically correct.
Hope this helps.
Regards,
Gaurav -
How to handle Table control in BDC? Difference between BDC & LSMW?
Hi
How to handle Table control in BDC? Difference between BDC & LSMW?
Regards,
RaghuHi ,
the diff b/w normal BDC and with table control is that with table control u can enter as many lineitems as u want..so during recording if u r entering 3 line items..then the program will show (1), (2) and (3) with that.
chane that fixed no to variable.
check that sample code.
in this for new customer...any no of items can be entered.
LOOP AT t_cusdata.
REFRESH t_bdcdata.
ON CHANGE OF t_cusdata-kunnr.
initial screen.
PERFORM bdc_dynpro USING 'SAPMV10A' '0100'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MV10A-VTWEG'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'MV10A-KUNNR'
t_cusdata-kunnr.
PERFORM bdc_field USING 'MV10A-VKORG'
t_cusdata-vkorg. "'HCL'.
PERFORM bdc_field USING 'MV10A-VTWEG'
t_cusdata-vtweg. "'HL'.
DATA: fnam(20) TYPE c,
fnam1(20) TYPE c,
idx(2) TYPE c.
MOVE 1 TO idx.
LOOP AT t_matdata WHERE kunnr = t_cusdata-kunnr.
PERFORM bdc_dynpro USING 'SAPMV10A' '0200'.
CONCATENATE 'MV10A-KDMAT(' idx ')' INTO fnam.
PERFORM bdc_field USING 'BDC_CURSOR'
fnam.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
CONCATENATE 'MV10A-MATNR(' idx ')' INTO fnam1.
PERFORM bdc_field USING fnam1
t_matdata-matnr. "'FIN50'.
PERFORM bdc_field USING fnam
t_matdata-kdmat. "'ABCD'.
idx = idx + 1.
ENDLOOP.
PERFORM bdc_dynpro USING 'SAPMV10A' '0200'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MV10A-MATNR(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=SICH'.
CALL TRANSACTION 'VD51' USING t_bdcdata MODE 'A' .
UPDATE 'S' MESSAGES INTO t_err_mes.
Regards,
Sonika -
hi all,
i want some faq on lsmw and bdc.
thanks in advance.Hai,
1. What is BDC ?
2. What is call transaction method ? what is the
syntax/procedure?
3. What is session method and what is the
syntax/procedure?
4. Difference between call transaction & session method?
5. which of these methods can be best used in background
process?
6. What is direct input method?
7. How LSMW is advantageous than normal BDC?
8. what are the steps in lsmw?
9. IN LSMW can you use BAPI, ?
10. Can you call a bdc from a report program?
11. what is the difference between synchronus &
asynchronus methods?
12. call transaction uses synchronus or synchronus method?
13. session method uses synchronus or synchronus method?
14. What is bapi?
15. how bapi is different from call transaction/session?
16. what r the advantages of bapi?
17. for uploading master data(ex:customer data) into sap,
which methods you prefer? call
transaction/session/lsmw/bapi? why?
18. tell any 2 standard bapi function modules used for
uploading sales order data?
Regards,
Padmam. -
Changing the payer in sales order other then BDC, LSMW
Hi Friends,
We are working at BHEL,
here we want to change the payer instead of old payer for all open sales orders is , is there any possibility to change the payer in sales order other then LSMW , BDC , those two are not helpful for us because there is lot of incompleteness logs in my incomplete procedure,
please suggest me to proceed further,
regards,
Gangi Reddy.Hi Gangi,
I have explained the CATT procedure, step by step, on 31/03/2007 for another mass updation requirement in the same forum with subject as 'Regarding Customer Master'.
Have a look and let me know if you have further doubts.
Rewards if helps.
Regards
Nadarajah Pratheb -
Hi Friends!
1) Could u pls tell me when to use BDC & When to use LSMW I am a technical Person i want to load data using LSMW Then when to do that? apart from doent need programming effort.
2) My Second Doubt is From LSMW, Suppose i am doing lsmw in development system can i transport the lSMW to Production & upload data to prod server just like BDC
or
I ve to do lSMW in production System to upload data in prod server
Since I am saving i am nor getting development class & transport req, that why.
Could u pls help me to solve my issue.
Thanks
Rahul.<b>BDC</b> is for loading <b>master data</b> and <b>LSMW</b> for <b>transaction data</b>
BDC
BDC is basically for customized applications.
In bdc we have to give mapping concept explicitly.
It basically uses recording.
BDC is used by technical consultants , who do coding.
Coding can be done flexibly to customize applications.
LSMW
In lsmw mapping is take care by sap.
lsmw is basically for standard sap application.
LSMW offers different techniques for migrating data say : Direct input , Batch input recording , BAPI , IDOC
LSMW is basically designed for Functional consultants who do no coding .
Coding cannot be done flexibily as BDC.
<b>Yes</b> you can <b>transport</b> in <b>LSMW</b>! There is an <b>import export option</b> in <b>extras</b> of <b>LSMW initial screen</b>.
refer
for LSMW:
www.sap-img.com/sap-data-migration.htm
www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
www.erpgenie.com/sap/saptech/lsmw.htm
help.sap.com/bp_blv1500/BL_US/html/dataconv_lsmw.htm
help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
regards,
srinivas
<b>*reward for useful answers*</b> -
Hi,
If any one has Step by Step Procedure for writting a BDC or LSMW.
Please mail me to my Personnel Id [email protected]
Regards,
Ramu N.Hi
Check these links...
BDC
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sap-img.com/bdc.htm
www.sappoint.com/abap/bdcconcept.pdf
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.planetsap.com/bdc_main_page.htm
FOR LSMW
http://www.sap-img.com/sap-data-migration.htm
http://www.sapgenie.com/saptech/lsmw.htm
http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
this pdf gives great step by step procedure
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
REWARD POINTS OF HELPFUL
-charitha -
Once the recording is done in BDC and LSMW...if we are asked to add an additional field later...then how do we add the field to the existing one...? elaborate answers will be appreciated.
Hi,
First get the screen field name of the additional field. You can get it by doing F1 on the field.
Then check this field is coming after which field for which the recording is done and in the BDC prgoram,
add line PERFORM bdc_field USING 'New field' it-newfield after the previous field.
Suppose the additional field which is required is in a new screen i.e. for none of the fields of this screen
recording is done,then you you need to add
PERFORM bdc_dynpro USING 'PROGRAM NAME' 'SCRENN NO'.
PERFORM bdc_field USING 'BDC_CURSOR' 'New field'
PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM bdc_field USING 'New field'.
Regards,
Vinod -
BDC/LSMW for SPRO to MM to Purchasing to PR to Release Procedure to ...
Hi experts,
May I know those screen in SPRO can do BDC or LSMW? I am facing problem on trying up the BDC using SM35 on the following screen. (I can't get the transaction code).
The path is:
SPRO -> MM -> Purchasing -> PR -> Release Procedure -> Set up Procedure With Classification -> Release Strategies.. The SAP program is SAPL0ME2, but I can't execute it using SE38 since it's a program Type 'F'.
So may I know any possible way for us to use recording approach on these to do Mass insertion of data?
Thanks.
Cheers,
Wong
Edited by: Julius Bussche on Sep 12, 2008 10:37 AMHi Vijay,
First, you can try on SM30, V_T16FS. Simply double-click on 1 release strategy, then Click on "Classification". You will see the classification screen allow us to enter value on each characteristic of the class.
However, I try using SHDB (recording), it shows empty screen on the value for class in the 'Classification' screen.
Thanks.
Cheers,
Isaac. -
Data upload using BDC/LSMW (SAP-ABAP)
Hi Friends,
Is there any option available to delete no.of records from sap-database which are uploaded(Only transactional data) in test or production system by using BDCs and Lsmw ?
Pls treat it as urgent.
I 'll reward for best solution.
Thx in Adv.
BapiHi,
Thq for ur response.
I am explaining u in more details:
Suppose I uploaded *G/L Account balance(it is having thousands of records) * using existing Z_prog...successfully to quality system.
Afterwards I came to know some wrong data has been uploaded along with .Now I want to delete those records from quality system which is got corrupted.
Is the any tool available to do this ?
Pls treat it as urgent .
Thx and Regds,
Bapi -
ECC 6.0 upgrade BDC, LSMW, IDOC checking stratergy
Hi Experts,
We have developed lot of LSMW involving BDC recordings, programs, IDOC and BAPI to load the data. We are now upgrading to ECC 6.0 and hence like to know the approach or check list whcih will help to check these objects and find out the differences or corrections to be done before moving to ECC 6.0 box.
can u please let me know a check list or any utility program that will help to identify the difference or issues? thx for response.
GaneshThe best way to find out if everything works is to upgrade a test system and check your process. There's no tool available. LSMW itself didn't change but there may be changes in function modules you use.
Markus -
Differences between BDC , LSMW, BAPI,CATT
Hi ABAP Gurus,
Just I have completed my ABAP course. Could you please explain the differences between BDC(Session and Call Transaction),LSMW,CATT and BAPI. Their advantages & limitions.
Thanks in advance.
Chandra MohanBDC techniques used in programs:
1) Building a BDC table and calling a transaction,
2) Building a session and a set of BDC scenarios and keeping the session available in SM35,
3) Building a session and lauching the transaction right after closing the session.
BDC using Call Transaction
LSMW:
The Data Transfer Workbench (or DX Workbench, transaction SXDA) is an integrated SAP tool that supports data transfer and analysis. It does not have the built-in features for mapping for source structures to target structures, but it will allow you to integrate Legacy System Migration Workbench (LSMW) objects as processing tasks within a run definition. The DX workbench has many features for creating test data and performing data migrations - for example, logging of data migration runs. However, if you need to map or convert data, you should use the LSMW. Or, you can integrate your LSMW objects as task within a more user-friendly data migration run, in which the LSMW project steps "Read data", "Convert data," and "Start IDoc processing" are automated and use the features of both tools. If you donot need logging and automated data migration runs, you can perform your data migration without the DX Workbench.
BDC:
Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional. BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The transaction is then started using this internal table as the input and executed.
BDC using Call transaction involves calling an SAP transaction in back ground from within the ABAP
program. The process involves building an Internal BDC table containing the screen information needed to
execute the required transaction and then passing this to the Call transaction command (See code example).
The full procedure for creating a BDC program is as follows:
What is the difference between batch input and call transaction in BDC?
Session method.
1) synchronous processing.
2) can tranfer large amount of data.
3) processing is slower.
4) error log is created
5) data is not updated until session is processed.
Call transaction.
1) asynchronous processing
2) can transfer small amount of data
3) processing is faster.
4) errors need to be handled explicitly
5) data is updated automatically
BATINPUT/DIRECT INPUT
A: Batch-inputs can not be used to fill the "delivery due list" screen because it is not a dynpro. This is a standard SAP report. A SAP report (check with "System -> Status") may be called using SUBMIT sentence with the appropriate options . It is preferred to call a report than create a Batch-input program.
GO THROUGH THIS LINK
http://www.guidancetech.com/people/holland/sap/abap/zzsni001.htm
BAPI - Some times the transaction screens changes, in those cases the BDC's fail as they purely refer to the screen elements. BAPI's provide a more consistent way to make entries in SAP systems without referencing the screen elements but still adhering to the underlying business logic, so the data entry is syntactically and semantically correct.
You can check the below links also
Re: Differences between LSMW and BDC
BDC AND BAPI
Maybe you are looking for
-
In Windows, Mac OSX, and Bridge on Windows, when I hold SHIFT and navigate with up and down arrows, I can select more files or fewer files in the direction I am going. However, doing the same thing in Bridge CC on the Mac expands my selection on the
-
My Compaq 500B MT doesn't start.
Hi! I have a problem with my Compaq 500B MT When I press the Power Button, it just starts up, then displays only the Compaq Logo, but it's freezed, means that I cannot enter in the BIOS or boot up. I tried some things, like changing the RAMs and slot
-
Frustrated with Mail! (some forwarded emails not received)
Good afternoon. We have been trying to migrate our email to Mail (under OS 10.4.11) for months now. One of us seems to be pretty reliable, save for the ability to receive SOME messages that have been known to be sent from another email application. S
-
Kernel continually generating SIGSEGV messages
in my system log there keeps appearing an error message, generated by the kernel: "unknown SIGSEGV code 0" This is generated at very regular 20 second intervals, 2 at a time. SIGSEGV is a memory allocation error - how do I track down what is generati
-
Hi, I just upgraded to an iphone 4 but my macbook won't recognise it as its running OSX 10.4.11. How can I update to 10.5 or is there another way around this problem? I've searched for 10.5 update but can't find it online.