Skip to Content
0

Custom F4 help for PERNR field in SAP ABAP HR program using standard LDB.

Jan 16, 2017 at 01:12 PM

211

avatar image
Former Member

Hi,

I have a requirement. I was asked to display a customized F4 help for PERNR (Employee Number) field in selection screen that is derived through usage of a standard LDB PNP in a ABAP-HR program. I have tried using AT SELECTION SCREEN ON VALUE REQUEST ON PNPPERNR-LOW, but the program is giving a syntax error stating "The addition "ON VALUE REQUEST FOR" is not allowed with database-specific PARAMETERS or SELECT-OPTIONS.". Can anyone please give me possible solutions for this.

Thanks a lot in advance.

Regarding,

Krish.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

antoine foucault Jan 21, 2017 at 10:27 AM
0

Hi Krish:

Here is how I would proceed:

1/ I would not try to override anything from logic DB selection field PNPPERNR, but simply would grey it out or hide it so to make it unavailable for input from the user point of view.

2/ I would create a program specific select-options for PERNR field (let say SO_PERNR) such as to make this one available for user and also for me to be able to play with it attaching a custom matchcode object or adding on on-value request command.

3/ During the start-of-selection event I would copy the content of SO_PERNR to PNPPERNR and let the GET PERNR / GET PERAS event process the LDB and provide the corresponding employee records.

Et voila,....

Best,

Antoine

Share
10 |10000 characters needed characters left characters exceeded