Skip to Content
author's profile photo Former Member
Former Member

problem in F4IF_INT_TABLE_VALUE_REQUEST

Hi Experts,

I have a requirement that in selection screen the parameter date should display 4 values in F4 help i.e 31 , 30 , 29 , 28. after using FM F4IF_INT_TABLE_VALUE_REQUEST currently it shows nothing.the code which i writen is shown below.

SELECTION-SCREEN : BEGIN OF BLOCK HIM WITH FRAME TITLE TEXT-001.

PARAMETER: DATE(2) TYPE C OBLIGATORY.

SELECTION-SCREEN : END OF BLOCK HIM.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATE.

IT_HELP-DAYS = '28'.

APPEND IT_HELP.

IT_HELP-DAYS = '29'.

APPEND IT_HELP.

IT_HELP-DAYS = '30'.

APPEND IT_HELP.

IT_HELP-DAYS = '31'.

APPEND IT_HELP.

L_RETFIELD = 'DAYS'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

RETFIELD = L_RETFIELD

  • PVALKEY = ' '

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'DATE'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

VALUE_ORG = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = IT_HELP

  • FIELD_TAB = 'DATE'.

RETURN_TAB = T_RETURN

  • 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.

Thanks & Regards,

Himanshu Rangappa

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:06 AM

    Hi

    Add two more parameters in Exporting

    display = 'F' and

    Filed_tab

    Regards

    Aditya

    Edited by: ADITYA MITTAL on Dec 22, 2008 2:43 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:09 AM

    Hi,

    This is because you have not passed the table FIELD_TAB to the FM. Please pass this table then you will get the result.

    Regards

    Akshay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:43 AM

    TABLES : ZVEMP.

    TYPES : BEGIN OF st_help,

    DAYS TYPE ZVEMP-ENAME,

    END OF st_help.

    DATA : it_help TYPE STANDARD TABLE OF st_help WITH HEADER LINE.

    DATA L_RETFIELD TYPE string.

    SELECTION-SCREEN : BEGIN OF BLOCK HIM WITH FRAME TITLE TEXT-001.

    PARAMETER: DATE(2) TYPE C OBLIGATORY.

    SELECTION-SCREEN : END OF BLOCK HIM.

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR DATE.

    IT_HELP-DAYS = '28'.

    APPEND IT_HELP.

    IT_HELP-DAYS = '29'.

    APPEND IT_HELP.

    IT_HELP-DAYS = '30'.

    APPEND IT_HELP.

    IT_HELP-DAYS = '31'.

    APPEND IT_HELP.

    L_RETFIELD = 'DAYS'.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    • DDIC_STRUCTURE = ' '

    RETFIELD = 'IT_HELP-DAYS'

    • PVALKEY = ' '

    DYNPPROG = SY-REPID

    DYNPNR = '1000'

    DYNPROFIELD = 'ENAME'

    • STEPL = 0

    • WINDOW_TITLE =

    • VALUE = ' '

    VALUE_ORG = 'S'

    • MULTIPLE_CHOICE = ' '

    • DISPLAY = ' '

    CALLBACK_PROGRAM = SY-REPID

    • CALLBACK_FORM = ' '

    • MARK_TAB =

    • IMPORTING

    • USER_RESET =

    TABLES

    VALUE_TAB = IT_HELP

    • FIELD_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.

    hope this helpful

    Edited by: rajan bhalani on Dec 22, 2008 10:55 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 09:44 AM

    Hello,

    If you want to attach F4 help to a particular field then you can use function

    module F4IF_FIELD_VALUE_REQUEST.

    Hope It Helps You.

    Thanks Mansi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 10:29 AM

    THANKS

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.