2013 Feb 04 5:36 AM
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.
2013 Feb 04 6:47 AM
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.
2013 Feb 04 5:50 AM
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...
2013 Feb 04 5:53 AM
Thank You,
But If i\'m selecting it manually then what is the use of export in Search Help??
2013 Feb 04 5:58 AM
Hi Prthk,
Export is for the field u want to see in ur search help output screen...
2013 Feb 04 6:09 AM
Then what about import?? Please excuse if this is a silly question.
Im a beginner
2013 Feb 04 6:23 AM
Why not press F1 on the relevant checkboxes and see it by yourself! Thanks.
Regards,
Kumud
2013 Feb 04 6:36 AM
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
2013 Feb 04 6:46 AM
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
2013 Feb 04 5:55 AM
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
2013 Feb 04 6:47 AM
HI.
Please use Function module DYNP_VALUES_READ to read the your first field.
Thanks.
NJ
2013 Feb 04 7:11 AM
2013 Feb 04 7:18 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |