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.
Note: Screens are standard selection screens.
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!