Select-option.....strange problem.....have ur points.

Hi all
pleas see the code...
SELECT-OPTIONS : dept FOR equz-ingrp DEFAULT 'DG'.
write : / dept.
output-> IEQDG
Now thing is equz is a fields with length 3 character, what ever i select from the drop down in select option.
IEQ is attached with every value....
Why? Please assist me...
<b>Have ur points.</b>
Regards,
pradeep phogat

Hi Pradeep,
Select option is similar to an internal table & has 4 fields in it.
SIGN
OPTION
LOW
HIGH
Inorder to display contents of select option you need to code as follows:
loop at dept.
write :/ dept-low, dept-high.
endloop.
Best regards,
Prashant

Similar Messages

  • How to get the data into select options if we have 10 select options

    Hi Experts,
         I facing problem to get the data from diffrent tables and different select options.
    I have to pass different parameter ranges.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: rb1 RADIOBUTTON GROUP g1.     "Existing Key Accounts
    PARAMETERS: rb2 RADIOBUTTON GROUP g1.     "Potential Key Accounts
    SELECT-OPTIONS: s_part FOR but000-partner."Business Partner Number
    PARAMETERS: p_bpkind LIKE but000-bpkind.    "Business Partner Type
    PARAMETERS: p_but000 LIKE but000-partner.   "Key Account Manager
    SELECT-OPTIONS : s_vkont FOR fkkvkp-vkont. "Contract Account
    SELECT-OPTIONS : s_ktokl FOR fkkvkp-ktokl. "Debtor Type
    SELECT-OPTIONS : s_sparte FOR ever-sparte.  "Division
    SELECT-OPTIONS : s_vertra FOR ever-vertrag. "Contract
    SELECT-OPTIONS : s_budat FOR erdk-budat.   "Invoice Date
    SELECT-OPTIONS : s_netto FOR dberchv-nettobtr."Billing Amount
    SELECT-OPTIONS : s_abrm FOR abc.               "Consumption Value
    SELECTION-SCREEN: END OF BLOCK b1.
    need response asap.
    Thanking you.
    Regards Surya Ramireddy

    HI,
    You can use as many Select-options in the select statment,
    Select XXXX yyyy from TABLE where FIELD In S_FIELD1 and
    FIELD2 In S_FIELD2.
    Regards
    Sudheer

  • Mandatory Select-options field problem

    Hello Gurus,
    I have the below scenario:
    In my Z report I am having a select-options for material selection(s_matnr) on selection screen and that is a mandatory field.
    But when the user tries to enter the multiple single values by pressing the arrow icon present near the select-option it gives an error message " Fill in all the required entries "
    So the problem is I cannot enter the multiple single values in select-options until and unless I fill s_matnr-low. Once I fill s_matnr low then its allowing to enter multiple standard values.
    And as per the requirement the user must be able to enter the multiple single values in s_matnr even if s_matnr-low is not populated.
    Is this the standard functionality of SAP or there is some way out of it?
    <removed_by_moderator>
    Thanks in advance.
    Edited by: Julius Bussche on May 8, 2009 7:59 AM

    Hi Sachin,
    Remove the obligatory addition from the declaration of the select-option....
    see the example code below .... it will help you resolve your issue for sure.....
    TABLES : scarr, sscrfields. " Tables sscrfields is a must to be declared in your code...
    SELECT-OPTIONS : carrid FOR scarr-carrid.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name CS 'CARRID'.
          screen-required = 2.                " though obligatory is not mentioned it will give you tick mark
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN.
      IF sscrfields-ucomm = 'ONLI'.
        IF carrid IS INITIAL.
          CLEAR sscrfields.
          MESSAGE 'Fill in all required entries' TYPE 'E'.       " once the user press F8 then only this error
    " message will be displayed
        ENDIF.
      ENDIF.
    Regards,
    Siddarth

  • Cfif select option value problem

    I have a form with a dropdown box asking users to select
    where they
    heard about my site. The completed form sent to me via email.
    The dropdown is optional so if they don't select it I would
    like nothing
    to be returned in the email.
    The first option reads "I heard about you from" - I've tried
    <option
    value> <option value=""> and even <cfselect>
    with various options but I
    can't get it to work.
    This is what I have for the email:
    <cfif
    isdefined("form.referral")><cfoutput>#form.senderFirst#
    heard
    about you from #form.referral#</cfoutput></cfif>
    This is what I have for the select options:
    <select name="referral">
    <option value="">I heard about you
    from...</option>
    <option value="Google">Google</option>
    <option value="Yahoo!">Yahoo!</option>
    <option value="Ask">Ask</option>
    <option value="MSN">MSN</option>
    <option value="a friend">A friend</option>
    <option value="somewhere else">Somewhere
    else</option>
    </select>

    Radio buttons and checkboxes are the only form elements that
    do not have a default value, so the others will always be defined.
    <cfif IsDefined ("form.senderPhone") AND
    Len(Trim(FORM.senderPhone)) GT 0>
    <p>Phone:
    <cfoutput>#form.senderPhone#</cfoutput></p>
    </cfif>
    <cfif IsDefined("form.senderMessage") AND
    Len(Trim(FORM.senderMessage)) GT 0>
    <p>Message:
    <cfoutput>#ParagraphFormat(form.senderMessage)#</cfoutput>
    </p>
    </cfif>
    Probably a more elegant way to do this but I can't think of
    it right now.
    <cfparam name="FORM.webSiteDesign" default="no">
    <cfparam name="FORM.graphicDesign" default="no">
    <cfparam name="FORM.logoDesign" default="no">
    <cfif FORM.webSiteDesign EQ "yes" OR FORM.graphicDesign EQ
    "yes" OR FORM.logoDesign EQ "yes">
    <p>
    Interested in:<br>
    <cfif FORM.webSiteDesign EQ "yes">
    webSiteDesign <br>
    </cfif>
    <cfif FORM.graphicDesign EQ "yes">
    graphicDesign<br>
    </cfif>
    <cfif FORM.logoDesign EQ "yes">
    logoDesign<br>
    </cfif>
    </p>
    </cfif>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "ryansebiz" <[email protected]> wrote in
    message news:[email protected]...
    > dempster wrote:
    >> Why not use something like <option value="X">
    and then test this way:
    >>
    >> <cfif isdefined("form.referral") AND
    form.referral NEQ "X">
    >> <cfoutput>#form.senderFirst# heard about you
    from #form.referral#</cfoutput>
    >> </cfif>
    >
    > Thanks dempster that worked!
    >
    > Now I'd like to be able to do the same thing to a phone
    text box, a few
    > checkboxes and a textarea.
    >
    > None of the code below works - they all return messages
    (i.e. "Phone:"
    > "Interested in:" and "Message:") even if that field
    isn't filled out.
    > I've tried several different variables with no success.
    >
    > My questions are:
    >
    > 1. Phone - How can I write the cfif so the "Phone:"
    doesn't appear in
    > the email if a phone number isn't entered?
    >
    > 2. Checkboxes - The problem here isn't with the boxes
    themselves, but
    > with the "Interested in. Currently I have it set to
    "WebSiteDesign". The
    > obvious problem here occurs when they check another box,
    such as
    > "GraphicDesign". I've tried OR statements with no
    success. How can I
    > write a cfif for the exclusion of "Interested in" in the
    email if no
    > checkboxes are selected?
    >
    > 3. Textarea - What do I need to change in order for the
    email not to
    > display "Message:" if no message is entered?
    >
    > Here's the code:
    >
    > PHONE
    >
    > <!---Appears in the email--->
    >
    > <cfif IsDefined ("form.senderPhone")>
    > <p>Phone:
    <cfoutput>#form.senderPhone#</cfoutput></p>
    > </cfif>
    >
    > <!---Appears on the page--->
    >
    > <cfinput type="Text"
    > name="senderPhone"
    > message="Please enter your area code and phone number."
    > mask="999-999-9999"
    > validate="telephone"
    > validateat="onsubmit,onserver"
    > size="30"
    > maxlength="16">
    >
    >
    >
    >
    > CHECKBOXES
    >
    > <!---Appears in the email--->
    >
    > <cfif IsDefined("form.webSiteDesign")>
    > <p>Interested in:</p>
    > </cfif>
    >
    > <ol>
    > <cfif isdefined("form.webSiteDesign")>
    > <li>Web site design</li>
    > </cfif>
    > <cfif isdefined("form.graphicDesign")>
    > <li>Graphic design</li>
    > </cfif>
    > <cfif isdefined("form.logoDesign")>
    > <li>Logo design</li>
    > </cfif>
    > </ol>
    >
    >
    > <!---Appears on the page--->
    >
    > <p class="boxes">
    > <cfinput type="checkbox" name="webSiteDesign"
    value="yes">
    > Web site design</p>
    >
    > <p class="boxes">
    > <cfinput type="checkbox" name="graphicDesign"
    value="yes">
    > Graphic design</p>
    >
    > <p class="boxes">
    > <cfinput type="checkbox" name="logoDesign"
    value="yes">
    > Logo design</p>
    >
    >
    >
    >
    > TEXTAREA
    >
    > <!---Appears in the email--->
    >
    > <cfif IsDefined("form.senderMessage")>
    > <p>Message:
    >
    <cfoutput>#ParagraphFormat(form.senderMessage)#</cfoutput></p>
    > </cfif>
    >
    >
    > <!---Appears on the page--->
    >
    > <textarea name="senderMessage" cols="44" rows="6"
    wrap="virtual">
    > </textarea>

  • Search help for A field in select option which doesnt have search help in c

    u have table in QM which is QMFE in whihc field FECOD which doesnt have search help , but my requirement is that in select option in report to have users to see its search help, anyone there to help me

    Hi sridhar loganathan,
    For this goto SE11 and create a ZFECOD Search help for that field. In Defination Tab enter table name
    QMFE and Enter Z_F4_FECOD_EXIT in Search help Exit.
    Then create a FM in SE37 as Z_F4_FECOD_EXIT under a FG. And then write code as follows for example: 
    FUNCTION Z_F4_REG_EXIT.
    ""Local Interface:
    *"  TABLES
    *"      SHLP_TAB TYPE  SHLP_DESCR_TAB_T
    *"      RECORD_TAB STRUCTURE  SEAHLPRES
    *"  CHANGING
    *"     VALUE(SHLP) TYPE  SHLP_DESCR_T
    *"     VALUE(CALLCONTROL) LIKE  DDSHF4CTRL STRUCTURE  DDSHF4CTRL
      TYPES: begin of ty_code,
              dam_code type  QMFE-FECOD ,
            end of ty_code.
      DATA : tw_code type ty_code,
             ta_code type table of ty_code.
       IF  "callcontrol-step <> 'SELONE' AND
            callcontrol-step <> 'SELECT' AND
            callcontrol-step <> 'DISP'.
          EXIT.
        ENDIF.
       IF callcontrol-step = 'SELECT'.
          CALL FUNCTION 'F4UT_PARAMETER_ALLOCATE'
            EXPORTING
                 PARAMETER         = 'FECOD'
            TABLES
                 SHLP_TAB          = shlp_tab
                 RECORD_TAB        = record_tab
            CHANGING
                 SHLP              = shlp
                 CALLCONTROL       = callcontrol
            EXCEPTIONS
                 OTHERS            = 3.
       ENDIF.
       IF callcontrol-step = 'DISP'.
    Get the Region
          CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
             EXPORTING
                  PARAMETER         = 'FECOD'
                  FIELDNAME         = 'FECOD'
             TABLES
                  SHLP_TAB          = shlp_tab
                  RECORD_TAB        = record_tab
                  RESULTS_TAB       = ta_code
             CHANGING
                  SHLP              = shlp
                  CALLCONTROL       = callcontrol
             EXCEPTIONS
                  PARAMETER_UNKNOWN = 1
                  OTHERS            = 2.
           IF SY-SUBRC = 0.
              SORT TA_CODE BY DAM_CODE.
    Deleting duplicate damage codes in Internal Table ta_code
              DELETE ADJACENT DUPLICATES FROM TA_CODE COMPARING DAM_CODE.
    Passing changed Internal table to FM
              CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
              EXPORTING
                 PARAMETER         = 'REGION'
                 FIELDNAME         = 'REGION'
              TABLES
                 SHLP_TAB          = shlp_tab
                 RECORD_TAB        = record_tab
                 SOURCE_TAB        = ta_code
              CHANGING
                 SHLP              = shlp
                 CALLCONTROL       = callcontrol
              EXCEPTIONS
                 PARAMETER_UNKNOWN = 1
                 OTHERS            = 2.
           ENDIF.
       ENDIF.
    ENDFUNCTION.
    Revert me for any clarifications.
    Regards,
    Suneel G.

  • Select-options ALV problem

    Hello @all,
    I want to make reporting in webdynpro ABAP. I have one Webdynpro component for this. For this I have see many tutorials. But in all the select-options and alv are on one view. i want to make it on two views. Has anybody an tutorial for this or an idea how i can do this easily.
    On one view i have my select options implemented with one container. Now I want to make the ALV table, but i want display the alv on a other site, not under the select options.
    Anybody an idea how i can do this.
    Thanks and regards
    Chrisp

    Hi,
    You can proceed as follows:
    1.Create select options in one view and ALV table in other view.
    2.since its reporting you might be having some button like SEARCH  ,once the user
       enters the  data in the selection screen he clicks on  the SEARCH  button .
    3.In the action handler of the SEARCH button ,get the data from based on the selection criteria 
        and  store that value   in component controller attribute.(create an attribute in comp controller level)
    4.Create an outbound plug for  selection screen view and inbound plug for the ALV table View .
    once you get the data ,based on selection criteria, fire the outbound plug in action handler of the button.
    5.now in the second view bind the ALV table with  data which was stored in the component controller level.
    Priya

  • Select options validation problem

    I have to retrive some data for range of  p.document numbers.for this
    I have declared a select option for p,document number ekko-ebeln.
    when Im trying to retrive data from
    ekko with some condions..
    I have only one record for the specified p.document number(0030).even though im givng something like abc in select -oprions low...its displaying that paritcular records belonging to p.docnum 0030 is not satisfying its showing the result.
    please let me know the sol..its urjent

    Not sure if this is causing your issue, but I suggest you change your code as indicated below:
    SELECT ebeln
      INTO TABLE t_ekko
      FROM ekko
      WHERE ebeln IN s_ebeln
      AND bstyp EQ 'K'
      AND ( bsart EQ 'KW'  OR bsart EQ 'KM'  ). "<<< add brackets to group  
    Your current code is logically the same as:
    SELECT ebeln
      INTO TABLE t_ekko
      FROM ekko
      WHERE ( ebeln IN s_ebeln AND bstyp EQ 'K' AND bsart EQ 'KW' )
              OR ( bsart EQ 'KM'  ).
    I don't think this is what you would want.
    Andrew

  • Deactivating the select options (strange)

    Hi all,
    Please tell me how to deactivate the select options
    arrow.In the screen after select options-high there is an arrow to specify ranges etc.I want to deactivate that arrow.Is it possible??
    regards
    chandu

    Use the NO-EXTENSION
    report zrich_0002.
    tables: mara.
    select-options: s_matnr for mara-matnr<b> NO-EXTENSION</b>.
    Regards,
    Rich Heilman

  • Multiple strange problems have arisen at once...

    Hi there,
    I bought my Macbook Pro in December 2010 for daily use at university and have never had a single problem with it. In the last two weeks, however, some unusual things have been happening throughout various programs with no explanation.
    All components of iWork 09 (running stable until two weeks ago) started to 'quit unexpectedly' when I attempted to launch them. Logic Pro 9 (which has also been running stable until two weeks ago) will crash when opening certain projects - none of which are particularly CPU-intensive - or may crash during general use. VLC playback may freeze intermittently on every file but in general will not crash. iTunes may do the same when looking at the 'Get Info' window. Finally, the 'Trash' started asking to immediately delete items dragged onto it rather than 'hold' them like it regularly would. Reinstalling all of the above has had no effect and using Disk Utility has also had very little benefit...
    I realise it would be incredibly coincidental for everything to go wrong at once so assume they are linked somehow and doubt I've found every problem yet. Unfortunately I'm no expert with OSX as this is my first Apple product bar an iPod. Would anyone be able to offer some insight or advice?
    Thanks in advance and sorry for the long post...!

    Just completed the verify and repair but it thinks the drive is ok. I've since restarted in the hope that it had done something but the problems still remain...!

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • How to set a select option's item as invisible (using a method code)

    Hi there,
    I need to hide parameters and select option fields, but Iu2019m using the select_option component to add all items to the layout using just one View Container Element.
    I could use to hide the View Container Element setting the property visible, but I need to hide fields with certain conditions. I also could add one View Container Element for each select option, but I have many... I wish I could make in other way.
    Iu2019ve checked the Definitions of the Interface IF_WD_SELECT_OPTIONS  and the Ulli Hoffmannu2019s book and I have found no help at all.
    Thanks in advance,
    Filipe Torres
    Edited by: Filipe Torres on Sep 15, 2008 12:34 AM

    Thank you, this helps but will solve just part of my problem. I'm using many views and to pass the values from those select options and parameters I just declare them in the first view... The other answer helps me more that shows how to remove one element. I was looking for a hide feature and not remove, but seems that I have to remove.

  • Disable the select-options dynamically based on value selected in listbox

    Hi friends,
    I have a peculiar problem in my program.
    I have a list box with two values.
    1) With Ref to Reservation No.
    2) Production order.
    I am doing the object for Transfer Posting ( Similar to MIGO).
    The contents of the listbox here are acting as the label to my select-options.
    I have two select-options in my program.
    1) Reservation No (s_rsnum for rsnum)
    2) Production Order (s_porder for aufnr)
    In runtime, based on the label selected in the listbox, the corresponding select-option should be in visible mode.
    for eg: if i select "With ref to Reservation No" S_rsnum should be enabled and vice-versa.

    Hi,
    here an example with listbox:
    TABLES: MARA.
    PARAMETERS: P0 DEFAULT 'KAUF' LIKE MARA-MTART AS LISTBOX VISIBLE LENGTH 8 USER-COMMAND DUMMY.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID DI1.
    SELECTION-SCREEN: SKIP 3.
    SELECT-OPTIONS: S_MATKL FOR MARA-MATKL MODIF ID DI2.
    AT SELECTION-SCREEN OUTPUT.
      IF P0 = 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
      IF P0 <> 'KAUF'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 EQ 'DI1'.
            SCREEN-ACTIVE      = '0'.
            SCREEN-INPUT       = '0'.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 EQ 'DI2'.
            SCREEN-ACTIVE      = '1'.
            SCREEN-INPUT       = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    use your own listbox in If-Clauses.
    Regards, Dieter

  • Read Screen values in Select options

    Hi Experts,
                  I am using FM  'DYNP_VALUES_READ' for reading the Screen values. The problem is, this FM runs fine for parameters where single value is returned but in case of Select-options where i have ranges, How to use this FM?
    Help will be appreciated
    Regards
    Sourabh

    Hi ,
    Thanks for your valuable inputs.
    I have acheived my requirements with FM 'DYNP_VALUES_READ'  itself.
    Here is how i have acheived this. I have passed both LOW and HIGH in the internal table it_fieldvalues.As a result i got both the values of the ranges.
    REFRESH it_fieldvalues.
      it_fieldvalues-fieldname = 'S_AEDAT-LOW'.
      APPEND it_fieldvalues.
      CLEAR it_fieldvalues.
      it_fieldvalues-fieldname = 'S_AEDAT-HIGH'.
      APPEND it_fieldvalues.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                         = sy-repid
          dynumb                         = sy-dynnr
        TRANSLATE_TO_UPPER             = 'X'
      REQUEST                        = ' '
      PERFORM_CONVERSION_EXITS       = ' '
      PERFORM_INPUT_CONVERSION       = ' '
      DETERMINE_LOOP_INDEX           = ' '
        TABLES
          dynpfields                     = it_fieldvalues
    EXCEPTIONS
       invalid_abapworkarea           = 1
       invalid_dynprofield            = 2
       invalid_dynproname             = 3
       invalid_dynpronummer           = 4
       invalid_request                = 5
       no_fielddescription            = 6
       invalid_parameter              = 7
       undefind_error                 = 8
       double_conversion              = 9
       stepl_not_found                = 10
       OTHERS                         = 11
      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
    Sourabh

  • Come on abapers.....n have ur points

    Hi all,
    I m trying to use at cursor-selection in module pool. Some buddy suggested me to use, function code "CS" and function type "S" for fields..
    but how can we define function codes for fields... it's strange...
    Ples let me know in simple ur written language, demo of at cursor-selection pleas.
    <b>have ur points.</b>
    cheers.
    [email protected]

    hI....
    Calling Modules after Cursor Selection
    You can specify that a module should only be called if the cursor is positioned on a particular screen element. To do this, use the statement
    <b>MODULE <mod> AT CURSOR-SELECTION.</b>
    The module <mod> is called whenever the function code of the user action is CS with function type S. If you use this statement,<b> it is best to assign the function code CS to function key F2. This also assigns it to the mouse double-click.</b>
    The module is called in the sequence in which it occurs in the flow logic. It does not bypass the automatic input checks. Data is transported from screen fields in the order in which it is defined by the FIELD statements. The function code is empty, and neither SY-UCOMM nor the OK_CODE field is affected. You can also combine this MODULE statement with the FIELD statement:
    <b>FIELD <f> MODULE <mod> AT CURSOR-SELECTION.</b>
    <b>Reward if Helpful</b>

  • Setting screen attributes for select-option in subscreen

    Hello SDN Community,  I have researched this extensively in forums and found much helpful information in getting the select-option working in a subscreen.  Also found information that discussed using standard AT SELECTION-SCREEN statements to process the sub-screen with. 
    I encountered problems when that from the LOOP AT SCREEN within the AT SELECTION-SCREEN OUTPUT,  I set the INPUT/OUPUT attributes to zero, the field was still open for input when it displayed.  For when I do this on other fields of my screen, they are "greyed out".
    Has anyone any experience setting field attributes from within loop at screen for embedded select-option subscreen?  Would appreciate any insight you might have.
    Thank you,
    Dean Atteberry.
    P.S.- I put this thru the debugger and I can see the INPUT and OUTPUT attributes getting changed.  But when displays, it is like the change didn't happen.
    Full description of my processing below...
    I have a screen with four radio-buttons.  Under the first radio-button is my embedded subscreen with one SELECT-OPTION for AUFNR.  Under the other three radio-buttons are single fields declared regular way in main screen.
    In my PBO of main screen I have loop at screen that enables/disables INPUT and OUPTUT attributes based on which radio-button is selected.  This prevents confusion from user entering values in fields other than the one the radio-button is selected for.
    For my embedded select-option subscreen, I have an AT SELECTION-SCREEN OUTPUT statement in which I have a LOOP AT SCREEN.  Within that, based on radio-buttons, I either enable or disable the INPUT and OUTPUT attributes for the S_AUFNR-LOW and S_AUFNR-HIGH fields.
    Edited by: Dean Atteberry on Mar 25, 2009 4:39 PM

    >> I think that you are trying to change select options within main screen, whereby it should be
    >> changed in PBO of that subscreen. You said you do it in AT SELECTION-SCRREN OUTPUT which
    >>  will be only applicable for selection screen (I guess your main screen here). Do loop at screen in
    >>  PBO module of this subscreen not in PBO of the selection screen and see if that helps.
    Hi Marcin,  thank you for your reply.  My "main screen" is not my "selection screen".  Please allow me to further clarify...
    My "main screen" has four radio buttons with a subscreen area under the first one and single fields under the others.
    My "subscreen" is auto-generated by Selection-Screen and Select-Options statements which are in my TOP module.
    I call my auto-generated select-option subscreen in my PBO with...
         call subscreen sca_ordr including sy-repid scr_0121.
    and in my PAI with...
         call subscreen sca_ordr.
    In order to do LOOP AT SCREEN for my system-generated select-option subscreen, I use the AT SELECTION-SCREEN OUTPUT event in which to put my loop. 
    When I walk thru this in the debugger, I can see it setting INPUT/OUTPUT fields to zero, but when the screen displays, there are no changes to my subscreen....  Fields should be "greyed out" instead they are open for intput.
    Doing my best to accurately describe in as few words as possible.  Thank you for your ideas!
    Dean.

  • Splitting Select Options

    Hi All,
    I am facing a problem in splitting the Select options for my screen. What I have to do is I am expecting the User to enter around 5000 records in the Select Options. I have to use 2000 records at a time for processing, which means three set of records of 2000, 2000 and 500.
    Can you please tell me how can this be achieved??

    Are you sure that even reducing the SELECT-OPTION to package of 2000 will be enough, in some database the system will raise an error related to a too large SQL statement.
    Splitting an internal table (as SELECT-OPTIONS are) is very easy. (see bellow)
    But be aware that some records may be exclusions, like :
    - SIGN = 'E' and OPTION is one of the positive operator like EQ, BT or CP
    - SIGN = 'I' and OPTION is one of the negative operator (every operator except the three previous)
    Those records must be in every package of selection
    so loop at select-options
    - put the exclusion in a first internal table
    loop once again at select-options excluding the records of the previous loop
    - append to a temporary internal table
    - when number of record equal maximal number allowed for a SQL SELECT minus the number of record in the first internal table, execute the SELECT, clear the temporary internal table
    To bypass this problem
    - don't use those record to build the partial select-options but delete records after select from database
    - You could(should) consider restricting select-options allowed options ([SELECT_OPTIONS_RESTRICT|http://wiki.sdn.sap.com/wiki/display/Snippets/RestrictSelectOptions]) so you wont have to execute this and only have to split an internal table with statement like [APPEND|http://help.sap.com/abapdocu_70/en/ABAPAPPEND.htm] [LINES OF jtab [FROM idx1] [TO idx2] |http://help.sap.com/abapdocu_70/en/ABAPAPPEND_LINESPEC.htm#&ABAP_ALTERNATIVE_3@3@]
    Regards,
    Raymond

Maybe you are looking for

  • IPod not showing up in source list

    A friend of mine wanted me to revamp her iPod with my music, erasing all that she had. Problem is, iTunes isn't seeing the iPod. My computer is. It's coming up as Mass Storage Device, and not showing up in the source list on iTunes. And when I opened

  • LOB Storage in Designer 9i

    Hi, In the help for Designer 9i I found a note explaining the different parameters which can be set in a LOB storage clause. Does anybody know where these parameters can be set for a given table implementation? Regards Bernd

  • OIM 11g Workflow Execution Error

    Hi All, I have created a workflow and had registered into my env. Now while making a request, every time the request is failing stating the below mentioned error. IAM-2050014:An error occurred while initiating approvals for request oracle.iam.platfor

  • Error running Web Services in DEMO : User is not Authorized error

    Hi all, We created a Web Service in our DEMO installation of ERP9 Tools 8.97, Database Local SSE (User - DEMO, Password-DEMO). The Web Service is using JDE Vanilla BSFN - B0100021 - Formatted Address and created through JDeveloper using JDE BSSV tool

  • Dispute Amount and Dispute Date

    Hi All I am actually looking for Dispute amount and dispute date fields in BI AR . Can somebody please let me know the exact fields for these two in concerned AR BI table? Regds Mano