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

help in logic database

Former Member
0 Likes
691

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

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
665

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

6 REPLIES 6
Read only

Former Member
0 Likes
665

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á

Read only

former_member194669
Active Contributor
0 Likes
666

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

Read only

suresh_datti
Active Contributor
0 Likes
665

>>>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

Read only

0 Likes
665

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.

Read only

0 Likes
665

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

Read only

Former Member
0 Likes
665

Hi Antonio

Just give the error message in the 'AT SELECTION SCREEN ON <field>' event, when the value entered is wrong..

Regards