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 in module pool programming

surya_ramireddy
Participant
0 Likes
1,666

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,175

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,176

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

Read only

Former Member
0 Likes
1,175

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

Read only

0 Likes
1,175

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.

Read only

0 Likes
1,175

Hi,

Check the table using loop statement, you can get all the records.

Read only

0 Likes
1,175

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

Read only

0 Likes
1,175

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.

Read only

0 Likes
1,175

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.

Read only

0 Likes
1,175

Hi Guys.

can anybody plz answer my question asap?

Regards

surya

Read only

0 Likes
1,175

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