‎2006 Nov 27 2:11 PM
Hi Experts,
from which table data is picked when we press F4 on selection screen.
Regards
Kali Pramod
‎2006 Nov 27 2:18 PM
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.
‎2006 Nov 27 2:16 PM
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
‎2006 Nov 27 2:18 PM
‎2006 Nov 27 2:18 PM
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.
‎2006 Nov 27 2:22 PM
<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>
‎2006 Nov 27 2:29 PM
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
‎2006 Nov 27 2:36 PM
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