Quantcast
Channel: SCN : All Content - User Interface Development in ABAP
Viewing all articles
Browse latest Browse all 540

Obligatory parameters and back button

$
0
0

Hello, experts.

 

I need help in handling obligatory parameters while using custom pf-status.

I've created a custom status and assigned codes 'BACK', 'CANCEL' and 'EXIT' to the corresponding system functions.

Then I have a code like this:

 

REPORT ZZZ_TST.

data: gv_ucomm type sy-ucomm.

selection-screen

  begin of block b1.

    parameters p_tst type string obligatory.

selection-screen

  end of block b1.


initialization.

  set pf-status 'STATUS1'.


at selection-screen on exit-command.

  gv_ucomm = sy-ucomm.

  leave program.

at selection-screen.

  gv_ucomm = sy-ucomm.

  perform f_tst.


form f_tst.

  case gv_ucomm.

    when 'EXIT'.

      cl_demo_output=>display( 'exit' ).

      leave program.

  endcase.

endform.

 

But nothing of this is working if I haven't supply a value for p_tst: it tells me to fill required params. With default status it works fine.

What should I do to make it work?


Viewing all articles
Browse latest Browse all 540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>