02-07-2006 11:38 AM
Hi,
I am facing an issue with the call transaction /sapapo/rlcdel in APO system where there is a pop-up in the second screen. This pop-up needs to be ticked in order to delete data from livecache. The program does not delete with the following call:
lv_ctu_params-nobinpt = 'X'.
lv_ctu_params-dismode = gc_dismode_n.
lv_ctu_params-dismode = 'E'.
lv_ctu_params-updmode = gc_update_s.
lv_ctu_params-racommit = 'X'.
lv_ctu_params-defsize = 'X'.
CALL TRANSACTION '/SAPAPO/RLCDEL' USING GT_BDCDATA
OPTIONS FROM lv_ctu_params
MESSAGES INTO lt_msg_tab.
commit work and wait.
LOOP AT lt_msg_tab ASSIGNING <lfs_msg_ret>
WHERE msgtyp = 'E' OR
msgtyp = 'A'.
gv_msg_error = 'X'.
EXIT.
ENDLOOP.
Initially I tried with the disp mode as N and it returns a sy-subrc 1.001 which is incorrect. On changing the value to E the pop-up is displayed in the forground and the program control returns to the /SAPAPO/RLCDELETE program. I have done all the recording in SHDB and the program works fine in foreground but I think it will be an issue in background. Is there any way to tackle the pop-up in background.
cheers
Aveek
02-08-2006 5:00 AM
hi
Problem is while recording in shdb is will record the events clicked in popup. even i got this problem. the solution is you have hard code the value 'X' to the event in the popup.
regards
kishore
02-07-2006 2:35 PM
Hello Aveek,
Did you try to record it in transaction SHDB with the option "Simulate Background mode" checked? If you make a recording with this option checked, it should react with recording as if it was running in background. It might be worth to try it.
Regards
Jan-Willem
02-08-2006 4:49 AM
Hi,
The shdb recording with the simulate background mode checked did not work. It is unable to handle the pop-up in the second screen. This is a major issue. I have tried asynchronous and synchronous recording but neither worked. Looking forward to a solution to handle the pop-up.
cheers
Aveek
02-08-2006 4:54 AM
02-08-2006 5:00 AM
hi
Problem is while recording in shdb is will record the events clicked in popup. even i got this problem. the solution is you have hard code the value 'X' to the event in the popup.
regards
kishore
02-08-2006 6:02 AM
Hi,
In the recording in shdb even when I tick the check box trigger in background mode the popo up never shows up in the recording. I know the program and the screen number:
PERFORM f_populate_bdc_tab USING:
'X' 'SAPLSP01' '0500',
' ' 'BDC_OKCODE' '=OPT1'.
The yes, no and cancel button are not displayed in the recording. Is there a fixed value for the buttons.
cheers
Aveek
02-08-2006 6:19 AM
HI
give bdc_odcode as '=YES' for selecting the yes button.
it is working for me.
regards
kishore
02-08-2006 6:22 AM