on 01-17-2014 2:35 PM
Hi Experts,
i have a requirement to create dropdown by key in an alv cell. I want to get all the search help values and attach it to the value set ( along with the texttable field)
company code and company code description
i used this code:
MOVE 'seacrch help name' TO l_shlp-SHLPNAME.
MOVE 'SH' TO l_shlp-SHLPTYPE.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = l_shlp
CALL_SHLP_EXIT = 'X'
TABLES
RETURN_TAB = l_retval.
In l_retval, I am getting the company code but i am not getting the text table text (txtmd field) company description. Please let me know how i can achive it.
If there is any class method call which i can use instead of FM, i would prefer.
Thanks & REgards,
Tashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My issue is not solved, i am still not able to get the text (2nd export parameter of the search help) . i am assuming its the l_shlp structure where i am populating only searchhelp name and type currently. Do i need to populate some thing more to get the text ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tashi,
Please try the below code
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = 'ZSH_HELP_NAME' "Custom Search help
IMPORTING
shlp = ls_shlp.
Then call 'F4IF_SELECT_VALUES' function module.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = ls_shlp
CALL_SHLP_EXIT = 'X'
TABLES
RETURN_TAB = lt_retval
Hope this helps you.
Regards,
Rama
Message was edited by: Ramakrishnappa Gangappa
Hi Rama,
I had tried that already, for some strange reason if i get the SH decription with the FM and then use that in the 'F4IF_SELECT_VALUES', i dont get any records (not even company code).
if i manually fill the description structure ,
MOVE 'seacrch help name' TO l_shlp-SHLPNAME.
MOVE 'SH' TO l_shlp-SHLPTYPE
i get the records, but it fill only the company code not the description
Hi Tashi,
Is you issure resolved? If so please close the discussion.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tashi,
You have to choose a search help which gives you the company code & description as export parameters.
Then you will be able to get the description along with company code in your internal table l_retval.
Loop over l_retval entries and construct the records as you wish.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.