Application Development and Automation 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: 
Read only

F4 on selection screen

Former Member
0 Likes
660

Hi Experts,

from which table data is picked when we press F4 on selection screen.

Regards

Kali Pramod

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
630

hi it depends on the selection screen parameter

parameters: werks like t001-werks.

here it gets value from the main table of WERKS which is T001

Now u want to have F4 help value for ST_NAME for which there is no search help defined...then u need to do this way

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'ST_NAME'

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'ST_NAME'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = TEMP_ITAB

RETURN_TAB = RETURN.

6 REPLIES 6
Read only

rahulkavuri
Active Contributor
0 Likes
630

hi it depends on the selection screen parameter declaration, just like this for plant

parameters: werks like MARD-werks.

here it gets value from the main table of WERKS that is T001W

if suppose u want to have F4 help value OR want to customise for ST_NAME... then u do like this

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'ST_NAME'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = 'ST_NAME'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = TEMP_ITAB
RETURN_TAB = RETURN.

please award points if found helpful

Message was edited by:

Rahul Kavuri

Read only

Former Member
0 Likes
630

check table

Read only

Former Member
0 Likes
631

hi it depends on the selection screen parameter

parameters: werks like t001-werks.

here it gets value from the main table of WERKS which is T001

Now u want to have F4 help value for ST_NAME for which there is no search help defined...then u need to do this way

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'ST_NAME'

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'ST_NAME'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = TEMP_ITAB

RETURN_TAB = RETURN.

Read only

Former Member
0 Likes
630

<b>Hi

Take an example

Suppose u developed a report with a input value for VBELN which is sales order

SO when u press F4 on this field, u will see all the sales order number from VBAK table because VBAK is MASTER table for sales order number.U can see a Search help attached to VBELN field in VBAK table

So when u press F4 this seach help will triggered and gives the output.

If no standard search help is no there ,then u can create one OR dynamically thru program u can code like

AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.

CALL FUNCTION 'F4help_int_table_request'.

Regs

Manas Ranjan Panda</b>

Read only

Former Member
0 Likes
630

You will get the F4 help from the foll. when we click on the field.

Check Table

Value table

Help View

Search help

At selection-screen on value request for <Feild>

POV event

Thanks

eswar

Read only

Former Member
0 Likes
630

Hi Pramod,

Refer this Help link http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a246d9b511d1950e0000e8353423/content.htm

Hey, you can find a lot help on help.sap.com or else, search the forum here, you get lot of stuff inthis one

Regards

Sudheer