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

Search Help on Selection Screen

Former Member
0 Likes
5,981

Hi All,

          I have 2 parameters in Selection screen 'Customer Id' and 'Name' now i have attached a search help for customer id using match code object. I want Name to be automatically filled when i use search help. I have specified export in search help(created in se11). But name is not being filled.

Please help me.

This is the code I have used

REPORT  Y_PK_R_SH.

TABLES sbook.

PARAMETERS:

                              lv_cusid       TYPE      sbook-customid      MATCHCODE OBJECT      zpk_sh,

                              lv_pname     TYPE      sbook-passname.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,725

HI.

Please use  Function module DYNP_VALUES_READ to read the your first field.

Thanks.

NJ

Hi All,

          I have 2 parameters in Selection screen 'Customer Id' and 'Name' now i have attached a search help for customer id using match code object. I want Name to be automatically filled when i use search help. I have specified export in search help(created in se11). But name is not being filled.

Please help me.

This is the code I have used

REPORT  Y_PK_R_SH.

TABLES sbook.

PARAMETERS:

                              lv_cusid       TYPE      sbook-customid      MATCHCODE OBJECT      zpk_sh,

                              lv_pname     TYPE      sbook-passname.

11 REPLIES 11
Read only

Former Member
0 Likes
4,725

Hi Prthk,

Use AT SELECTION SCREEN OUTPUT for your requirement:

for example:

AT SELECTION-SCREEN OUTPUT.

select single passname

from sbook

into lv_pname

where

customid = lv_cusid.

Reward points if it is helpful...

Read only

0 Likes
4,725

Thank You,

But If i\'m selecting it manually then what is the use of export in Search Help??

Read only

0 Likes
4,725

Hi Prthk,

Export is for the field u want to see in ur search help output screen...

Read only

0 Likes
4,725

Then what about import?? Please excuse if this is a silly question.

Im a beginner

Read only

kumud
Active Contributor
0 Likes
4,725

Why not press F1 on the relevant checkboxes and see it by yourself! Thanks.

Regards,

Kumud

Read only

0 Likes
4,725

I have done that. Thats why i asked the question. It says Export is used to return value from list to the field on screen.

Now I want to use it to do the same thing. Can you Please help me

Read only

0 Likes
4,725

Hi Prthk,

Import is to take the input fields for selection and export is for output fields on the screen...suppose u want to input custid and on basis of that u want to display name, age, exp etc and other filds on the search help output..u can use export in that..

Dont worry...just craete few search helps and it will be helpful

Read only

vinoth_aruldass
Contributor
0 Likes
4,725

hi Prithk,

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.

use the function module from internal table is

'F4IF_INT_TABLE_VALUE_REQUEST'

hope it helps,

Vinoth

Read only

Former Member
0 Likes
4,726

HI.

Please use  Function module DYNP_VALUES_READ to read the your first field.

Thanks.

NJ

Read only

0 Likes
4,725

Thank You....It worked.!!

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,725

Call the search-help in an explicit AT SELECTION-SCREEN ON VALUE-REQUEST. There you can call a search help using FM F4IF_FIELD_VALUE_REQUEST, then use a SELECT to get name in database from returned key value, and update this second field with FM DYNP_VALUES_UPDATE.

You could also update the name in PBO (AT SELECTION-SCREEN OUTPUT) so it would also be updated when user directly input customer name, in this case in the ON VALUE-REQUEST, once you get the key value, trigger a PAI/PBO cycle with method cl_gui_cfw=>set_new_ok_code or FM SAPGUI_SET_FUNCTIONCODE.

Regards,

Raymond