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

call transaction

Former Member
0 Likes
608

hi gurus,

how can we execute the two modes in call transaction at same time

i have two button in selection screen one for forground and other for background plz give me the code for this

i am used modes A and E in one programm

thanks.

hi gurus,

how can we execute the two modes in call transaction at same time

i have two button in selection screen one for forground and other for background plz give me the code for this

i am used modes A and E in one programm

thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
589

Hi,

I think it is not possible

Regards,

Jagadish

Read only

Former Member
0 Likes
589

Hi,

U can't run Call transation both (fore ground and Back ground ) the modes at a time.

Regards,

Narasimha

Read only

Former Member
0 Likes
589

Hi Jayanth,

call transaction is used to upload the data to a transaction.its not possible to use the call transaction in two modes at same time.because you have the same data.actual process is

1)fetch the data and place it in internaltable

2)map the data to screens

3)use the call transaction in one mode

so when we have the data in the internaltable we will call CALL TRANSACTION.if you again call it ,you will get error.if you have two internal tables then it is possible to to upload the data using foregroung and background.the steps you have to follow are

1)fetch the data and place in two internaltables(note:the data must be different)

2)map the data to the screens(two times)

3)call CALL TRANSACTION two times

or

1)first fetch the data and place in internaltable and then map to the screens and then use call transaction in foreground(write the code to map screens in a subroutine)

2)refresh the internal table and fill that with new data and then call the subroutine and then use call transaction

reward points if helpful.

Read only

Former Member
0 Likes
589

Hi,

Use the below code.

DATA: iopt LIKE ctu_params.

start-of-selection.

if p_rad1 = 'X'. "first radio button

iopt-defsize = 'X'.

iopt-dismode = 'A'. "Fore ground

elseif p_rad2 = 'X'. "second radio button

iopt-defsize = 'X'.

iopt-dismode = 'N'. "back ground

endif.

CALL TRANSACTION 'XXXXXXX'

USING bdcdata

OPTIONS FROM iopt.