About bdc rec & usage in target prog
hi guru's,
after the bdc recording is done, ihave got it in to a new program. can u give how to proceed further.
where to insert the forms & code of this bdc_rec in my target program.
please, can u give me a step wise like u did earlier for recording.
i would be thankful to u for this detailed help.
regards,
chaitu
Hi,
You can see that there are two types of performs in the BDC recorded program
Perform for screen, Perform for fields and Perform for transaction.
After the recorded program is created.
1. copy all performs into new program.
2. write the FORM...ENDFORM for the given performs (as given at end of sample program below).
3. Now for those fields where you have entered the values at the time of recording, replace the screen fields in the perform by values which you want to pass.
Eg: PERFORM bdc_field USING 'RL02B-MBLNR'
gt_headret-mat_doc.
Above step indicates that material document number from internal table gt_headret is passed to screen field 'RL02B-MBLNR'.
similarly replace all the other fields accept those which capture the events like 'enter pressed'.
Refer below program:
REFRESH itab_bdcdata.
PERFORM bdc_dynpro USING 'SAPML02B' '0203'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RL02B-LGNUM'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'RL02B-MBLNR'
gt_headret-mat_doc.
PERFORM bdc_field USING 'RL02B-MJAHR'
gt_headret-doc_year.
PERFORM bdc_field USING 'RL02B-LGNUM'
wa_mseg-lgnum.
PERFORM bdc_field USING 'RL02B-DUNKL'
'H'.
PERFORM bdc_dynpro USING 'SAPML03T' '0132'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TPAL'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LTBP1-OFMEA(01)'.
PERFORM bdc_dynpro USING 'SAPML03T' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RL03T-ANZL1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TAH1'.
PERFORM bdc_field USING 'LTAP-WDATU'
lv_date.
PERFORM bdc_field USING 'RL03T-LMEN1'
lv_lhmg1.
PERFORM bdc_field USING 'RL03T-LETY1'
'IP'.
PERFORM bdc_field USING 'RL03T-ANZL2'
'1'.
PERFORM bdc_field USING 'RL03T-LMEN2'
wa_mseg-menge.
PERFORM bdc_field USING 'RL03T-LETY2'
'IP'.
PERFORM bdc_dynpro USING 'SAPML03T' '0102'.
PERFORM bdc_field USING 'BDC_CURSOR'
'LTAP-NLENR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'LTAP-LETYP'
'IP'.
PERFORM bdc_field USING 'LTAP-WDATU'
lv_date.
PERFORM bdc_field USING 'LTAP-NLTYP'
v_stotyp.
PERFORM bdc_field USING 'LTAP-NLPLA'
wa_mlgt-lgpla.
PERFORM bdc_field USING 'LTAP-NLENR'
it_ft_mb31-lenum.
PERFORM bdc_dynpro USING 'SAPML03T' '0104'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RL03T-ANZL1'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=BU'.
PERFORM bdc_field USING 'LTAP-WDATU'
lv_date.
PERFORM bdc_field USING 'RL03T-LMEN1'
lv_lhmg1.
PERFORM bdc_field USING 'RL03T-LETY1'
'IP'.
PERFORM bdc_field USING 'RL03T-LMEN2'
wa_mseg-menge.
PERFORM bdc_field USING 'RL03T-LETY2'
'IP'.
*& Form bdc_dynpro
text
FORM bdc_dynpro USING program dynpro.
itab_bdcdata-program = program.
itab_bdcdata-dynpro = dynpro.
itab_bdcdata-dynbegin = 'X'.
APPEND itab_bdcdata.
CLEAR itab_bdcdata.
ENDFORM. " bdc_dynpro
*& Form bdc_field
text
FORM bdc_field USING fnam fval.
itab_bdcdata-fnam = fnam.
itab_bdcdata-fval = fval.
CONDENSE itab_bdcdata-fval.
APPEND itab_bdcdata.
CLEAR itab_bdcdata.
ENDFORM. " bdc_field
& Form bdc_transaction
FORM bdc_transaction USING tcode.
CALL TRANSACTION tcode USING bdcdata
MODE 'A'
UPDATE 'S'.
ENDFORM. " bdc_transaction
Similar Messages
-
Hi,
My 20G Zen Sleek Photo has just recently transformed itself into a useless brick.
No matter what I try and do, it always ends up freezing after about 5 minutes usage. When you force a reset it does unlock but when it comes back on it sticks on the Creative "copyright" start up screen.
I've reformatted and re-installed the firmware several times but with the same result.
font face="comic sans ms,sans-serif">
The only time it totally unlocks is when you either:
() let the battery fully drain and then recharge it or
(2) you disconnect the battery lead and then press the On/Off switch for several minutes.
I've looked everywhere for a solution/reason but nothing. You find plenty of people with the same problem but no answers. Surely someone knows how to fix the problem
Is it a faulty battery (unlikely because mine charges up fine and holds it charge well)
Is it the hard dri've (very unlikely since the player can start up correctly [given the above recovery procedure] and play tracks within the 5-0 minutes you have available)
Is it the firmware (I doubt it, I can't see what the firmware's got to do with a delayed lock up, having worked fine up to that point)
Is it the motherboard (maybe....., to my mind it points to a component failure that allows an electric charge to build up and not dissipate, the only way to discharge it is to short the battery pins [with, I hasten to add, the battery removed!])
font face="comic sans ms,sans-serif">
Has anyone within the Creative community successfully solved this problem Has anyone received a decent answer from Creative
I find it staggering that the guys at Creative have washed their hands of this problem. They, after all, are the most likely people to identify the problem - only they have a schematic of the motherboard that would allow them to investigate and locate the problem.
For the record the firmware I'm using is v .0.0.
Any guidance would be much appreciated,
VictorIs there really no one with an answer to this problem or have I overlooked a previous post that explained the fault.
BR
Victor -
I DO NOT want to send anonymous reports to Mozilla about my computer usage and so on. How do I get rid of the question that comes up every time I open Fiorfox up?
See:
* https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel
* go to Firefox/Tools-Option-Advance and uncheck submit performance data -
I have a recently acquired an iPhone 4. Is it true if I am using PhotoStream to upload photos to my PC via iCloud, photos are only pushed when wifi is available? This means I don't have to worry about extra data usage, right?
Thank you.Correct.
On an iOS device, new photos you take will be automatically uploaded to your photo stream when you leave the Camera app and are connected to Wi-Fi. Note: My Photo Stream does not push photos over cellular connections. -
Hi ..
by using BDC how to upload flat file(legacy system) to sap System..in BDC which method is mainly using in real time..can you please send me some FAQs for me about Reports,smart forms,BDC,LSMW,ALV(ABAP List viewer),sap scripts,Module pool.aHi
Call Transaction method makes an immediate call on the transaction and upload starts immediately.,
Session method only creates a session of the whole recording including all the values that have to be inserted,it does not insert values into the system. This session can be invoked anytime to upload values
In short call transaction is immediates
session is not immediate
Session method is faster
Synchronous is simoultaneous upload
Asynchornous is non-simultaneous upload
Start with this.Refer this
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
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm
call Transaction or session method ?
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
Reports
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Check these step-by-step links
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
for Smartforms material
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
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Debugging Document.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
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
http://service.sap.com/ale
http://service.sap.com/bapi
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
Simple ALV report
http://www.sapgenie.com/abap/controls/alvgrid.htm
http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Remote Function Call:
RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
RFCs manage the communication process, parameter transfer and error handling.
http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
ALE/ IDOC
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.sappoint.com/abap/ale.pdf
http://www.sappoint.com/abap/ale2.pdf
http://www.sapgenie.com/sapedi/idoc_abap.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
http://www.allsaplinks.com/idoc_sample.html
http://www.sappoint.com/abap.html
http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
http://www.sapgenie.com/sapedi/index.htm
http://www.allsaplinks.com/idoc_sample.html
Refer this
http://www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_DATADICTIONARY_FAQ.html
http://www.****************/InterviewQ/interviewQ.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/2cd77bd7705394e10000009b387c12/frameset.htm
http://www.techinterviews.com/?p=198
http://www.techinterviews.com/?p=326
http://www.sap-img.com/abap/answers-to-some-abap-interview-questions.htm
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.geekinterview.com/Interview-Questions/SAP-R-3/ABAP
http://sap.ittoolbox.com/documents/popular-q-and-a/abap-sample-interview-questions-3240
http://www.sap-img.com/abap/abap-interview-question.htm
http://www.allinterview.com/Interview-Questions/ABAP.html -
please help!!
suppose the requirement is to create a bdc rec in devlopment server.
but after the rec when i try to see the source code by creating a program as the process is.it is asking me for access key.
is there any way to get the source code.
Moderator Message: Please write proper english ( "rec" in your subject line and content ), do not use shorthand abbrevations and contractions.
Message was edited by: Kesavadas ThekkillathHi,
Even If you have created the correct BDC (z) and then clicked on program tab. Then you have to write the program name in which you want to transfer the code. You program name must start with Z. Please check again.
Regards
Purnand -
Hi Folks,
Can anyone here please provide me some links through which I can know more about BDC.
Thanks.
K.Kiran.kiran,
chk this pdf file
http://www.sappoint.com/abap/bdcconcept.pdf
chk this for FAQs on BDC
http://www.sap-img.com/abap/question-about-bdc-program.htm
sample code for call transaction method
http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm
chk this for BDC recording with screen shots
http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm
Hi refer the following links,
http://www.sappoint.com/abap/bdcconcept.pdf
http://www.planetsap.com/bdc_main_page.htm
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sappoint.com/abap/files.pdf
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_gci1068429_tax293481,00.html
Please find the same
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d62292b3-0301-0010-df98-aaac31cd4a41
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d62292b3-0301-0010-df98-aaac31cd4a41
Pls. Mark for all useful answers. -
Hi to all...
I have a doubt in BDC Programming, I have a sample program of a BDC and i have executed it by uploading a .txt File.. But i
can't able to know that whether the values are uploaded into the transaction or not. I also Like to Know about the Further
Process after executing the BDC report.. I don't Know how to View it in my transaction.. Can anyone Explain and Clear my
Doubt.
Moderator message: sorry, these forums cannot replace proper training, please search for available documentation or attend classes.
locked by: Thomas Zloch on Sep 29, 2010 3:36 PMHi..
Basically I trying to Learn the BDC Programming now... I got an idea about BDC, But i can't able to know what is happening in it..
Can You Have any sample Program With any comments Means Pls can you post it... -
Want to learn more about BDC.
Hi all,
I am new to BDC and want o learn more about it and how it works. Can you please help me out in these.
Please send any docs if any in [email protected]
With regards,
Abir.Hi,
Have a look at these links-
BDC
http://www.sap-img.com/bdc.htm
www.sappoint.com/abap/bdcconcept.pdf
www.sap-img.com/abap/learning-bdc-programming.htm
www.sap-img.com/abap/question-about-bdc-program.htm
www.sapdevelopment.co.uk/bdc/bdchome.htm
www.planetsap.com/bdc_main_page.htm
Re: bdc mm01
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
Mark helpful answers.
Regards,
Tanuja. -
Hello Sir ,
This the second time i am asking u the question
I am new to <b>ABAP</b> ,so please consider my request
Please send me the details related to Programming in<b>BDC</b> ie
session method and call transaction method
and<b> complete details about BDC</b>
urs faithfully
Basavraj <b></b>Basavraj,
Sorry to say, but the Discovery System experts are not equipped to support detail questions such as yours. If you use the forums or OSS Notes for particular components, they will be more timely and reliable.
In your case, I recommend you either search SDN such as as this:
https://www.sdn.sap.com/irj/sdn/advancedsearch?query=bdc%20programming&cat=sdn_all
Or, seach OSS Notes within component BC-ABA-SC or generally, search within all components for "BCD programming" say within the past year.
Best,
Rick -
Can u send me the link which describes me in about bdc with direct method
Can u send me the link which describes me in about bdc with direct method with examples in detail
Hi,
http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
and
http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.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
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm
reward if useful
regards,
Anji -
Hi guru's,
after i have done bdc rec, i have imported the code to my program. but i have a small problem.
1. i have selected some views for my trn mm03(during bdc rec). while executing the Final program, the view at the last is not being selected until i scroll it until that view. (but in bdc rec i hav selected them) . hope u understood.
my code snippet:
PERFORM open_group.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0060'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'RMMG1-MATNR'
WA_FINAL-MATNR.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(02)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'
c_x.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(02)'
c_x.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(12)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(12)'
c_x.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(13)'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(13)'
c_x.
PERFORM bdc_dynpro USING 'SAPLMGMM' '0080'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-WERKS'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=ENTR'.
PERFORM bdc_field USING 'RMMG1-WERKS'
plant.
PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '4004'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '4000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_dynpro USING 'SAPLMGMM' '4000'.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RMMG1-MATNR'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
PERFORM bdc_transaction USING 'MM03'.
PERFORM close_group.
So, in the above code, i want the views to be selected directly without me pressing enter. so which fiels should i change in the above code for the dynamic selection of the views in trn 'mm03'.
2. i have to skip the first two screens, like entering the materialno & selecting the views. As i have already selected them durin bdc rec.
How to code for skipping these two screens.
can anyone solve my two probs.
ask me for any clarity in my doubts.
please help me
regards,
chaitanya
Edited by: chaitanya on Mar 13, 2008 11:02 AMhi
for ur first query :
i am giving u sample code for view selection on second screen
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(17)'.
perform bdc_field using 'BDC_OKCODE'
'P+'.perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(02)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(03)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(04)'
'X'.
record-KZSEL_04_005.
perform bdc_field using 'MSICHTAUSW-KZSEL(05)'
'X'.
record-KZSEL_05_006.
perform bdc_field using 'MSICHTAUSW-KZSEL(06)'
'X'.
record-KZSEL_06_007.
perform bdc_field using 'MSICHTAUSW-KZSEL(07)'
'X'.
record-KZSEL_01_004.
*perform bdc_field using 'MSICHTAUSW-KZSEL(08)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(09)'
'X'.
record-KZSEL_09_008.
perform bdc_field using 'MSICHTAUSW-KZSEL(10)'
'X'.
record-KZSEL_01_004.
*perform bdc_field using 'MSICHTAUSW-KZSEL(11)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(12)'
'X'.
record-KZSEL_12_009.
perform bdc_field using 'MSICHTAUSW-KZSEL(13)'
'X'.
record-KZSEL_13_010.
perform bdc_field using 'MSICHTAUSW-KZSEL(14)'
'X'.
record-KZSEL_14_011.
perform bdc_field using 'MSICHTAUSW-KZSEL(15)'
'X'.
record-KZSEL_15_012.
perform bdc_field using 'MSICHTAUSW-KZSEL(16)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(17)'
'X'.
record-KZSEL_17_013.
perform bdc_dynpro using 'SAPLMGMM' '0070'.
perform bdc_field using 'BDC_CURSOR'
'MSICHTAUSW-DYTXT(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MSICHTAUSW-KZSEL(01)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(02)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(05)'
'X'.
record-KZSEL_13_014.
perform bdc_field using 'MSICHTAUSW-KZSEL(06)'
'X'.
record-KZSEL_14_015.
perform bdc_field using 'MSICHTAUSW-KZSEL(07)'
'X'.
record-KZSEL_01_004.
perform bdc_field using 'MSICHTAUSW-KZSEL(08)'
'X'.
record-KZSEL_16_016.
perform bdc_field using 'MSICHTAUSW-KZSEL(09)'
'X'.
record-KZSEL_01_004.
here important is use P+ code to page down for select last views, and after that it may possible
that value 'MSICHTAUSW-KZSEL(07)' may be greater then 15 so change this by counting position . like
for 16 -
> 01
17 -
> 02
2. For ur second problem .
as u asking to eleminate 1and 2 screen , it is not possible bcoz
as u enter t.code first screen will come .
and without selecting VIEW u can not go further in t.code.
what u can do is make the entries in fields of these screen default then u will not requied to give them in flat file .
reward if helpful. -
I Need Navigation about BDC Upload
Need Navigation about BDC Upload
Hi
<b>the BDC program should be in this format</b>
Transaction Recorder (SHDB)
How to Upload Presentation Server Flat file to SAP R/3 system???
How to upload application server file to R/3 system?
Definition
<b>Example - Call Transaction Method</b>
<b>Transaction Recorder (SHDB)</b>
Before you work with the Batch Input methods, you should know the purpose of the tool
Transaction Recorder.
<b>Use:</b>
You can use the transaction recorder to record a series of transactions and their screens.
<b>Features:</b>
You can use the recording to create
Data transfer programs that use batch input or CALL TRANSACTION
Batch input sessions
Test data
Function modules.
Note: It doesnt record F1, F4 and Scrollbar movements
<b>Upload Flat file from Presentation Server to SAP R/3</b>
CALL FUNCTION GUI_UPLOAD'
EXPORTING
CODEPAGE = IBM'
FILENAME = P_UFILE
FILETYPE = 'DAT'
TABLES
DATA_TAB = INT_TAB
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10 .
IF SY-SUBRC NE 0.
MESSAGE E999(FR) WITH 'ERROR IN FILE UPLOAD'.
ENDIF.
<b>Upload file from application server to SAP R/3</b>
Open the the application server file
OPEN DATASET <dsn> FOR INPUT <mode>
Read the data from application server file
READ DATASET <dsn> INTO <wa>
And then close the application server file
CLOSE DATASET <dsn>
Definition- Declaring BDC Table
DATA: BDC_TAB LIKE STANDARD TABLE OF
BDCDATA INITIAL SIZE 6
WITH HEADER LINE .
The internal table used to collect the transactions information must be declared LIKE BDCDATA.
<b>Filling BDC Table Method #1</b>
FORM FILL_BDC_TAB.
REFRESH BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-PROGRAM = SAPMF02K.
BDC_TAB-DYNPRO = 01016.
BDC_TAB-DYNBEGIN = X.
APPEND BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-FNAM = RF02K-LIFNR.
BDC_TAB-FVAL = TEST1.
APPEND BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-FNAM = RF02K-D0010.
BDC_TAB-FVAL = X.
APPEND BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-PROGRAM = SAPMF02K.
BDC_TAB-DYNPRO = 0110.
BDC_TAB-DYNBEGIN = X.
APPEND BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-FNAM = LFA1-STRAS.
BDC_TAB-FVAL = 123 Main St..
APPEND BDC_TAB.
CLEAR BDC_TAB.
BDC_TAB-FNAM = BDC_OKCODE.
BDC_TAB-FVAL = /11.
APPEND BDC_TAB.
ENDFORM.
<b>Filling BDC Table Method #2</b>
FORM FILL_BDC_TAB.
REFRESH BDC_TAB.
PERFORM POPULATE_BDC_TAB
USING:
1 SAPMF02K 0106,
RF02K-LIFNR TEST1,
RF02K-D0010 X,
1 SAPMF02K 0110,
LFA1-STRAS, 123 Main St.,
BDC_OKCODE, /11.
ENDFORM.
FORM POPULATE_BDC_TAB USING FLAG VAR1 VAR2.
CLEAR BDC_TAB.
IF FLAG = 1.
BDC_TAB-PROGRAM = VAR1.
BDC_TAB-DYNPRO = VAR2..
BDC_TAB-DYNBEGIN = X.
ELSE.
BDC_TAB-FNAM = VAR1.
BDC_TAB-FVAL = VAR2.
ENDIF.
APPEND BDC_TAB.
ENDFORM.
This two subroutine method to fill the BDC table is preferable because the POPULATE_BDC_TABLE subroutine is reusable throughout all batch input programs.
Example #1 - Change Vendor (Call Transaction Method)
<b>Example #1- Declaration Section</b>
REPORT Y180DM10.
DATA: BDC_TAB LIKE STANDARD TABLE OF
BDCDATA INITIAL SIZE 6 WITH HEADER LINE.
INFILE(20) VALUE /tmp/bc180_file4.
DATA: BEGIN OF INREC.
VENDNUM LIKE LFA1-LIFNR.
STREET LIKE LFA1-STRAS.
END OF INREC.
PARAMETERS: DISPMODE DEFAULT A,
UPDAMODE DEFAULT S.
START-OF-SELECTION.
OPEN DATASET INFILE
FOR INPUT IN TEXT MODE.
DO.
READ DATASET INFILE INTO INREC.
IF SY-SUBRC < > 0. EXIT. ENDIF.
PERFORM FILL_BDC_TAB.
CALL TRANSACTION FK02
USING BDC_TAB
MODE DISPMODE
UPDATE UPDAMODE.
IF SY-SUBRC < > 0.
WRITE: /ERROR.
ENDIF.
ENDDO.
CLOSE DATASET INFILE.
<b>synchronous updating</b>
DO.
PERFORM FILL_BDC_TAB.
CALL TRANSACTION FK02
USING BDC_TAB
MODE N
UPDATE S.
IF SY-SUBRC < > 0.
WRITE: /ERROR.
ENDIF.
ENDDO.
With synchronous updating, we can check SY-SUBRC to determine the success of the transaction and the actual update to the database.
<b>asynchronous updating</b>
DO.
PERFORM FILL_BDC_TAB.
CALL TRANSACTION FK02
USING BDC_TAB
MODE N
UPDATE A.
IF SY-SUBRC < > 0.
WRITE: /ERROR.
ENDIF.
ENDDO.
With asynchronous updating, we can check SY-SUBRC to determine the success of the transaction only, not the actual update to the database.
<b>Error Handling</b>
Write an error report.
Send the record(s) in error to an error file.
Create a batch input session with the record(s) in error.
To store error messages ( CALL TRANSACTION )
data: begin of Tab_Mess occurs 0.
include structure bdcmsgcoll.
data : end of Tab_Mess,
CALL TRANSACTION FK02 USING BDC_TAB MODE N UPDATE S
MESSAGES INTO TAB_MESS.
IF SY-SUBRC NE 0.
WRITE: / Tab_MESS-TCODE, Tab_MESS-DYNUMB, Tab_MESS-MSGTYP ,
Tab_MESS-MSGID.
ENDIF.
<b>i am giving you example for Change Vendor you practice for ur tcode</b>
For our example, we will use the Change Vendor transaction (FK02) to add a street address to an already existing vendor.
<b>Step #1</b>
Use SystemStatus menu path to determine online program name (SAPMF02K), screen number (0110)
<b>Step #2</b>
Use F1 key and Technical Info pushbutton in each screen field to be filled to determine the field name.
<b>Step #3</b>
Determine how to proceed in the transaction
(save the record by clicking on the Save pushbutton or pressing the F11 key).
<b>BDC Table Contents</b>
After researching the transaction we can determine the contents of the BDC table.
PROGRAM DYNPRO DYNBEGIN FNAM FVAL
SAMPF02K 0106 X
RF02K-LIFNR TEST1
RF02K-D0110 X
SAMPF02K 0110 X
LFA1-STRAS 123 Main St.
BDC_OKCODE /11
<b>Batch Input Methods</b>
CALL TRANSACTION USING
STATEMENT
<b>Call transaction - for data transfer</b>Processing batch input data with CALL TRANSACTION USING is the faster of the two recommended data transfer methods. In this method, legacy data is processed inline in your data transfer program.
Syntax:
CALL TRANSACTION <tcode>
USING <bdc_tab>
MODE <mode>
UPDATE <update>
A Display all
E Display errors only
N No display
S Synchronous
A Asynchronous
L Local update
<b>The process flow of CALL TRANSACTION</b>
A program that uses CALL TRANSACTION USING to process legacy data should execute thefollowing steps:
Prepare a BDCDATA structure for the transaction that you wish to run.
Prepare a internal table to store error messages Tab_Mess like structure of BDCMSGCOLL.
With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
CALL TRANSACTION MM01' USING BDCDATA MODE 'A' UPDATE 'S'. MESSAGES INTO TAB_MESS.
IF SY-SUBRC <> 0.
<Error_handling>.
ENDIF.
<b>Overview of Batch Input Session</b>
The first batch input method is to create a batch input session. It is the processing of this batch input session that updates the database, not the execution of the batch input program.
<b>Reward if usefull</b> -
Need Navigation about BDC Upload (Diagramitacal way)
Need Navigation about BDC Upload (Diagramitacal way) for easy understand.
Hi
file:///C:/Documents%20and%20Settings/nnelapat/Desktop/New%20Microsoft%20PowerPoint%20Presentation.ppt#259,4,Slide 4
<b>Reward if usefull</b> -
Plz tell me about in bdc source table to target table covertion
hi, this is kalyan
how can we transfer the data from source to targethai,
kalyan
The process to send the data from source(legacy) to sap system using bdc involving two steps.
1. Retrieving the data from legacy(presentation server)
to internal table.
2. Send the data from Internal table to SAPsystem using
BDC.
To execute the first step.
if u are uploading data from text file to internal table ,
u should use
GUI_UPLOAD FUNCTION MODULE .
if u are uploading data from EXCEL file to internal table ,
u should use
ASLM_EXCEL_TO_INTERNAL_TABLE FUNCTION MODULE .
To execute step 2,
u should use create a internal table like
t_bdcdata TYPE STANDARD TABLE OF bdcdata.
Then append field values to bdcdata through workarea
bdcdata with or without recording.
If it is useful, reward points.
Thank you,
G.V.K.Prasad
Maybe you are looking for
-
How do I send a photo via email from PS Elements?
Or must I be in Yahoo Mail or other email system, then attach it to my email?
-
Mac OS 10.4 - hard disk problems / prohibition sign
Hey everybody, It would be great if someone has a solution to my problem, because I can't fix it. I have a Apple G4 Sawtooth and until a coupe of months ago, I used 10.3.9. Then I had to upgrade to 10.4 because I installed a 10.4 supported DVD drive.
-
Upgrade to Adobe Photoshop Elements 4.0 plus Adobe Premier Elements 2.0
I currently have Adobe Photoshop Album Starter Edition 3.0 I would like to purchase the Adobe Photoshop Elements 4.0 plus Adobe Premier Elements 2.0. for more photo and video options. I'm offered one of two options. Either buy the Full Version or the
-
How can I use the MacBook Pro webcam with Windows XP apps under Parallel?
Thank you in advance for your help with this matter. I have a MacBook Pro and I have just installed Parallel with Windows XP. I would like to use the webcam that comes with the laptop for applications that run under Windows XP (ex.: PalTalk). The app
-
Hi, I written the below email procedure.I am facing an issues now. I am receving the mail but it does not have any content. CREATE OR REPLACE PROCEDURE IIBWP.SEND_MAIL is l_mailhost VARCHAR2(64) := 'us.ingerrand.com'; l_from VARCHAR2(64) := '[email p