Application Development 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: 

Change standard F4-Help

Former Member
0 Kudos
435

Hello guys,

I'm writing a little report for training & event.

I have standard the objecttype on that screen & an objectid. If i click on the f4-button, i get the standard F4 help, with too much information... I only need 5 different objecttypes but the standard F4 help gives me more than 100.

When i tried to write my own F4 help for that field, and i used the command :

at selection-screen on value-request for pchotype.

then i get an errormessage : <i>The addition "ON VALUE REQUEST FOR" is not allowed with database-specific PARAMETERS or SELECT-OPTIONS.</i>

Does anyone has a solution for this?

Kind regards,

Tom

1 ACCEPTED SOLUTION

Former Member
0 Kudos
174

Hi

Can you post your code?

It should be like this:

parameters: pchotype like ....

at selection-screen on value-request for pchotype.

or

select-options: pchotype for .....

at selection-screen on value-request for pchotype-low.

at selection-screen on value-request for pchotype-high.

Max

6 REPLIES 6

Former Member
0 Kudos
175

Hi

Can you post your code?

It should be like this:

parameters: pchotype like ....

at selection-screen on value-request for pchotype.

or

select-options: pchotype for .....

at selection-screen on value-request for pchotype-low.

at selection-screen on value-request for pchotype-high.

Max

0 Kudos
174

I use the standard selectionscreen that comes with logical database PCH.

If i take al ook at screen 1000, the only thing i see for that field is :

FIELD !PCHOTYPE MODULE %_PCHOTYPE .

If i use the code below, i get the error mentioned in my startpost :

at selection-screen on value-request for pchotype.

PERFORM create_F4_otype.

If i use pchotype-low or -high, then i get a different error :

<i>"ON VALUE REQUEST FOR" should be followed by <parameter> or <select-option>-LOW / <select-option>-HIGH.</i>

Former Member
0 Kudos
174

See generally " value Request For " is being used to get the drop down list for the particular variable which has been defined with either parameters or select-options type for selection screen.

select-options: variable

parameters : variable

at selection-screen on value-request for variable .

call function 'F4_FILENAME'

....i think this should solve your purpose

0 Kudos
174

@Raja Babu :

the problem is not to create the f4-help, but to do it for a field of a standard selectionscreen for logical database pch...

0 Kudos
174

nobody ??

Former Member
0 Kudos
174

Hi Tom

I think in this case you have to raise message to the SAP.