Application Development 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: 

Validating the Program Run Date on selection screen

Former Member
0 Kudos
140

Hi ,

REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.

Finally date should be validate through any table as per my concern.

Could please anyone tell me that which table i have to go for validate the above field.

Regards,

sud

1 ACCEPTED SOLUTION

Former Member
0 Kudos
66

how about something like:

select-options: so_date for syst-datum.

....

at selection-screen.

if not so_date[] is initial.

select * from reguh into table ireguh where laufd in so_date.

if lines( ireguh ) eq 0.

message e016(gr) with

'Payment Date or date range not found.'.

endif.

else.

message e016(gr) with

'Payment Run date entry is required.'.

endif.

4 REPLIES 4

former_member191735
Active Contributor
0 Kudos
66

>

> Hi ,

>

> REGUH-LAUFD field has to be validate on selection screen parameter, for this filed no check table available in REGUH.

>

> Finally date should be validate through any table as per my concern.

>

> Could please anyone tell me that which table i have to go for validate the above field.

>

>

> Regards,

> sud

REGUH-LAUFD is the date that the payment run has created. There is no such foreign key check for this date. If you want, you create your own table and do your checks but not advisable.

What is your requirement anyway?

ThomasZloch
Active Contributor
0 Kudos
66

Maybe table REGUV can serve as check table, in conjunction with the payment run ID. Should be easy to code a check yourself.

Thomas

Former Member
0 Kudos
67

how about something like:

select-options: so_date for syst-datum.

....

at selection-screen.

if not so_date[] is initial.

select * from reguh into table ireguh where laufd in so_date.

if lines( ireguh ) eq 0.

message e016(gr) with

'Payment Date or date range not found.'.

endif.

else.

message e016(gr) with

'Payment Run date entry is required.'.

endif.

Former Member
0 Kudos
66

1st thing: date questions are not very welcomed as per the forum rules. please search.

2nd thing: date comes with its own validations.. like format and all.. there is no check table.. it validates itself..

if you definitely want to put any check for a date field.. then in the at selection-screen output verify the date with some table which you want...