2009 Jun 29 4:06 PM
Guys , im working in an alv , the first screen is the parameters selection ,once i filled this, I execute f8 my report and before get the result i make a YES, NO question with a pop_up function , what i want to do is if the user select NO i want to leave to the parameter of selection of the report . I tryed with leave to screen 1000 but it always come back to easy access . What can i do ? any advice ? thak you .
2009 Jun 29 4:34 PM
Hi,
Try using the command LEAVE LIST-PROCESSING to leave the list mode in the report.
Regards,
Bruno
Guys , im working in an alv , the first screen is the parameters selection ,once i filled this, I execute f8 my report and before get the result i make a YES, NO question with a pop_up function , what i want to do is if the user select NO i want to leave to the parameter of selection of the report . I tryed with leave to screen 1000 but it always come back to easy access . What can i do ? any advice ? thak you .
2009 Jun 29 4:09 PM
Try Call Screen 1000.........else you can use Submit for your Program only.....i.e. iteration.
2009 Jun 29 4:11 PM
Hi,
Use LEAVE TO SCREEN 0 on NO answer. It will redisplay selection screen and initialize it.
Regards
Marcin
2009 Jun 29 4:13 PM
2009 Jun 29 4:16 PM
Thank you guys , but all of these options return to abap editor after i execute them .
2009 Jun 29 4:20 PM
Try something this way
start-of-selection.
call function popup
..
..
if answer eq 'Y'.
Print or execute the output " Call Forms for ALV
endif.
a®s
.
2009 Jun 29 4:23 PM
Yes , i did this for YES , my problem is for NO , i want to ask the user again for new parameters.
2009 Jun 29 4:32 PM
Check this code
After "No" control will come back to selection screen
report zars
no standard page heading line-size 255.
tables : mara .
data: l_answer(01) type c.
parameters p_matnr type mara-matnr.
select-options : s_matnr for mara-matnr .
start-of-selection.
call function 'POPUP_TO_CONFIRM'
exporting
text_question = 'Test'
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '1'
display_cancel_button = space
importing
answer = l_answer
exceptions
text_not_found = 1
others = 2.
if l_answer eq '1'.
write 'yes'.
endif.
a®
2009 Jun 29 4:32 PM
Hi,
try using the command LEAVE LIST-PROCESSING to leave the list mode in the report.
Regards,
Bruno
2009 Jun 29 4:34 PM
Hi,
Try using the command LEAVE LIST-PROCESSING to leave the list mode in the report.
Regards,
Bruno