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

Regarding Infoset (At Selection-Screen) - Urgent

Hi All,

In Infoset 'Selections' tab, i have defined a selection parameter 'country', i want the user to have options to input only 5 country codes. The country code i am reading from LFA1-LAND1 as this relates to Vendor.

I would like to know, what code should i enter in 'At Selection-Screen' to ensure that, when the user press F4 they only see these 5 country code + the description?

Hope my problem is clear, await inputs.

Vivek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:56 AM

    DATA: BEGIN OF IT_LAND OCCURS 0,

    LAND1 LIKE LFA1-LAND1,

    BEZEICH LIKE FMFCTRT-BEZEICH,

    END OF IT_LAND.

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

    SELECT LAND1 INTO TABLE IT_LAND FROM LFA1

    WHERE SPRAS EQ 'EN'.

    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

    RETFIELD = 'LAND1'

    VALUE_ORG = 'S'

    TABLES

    VALUE_TAB = IT_LAND

    RETURN_TAB = IT_RETURN.

    IF SY-SUBRC = 0.

    READ TABLE IT_RETURN INDEX 1.

    MOVE IT_RETURN-FIELDVAL TO LAND1-LOW.

    ENDIF.

    Rewards if useful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In Selections tab i have defined a field as Selection Criteria & named it Ven_Ctry (in the field Format FOR entered LFA1-LAND1). The code section of this field contains the exact same as what you have posted.

      In the Coding Section under DATA, I have this code,

      *Global data for optimization

      DATA :

      W_CONFIRM_QUANTITY TYPE EKET-MENGE,

      W_EBELN_OLD TYPE EKPO-EBELN,

      W_EBELP_OLD TYPE EKPO-EBELP,

      W_PO_QUANTITY TYPE EKET-MENGE,

      TEMP_QUANTITY TYPE EKET-MENGE,

      W_WERKS TYPE T001W-WERKS, "Plant

      W_FABKL TYPE TFACD-IDENT. "Factory calendar

      *Global data initialization

      CLEAR :

      W_CONFIRM_QUANTITY,

      W_EBELN_OLD,

      W_EBELP_OLD,

      W_PO_QUANTITY,

      TEMP_QUANTITY,

      W_WERKS,

      W_FABKL.

      In Code Section: Record Processing I have this code

      *Items with deletion indicator are not taken into account

      CHECK EKPO-LOEKZ IS INITIAL.

      *Items completely delivered are not taken into account

      CHECK EKPO-ELIKZ IS INITIAL.

      Do i need to declare anything here?

      Vivek

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:35 AM

    Hi ,

    Use the FM 'F4IF_INT_TABLE_VALUE_REQUEST' .

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Here is an example on Vendor material no. . You can do it same for country code. Write this code under

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

      DATA: BEGIN OF l_t_z90vj_refer_ja OCCURS 0,

      idnle LIKE z90vj_refer_ja-idnle,

      END OF l_t_z90vj_refer_ja,

      l_f_program TYPE sy-repid,

      l_f_dynpnr TYPE sy-dynnr.

      SELECT DISTINCT idnle

      INTO TABLE l_t_z90vj_refer_ja FROM z90vj_refer_ja.

      l_f_program = sy-repid.

      l_f_dynpnr = sy-dynnr.

      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

      EXPORTING

      retfield = 'IDNLE'

      dynpprog = l_f_program

      dynpnr = l_f_dynpnr

      dynprofield = 'p_idnle' (Selection screen field name)

      value_org = 'S'

      TABLES

      value_tab = l_t_z90vj_refer_ja (Internal table with material no.)

      EXCEPTIONS

      parameter_error = 1

      no_values_found = 2

      OTHERS = 3.

      Message was edited by:

      Ramesh Hirial

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 09:46 AM

    Thank you both for your inputs, will try the code & keep you both updated, if i face any issues.

    I would like to know, in this code, where should i enter the 5 country codes, which i want to be displayed?

    Vivek

    Message was edited by:

    Vivek Seelin

    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.