Application Development 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: 

Problem is Module pool custom F4 help

Former Member
0 Kudos

In module pool selection screen . I have defined vendor field as a select option and attached a custom search help to it . Now the problem is that when i press F4 on that field and select a value from the help , that value is not populated in the input field .

The other problem is that if we keep this vendor select option as blank , then in the select statement using " IN S_lifnr " gives a dump as it treats the field as blank .( does not function as standard) . does this have anything to do with the custom search help .

any help would be appreciated .

4 REPLIES 4

Former Member
0 Kudos

hmmm when designing your search help, for every Parameter there are two checkboxes. I think their name is input & output, maybe you forgot to tag output at your parameter?

Former Member
0 Kudos

Hi

Few things are not clear!

1)How you designed the Select-options in Module pool program?because we can't use them in Module pools, like in report programs, we have to use RANGES instead of them

2) Where you attached the search help for that field.

In the attributes, you have to assign that search help?

3) is it a elementary search help or cumulative search help you created?

there is a Std elementary search help for vendor, use that.

4) if it is declared as select options, it won't give dump, even if you give IN S_LIFNR in where condition?

only for paramters it give dump.

paste the code, it is better to see in code.

Reward points if useful

Regards

Anji

0 Kudos

I am sorry for the mistake .Its a normal selection screen and i am using F4_INT_value _request FM for search help on a Ztable which we have defined . The F4 is coming properly but when i select a record from the F4 list , it does not get inputted in the field on the screen .

Former Member
0 Kudos

Do you mean that u created a custom cearch help using se11 and attached that using F4IF_INT_TABLE_VALUE_REQUEST.

I dont think that is possible.

F4IF_INT_TABLE_VALUE_REQUEST is used to programmatically create an f4 help, fetching data from an internal table.

here is an eg.

DATA: BEGIN OF VALUE_ITAB OCCURS 0,

moldno TYPE zqmrr-zzmoldno,

END OF VALUE_ITAB.

DATA: FIELD_TAB LIKE DFIES OCCURS 0 WITH HEADER LINE.

DATA: RETURN_TAB LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE.

select-options : s_moldno for zqmrr-zzmoldno,

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MOLDNO-LOW.

REFRESH VALUE_ITAB[].

REFRESH FIELD_TAB[].

REFRESH RETURN_TAB[].

SELECT ZZMOLDNO FROM ZQMRR INTO table VALUE_ITAB.

FIELD_TAB-FIELDNAME = 'ZZMOLDNO'.

FIELD_TAB-TABNAME = 'ZQMRR'.

APPEND FIELD_TAB.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = FIELD_TAB-FIELDNAME

TABLES

VALUE_TAB = VALUE_ITAB

FIELD_TAB = FIELD_TAB

RETURN_TAB = RETURN_TAB

  • DYNPFLD_MAPPING =

  • EXCEPTIONS

  • PARAMETER_ERROR = 1

  • NO_VALUES_FOUND = 2

  • OTHERS = 3

.

  • IF SY-SUBRC <> 0.

    • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

    • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

  • ENDIF.

IF SY-SUBRC = 0.

S_MOLDNO-LOW = RETURN_TAB-FIELDVAL.

ENDIF.

compare and try to find what u are doing wrong,