2008 May 22 1:36 PM
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.
2008 May 22 1:39 PM
2008 May 22 1:41 PM
Hi,
U can't run Call transation both (fore ground and Back ground ) the modes at a time.
Regards,
Narasimha
2008 May 22 1:47 PM
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.
2008 May 22 2:06 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |