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

Back to main screen

Former Member
0 Likes
2,953

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,574

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 .

9 REPLIES 9
Read only

Former Member
0 Likes
2,574

Try Call Screen 1000.........else you can use Submit for your Program only.....i.e. iteration.

Read only

MarcinPciak
Active Contributor
0 Likes
2,574

Hi,

Use LEAVE TO SCREEN 0 on NO answer. It will redisplay selection screen and initialize it.

Regards

Marcin

Read only

Former Member
0 Likes
2,574

Hi,

Try Using leave to screen '0'

Regards,

Bharagava

Read only

Former Member
0 Likes
2,574

Thank you guys , but all of these options return to abap editor after i execute them .

Read only

former_member194669
Active Contributor
0 Likes
2,574

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

.

Read only

0 Likes
2,574

Yes , i did this for YES , my problem is for NO , i want to ask the user again for new parameters.

Read only

0 Likes
2,574

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.

Read only

Former Member
0 Likes
2,574

Hi,

try using the command LEAVE LIST-PROCESSING to leave the list mode in the report.

Regards,

Bruno

Read only

Former Member
0 Likes
2,575

Hi,

Try using the command LEAVE LIST-PROCESSING to leave the list mode in the report.

Regards,

Bruno