‎2011 Jan 19 5:31 AM
Hi Experts,
In my report program i am using BDC call transaction. Once this BDC action will get over after that i need todo some logic in my program. How to wait until BDC will get over?
Anyone have idea?
CALL TRANSACTION 'CK41' USING zdata
OPTIONS FROM g_s_options
MESSAGES INTO msg_tab.
PERFORM call_processing USING wa_default-kalaid
wa_default-klvar
wa_default-kokrs
wa_default-bukrs.
Mohana
‎2011 Jan 19 8:47 AM
Hi Mohana,
Use Call transaction in synchronous mode i.e. "S".
The updae will be synchronous which means the program will wait until BDC is over.
You can write your logic after this.
Regards,
Adesh
‎2011 Jan 19 6:14 AM
hi ,
You can write Perform After Completing BDC call .
Regards
Deepak.
‎2011 Jan 19 6:26 AM
Hi,
Program gets over in BDC call transaction after call transaction statement.
If you use call transaction statement as below,
CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S' MESSAGES INTO messtab.
Here Update 'S' means update will be syncronouse so program will wait untill this BDC gets completed, if you will not select this statement then by default program may take update 'A' which is asyncronouse means BDC will be processed parallel to this program, please check.
After this call transaction statement you can do code changes as per your requirment in the same program.
‎2011 Jan 19 6:20 AM
Hi
You can restrict the program on the basis of success/error message (BDC message table) and then call your PERFORM for further processing.. or
Use 'COMMIT WORK and WAIT'
Hope it helps...
‎2011 Jan 19 8:47 AM
Hi Mohana,
Use Call transaction in synchronous mode i.e. "S".
The updae will be synchronous which means the program will wait until BDC is over.
You can write your logic after this.
Regards,
Adesh