02-26-2007 11:52 AM
Hi experts
Please help me to solve this problem.I am going to display one field(PARTNER) on the selection screen at the starting when user press F8.This field(PARTNER) has search help facility.so now the problem is whenever user press f4
then we get the lst of search help values with field names
PARTNER FIRST NAME LASTNAME AMOUNT
etc.whenever the user selects the value PARTNER from this search help I have to get the values FIRST NAME and LAST NAME along with the PARTNER and display these two values on the screen adjacent to the field PARTNER on the selection screen.Please note that the program type is REPORT type and these values must change whenever the user changes the value of the PARTNER.
Thank You.
Regards
GIRI.
02-26-2007 11:56 AM
Hi Giri,
Make use of the fm: DYNP_VALUES_READ function module. See the example given in the FM documentation.
Regards,
Ravi
02-26-2007 11:56 AM
Hi Giri,
Make use of the fm: DYNP_VALUES_READ function module. See the example given in the FM documentation.
Regards,
Ravi
02-26-2007 12:01 PM
TRY THIS CODE
PARAMETERS: p_carr_1 TYPE spfli-carrid,
p_carr_2 TYPE spfli-carrid.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carr_2.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 50 10.
MODULE value_list OUTPUT.
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
NEW-PAGE NO-TITLE.
WRITE 'Star Alliance' COLOR COL_HEADING.
ULINE.
p_carr_2 = 'AC '.
WRITE: / p_carr_2 COLOR COL_KEY, 'Air Canada'.
HIDE p_carr_2.
p_carr_2 = 'LH '.
WRITE: / p_carr_2 COLOR COL_KEY, 'Lufthansa'.
HIDE p_carr_2.
p_carr_2 = 'SAS'.
WRITE: / p_carr_2 COLOR COL_KEY, 'SAS'.
HIDE p_carr_2.
p_carr_2 = 'THA'.
WRITE: / p_carr_2 COLOR COL_KEY, 'Thai International'.
HIDE p_carr_2.
p_carr_2 = 'UA '.
WRITE: / p_carr_2 COLOR COL_KEY, 'United Airlines'.
HIDE p_carr_2.
CLEAR p_carr_2.
ENDMODULE.
AT LINE-SELECTION.
CHECK NOT p_carr_2 IS INITIAL.
LEAVE TO SCREEN 0.
02-26-2007 12:04 PM
hi check this code sample which exactly satisfies your requirement on displaying F4 help accordingly
dont forget to award points if found helpful