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 In Module Pool Program

Former Member
0 Kudos

Hi experts,

How to create F4 help for an input field on selection screen in module pool program.'

I have developed a module pool program. On selection screen

when i press F4 on vbeln field then it should display and the order numbers along with item numbers i.e both VBELN AND POSNR VALUES.

Thanks & Regards

Neelesh

10 REPLIES 10

former_member195383
Active Contributor
0 Kudos

If the field is of dictionary typr i.e vbrk-vbeln..the F$ value will itself come..

Otherwise use VRM_SET_VALUES , to prepare a internal table with the values u want to be displayed as F4 values....

Reward points if the above ans is helpful...

Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 12:51 PM

0 Kudos

Hi Rudra,

Thanks for the reply but I am getting f4 help for vbeln ie when I press F4 on VBELN field it displays all the possible entries .

But I want to display along with it Item Numbers in the same pop up window

0 Kudos

hi...

Please try with F4_INT_TABLE_VALUE_REQUEST...

In the first answer vrm_set_values u will get the drop down box...For getting F4 help try with

F4_INT_TABLE_VALUE_REQUEST

0 Kudos

I created table control in module pool, in that one particular field i need to give f4 help.How to create f4 help in table control firld

Will u please help me

Former Member
0 Kudos

hi,

try this one.......

PROCESS ON VALUE-REQUEST.

FIELD ZVLOAD_PROD_COMB-LOC_NO MODULE VALUE_LOC_NO.

code inside MODULE -


VALUE_LOC_NO

DATA : BEGIN OF INT_TAB_ID OCCURS 0,

TAB_ID TYPE ZALOAD_PROD_COMB-TAB_ID,

END OF INT_TAB_ID.

DATA : LOC_MAX TYPE ZALOAD_PROD_COMB-TAB_ID.

CLEAR INT_TAB_ID.

REFRESH INT_TAB_ID.

SELECT MAX( TAB_ID) INTO (LOC_MAX) FROM ZALOAD_PROD_COMB.

COUNT = LOC_MAX + 1.

DO 10 TIMES.

MOVE COUNT TO INT_TAB_ID-TAB_ID.

APPEND INT_TAB_ID.

COUNT = COUNT + 1.

ENDDO.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'TAB_ID' u201C Internal table field name

DYNPPROG = 'PROG_NAME u201C Program name

DYNPNR = SY-DYNNR

DYNPROFIELD = 'TAB_ID' u201C Field where u need F4 help

VALUE_ORG = 'S'

WINDOW_TITLE = u2018Any descriptionu2019

TABLES

VALUE_TAB = INT_TAB_ID. u201C Internal table name

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

reward points if useful.......:-)

and mark the post answered once ur problem is solved ....

Former Member
0 Kudos

Hi Neelesh,

Go to the attributes of your VBELN field in SE51 (screen painter) and in the field for Search Help, mention search help WTY_F4_VBAP

This search help returns Sales Document and Item along with some additional information.

If this does not serve your purpose, go to Se11 and do a where used list on your data element for search helps. You will get a good hit list and select a suitable search help.

Cheers,

Aditya

Former Member
0 Kudos

thanks

Former Member
0 Kudos

thanks

Former Member
0 Kudos

thanks

0 Kudos

I created table control in module pool, in that one particular field i need to give f4 help.How to create f4 help in table control firld

Will u please help me