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: 

F4 help

Former Member
0 Kudos

Hi,

I am currently assigned a object,the requirement is to define a F4 help as per client specifications.The issue being,they want the text to be displayed in the screen,after selection & not the code.Once we display the text,the text gets truncated.Is there any option of working on this problem.

Please advice.

Thanks

1 ACCEPTED SOLUTION

Kanagaraja_L
Active Contributor
0 Kudos

Hi Sneha,

Check the Existing program DEMO_SELECTION_SCREEN_F4.

If not solved, Please give some clear Picture.

Thanks,

Kanagaraja L

6 REPLIES 6

Kanagaraja_L
Active Contributor
0 Kudos

Hi Sneha,

Check the Existing program DEMO_SELECTION_SCREEN_F4.

If not solved, Please give some clear Picture.

Thanks,

Kanagaraja L

Former Member
0 Kudos

Hi,

Try using the function module.

Function Module Name : KD_GET_FILENAME_ON_F4

Function Module Name : F4_filename

for getting the values for the parameter p_fname.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.

CALL FUNCTION 'KD_GET_FILENAME_ON_F4'

EXPORTING

PROGRAM_NAME = SY-REPID

  • DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

  • STATIC = ' '

  • MASK = ' '

CHANGING

FILE_NAME = P_FNAME

EXCEPTIONS

MASK_TOO_LONG = 1

OTHERS = 2

Thanks

Sakthi C

*Rewards if useful*

Former Member
0 Kudos

Hi Sneha,

Does the client want to the text AND the code to appear once the same is selected. If that is the requirement, you can get it done by providing a label field next to the actual I/O field and upon choosing the entry from F4, you can assign the description to the label field.

Or does the client want ONLY the description to be displayed instead of code?

Cheers,

Venkat

0 Kudos

Well the requirement is a bit difficult,they want the code in the F4 help & the text to be displayed in the corresponding field.

suppose there is a field X,it has codes 1,2,3.the text corresponding to code 1 should get displayed in the field X,

I hope this explanation is not too confusing.

0 Kudos

Hi sneha

First create a search help of your own. if u r working on Z tables.

then attach the search-help with the parameter on the selection screen. suppose u've id & name in the search-help. what ever the choose name should be shown. make it clear in the import filed of the search help.

But what i guess is that, u need to use the id in your program. in that case it'll not work.

in that case u can give the solution this way, u show the text just at the right of the parameter.

use the FM DYNP_VALUES_READ to read the value of the parameter & fetch the text according to the value. and show it at the right side of the parameter textbox.

Reward if useful

Thanks

Sayak

Former Member
0 Kudos

Thanks for all the replies,I am closing this thread,but my doubt is still not solved,will post a new thread after developing a z code.