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

Leaving the program without filling the required fields

Former Member
0 Likes
1,517

Hello,

As you know we cannot leave the screen if there is a field required to be filled on this screen.However if the user does want to leave the screen without entering any data, how can he / she leave the program?

For example you have entered 10 bulks of data but want to exit without entering the 11. bulk.

How?

Thanks.

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,166

hi Deniz,

you have to code as <i>exit command</i>, than it is possible to leave without entering mandatory data.

ec

Hello,

As you know we cannot leave the screen if there is a field required to be filled on this screen.However if the user does want to leave the screen without entering any data, how can he / she leave the program?

For example you have entered 10 bulks of data but want to exit without entering the 11. bulk.

How?

Thanks.

6 REPLIES 6
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,167

hi Deniz,

you have to code as <i>exit command</i>, than it is possible to leave without entering mandatory data.

ec

Read only

0 Likes
1,166

Thank you eric.

However my issue is dialog programming.

Can I use at exit command here?

Thanks.

Read only

0 Likes
1,166
Read only

Former Member
0 Likes
1,166

Hi Deniz,

Are you talking about module pool or report program. If module pool then you can handle it in AT EXIT command.

regards,

Atish

Read only

0 Likes
1,166

Hi Sarda,

How can I handle it at exit command?

I have put a gui status and assign fcode 'BACK', and coded it as:


Case ok_code.

When 'BACK'.

Leave program.

endcase.

Where will I use AT EXIT.

Thanks.

Read only

0 Likes
1,166

Hi

- U need to set the command E for the code BACK in the status by menu painter

- U need to implement a module to be triggered when a ok-code (with command E) is called by AT EXIT-COMMAND addition:

PROCESS PAI.

  MODULE EXIT AT EXIT-COMMAND.

MODULE EXIT.
   IF OK_CODE = 'BACK'.
      LEAVE PROGRAM.
  ENDIF.
ENDMODULE.

Max