‎2006 Dec 19 6:06 AM
Hi Experts,
could anyone give me an example for bdc through session method with code?code is compulsory. your answers will be rewarded.
Thanks in advance,
Ramana
‎2006 Dec 19 6:13 AM
pls chk these links. might help u..
BDC
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
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
rgds
anver
‎2006 Dec 19 6:10 AM
ramana ,
<b>code is compulsory. your answers will be rewarded.</b>---> this is not the right way to do/post.
create a recording from SM35 and create program for that Recording .
Regards
Prabhu
‎2006 Dec 19 6:13 AM
pls chk these links. might help u..
BDC
http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm
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
rgds
anver
‎2006 Dec 19 6:17 AM
Hi,
Pls see this sample code for processing a BDC session.
FORM execute_session.
DATA : l_jobname LIKE tbtcjob-jobname ,
l_jobnumber LIKE tbtcjob-jobcount,
l_job_released LIKE btch0000-char1 .
REFRESH: int_bdc_error.
l_jobname = p_batch. "Assign session name
* open job
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_jobnumber
EXCEPTIONS
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03
OTHERS = 99.
IF sy-subrc NE 0.
wa_bdc_error-m_type = 'E'.
wa_bdc_error-m_text = 'Not able to open the job'.
APPEND wa_bdc_error TO int_bdc_error.
EXIT.
ENDIF.
* Submit step required to initiate job
SUBMIT rsbdcsub AND RETURN
USER sy-uname
VIA JOB l_jobname NUMBER l_jobnumber
WITH mappe = l_jobname
WITH von = sy-datum
WITH bis = sy-datum
WITH z_verarb = 'X'.
IF sy-subrc NE 0.
wa_bdc_error-m_type = 'E'.
wa_bdc_error-m_text = 'Job run fail'.
APPEND wa_bdc_error TO int_bdc_error.
EXIT.
ENDIF.
* Submit the background job using 'JOB_CLOSE'
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = l_jobnumber
jobname = l_jobname
strtimmed = 'X'
IMPORTING
job_was_released = l_job_released
EXCEPTIONS
invalid_startdate = 01
jobname_missing = 02
job_close_failed = 03
job_nosteps = 04
job_notex = 05
lock_failed = 06
OTHERS = 99.
IF sy-subrc NE 0.
wa_bdc_error-m_type = 'E'.
wa_bdc_error-m_text = 'Job run fail'.
APPEND wa_bdc_error TO int_bdc_error.
EXIT.
ENDIF.
ENDFORM. " execute_sessionhere are the links which will have other smaple programs
http://www.sap-img.com/abap/program-loads-the-material-assignment-of-routings.htm
http://www.guidancetech.com/people/holland/sap/abap/yusermod.htm
http://www.guidancetech.com/people/holland/sap/abap/zutbdcer.htm
http://www.sap-img.com/abap/learning-bdc-programming.htm
regards,
pankaj singh
<b>***** reward poitns if helpful</b>
‎2006 Dec 19 9:32 AM
Hi All..
Can anybody tell me about the interfaces that we have in SAP.
Regards,
Parvez.