Select Query issue. a% and A % both should work.

hi,
I have to selet records from database table based on local variable values.
Loal variable - Lv.
If lv = 'a*' then i have to select all records which starts with a.
I have Replaced all occurences of *  with % and then  i have used a select query :
select F1 from <table>
into table <internal table>
where C1 like lv.
Now problem is this select query picks values which are like a% not like A%.
I want to select all values whether it starts with a or A.
How to proceed ?

hi,
Thanks for your reply.
But one problem.
You said :
Looks like your WHERE CLAUSE field C1 is a case sensitive field which means a and A* are treated differently. Build your query as WHERE C1 LIKE 'a%' OR C1 LIKE 'A%'.*
where class field C1 is Case senstive - What does it mean ? Can i change the field to make it case insensitve ?
Secondly, I may write conditon like you mentioned :  like a% or like A% but the problem is value is in variable lv.
And lv can contain Ab%  or aaB%. then your provided solution wont work.
Any other inputs ?

Similar Messages

  • Charging : haven't used my ipad for over 6 months and when I plug it to charge (wall charger) it just doesn't : any idea as to what the issue is and what I should do?

    Hello
    I haven't used my ipad for over 6 months and when I plug it to charge (wall charger) it just doesn't charge anymore : any idea as to what the issue is and what I should do?

    If the battery has been drained completely dry it will take 20 minutes or more for it to indicate that it is actully charging!

  • Urgent - I have written select query between loop and endloop, Ple help out

    Can any one help out me on this select query. I have written select query between loop and endloop. When I execute the program it will take too much time in this query. Please help me out. Its very urgent.
    LOOP AT l_i_invoices ASSIGNING <l_invoices>.
          CLEAR alv_wa.
          alv_wa-bukrs = <l_invoices>-bukrs.
          alv_wa-gsber = <l_invoices>-gsber.
          CLEAR l_instid.
          CONCATENATE <l_invoices>-belnr <l_invoices>-gjahr INTO l_instid.
          SELECT top_wi_id FROM sww_wi2obj INTO TABLE l_i_swwwihead
                  WHERE catid   = c_catid_business_object
                    AND instid  = l_instid
                    AND typeid  = c_typeid_invoice
                    AND removed = space
                    AND ( wi_rh_task = c_task_buyer_message
                       OR wi_rh_task = c_task_buyer_message2 ).
          IF sy-subrc = 0.
            <l_invoices>-flag = 'X'.
          ELSE.
            <l_invoices>-flag = ' '.
          ENDIF.
          MODIFY l_i_invoices FROM <l_invoices> TRANSPORTING flag
                                WHERE belnr = <l_invoices>-belnr
                                   AND gjahr = <l_invoices>-gjahr.
          APPEND alv_wa TO i_alv.
        ENDLOOP.
    Thanks in advance.

    Here is a way to solve this problem.
    Choose somewhere before this loop processing to use that select. Therefore, you'll need use FOR ALL ENTRIES <that_loop_table> clause, and in the WHERE condition you need to specify that same fields.
    This way, you will have an internal table with all data you'll need to check.
    Then, inside your loop statement, use the READ TABLE command with the clause WITH KEY field = value, to read that record and use the value found.
    Like this sample:
      SELECT bukrs lifnr umsks umskz augdt augbl zuonr gjahr belnr buzei
             waers xblnr blart gsber ebeln zfbdt zbd1t zlsch
      INTO TABLE tg_bsak
      FROM bsak
      FOR ALL ENTRIES IN tl_bkpf_sel
      WHERE bukrs EQ tl_bkpf_sel-bukrs AND
            lifnr IN s_lifnr AND
            augbl EQ tl_bkpf_sel-belnr.
    LOOP AT tg_bseg INTO wa_bseg.
        READ TABLE tg_bsak INTO wa_bsak WITH KEY bukrs = wa_bseg-bukrs
                                                 gjahr = wa_bseg-gjahr
                                                 belnr = wa_bseg-belnr
                                                 BINARY SEARCH.
    if sy-subrc = 0.
    * do something
    endif.
    ENDLOOP.

  • Simple Select query with 'where', 'and', 'between' clauses takes time

    Hi,
    I have a select query as below
    SELECT * FROM (SELECT a.*,ROWNUM currentStartRecord From (select ai_inbound.ai_inb_seq tableseq,'AI_INBOUND' tablename,'INBOUND' direction,ai_inbound.appl,ai_inbound.ai_date datetime,ai_inbound.ic_receiver_id pg_id,ai_inbound.ic_sender_id tp_id,ai_inbound.session_no,ai_inbound.ic_ctl_no,ai_inbound.msg_set_id msg_type,ai_inbound.appl_msg_ctl_no reference_no,ai_inbound.fg_version version,ai_inbound.msg_status status,ai_inbound.input_file_name,ai_inbound.output_file_name,ai_inbound.ack_file_name from ai_inbound where ai_inbound.appl = ? and ai_inbound.ai_date between ? and ? )a where ROWNUM <= 49)where currentStartRecord >= 0
    The above query takes longer time through application than expected when the date fields are passed whereas it works fine when no date fields are passed. We are using oracle9.2 version of the database. All the indexed columns and partitioned indexed columns are rebuild.
    Kindly let me know how can i tune up the query to improve the performance.
    Thanks

    Hi,
    I have a select query as below
    SELECT * FROM (SELECT a.*,ROWNUM currentStartRecord From (select ai_inbound.ai_inb_seq tableseq,'AI_INBOUND' tablename,'INBOUND' direction,ai_inbound.appl,ai_inbound.ai_date datetime,ai_inbound.ic_receiver_id pg_id,ai_inbound.ic_sender_id tp_id,ai_inbound.session_no,ai_inbound.ic_ctl_no,ai_inbound.msg_set_id msg_type,ai_inbound.appl_msg_ctl_no reference_no,ai_inbound.fg_version version,ai_inbound.msg_status status,ai_inbound.input_file_name,ai_inbound.output_file_name,ai_inbound.ack_file_name from ai_inbound where ai_inbound.appl = ? and ai_inbound.ai_date between ? and ? )a where ROWNUM <= 49)where currentStartRecord >= 0
    The above query takes longer time through application than expected when the date fields are passed whereas it works fine when no date fields are passed. We are using oracle9.2 version of the database. All the indexed columns and partitioned indexed columns are rebuild.
    Kindly let me know how can i tune up the query to improve the performance.
    Thanks

  • Regarding select query Issue

    Hi ABAPERS,
          I had written one written one 'select single' query to retrieve the data from PRPS table.
    but what the data was selecting for OBJNR (Object number)field based on PSPNR(WBS element) .
    That OBJNR values in the report is totally different from the database table OBJNR  values.How its possible
    I am not getting.So can anyone please help me regarding this...
    Thanks and Regards
    Deepa

    Hi deepa,
    Pass the values to the select query where clause as you can see the values in SE16 display.(This is external format)
    If a table field as conversion routine, then SAP dosplay some thing on screen and store some thing else in data base.
    To check conversion exit go to domain of that field. Here you can see the routine used.
    For example you can check domain MATNR. Externally it display with leading zeros. But internally it stores with out zeros.
    Thanks,
    Vinod.

  • .install files and how they should work

    hi
    i already looked up the wiki and the forum and found nothing realy related to this.
    i am able to set an .install script in the PKGBUILD, but i would like to know how it should work.
    i got an game that i would like to add to the AUR but the problem is that its not actually creating a hidden folder in home to save the settings and all.
    so i would like to move all the config files and ofcourse the save directory to a hidden home folder and link it to /usr/share/{game}.
    i know that i cant do that while building the package itself, but i would like to know WHEN this install script gets executet.
    in my opinion, this install script should do what i told above, move the files, link it to the destination.
    so, is there actually a site where i can lookup the install= command?

    thank you for that cerebral.
    but actually, you do know that just saying "use chmod and chgrp" would be enough?
    that is the second time you did a essential part of the work for me, if you repeat that to often, i will never learn
    back to topic:
    isnt giving write acces to directorys within /usr or /opt a very very ugly workaround?
    i mean, even if its not that easy to solve it otherwise...
    EDIT
    i played around a little bit with your tip of changing the group, but i came to a point where i am stuck.
    the starterscript itself just cd's into /opt/StarTrade(the game) and runs the, um... 'other' starterscript 'StarTrade'.
    the starter in the game directory contains the following lines:
    #!/bin/bash
    exec_path=`dirname $0`
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$exec_path $exec_path/engine.x86
    this is because the game itself got the fmod lib within the directory, as far as i heard because its to exotic or... um... whatever^^
    so, if you start this script you get the following messege:
    appstub.linux signal handler 11/opt/StarTrade/StarTrade: line 3: 21018 Speicherzugriffsfehler LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$exec_path $exec_path/engine.x86
    starting it from the pkg/ directory where you packet it WILL work, maybe because it is in my $HOMEspace, i dont really know
    EDIT2
    and it whont work if it is startet with the 'games' group, even if it is installed in $HOME
    EDIT3
    finaly it worked, i wrote a sript that backs up all "need write access" files to a backup/ directory and copys them to a .homedirectory, the only question is, "will it work on multi-user systems?"
    i cant test this now, i didnt even testet the pack itself because my "testdummy-of-choice" is currently offline, but thankyou for your help
    Last edited by Wesley (2007-10-15 15:31:24)

  • Ipod touch2nd gen.wi-fi and clock both not working is there connection as to why?

    ipod touch 2nd gen. wi-fi & clock both wot working is there a connection as to why?

    What do you mean by wifi not working?
    - Wifi grayed out
    - Can't see networks?
    - Get error message (incorrect password, can't join)?
    Have you tied resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears

  • IPhone 4s: Slide wifi is not selectable. Always gray and wifi does not work!

    i have Slide wifi is not selectable iPhone 4s. Always gray and wifi does not work.
    Help me!

    You most likely have a failure of the WiFi chip.
    Restore the phone as a new device.  If that doesn't solve your problem, you'll have to bring your phone to Apple for replacement.  If you are not within the warranty period, expect to pay $199 for out of warranty replacement.

  • Select query with group and sum

    Friends I have a table which has a list of item that are sold in many provinces and their selling price.
    EMP_TABLE
    item_code
    item_desc
    item_province
    item_selling_price
    Now I want a query which a row containing
    distinct item code ,item desc,province ,sum of item_selling_price for Ontario,sum of item_selling_price for British Columbia,sum of item_selling_price for Quebec
    Can anyone please tell me how to do it.
    thx
    m

    Hello
    It's always usefull to provide some test data and create table scripts etc, but does this do what you're after?
    create table dt_test_t1
    (item_code                     varchar2(3),
    item_desc                    varchar2(10),
    item_province               varchar2(20),
    item_selling_price          number(3)
    ) tablespace av_datas;
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province2',10);
    SQL> SELECT
      2     item_code,
      3     item_desc,
      4     SUM(DECODE(item_province,'Province1',item_selling_price,0)) province_1_total,
      5     SUM(DECODE(item_province,'Province2',item_selling_price,0)) province_2_total
      6  FROM
      7     dt_test_t1
      8  GROUP BY
      9     item_code,
    10     item_desc;
    ITE ITEM_DESC  PROVINCE_1_TOTAL PROVINCE_2_TOTAL
    ABC Item1                    10               20
    ABC Item2                    30                0
    ABC Item3                     0               30
    ABC Item4                    20               10
    ABC Item5                    10               20HTH
    David

  • Select Query on CDPOS and CHDHR

    Hi Expert,
    Can anyone help me on tuning the code below. The performance on this is really poor. I can't perform an innerjoin on this one sice <b>CDPOS</b> is a cluster table and <b>CHDHR</b> is a transparent table and also the internal table are indexed. I have run out of ideas how to improve its performance. Thanks Experts!!
    <u><b>code</b></u>
    * Message for Job Log                                 
    * Monitors the runtime at CDPOS.                            
      MESSAGE S000(ZV) WITH TEXT-011 SY-UZEIT.                  
    * Change document items
      SELECT objectid
             changenr
             value_old
             value_new
        INTO TABLE zcdpos_itab
        FROM cdpos
       WHERE objectclas = c_objectclas AND
             tabname    = c_tabname AND
             fname      = c_fname AND
             chngind    = c_chngind.
        COMMIT WORK.                                            
        IF sy-subrc = 0.
           DELETE ADJACENT DUPLICATES FROM zcdpos_itab COMPARING
                                        objectid odplant nwplant.
        ENDIF.
        IF zcdpos_itab[] IS NOT INITIAL.
    *     Message for Job Log                                    
    *     Monitors the runtime at CDHDR.                        
          MESSAGE S000(ZV) WITH TEXT-013 SY-UZEIT.             
    *     Change document header
          SELECT objectid
                 changenr
                 udate
                 utime
            INTO TABLE zcdhdr_itab
            FROM cdhdr
             FOR ALL ENTRIES IN zcdpos_itab
           WHERE objectclas = c_objectclas AND
                 changenr   = zcdpos_itab-changenr AND
                 change_ind = c_chngind AND
                     udate IN s_date.
           COMMIT WORK.                                          
           IF sy-subrc = 0.
            LOOP AT zcdpos_itab.                                
             READ TABLE zcdhdr_itab                             
                        WITH KEY objectid = zcdpos_itab-objectid.
             IF SY-SUBRC = 0.                                    
              change_itab-objectid = zcdpos_itab-objectid.     
              change_itab-udate    = zcdhdr_itab-udate.         
              change_itab-nwplant  = zcdpos_itab-nwplant.        
              APPEND change_itab.                                
             ENDIF.                                              
            ENDLOOP.                                            
           ENDIF.
        ENDIF.
    Best Regards,
    <b>   JP</b>

    Hello John,
    The FM is used to read the position of a changed document.
    Say for example if a sales order is changed in item level then u should use the FM
    <b>CHANGEDOCUMENT_READ_POSITIONS</b>
    Check this sample code:
    REPORT ZV_GET_LATEST_SO .
    DATA: BEGIN OF ITAB OCCURS 0,
            OBJECTCLAS TYPE CDHDR-OBJECTCLAS,
            OBJECTID TYPE CDHDR-OBJECTID,
            CHANGENR TYPE CDHDR-CHANGENR,
            USERNAME TYPE CDHDR-USERNAME,
            UDATE TYPE CDHDR-UDATE,
            UTIME TYPE CDHDR-UTIME,
            TCODE TYPE CDHDR-TCODE,
            TABNAME TYPE CDPOS-TABNAME,
            TABKEY TYPE CDPOS-TABKEY,
            FNAME TYPE CDPOS-FNAME,
            CHNGIND TYPE CDPOS-CHNGIND,
          END OF ITAB.
    TABLES: CDHDR,CDPOS.
    DATA: LT_CDHDR LIKE CDHDR OCCURS 0 WITH HEADER LINE,
    LT_CDPOS LIKE CDPOS OCCURS 0 WITH HEADER LINE.
    *REFRESH AUSG.
    CLEAR CDHDR.
    CLEAR CDPOS.
    CDHDR-OBJECTCLAS = 'VERKBELEG'.
    CDHDR-OBJECTID   = '0000001784'.
    **SELECT A~OBJECTCLASS A~OBJECTID A~CHANGENR A~USERNAME A~UDATE A~UNAME
    **B~TCODE
    **B~TABNAME B~TABKEY B~FNAME B~CHNGIND INTO TABLE ITAB FROM CDHDR AS A
    **INNER JOIN CDPOS AS B ON A~OBJECTCLASS = B~OBJECTCLASS
    **                         A~OBJECTID    = B~OBJECTID
    **                         A~CHANGENR    = B~CHANGENR
    **                    WHERE OBJECTCLAS = 'VERKBELEG'
    **                      AND OBJECTID = '0000001784'.
    *SELECT * FROM CDPOS INTO TABLE LT_CDPOS WHERE OBJECTCLAS = 'VERKBELEG'
    *                                    AND OBJECTID = '0000001784'.
    *IF NOT LT_CDPOS[] IS INITIAL.
    *  SELECT *
    *  INTO   TABLE LT_CDHDR
    *  FROM   CDHDR
    *  FOR    ALL ENTRIES IN LT_CDPOS
    *  WHERE  OBJECTCLAS = LT_CDPOS-OBJECTCLAS
    *  AND    OBJECTID = LT_CDPOS-OBJECTID
    *  AND    CHANGENR = LT_CDPOS-CHANGENR.
    *ENDIF.
    **  SORT ITAB BY OBJECTCLAS ODJECTID DESCENDING.
    *LOOP AT ITAB.
    *  WRITE: ITAB-UDATE."ITAB-UNAME.
    *ENDLOOP.
    *--- Interne Tabellen -------------------------------------------------
    DATA: BEGIN OF ICDSHW OCCURS 50.       "Ausgabeaufbereitung
            INCLUDE STRUCTURE CDSHW.       "Zwischendatei
    DATA: END OF ICDSHW.
    CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
         EXPORTING
              DATE_OF_CHANGE    = CDHDR-UDATE
              OBJECTCLASS       = CDHDR-OBJECTCLAS
              OBJECTID          = CDHDR-OBJECTID
              TIME_OF_CHANGE    = CDHDR-UTIME
              USERNAME          = CDHDR-USERNAME
         TABLES
              I_CDHDR           = LT_CDHDR
         EXCEPTIONS
              NO_POSITION_FOUND = 1
              OTHERS            = 2.
    LOOP AT LT_CDHDR.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
        EXPORTING
    *   ARCHIVE_HANDLE                = 0
          CHANGENUMBER                  = LT_CDHDR-CHANGENR
    *   TABLEKEY                      = '00000000 '
    *   TABLENAME                     = ' '
    * IMPORTING
    *   HEADER                        =
       TABLES
         EDITPOS                       = ICDSHW
    *   EDITPOS_WITH_HEADER           =
    * EXCEPTIONS
    *   NO_POSITION_FOUND             = 1
    *   WRONG_ACCESS_TO_ARCHIVE       = 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.
      LOOP AT ICDSHW.
        IF ICDSHW-TABKEY+3(10) = '0000001784'
           AND ICDSHW-TABKEY+13(6) = '000001'.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    If useful reward.
    Vasanth

  • Select query for KONV and VBAK table

    hy Experts.
    Please Help me For this Query, i got error on it.
    I wnt to take KONV-KBETR (RATE FIELD) for particular  SO number. and i used following query but it gives error i cant relate VBAK & KONV table.
    Please do needful
    SELECT KBETR KNUMV FROM KONV INTO (ITAB-KBETR, ITAB-KNUMV) WHERE VBAK-KNUMV = KONV-KNUMV AND VBAK-VBELN IN VBELN.
    Thnks
    Bhavesh Panchal.

    Hello Thnks For Reply,
    but still i cant take solution. i am making a Sales order Rports. i got all field but i cant fetch filed for RATE and Pending Order Value.
    Please check following  Code. if need to change u can.
    Thnks
    Bhavesh Panchal.
    REPORT  ZTESTCODE.
    TYPE-POOLS:slis.
    TABLES: VBEP , VBAP ,  VBPA , VBKD , VBAK , LIKP , LIPS , VBUP , VBBE, KONV, KNA1.
    DATA :BEGIN OF itab  OCCURS 0,
    VBELN LIKE VBAK-VBELN,
    POSNR LIKE VBAP-POSNR,
    EDATU LIKE VBEP-EDATU,
    KNUMV LIKE VBAK-KNUMV,
    WMENG LIKE VBEP-WMENG,
    BMENG LIKE VBEP-BMENG,
    LFIMG LIKE LIPS-LFIMG,
    OMENG LIKE VBBE-OMENG,
    POSAR LIKE VBAP-POSAR,
    NETWR LIKE VBAP-NETWR,
    NTGEW LIKE VBAP-NTGEW,
    KBETR LIKE KOMV-KBETR,
    KUNNR LIKE  VBAK-KUNNR,
    NAME1 LIKE  KNA1-NAME1,
    *BRGEW LIKE  VBAP-BRGEW,
    BSTKD LIKE VBKD-BSTKD,
    BSTDK LIKE VBKD-BSTDK,
    LFSTA LIKE VBUP-LFSTA,
    *KNUMV LIKE VBAK-KNUMV,
    *posnr LIKE LIPS-POSNR,
    *NETWR LIKE VBAK-NETWR,
    BRGEW LIKE VBAP-BRGEW,
    LFDAT LIKE LIKP-LFDAT,
    *NTGEW LIKE LIKP-NTGEW,
    DELIVERY LIKE LIPS-VBELN,
    WEIGHT like VBAP-NTGEW,
    END OF itab.
    *variable for Report ID
    DATA: v_repid LIKE sy-repid .
    *declaration for fieldcatalog
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          wa_fieldcat TYPE slis_fieldcat_alv.
    DATA: it_listheader TYPE slis_t_listheader.
    declartion for layout
    DATA: alv_layout TYPE slis_layout_alv.
    *Title displayed when the alv list is displayed
    *DATA:  i_title_main TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
    DATA:  i_title_main TYPE lvc_title VALUE 'Reports : Bhavesh Pacnhal'.
    INITIALIZATION.
      v_repid = sy-repid.
      PERFORM build_fieldcatlog.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
         SELECT-OPTIONS : VBELN FOR VBAK-VBELN ,
                          KUNNR FOR VBPA-KUNNR ,
                          EDATU for ITAB-EDATU.
      SELECTION-SCREEN: END OF BLOCK b1.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_listheader USING it_listheader.
      PERFORM display_alv_report.
    FORM build_fieldcatlog.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'VBELN'.
      wa_fieldcat-seltext_m = 'SalesOrderNo'.
      wa_fieldcat-outputlen = '12'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field for Customer Name.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'NAME1'.
      wa_fieldcat-seltext_m = 'Customer Name'.
      wa_fieldcat-outputlen = '30'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Po Number.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'BSTKD'.
      wa_fieldcat-seltext_m = 'PO No'.
      wa_fieldcat-outputlen = '20'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    Field For Order Value
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'NETWR'.
      wa_fieldcat-seltext_m = 'Order Value '.
      wa_fieldcat-outputlen = '12'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Po Date.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'BSTDK'.
      wa_fieldcat-seltext_m = 'PO Date'.
      wa_fieldcat-outputlen = '20'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    wa_fieldcat-tabname = 'ITAB'.
    wa_fieldcat-fieldname = 'POSNR'.
    wa_fieldcat-seltext_m = 'Item No'.
    wa_fieldcat-outputlen = '20'.
    APPEND wa_fieldcat TO i_fieldcat.
    CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'EDATU'.
      wa_fieldcat-seltext_m = 'Delivery Date'.
      wa_fieldcat-outputlen = '12'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    wa_fieldcat-tabname = 'VBAP'.
    wa_fieldcat-fieldname = 'KWMENG'.
    wa_fieldcat-seltext_m = 'Order QTY VABP.'.
    wa_fieldcat-outputlen = '14'.
    APPEND wa_fieldcat TO i_fieldcat.
    CLEAR wa_fieldcat.
    Field For Order Qty.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'WMENG'.
      wa_fieldcat-seltext_m = 'Ord.QT.WMEN.'.
      wa_fieldcat-outputlen = '20'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Order Qty.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'BMENG'.
      wa_fieldcat-seltext_m = 'Ord.QT.BMEN.'.
      wa_fieldcat-outputlen = '20'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    field For Delivery Qty.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'LFMING'.
      wa_fieldcat-seltext_m = 'DEL QTY.'.
      wa_fieldcat-outputlen = '20'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Open Qty from ITAB.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'OMENG'.
      wa_fieldcat-seltext_m = 'OPEN QTY.'.
      wa_fieldcat-outputlen = '20'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Pending Weight from ITAB.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'BRGEW'.
      wa_fieldcat-seltext_m = 'Pending Weight'.
      wa_fieldcat-outputlen = '12'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    Field For netweight.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'NTGEW'.
      wa_fieldcat-seltext_m = 'Net Weight'.
      wa_fieldcat-outputlen = '20'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    Field For Actual Delivery.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'LFDAT'.
      wa_fieldcat-seltext_m = 'Actual Delivery'.
      wa_fieldcat-outputlen = '12'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname = 'ITAB'.
      wa_fieldcat-fieldname = 'KBETR'.
      wa_fieldcat-seltext_m = 'RATE'.
      wa_fieldcat-outputlen = '20'.
      append wa_fieldcat to i_fieldcat.
      clear wa_fieldcat.
    Field For Actual Delivery.
    wa_fieldcat-tabname = 'LIPS'.
    wa_fieldcat-fieldname = 'POSNR'.
    wa_fieldcat-seltext_m = 'Delivery ITEM'.
    wa_fieldcat-outputlen = '20'.
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
    Field For Pending Value.
    VBUP-LFSTA
    wa_fieldcat-tabname = 'VBUP'.
    wa_fieldcat-fieldname = 'LFSTA'.
    wa_fieldcat-seltext_m = 'Pending Value'.
    wa_fieldcat-outputlen = '20'.
    append wa_fieldcat to i_fieldcat.
    clear wa_fieldcat.
    Field For pending weight.
    wa_fieldcat-tabname = 'ITAB'.
    wa_fieldcat-fieldname = 'ITAB-OMENG * KOMV-KBETR'.
    wa_fieldcat-seltext_m = 'Pending VALUE'.
    wa_fieldcat-outputlen = '20'.
    APPEND wa_fieldcat TO i_fieldcat.
    CLEAR wa_fieldcat.
    ENDFORM.                    "BUILD_FIELDCATLOG
    FORM data_retrieval.
    SELECT VBELN  NETWR KUNNR FROM VBAK INTO (ITAB-VBELN,ITAB-NETWR,ITAB-KUNNR) WHERE VBELN IN VBELN .
    SELECT POSNR POSAR BRGEW FROM VBAP INTO (ITAB-POSNR,ITAB-POSAR,ITAB-BRGEW) WHERE VBELN = ITAB-VBELN .
    SELECT EDATU FROM VBEP INTO (ITAB-EDATU) WHERE VBELN = ITAB-VBELN AND POSNR = ITAB-POSNR.
    SELECT NAME1 FROM KNA1 INTO (ITAB-NAME1) WHERE KUNNR = ITAB-KUNNR .
    SELECT BSTKD BSTDK FROM VBKD INTO (ITAB-BSTKD,ITAB-BSTDK) WHERE VBELN = ITAB-VBELN AND POSNR = ITAB-POSNR.
    SELECT VBELN LFIMG FROM LIPS INTO (ITAB-DELIVERY, ITAB-LFIMG) WHERE VGBEL = ITAB-VBELN AND VGPOS = ITAB-POSNR.
    SELECT LFDAT NTGEW FROM LIKP INTO (ITAB-LFDAT,ITAB-NTGEW) WHERE VBELN = ITAB-DELIVERY .
    SELECT WMENG BMENG FROM VBEP INTO (ITAB-WMENG,ITAB-BMENG) WHERE VBELN IN VBELN .
    SELECT SINGLE OMENG FROM VBBE INTO (ITAB-OMENG) WHERE VBELN IN VBELN.
    SELECT SINGLE NETWR FROM VBAK INTO (ITAB-NETWR) WHERE VBELN IN VBELN.
    SELECT KNUMV FROM VBAK INTO (ITAB-KNUMV) WHERE VBELN IN VBELN.
    *SELECT KBETR KNUMV FROM KONV INTO (ITAB-KBETR, ITAB-KNUMV) WHERE KNUMV = VBAK-KNUMV.
    *assign VAR1 = itab-kbetr.
    *append itab.
    *ENDSELECT.
    SELECT KBETR KNUMV FROM KONV INTO (ITAB-KBETR, ITAB-KNUMV)WHERE KNUMV = VBAK-KNUMV.
    ITAB-KBETR = KONV-KBETR.
    ENDSELECT.
    APPEND ITAB.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    ENDSELECT.
    *ENDSELECT.
    ENDFORM.                    "data_retrieval
    FORM build_listheader  USING it_listheader TYPE slis_t_listheader.
    DATA HLINE TYPE SLIS_LISTHEADER.
      DATA: ls_line TYPE slis_listheader.
    bhavesh
    HLINE-INFO = 'report Developed by Bhavesh'.
    HLINE-TYP = 'H'.
    Header
    Bhavesh
      CLEAR ls_line.
      ls_line-typ  = 'H'.
    LS_LINE-KEY: not used for this type
      ls_line-info = 'Sales ORDER Report'.
      APPEND ls_line TO it_listheader.
    bhavesh
    ***Selection
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'Key 1'.
      ls_line-info = 'SFEL'.
      APPEND ls_line TO it_listheader.
      ls_line-key  = 'Key 2'.
      ls_line-info = 'SFEL'.
      APPEND ls_line TO it_listheader.
    ***Action
      CLEAR ls_line.
      ls_line-typ  = 'A'.
    LS_LINE-KEY: not used for this type
      ls_line-info = 'Status list'.
      APPEND ls_line TO it_listheader.
      ENDFORM.                    "BUILD_LISTHEADER
    *ENDFORM.                   "build_listheader
    FORM display_alv_report.
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_repid
       I_CALLBACK_PF_STATUS_SET          = 'STATUS'(002)
         i_callback_user_command           = 'USER_COMMAND'
       i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = 'SFEL SALES EXPEDITING REPORT'
         i_background_id         = 'ALV_BACKGROUND'
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         = LAYO
      IS_LAYOUT                         = ALV_LAYOUT
        it_fieldcat                       = i_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
        i_default                         = 'ZLAY1'
        I_SAVE                            = 'A'
        is_variant                        = i_variant
        IT_EVENTS                         = V_EVENTS
        TABLES
          t_outtab                          = itab[]
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    "display_alv_report
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader[].
         i_logo             = 'ENJOYSAP_LOGO'.
       I_END_OF_LIST_GRID       =
    ENDFORM.                    "TOP_OF_PAGE

  • Mouse and keyboard both stop working

    I've had my imac for about 3 years.  I am currently running Mac OS X 10.6.7.  In the past six months this problem started, I was using an ergonomic MS keyboard (USB) and mouse (wireless) but then I have removed both MS devices and the problem has not gone away since plugging in my apple keyboard and optical mouse.  I have tried using different usb ports and the problem still occurs.  The problem happens when I leave my mac unattended for 10+ mins I come back and cannot use the mouse to click or select anything* and also cannot type with the keyboard.  I have tried unplugging and plugging in again to the usb ports.  I listen to music on itunes and leave the mac on as a stereo then want to use it to pick another song - no it won't let me do that either (other than use the skip, pause or play buttons).  *If I'm lucky the mouse will let me select the apple then select restart or shutdown - however more often than not I have to reset by the button on the back of my mac as the mouse is not responding.  I don't overload the machine with a lot as I only use 3 applications (safari, itunes and sometimes outlook for mac).
    What I find most interesting is that I can sit and constantly use the mac for hours on end - as long as I don't stop using the mouse or keyboard.  Inactivity over 10 mins begins the issue.  At the moment I can make it stay for a while by putting the machine to sleep and then waking it up but this doesn't help when I want to listen to music.
    I have searched long and hard all over the net on how to fix this problem and it appears I am not alone.  I am hoping someone can help me please.  We have tried other apple accessories from other machines we have at home without any luck.
    Hoping someone can help me.

    Could you say the keyboard and mouse model, please? That could help track the problem.

  • Resolution issues (oh, and xvidtune does not work)

    I'm using my 32" Samsung TV as my PC monitor.
    according to the specs in the manual, the max resolution it supports is 1360x768 @ 60Hz
    also, according to the manual, the horizontal frequency is 30-60 and vertical is 60-75
    I use the GeForce 7950 GX2 video card, and am using the latest nvidia drivers.
    here is the issue:
    X starts up. it even uses 1360x768 as it should. however, the display is not aligned with the monitor/TV - there is roughly a 150 pixel "gap" on the left side of the monitor.
    I tried a lot of things to eliminate it:
    1. adjust the picture on the screen using the monitor itself, obviously (it doesn't go past this point. can't move it more to the left.. I don't know why the limit this, but they do)
    2. xvidtune worked on numerous occasions for me in the past, but it fails horribly this time. whatever I do (even if I don't change anything) it tells me that the mode line I am requesting is either impossible or unsupported by my hardware config
    3. looked for a way to adjust the screen position using the nvidia tools, but I cannot find a way to do so.
    Currently, to be able to use the TV/monitor at all, I'm using the 1024x768 resolution in 4:3 picture mode. But this just won't cut it, I want to use the 1360x768 resolution in 16:9 picture mode (widescreen) as I _should_ be able to.
    how should I take care of this?
    my xorg.conf (complete) is as follows:
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        Option         "AutoAddDevices" "off"
        Option         "AllowEmptyInput" "off"
    EndSection
    Section "Files"
        #RgbPath         "/usr/lib/X11/rgb"
        FontPath        "/usr/share/fonts"
    EndSection
    Section "Module"
        Load           "dbe"
        Load           "extmod"
        Load           "type1"
        Load           "freetype"
        Load           "glx"
    EndSection
    Section "ServerFlags"
        Option         "Xinerama" "0"
    EndSection
    Section "InputDevice"
        # generated from default
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
        Option         "CoreKeyboard"
        Option         "XkbRules" "xorg"
        Option         "XkbModel" "pc105"
        Option         "XkbLayout" "us,ru"
        Option         "XkbVariant" ",phonetic"
        Option         "XkbOptions" "grp:caps_toggle"
    EndSection
    Section "Monitor"
    # 96 DPI @ 1360x768
        Identifier     "Monitor0"
        VendorName     "Unknown"
        ModelName      "SAMSUNG"
        DisplaySize     359    203
        HorizSync       30.0 - 60.0
        VertRefresh     60.0 - 75.0
        Option         "DPMS"
    EndSection
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce 7950 GX2"
    EndSection
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        DefaultDepth    24
        Option         "UseEdidDpi" "false"
        Option         "DPI" "96 x 96"
        Option         "AddARGBGLXVisuals" "True"
        Option         "TwinView" "0"
    #    Option         "metamodes" "1360x768 @1366x768 +0+0"
        SubSection     "Display"
            Depth       24
            Modes      "1024x768"
        EndSubSection
    EndSection
    Section "Extensions"
        Option         "Composite" "Enable"
    EndSection

    Perhaps try replace your Screen section with this:
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "metamodes" "DFP-1: 1366x768 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection

  • Xmlanonymizer bean and xslt - both not working for namespace change

    Hi All
    I have a source structure below
    <ns1:Product_MT xmlns:ns1="urn:alpha:websub" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Header>
    </Header>
    <Item>
    </Item>
    </ns1:Product_MT>
    I am using a soap sender getting called from SOAP UI to consume a PI web service and  send the output message to receiver HTTP channel
    the receiver needs the namespace of the XML structure as below (ns1 changed to ns)
    <ns:Product_MT xmlns:ns="urn:alpha:websub" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Header>
    </Header>
    <Item>
    </Item>
    </ns:Product_MT>
    I tried to put the xmlanonymizer bean in receiver HTTP but its not doing anything. I am stil getting the output with ns1 namespace
    Attached screenshot of receiver http adapter configuration in module
    also, I tried to use XSLT mapping as below but this is also not doing anything. Probably, the XSL has to be modified to use in my case . Please help. and let me know.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">
      <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <ns:Product_MT xmlns:ns="urn:alpha:websub">
      <xsl:copy-of select="." />
    </ns:Product_MT>
    </xsl:template>
    </xsl:stylesheet>
    thx
    mike

    I had to tweak the XSL little bit to make it work in PI. See updated version below -
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
       <xsl:output encoding="UTF-8" indent="yes" method="xml" version="1.0"/>
       <xsl:variable name="root">MT_Product</xsl:variable>
       <xsl:variable name="rootns">urn:mdt:udiwebsubmission</xsl:variable>
       <xsl:template match="*">
         <xsl:choose>
           <xsl:when test="local-name()=$root">
             <xsl:element name="ns:{local-name()}" namespace="{$rootns}">
               <xsl:apply-templates select="node()"/>
             </xsl:element>
           </xsl:when>
           <xsl:otherwise>
             <xsl:element name="{local-name()}">
               <xsl:apply-templates select="node()"/>
             </xsl:element>
           </xsl:otherwise>
         </xsl:choose>
       </xsl:template>
    </xsl:stylesheet>
    Regards,
    Sameej

  • QA11 and QA12 both not working

    Hi Team,
    User is facing issue, for chaning the inspeciton lot. For QA11 it shows Usage decision is already made. And for QA12 it shows error message that Usage decision is not made. Also in QA02 it shows that can not change it as Usage decision is already made. Please suggest how to change the lot here.

    Based on the system status, it shows UD has been completed and I understand stock is not posted to UR ? What inspection type was it ? As status shows SPRQ, it requires stock posting. so run QA12 - change usage decision and go to inspection lot stock tab and verify the posting.
    It does not make any sense when you run QA12, it says UD complete. Revert back with screenshots if you need further help.
    Regards,
    Prakash C

Maybe you are looking for

  • HP Photosmart C3180 All In One Installation Problems

    A while back I posted about problems with installing this printer, where the install cd v7.8.0 worked but the HP Set Up Assistant hung on the 2nd step. The software on the hp site for this printer (v7.9.1), did not work either, and froze mid install

  • How to draw a dynamic box in sapscript?

    Hello experts, I am currently facing a problem wherein in the main window I have multiple line items. What I want to do is that for every new line item, I would draw a box and so on...for example: BOX 1 BOX 2 BOX 3 Here is the attributes of the main

  • Powermac g4 and VGA monitor

    I am trying to get a VGA monitor to work with a Powermac G4 (digital audio). I am using a DVI to VGA adapter. I get it booted and get to the gray screen but them it goes to "Mode not supported". If it was a windows machine I would just go to "Safe Mo

  • Can I save my songs and notes on my iPhone in my PC?

    Can I save my songs and notes on my iPhone in my PC?

  • Windows 7 Corrupted after installing new keyboard

    Installed a new keyboard on my Dell 1525 Inspiron computer. Good news the new keyboard works perfectly, bad news, Windows 7 will not launch. I have run the diagnostics and it all says it is fine. I have run the recovery mode and auto repair, and it c