‎2008 May 27 6:44 AM
wht is difference between synchronous process and asynchrounous process.
how to process asession without going to sm35
‎2008 May 27 6:57 AM
Asynchronous processing - Transfers data for multiple transactions .
Synchronous database update During processing, no transaction is started until the previous transaction has been written to the database.
In u2018Call Transactionu2019, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling. It can also be used for real-time interfaces and custom error handling & logging features. Whereas in
Batch Input Sessions, the ABAP program creates a session with all the transactional data, and this session can be viewed, scheduled and processed (using Transaction SM35) at a later time. The latter technique has a built-in error processing mechanism too.
‎2008 May 27 7:10 AM
how to scheduled session in background
can i have sample program please
‎2008 May 27 7:32 AM
hi
without going sm 35 u can use the following procedureto execute the bdc session method.....
1. go too transaction se38> give the program name RSBDCSUB--->
2 . press F8
3. give the session name
date and F8
rewards if useful.
thanks
sachhidananda
‎2008 May 27 7:37 AM
Hi,
You can submit the program RSBDCSUB in the program where you have created the BDC session.
submit rsbdcsub
with fehler = ' '
with von = ' '
with bis = ' '
with mappe = group
with z_verab = 'X'
user sy-uname via job jobname number jobcount and return.
for examples you can check the following link
http://help.sap.com/saphelp_47x200/helpdata/en/fa/097720543b11d1898e0000e8322d00/frameset.htm
Regards
Kiran Sure
‎2008 May 27 7:38 AM
hi
go through the procedure
> sm35
> giv the session name date and time
> press F5 to process it in back ground
> after execution u can see the errror in the tranasaction
>
rewards if use ful
sachhidananda
‎2008 May 27 7:52 AM
Hi,
Pls go thru this link:
http://help.sap.com/saphelp_nw04/helpdata/en/fa/097126543b11d1898e0000e8322d00/frameset.htm
if you face any problems u search in the forums:
[sample link|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=bdc+background&cat=sdn_all]
regards,
madhu
‎2008 May 27 1:01 PM
tables : apqi.
types : t_apqi type apqi.
data : itab_apqi type apqi occurs 0 with header line .
data : quid type apqi-qid.
data : session type apqi occurs 0 with header line .
data : wa_session type apqi .
data : jobname like tbtco-jobname.
data : jobnumb like rsjobinfo-jobnumb.
select single qid from apqi into quid where datatyp = 'BDC' and
groupid = 'ZMS5_MM01'. -
> give ur session name here
if sy-subrc eq 0 .
select * from apqi into corresponding fields of table session
where qid = quid.
endif.
call function 'ENQUEUE_BDC_QID'
exporting
datatyp = session-datatyp
groupid = session-groupid
qid = session-qid
exceptions
foreign_lock = 1
system_failure = 2
others = 3
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
loop at session into wa_session.
jobname = wa_session-groupid.
endloop.
call function 'JOB_OPEN'
exporting
jobgroup = 'BATCH-INPUT'
jobname = jobname
sdlstrtdt = sy-datum
sdlstrttm = sy-uzeit
importing
jobcount = jobnumb
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
submit rsbdcbtc
to sap-spool
destination space
immediately space
keep in spool space
without spool dynpro
user session-userid
via job jobname
number jobnumb
with queue_id eq wa_session-qid
with mappe eq jobname
with modus eq 'N'
with logall eq 'X' " Extended Log
and return.
if sy-subrc = 0.
call function 'JOB_CLOSE'
exporting
jobcount = jobnumb
jobname = jobname
strtimmed = 'X'
TARGETSYSTEM = ' '
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
others = 9
.
if sy-subrc eq 0.
update apqi set qstate = 'S'
where destsys = wa_session-destsys
and destapp = wa_session-destapp
and datatyp = wa_session-datatyp
and groupid = wa_session-groupid
and progid = wa_session-progid
and formid = wa_session-formid
and qattrib = wa_session-qattrib
and qid = wa_session-qid.
commit work.
endif.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
call function 'BP_JOB_DELETE'
exporting
jobcount = jobnumb
jobname = jobname
forcedmode = 'X'
COMMITMODE = 'X'
exceptions
cant_delete_event_entry = 1
cant_delete_job = 2
cant_delete_joblog = 3
cant_delete_steps = 4
cant_delete_time_entry = 5
cant_derelease_successor = 6
cant_enq_predecessor = 7
cant_enq_successor = 8
cant_enq_tbtco_entry = 9
cant_update_predecessor = 10
cant_update_successor = 11
commit_failed = 12
jobcount_missing = 13
jobname_missing = 14
job_does_not_exist = 15
job_is_already_running = 16
no_delete_authority = 17
others = 18
.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endif.
endif.
call function 'DEQUEUE_BDC_QID'
exporting
datatyp = wa_session-datatyp
groupid = wa_session-groupid
qid = wa_session-qid
.
Hope it helps
Reward if useful.
Regards
Megha Sharma
‎2008 May 28 10:19 AM
In synchronous after every transaction sy-subrc is returned where as system does not wait for whether the data as been propelyy inserted in all the relevant tables in asynchronous process.
go to se38
enter the program name : RSBDCSUB
EXECUTE AND GIVE SESSION NAME THERE .
REWARD IF USEFUL