Select Dynamic for Select Option

Hi. Good Night.
I have the following screen of selection for a user. I need create a Select Dynamic for the table ANLA, Having in count the values selected by the user in each option of the screen.
SELECTION-SCREEN BEGIN OF BLOCK SEL WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
               BUKRS     FOR ANLA-BUKRS,
                ANLKL    FOR ANLA-ANLKL,
                KOSTL    FOR ANLZ-KOSTL,
                GDLGRP FOR ANLA-GDLGRP,
                INVNR     FOR ANLA-INVNR.
SELECTION-SCREEN END OF BLOCK SEL.
How can do this?
Thank in advance for your help.
Regards.

This is the error:
Err.tmpo.ejec.         SAPSQL_WHERE_ILLEGAL_VALUE
Excep.                 CX_SY_DYNAMIC_OSQL_SEMANTICS
Fecha y hora           17.08.2010 10:05:08
This is my source code.
SELECTION-SCREEN BEGIN OF BLOCK SEL WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: SOCIEDAD  FOR ANLA-BUKRS, "
                CLASEAF   FOR ANLA-ANLKL, "
                CENCOST   FOR ANLZ-KOSTL,"
                CARRESP   FOR ANLA-GDLGRP,
                NUMINV    FOR ANLA-INVNR.
SELECTION-SCREEN END OF BLOCK SEL.
DATA: l_lines(72) TYPE c.
itab for fields selection
DATA: lt_condition LIKE TABLE OF l_lines(72),
      lt_fields    LIKE TABLE OF l_lines(72).
DEFINE m_add_fields.
  l_lines = &1.
  append l_lines to lt_fields.
END-OF-DEFINITION.
m_add_fields 'BUKRS'.
m_add_fields 'ANLK'.
m_add_fields 'GDLGRP'.
m_add_fields 'INVNR'.
*bukrs
l_lines = 'BUKRS in SOCIEDAD'.
APPEND l_lines TO lt_condition.
ANLK
l_lines = 'AND ANLK in CLASEAF'.
APPEND l_lines TO lt_condition.
Select statement
SELECT INVNR ANLKL SERNR ANLN1 TXT50 AKTIV ZUGDT
       BSTDT LIFNR LIEFE ORD41 ORD42 ORD43 AIBN1
       AIBN2 VMGLI FLURN
INTO TABLE it_tabla
FROM ANLA
WHERE (lt_condition).
Thank in advance for your help.
Regards

Similar Messages

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • *Can I pass default Selection dynamically for Drill Down Charts*

    Hi
    I am having Charts with Drill Down tab and I am currently having to select a value for the Default Selection Combo Box while saving the chart.
    I want to be able to update this default selection depending upn data coming from the XML / Webservice. Is there a way to update the Default Selection dynamically ?
    Please let me know if anyone has come across this.
    Thanks,
    Rahul
    Edited by: Rahul Modey on Sep 2, 2008 5:15 PM

    Hi Rahul,
    Drill Down > Default Selection > Series/Item may not be filled dynamically.  They must be selected manually.
    Good Luck.

  • How to determine package size dynamically for select - endselect statement in ABAP

    Hi All,
    I was using select- edselect with package size but i have hard coding the package size. Can any one tell me the the process to determine dynamic package size so that i can use in parallel processing.

    Hi,
    If you are looking to determine or set the value of package size dynamically then use below code for reference.
    DATA: itab TYPE TABLE OF spfli,
           wa like LINE OF itab,
           n    TYPE i.
    n = 10.
    SELECT carrid connid
    FROM   spfli
    INTO   CORRESPONDING FIELDS OF TABLE itab
    PACKAGE SIZE n.
       LOOP AT itab INTO wa.
         WRITE: / wa-carrid, wa-connid.
       ENDLOOP.
    ENDSELECT.
    If you are concerned about the performance then either use SELECT with OPEN CURSOR and CLOSE CURSOR.
    Let me know if it helped?
    Regards,
    Zuber

  • How to delete selection criteria for select-option in program

    Hi all,
    I have a selection screen with few select-options. the question is if i inserted some value at the select option, how can i delete the selection criteria in the program ? example if i have 3 radio button A,B,C. if I click rb A, select option A1 will be active and other 2 select oprtion B1 and C1 will dim, when I click rb B, the value at select option A1 will be deleted and dim and at the same time, B1 will be active, C1 will dim. when i click rb C, the value at A1 and B1 will be cleared if there is any value in it and then A1 and B1 will dim but C1 will be active. I've found a way to make the select option active n inactive when depending on which rb i click, thanks to a forummer here but to clear the value when the select-otpion is inactive?
    Thanks for any help.

    Hi
    See the sample code and do accordingly
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Selection Cretria for Selection screen

    Hi Experts,
                        In Report selection Screen,if user click on variable selection option(F4 query).Then data listed  in Ascending order and i need to change it to Descending order. Please any one can help me to fix this issue..
    For Example
    My Selection screen has an input for Date variable.If user clicks on selection option its listing from earliest date to todays date,but i need it in reverse todays date to earliest date(Current list is 01.01.2000 to 01.01.2009 and Required List is 01.01.2009 to 01.01.2000)
    Thanks in Advance
    Yours
    Bala.

    Hi,
    If I got your problem, not sure but the following setting should work in the Query.
    Click on the Characteristic, on which you are providing Input Prompt Variable.
    You can get to see Properties Window,  Refer to "Display" Tab - Sorting
    1.Select the Characteristics from the dorp down list for "Sort Characteristics"
    2.Select "Key" from Sort by list.
    3.Give "Sort Direction" as Descending.
    Hope the above settings will be of help.
    Regards,
    Yaseen

  • [announce] tool for selecting network from console (netcfg-based)

    Hi all!
    I'm happy to announce new 'wifi-select' tool for selecting networks "in real-time" (in NetworkManager manner). I heard on the forums there were requests for such a tool from the users of netcfg. The tool is convinient for use in wifi-cafe or another places you are visiting first (and maybe last) time. Then you don't need to create the file-profile for a new network, just type 'sudo wifi-select eth1' and choose the network you need.
    The tool is currently packaged and available in AUR (yaourt -S wifi-select).
    It works as follows:
    - parses 'iwlist scan' and presents list of networks along with its security settings (wpa/wep/none) using 'dialog'.
    - if user selects network with existing profile -- just use this profile to connect with 'netcfg'.
    - if user selects a new network (for example network from wifi-cafe he currently visited), net-select automatically generates new profile with corresponding $SECURITY and asks for the key (if needed). It uses DHCP as $IP by default.
    - then, if connection succeeds, profile is saved for later usage.
    - if connection fails, user is asked if he/she wants to keep generated profile for further usage (for example to change $IP to static or adjust some additional options).
    Parsing of 'iwlist' output is done using AWK script (this seems to be clearer than grep+sed in my case). I've put it under /usr/lib/network (where netcfg .subr-files are located).
    I sent the scripts to James Rayner aka iphitus (maintainer of netcfg), he was interested and suggested to package the tool in AUR and if there would be some attention and interest -- he would package it in extra.
    So, I'm waiting for your feedback and questions.
    [crossposted in 'Community contributions': http://bbs.archlinux.org/viewtopic.php?id=63973]
    Thank you!
    With best regards,
    Ivan N. Veselov.
    Last edited by dying_sphynx (2009-01-28 11:03:30)

    Don't cross-post. 
    http://bbs.archlinux.org/viewtopic.php?id=63973

  • Dynamic Data selection for the Filed entered in Selection Screen.

    Hi All,
    My requirement is as follows.
    1 select options in Selection Screen for MATNR (SO_MATNR)
    1 parameter field in Selection Screen for entering a MARC field name. (P_FIELD)
    Now the Program has to display the values of this Field (Entered by the user as P_FIELD) from MARC table, where MATNR is in SO_MATNR.
    I understand that this would require a dynamic select statemant but could not figure out the correct way.
    Please help me with the code for this requirement
    Regards,
    Sunil

    Not sure If I understand correct, but here's an example on what I think you are looking for. I don't have an ECC system here (we're on CRM), but you should adept it to your tables and fieldname.
    TABLES: but000.
    DATA: lt_feld TYPE TABLE OF name_feld,
          lw_feld LIKE LINE OF lt_feld.
    SELECT-OPTIONS: so_part FOR but000-partner.
    PARAMETERS: field TYPE name_feld DEFAULT 'MC_NAME1'.
    SELECT (field) FROM but000
      INTO TABLE lt_feld
      WHERE partner IN so_part.
    LOOP AT lt_feld INTO lw_feld.
      WRITE:/1 lw_feld.
    ENDLOOP.

  • Dynamic bandwidth selection for PPPoE over Ethernet/VLAN

    Hello all, hope you are doing great.
    I'm planning to deploy PPPoE Server (Cisco Router 7609) for a ISP. This ISP will provide Internet connection for customer over Ethernet.
    I have to provide a solution to assign bandwidth to each customer by RADIUS and I find some clues that Dynamic Bandwidth Selection (DBS) should be the answer. Unfortunately, DBS only support PPPoA or PPPoE over ATM.
    If you have any experience with equivalent function, please help me. Thank you very much.
    Regards,
    Hiep Nguyen.

    Hiep,
    I think I have figured this out.  Here is the test config on my PPPoE server:
    int lo1
      ip address 172.25.25.25 255.255.255.255
    ip radius source-interface Loopback1
    aaa new-model
    radius-server host 172.16.1.55 auth-port 1812 acct-port 1813 key cisco$$$
    aaa group server radius RADIUS-ACT
     server 172.16.1.55 auth-port 1812 acct-port 1813  
    aaa authentication login default group RADIUS-ACT local
    aaa authorization exec default group RADIUS-ACT local
    aaa accounting exec default start-stop group RADIUS-ACT
    aaa accounting delay-start
    aaa authentication ppp default if-needed group RADIUS-ACT local
    aaa authorization network default group RADIUS-ACT local
    aaa accounting network default start-stop group RADIUS-ACT
    aaa accounting update periodic 5
    bba-group pppoe global
     virtual-template 1
    interface fa0/1
     pppoe enable group global
     ip address 172.30.0.1 255.255.0.0
     no shut
    interface Virtual-Template1
     mtu 1492
     ip unnumbered FastEthernet0/1
     peer default ip address pool GLOBALPOOL
     ppp authentication chap
    ip local pool GLOBALPOOL 172.30.0.2 172.30.127.255
    policy-map POLICE-128K
     class class-default
        police 128000
    policy-map POLICE-512K
     class class-default
        police 512000
    Here are the attributes on the radius server, for a group the PPPoE customer belonged to:
    Service-Type = Framed
    Framed-Protocol = PPP
    cisco-avpair="ip:sub-policy-In=POLICE-128K"
    cisco-avpair+="ip:sub-policy-Out=POLICE-512K"
    Here is the show policy-map on the virtual-access interface the client connected on:
    sho policy-map int virtual-a 3
     Virtual-Access3
      Service-policy input: POLICE-128K
        Class-map: class-default (match-any)
          1000 packets, 1402000 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any
          police:
              cir 128000 bps, bc 4000 bytes
            conformed 799 packets, 1120198 bytes; actions:
              transmit
            exceeded 201 packets, 281802 bytes; actions:
              drop
            conformed 0 bps, exceed 0 bps
      Service-policy output: POLICE-512K
        Class-map: class-default (match-any)
          911 packets, 1137746 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any
          police:
              cir 512000 bps, bc 16000 bytes
            conformed 799 packets, 1136178 bytes; actions:
              transmit
            exceeded 0 packets, 0 bytes; actions:
              drop
            conformed 0 bps, exceed 0 bps
    I was able to generate enough traffic with ping to meet the exceed action in and have it drop packets.

  • When printing from web pagess, right margin cuts off print, cant seem to reconfigure. Frames select on print choices does not highlight for printing options. What will help?

    Using a Dell Dimension E310 with Windows XP and Dell photo 924 Print/Scan/Copier. When printing from web pages on the browser the right portion of the print is cut off. It appears that the "folders" frame on the left side of the page is always printing with the page, which cuts off the print on the right side of the main page frame by the width of the "folders" frame. When I select the print command, the choice for selecting a particular frame to print is on the drop down menu, but is not highlighted for use. We have had this problem with Firefox for some time. Printing from IE or Word, etc. does not produce the same problem. We like Firefox otherwise. What is the fix?

    You're right: most web pages do not use frames, so that option usually is not available.
    I don't know why a page that printed just the main content before would change to printing with useless sidebars. Can you try the site in Firefox's Safe Mode and see whether it prints/previews correctly there?
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that fix it? If so, the difference usually is caused by one of your add-ons. You can restart the regular way and disable all non-essential add-ons here:
    orange Firefox button ''or'' Tools menu > Add-ons
    In particular, check the Extensions category.

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • Option for selecting the GL indicator as optional

    Hi
      Am using  '0FIAR_C03' here the there is the field Special GL. I need to keep an option while executing the report/query for selecting either with or with out the special GL, if special GL is selected i need to fetch the records where special GL is not empty or else if not selected i need to select the records with Special GL is empty. How to design the query for the above future.
    Thanks
    Karthikeyan.L

    Hi karthikeyan,
    This can be done by a characteristic variable, if you want the user to input this.
    User should be putting in # to represent special GL is empty and exclude # for special GL is non empty.
    Naveen.A

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to assign search help using ovs for select options for ALV in web dynpr

    how to assign search help using ovs for select options for ALV in web dynpro

    Hi,
    refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
    and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
    Thanks,
    Chandra

Maybe you are looking for

  • SO from PO using idocs --same sap client

    Hello SAP Gurus, We need help with the following . The requirement is we need to create the Sales order from Purchase order using idocs within the same client . We created the partner profile of the customer and the vendor . Customer ---maintained an

  • How do I get rid of the spinning pinwheel on my macbook?

    How do I get rid of the spinning pinwheel on my MacBook? I'm assuming I need to clean it up, but not sure how.

  • Legacy Data Migration - Correct Order

    Can anyone tell me a relatively complete process for what order data has to be loaded into SAP? Some information I have, but would like confirmation, is: 1 a - SAP Org (Client)                      2     a - Chart(s) of Accounts                      

  • Bypass JAAS Login Module

    Hello together, we need to build a new call from oracle Forms to new JSP PAGE ( made in ADF). That means, we create a new HTTP Request from Forms and read the Request Parameters, such username and password in the called JSP Page. We are using JAAS Au

  • Photos App crashing repeatedly!

    My iPad has been crashing repeatedly whenever the enlarged black photo on the below is touched. The "white" pictures were merely edited for privacy. However, when I scroll from the picture directly left of the black one to the black one, it also cras