‎2007 Mar 20 3:31 PM
hallow
i use the logical data base pnpce and i wont to now if i can
display a error message if the user put data invalid
ex.
in my program the user have to put pernr and date
if the user put wrong pernr i wont to bring him error message
in selection screen its simple but in pnpce i dont now how to do it
please help
regards
‎2007 Mar 20 3:45 PM
Hi,
If it is a custom report . Attach Logical db, then
at selection-screen on pernr
make select from < table > << I don;t remember table for pernr
if not found
message e001(zz) with 'invalid pernr'.
endif.
aRs
‎2007 Mar 20 3:38 PM
Hi!
Modifying a SAP standard logical database, like PNPCE, called a standard modification.
SE36 transaction, PNPCE, set Selections, then click Change button.
Register the object for an SSCR key at the SAP homepage, and then it is the same as an another selection screen.
I thinkthere is no other way for it.
Regards
Tamá
‎2007 Mar 20 3:45 PM
Hi,
If it is a custom report . Attach Logical db, then
at selection-screen on pernr
make select from < table > << I don;t remember table for pernr
if not found
message e001(zz) with 'invalid pernr'.
endif.
aRs
‎2007 Mar 20 3:45 PM
>>>in selection screen its simple
Even in PNPCE it is the same way.. You can do your validatiosn in the AT SELECCTION-SCREEN OUTPUT event & throw out error messages.
To validate pernr, you have to do it on the select option PNPPERNR.
~Suresh
‎2007 Mar 20 3:53 PM
hi suresh
this is my declertion where i have the <b>event</b> confused
regards
GET peras.
wa_person_tab-pernr = pernr-pernr.
rp_provide_from_last t_0001 ' ' pn-begda pn-endda.
wa_person_tab-orgeh = t_0001-orgeh.
wa_person_tab-stell = t_0001-stell.
wa_person_tab-werks = t_0001-werks.
wa_person_tab-persg = t_0001-persg.
wa_person_tab-persk = t_0001-persk.
APPEND wa_person_tab TO person_tab.
CLEAR wa_person_tab.
END-OF-SELECTION.
‎2007 Mar 20 3:55 PM
before the gret pernr.
ie
AT SELECTION-SCREEN OUTPUT.
if not pnppernr[] is initial.
do your validations.
endif.
start-of-selection.
***
***
get pernr.
***
***
end-of-selection.
~Suresh
‎2007 Mar 20 5:00 PM
Hi Antonio
Just give the error message in the 'AT SELECTION SCREEN ON <field>' event, when the value entered is wrong..
Regards