Skip to Content

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

Jan 16, 2017 at 01:12 PM


avatar image
Former Member


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.



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

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



10 |10000 characters needed characters left characters exceeded