Drop down in the selection for the field from the table

Hi.
i want to put the drop down for the field from the table fo which i dont know the number of entries for the field zregion1 of the table zbwcntry.
please tell me how to use the function module and what could be the line of codes.
the drop down is for the select option on the slection screen of the classical report.
please help .

HI,
Check below code..it may help you.
REPORT Zbunu .
TYPES :BEGIN OF STR ,
       MATNR TYPE MATNR ,
       END OF STR .
DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
       VAR TYPE MARA-MATNR .
PARAMETERS : S_MATNR TYPE MATNR ,
              P_MATNR TYPE MATNR.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MATNR .
SELECT MATNR FROM MARA INTO
CORRESPONDING FIELDS OF TABLE ITAB UP TO 1000 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
  DDIC_STRUCTURE         = ' '
    retfield               = 'MATNR'
  PVALKEY                = ' '
   DYNPPROG               = SY-CPROG
   DYNPNR                 = SY-DYNNR
   DYNPROFIELD            = 'S_MATNR'
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
   VALUE_ORG              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = 'X'
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  tables
    value_tab              = ITAB
  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.
Regards
Ansumesh

Similar Messages

  • Drop down in Dialog programming for a field on the screen

    Hi Friends !
    I have 2 screen fields  zfield1- Indicator and zfield- answer .
    The user wants a drop down for indicator as X or Blank to choose from and for answer  the user wants YES or NO as the dropdown .
    How do i create these dropdowns for the fields ?
    Do I need to create search help or does dialog give other options to add these dropdowns.
    Please advise .
    Thanks!!

    set zfield1 up where it's data element is using the domain YESNO.
    For answer I use this routine a lot.
      PERFORM get_dd07t_value USING 'ZLMCONTTYPE'
                                  out_rec-ctype
                                  out_rec-ctype_desc.
    *&      Form  get_dd07t_value
         -->P_DOMNAME  text
         -->P_KEY      text
         -->P_RESULT   text
    FORM get_dd07t_value USING    p_domname
                                  p_key
                                  p_result.
      CLEAR p_result.
      SELECT SINGLE ddtext INTO p_result
        FROM dd07t
        WHERE domname = p_domname
          AND ddlanguage = sy-langu
          AND domvalue_l = p_key.
      IF sy-subrc NE 0.
        p_result = 'None'.
      ELSE.
        p_result = dom_rec-ddtext.
      ENDIF.
    ENDFORM.                    " get_dd07t_value

  • Selecting the Subinventory for orders shipped from the LAO warehouse

    Experts,
    We will need to begin selecting the Subinventory for orders shipped from the LAO warehouse. Can we make this a required field at order entry? If so, can we set up a default value at the customer level as well?
    Please suggest me how to setup.
    Thanks,
    JP

    Prakash,
    Subinventory is not an attribute of the header so you can't default to header and then from header to line, you have to do it directly to the line. You have 2 alternatives:
    1) if this only relates to 2 or 3 key accounts you could create a validation template for each of these accounts:
    Name = Cust1 Subinv
    Attribute = Customer
    Value String = Customer1 name etc.
    ... and a rule for each using the relevant template as a defaulting condition:
    Source type = Constant Value
    Source/Value = Subinv for Customer1
    2) a PL/SQL procedure which looks at a DFF against your customer, picks up the subinv code and defaults that to your line. You need to reference the package name and procedure name from your defaulting rule. You'll probably need some tech assistance with writing this if you're not familiar with PL/SQL.

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • I am trying to pass the value of a field from the seeded page /oracle/apps/

    I am trying to pass the value of a field from the seeded page /oracle/apps/asn/opportunity/webui/OpptyDetPG. The value I want is in the VO oracle.apps.asn.opportunity.server.OpportunityDetailsVO and the field PartyName.
    I have created a button on the page whose destination URL is
    OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName={#PartyName}
    It opens the correct page, but in the URL it shows this
    http://aa.com:8005/OA_HTML/OA.jsp?OAFunc=XX_CS_SR_QUERY&CustName=&_ti=1897289736&oapc=177&oas=x5E2TIfP1Y0FykBt1ek4ug..
    You can see that &CustName is not getting the proper value. Do I need to do something different?

    You cannot call the form with OA.jsp . This is applicable only for OAF based pages registered as a function.
    For calling a Form, use the below example:
    You have to change the application responsibility key and form function name .
    "form:PN:PN:STANDARD:XXPNTLEASE:QUERY_LEASE_ID={@QueryLeaseNumber}"
    Regards,
    Sudhakar Mani
    http://www.oraclearea51.com

  • I recently purchased an Apple TV box & the App for Apple TV from the Apple store. Now how do I get it to work? I am a card-carrying technological imbecile.

    I recently purchased an Apple TV box & the App for Apple TV from the Apple store. Now how do I get it to work? I am a card-carrying technological imbecile.

    If I'm understanding correctly, you have an Apple TV 2 (the small, black box version of the Apple TV), and downloaded the Remote App from the iTunes Store for your iPod Touch/iPhone/iPad, correct?  If so...
    For the AppleTV setup, hook it up to your television and, if applicable, your Surround Sound system.  To do this, you'll use an HDMI cable (not included, available here) to hook the AppleTV to your Television.  The cable only fits one way, and should slide effortlessly into place.  If, and only if, you intend to use your surround sound system with the AppleTV, you will also need what's called a TOSLINK Optical Cable (also not included, available here).  This cable goes from the AppleTV to a port labelled Optical In or Digital In on the back of your surround receiver (consult the manual that came with your surround sound system for additonal help).
    From here on, we'll focus on hooking up the AppleTV, then how to setup the Remote App from Apple on your iOS device.
    The AppleTV needs a network connection in order to function correctly.  A wired connection is recommended, but Wi-Fi is built-in to the AppleTV if a wired connection isn't available.  With the AppleTV plugged into your television, follow the on-screen instructions for setup.  To connect the AppleTV to your Wi-Fi network, you'll need to know the name of the network you want to connect to, as well as any password needed to connect to it.  When the AppleTV has a network connection, it'll load the latest selection of TV Shows, Movies and Music for display on the main menu - that's the easiest way to tell everything's working.
    For the Remote App, all you need to do is download the free application to a compatible iOS device (Any iOS device running iOS 3.1.2 or higher).  Once downloaded, go to the computer hosting your iTunes library, and turn on Home Sharing.  Finally, start the Remote App on your iOS device (be it iPhone, iPad, or iPod Touch), login with the same information you setup Home Sharing with, and away you go!  The Remote App is entirely optional, since the AppleTV can be controlled by the included remote control, but it's a nice touch nonetheless.
    I hope this answered your question, or at least helped put you on the path to success.  If you need something clarified, please don't hesitate to ask here.

  • [svn:fx-trunk] 15108: * Merged the fix for SDK-24472 from the sherlock sandbox to trunk.

    Revision: 15108
    Revision: 15108
    Author:   [email protected]
    Date:     2010-03-29 09:22:20 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Merged the fix for SDK-24472 from the sherlock sandbox to trunk.
      This includes revisions 14005 and 14621.
    QE notes:
    Doc notes:
    Bugs: SDK-24472
    Reviewer: Tom H., Pete F.
    Tests run: passed full cyclone in sherlock and checkintests in trunk
    Is noteworthy for integration: yes, should reduce memory use in FB.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24472
        http://bugs.adobe.com/jira/browse/SDK-24472
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/io/InMemoryFile.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/io/VirtualZipFile.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/MovieTranscoder.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/Swc.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcAPI.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcCache.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcDirectoryArchive.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcDynamicArchive.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcGroup.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLazyReadArchive.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcLibrary.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcScript.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java
    Property Changed:
        flex/sdk/trunk/

  • I want to remove the icon for Photo Booth from the dock, not from the computer. How do I do this?

    I would like to remove the icon for PHOTO BOOTH from the dock only, not the computer. Is this possible and if so, how do I do it? Running OS 10.9.3

    Click & drag it away from the Dock; or Ctrl (right) click it, choose Options - Remove From Dock.

  • How to remove the automatically generated text fields from the InfoSet

    I followed the procedure by SAP help.
    Automatically generated text fields are marked with a 'T' on the icon in the InfoSet. You can remove the automatically generated text fields from the InfoSet in the initial screen of the InfoSet maintenance under Further Functions -> Delete Text Fields. Cancel the DataSource creation on the next screen and delete the text fields in the InfoSet maintenance transaction.
    I know that there is an option "No automatic text recognition" when I create a new InfoSet, however, I couldn't find out how to change an existed InfoSet. I checked menu Goto->Global Properties, but that option is disabled. Is there a way to remove text fields from an existed InfoSet?

    Hi,
    In the initial screen (when you enter transaction code SQ02) type your infoset name and goto menu: Infoset -> More functions -> Delete text fields. this will delete all text fields.
    I hope this helps to resolve the issue.
    Ram

  • Value Help for a field from custom table in BSP

    Please let me know, the procedure to create value help for a field from a custom table in BSP using HTMLB.
    Thanks

    hi prodigy,
    check this code using drop down list.
    <b>layout for first page</b> 
    <htmlb:dropdownListBox id                = "ddlist"
                                  table             = "<%=t_mara%>"
                                  nameOfKeyColumn   = "matnr"
                                  nameOfValueColumn = "matnr"></htmlb:dropdownListBox>
    <b>event Oninitialization event of first page</b>
    SELECT MATNR UP TO 10 ROWS
      INTO TABLE T_MARA
      FROM MARA.
    <b> event Oninputprocessing event</b>
    **Load the manager class
    CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
    DATA: V_EVENT TYPE REF TO CL_HTMLB_EVENT.
    DATA: DATA TYPE REF TO OBJECT.
    DATA: V_DATA TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
    CALL METHOD CL_HTMLB_MANAGER=>GET_EVENT
      EXPORTING
        REQUEST               = RUNTIME->SERVER->REQUEST
      RECEIVING
        EVENT                 = V_EVENT
    IF V_EVENT->NAME = 'button' AND
       V_EVENT->EVENT_TYPE = 'click'.
    DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST =
                                          RUNTIME->SERVER->REQUEST
                                          NAME     = 'inputField'
                                          ID       = 'matnr'
        V_DATA ?= DATA.
    IF V_DATA IS NOT INITIAL.
         V_MATNR = V_DATA->SELECTION.
    ENDIF.
    NAVIGATION->SET_PARAMETER( NAME = 'v_matnr' VALUE = V_MATNR ).
    NAVIGATION->GOTO_PAGE( 'detail.htm' ).
    ENDIF.
    <b>in the onInitialization event for detail page</b>SELECT MATNR
           ERSDA
           ERNAM
           LAEDA
           AENAM
           VPSTA
           PSTAT
           LVORM
           MTART
      FROM MARA
      INTO TABLE T_MARA
    WHERE MATNR = V_MATNR.

  • How to get the keys for a field in the dropdown list?

    The dropdown list of payment terms on an account is unfortunately very big, containing al lot of different values, in our system and therefore very confusing for the user working with Web UI version 5.2 to pick the right one. The keys (code like e.i Z077 or ZO23) are not stated in the list available for user. Is there any way in the system to flag if the different fields should show boths the keys(codes) and the description of the values in the field as Payment terms, etc.
    In the ERP SAP Gui it is possible to activate if you want the keys should be shown in all drop down list.
    If this is not possible for all the fields at one time, what can be a solution to have the keys in the drop down lists, any suggestion will be very valuable for us.
    Kindly regards
    Camilla

    HI Joost
    No it is not that simple, that is not a solution for us. The fields are maintained i our backend system and replicated to CRM, and these fields descriptions are also printed at Order confirmations and invoices, and we do not want the keys that do not give any meaning  to be visible to customers.
    BR
    Camilla

  • Creating Drop Down or Option selection for prompt user input.

    Hello,
    I wanted to know how can I create a drop down menu that has predefined values? I have the prompt user input vi. When it says enter voltage..i want the user should be able to select from a drop down menu values..also is it possible to have a predefined set of values from which a user can select...say 5 values are displayed and user selects one of them each time the vi is run...can this be realized..kindly help.
    Thanks.
    Ravi

    Hi Ravi,
    you can use a text ring  or a menu ring control located on the Ring and Enum on the control pallete.
    for a pre defined value you can edit that control to have what ever values you want from the user to input.
    You can change the menu option by right clicking on the ring control and choosing Edit items from the list and use the values you want.
    Regards,
    Nitin

  • Drop down list of  values for a field in ALV rpt within a BADI

    Hi,
    I need help on this issue.
    TCODE LI21 is used to clear the differences in IM.  The business now wants to prompt for a reason code before they can post a new material document for this clearing.  I have create an implementation in BADI LE_WM_INV_WM_IM, which display the field for user to enter the reason code.   However, I am trying to get a dropdown list which contain the possible values for reason code so the user can choose from this list.  There are sample codes to do this but I can't apply to the codes in the implementation because call screen is not allowed.  Has anyone done this before or can advise me of the solution?
    Thanks.

    Hi,
    Use the Field Catalogue Properties
    Ref_fieldname
    Ref_Tablename
    and assign the corresponding field & Table/Strucutre Name to the above fields....

  • I need to add the Description for a field to the dispForm.aspx page

    I have some information stored in the description area of a field that needs to show up on the dispform.aspx page. It shows up on the editform.aspx but not dispform.aspx
    I know there has got to be a way to do it with some JQuery or something, can someone steer me?
    L.

    Hi, I know this is an older post but I was looking for the same guidance.   I couldn't find it either.  :) 
    So I started working backwards from this command that I know works for displaying the history of the multiline boxes when there are multiple versions:
    <tr><td class="ms-formlabel">Comments</td>
    <td class="ms-formbody" colspan="3"><xsl:value-of select="@Comments" disable-output-escaping="yes" />
    <SharePoint:AppendOnlyHistory runat="server" FieldName="Comments" ControlMode="Display" ItemId="{@ID}"/></td></tr>
    So checking out the “SharePoint: AppendOnlyHistory” brought me here:
    http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.webcontrols.appendonlyhistory(v=office.15).aspx
    Which I followed until I found this …
    http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.webcontrols.fielddescription(v=office.15).aspx
    So with some experimenting I found that this works: 
    <td class="ms-formlabel"><SharePoint:FieldDescription runat="server" FieldName="ESCFReason" ControlMode="Edit" ItemId="{@ID}"/></td>
    <td class="ms-formbody"><xsl:value-of select="@ESCFReason" disable-output-escaping="yes" /></td>

  • Getting the Alias for AssignedTo field from VSO

    In my code, I am retrieving Bug information from VSO. I need the domain 'Alias' for the [System.AssignedTo] field. If I do a GetAliasesForDisplayName(), I will get multiple aliases if there are more than one same display name. What is the best
    way to get this information?

    Hi PrarthanaK,
    Since this thread is more related to Visual Studio Online, I will move it to the right forum for a better response. Thanks for your understanding.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Is the numbers for laptop different from the numbers app?

    Am I right in thinking that Numbers I have for my MacBook cannot be transferred to my iPad? Do I need to buy the app? Is it any good?

    You are correct.  There are different versions for Mac OS and iOS.  You 'need' to buy it on your iPad if you have a requirement to open Numbers format files which you obviously do.

Maybe you are looking for