Skip to Content

Selection field

Dear all,

My req is i have internal table value . When i press F4 is will display the material ,Des, po , item no , mateial group. it will select go for selection field of material should fetch. But my req is that corresponding po & itemno also fetch .

I am use this fm F4IF_INT_TABLE_VALUE_REQUEST of when click F4 .

Can u any body slow this probelm.

Regards,

Krishna

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 08:34 AM

    hi krishna

    just have a look at the below code.

    INITIALIZATION.

    SELECT VBELN " here u write a SELECT to fetch MATNR,MAKTX ,EBELN ,EBELP

    FROM VBAK

    INTO TABLE TH_VBAK

    WHERE AUART = 'ZMK'. "USE EKPO TABLE TO FETCH PO AND ITEM NO BASED ON

    MATERIAL AND PLANT

    IF sy-subrc EQ 0.

    ENDIF.

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

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    retfield = 'VBELN'

    DYNPPROG = SY-REPID

    DYNPNR = SY-DYNNR

    DYNPROFIELD = 'S_VBELN-LOW'

    VALUE_ORG = 'S'

    tables

    value_tab = TH_VBAK

    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 helps! . revert back if any issues 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2009 at 08:35 AM

    Hi Moorthy,

    Can you more eloborate on your question.

    You can write your code in the event at selection-screen on value request for w_po

    You will get the display when you press F4.

    Now if you want only particular fields in that fields take an internal table with those fields and pass it to the FM.

    Much Regards,

    Amuktha.

    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.