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: 

Dynamic help values on selection screen

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Hi Giri,

Make use of the fm: DYNP_VALUES_READ function module. See the example given in the FM documentation.

Regards,

Ravi

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Hi Giri,

Make use of the fm: DYNP_VALUES_READ function module. See the example given in the FM documentation.

Regards,

Ravi

Former Member
0 Kudos

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.

rahulkavuri
Active Contributor
0 Kudos

hi check this code sample which exactly satisfies your requirement on displaying F4 help accordingly

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a07a330f-126c-2910-c684-d2a45f0f...

dont forget to award points if found helpful