‎2009 May 26 1:17 PM
Hi Guys.
I am strugging with the following scenario.
When i entered value in one field, getting the search help for another field...correct one.
But when i changed the value in the first field, the search help for another field is still the same
and is not changind based on changes value. Here is the code. Plz try to help me out.
SELECT JOURNALRESCODE JOURNALRESNAM JOURNALCATCODE JOURNALCATDIV
JOURNALRESTYPE
FROM YCALCJOURNALRES
INTO CORRESPONDING FIELDS OF TABLE GI_CATREASON
WHERE JOURNALCATCODE = YCALCJOURNALCAT-JOURNALCATCODE
AND JOURNALCATDIV = V_EANL-SPARTE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'JOURNALRESCODE'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = GI_CATREASON
RETURN_TAB = RETURN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
...
ELSE.
READ TABLE RETURN_TAB INDEX 1 ASSIGNING <DDSHRETVAL>.
IF SY-SUBRC = 0.
YCALCJOURNALRES-JOURNALRESCODE = <DDSHRETVAL>-FIELDVAL.
CLEAR RETURN_TAB.
REFRESH RETURN_TAB.
CLEAR:GI_CATREASON,GI_CATREASON[].
ENDIF.
ENDIF.
Regards,
reddy.s
‎2009 May 26 1:25 PM
Hi,
For this u have to use FM DYNP_VALUES_READ before calling FM F4IF_INT_TABLE_VALUE_REQUEST
<< Please only post relevant portions of code. What you posted was mainly comments!>>
Thanks & Reagrds,
Anagha Deshmukh
Edited by: Rob Burbank on May 26, 2009 9:45 AM
‎2009 May 26 1:25 PM
Hi,
For this u have to use FM DYNP_VALUES_READ before calling FM F4IF_INT_TABLE_VALUE_REQUEST
<< Please only post relevant portions of code. What you posted was mainly comments!>>
Thanks & Reagrds,
Anagha Deshmukh
Edited by: Rob Burbank on May 26, 2009 9:45 AM
‎2009 May 26 1:26 PM
Hi,
I think you have to use the Fm "DYNP_VALUES_READ" to get the latest value of the
field ,which you are using in the select statement..
Please check whether your select statement is retreiving the values.
Regards,
Smart Varghese
‎2009 May 28 1:56 PM
Hi Guys.
I got the solution and thanx for all ur replies. I need some more help from u guys.
The drop down contains values of four fields. Now the return table from the fm F4IF_INT_TABLE_VALUE_REQUEST contains information about one retfield since i mentioned one retfield.. So far so good.
Now my question is how can i get information about the 2nd field in the same dropdown?
How can i mention the second retfield in the function module mentioned above?
Thanx and Regards,
surya.
‎2009 May 28 2:17 PM
Hi,
Check the table using loop statement, you can get all the records.
‎2009 May 28 3:33 PM
Hi Guys.
I got few more issues.
1. What is the importance of FIELD_TAB in the function module 'F4IF_INT_TABLE_VALUE_REQUES?
2. and also the importance of MULTIPLE CHOICE export parameter?
Regards.
surya
‎2009 May 29 12:46 PM
Hi Surya,
1. FIELD_TAB will contain all the fields you want to display as output of F4-help, it means you can display test associated to one field also along with its values as output of search help. So, you add these two fields in FIELD_TAB and pass it to FM.
2. MULTIPLE_CHOICE will enable multiple records selection from output of search help. But, it may not be able to update the field value automatically in this case after selection.
Let me know if it helps.
Gouri.
‎2009 May 29 2:03 PM
Hi Guys.
I got the solution and thanx for all ur replies. I need some more help from u guys.
The drop down contains values of four fields. Now the return table from the fm F4IF_INT_TABLE_VALUE_REQUEST contains information about one retfield since i mentioned one retfield.. So far so good.
Now my question is how can i get information about the 2nd field in the same dropdown?
How can i mention the second retfield in the function module mentioned above?
Thanx and Regards,
surya.
‎2009 Jun 01 1:27 PM
Hi Guys.
can anybody plz answer my question asap?
Regards
surya
‎2009 Jun 01 1:30 PM
Hi,
if you change some value on the input ..if you want to refelect the value on the other selection i mean
f4.. some action need to happen..
so try to hit enter and try F4 if it works..
if above works means try to assign user-command for some value it will works..
Prabhudas