How to skip mandatory fields on selection screen?

cethint picture cethint · Feb 26, 2013 · Viewed 13.6k times · Source

I want it to skip mandatory fields when i clicked on 'İptal' button .

But i don't want to control mandatory fields without "obligatory" . I want to see check mark in textboxes like screenshot.

Normally 'İptal' button calls a different screen when there is no mandatory fields.

When i clicked on İptal button, i want it to skip this mandatory fields

Note: Screens are standard selection screens.

Answer

user6780121 picture user6780121 · Aug 4, 2017

the way that I have solved this not to make the fields obligatory in the layout but in your code to create some conditions example I have my input output field called ekpo-ebeln:

 IF ekpo-ebeln IS INITIAL.
    CASE ok_code.
      WHEN 'EXIT'.
        LEAVE PROGRAM.
      WHEN 'BACK'.
        CALL SCREEN 100.
    ENDCASE.
    MESSAGE 'Fill both of the fields' TYPE 'I'.

this solved my problem,and it works!