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

Selection Screen Data Validation

Former Member
0 Likes
403

Hi All.

I have made a program with vendor and purchase order inputs. If I give the correct vendor and PO it works fine. I want to implement validation. For that I have an internal table with vendor and all the PO's raised on him. Now I have to validate 1. vendor, 2. PO and 3. if a PO not of that vendor is entered then to display a message. I tried some option but the error message comparing the vendor and PO doesn't work. Can anyone give an idea please. Tks & Best Regards.

2 REPLIES 2
Read only

Former Member
0 Likes
377

Use the AT SELECTION-SCREEN ON..... statement.

Regards,

John.

Read only

Former Member
0 Likes
377

Hi,

Validate Vendor in LFA1-LIFNR , PO in EKKO-EBELN

and combination as :

select EBELN LIFNR

from EKKO

into table itab

where EBELN = p_ebeln

and LIFNR = p_lifnr.

if sy-subrc ne 0.

Message 'error message'.

endif.

Regards,

Sachchidanand