Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Program needs to wait until BDC will get over

Former Member
0 Likes
1,337

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,024

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

4 REPLIES 4
Read only

deepak_dhamat
Active Contributor
0 Likes
1,024

hi ,

You can write Perform After Completing BDC call .

Regards

Deepak.

Read only

0 Likes
1,024

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.

Read only

former_member778253
Active Participant
0 Likes
1,024

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...

Read only

Former Member
0 Likes
1,025

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