Select not retreiving data

Hello All,
I have a question regarding select statement.
Here is the select code
SELECT belnr
       perio
       wkgbtr
       wogbtr
       objnr
       gjahr
       wrttp
       vrgng
       parob
       parob1
       uspob
       bukrs
       owaer
FROM  coep
INTO CORRESPONDING FIELDS OF TABLE gt_coep_recv
WHERE  perio IN s_perio
AND    gjahr IN s_gjahr
AND    bukrs IN s_bukrs
AND    kstar LIKE '001124%'
AND    objnr LIKE 'LKIRST%'
AND    parob LIKE 'LKIRSTP%STCC%'
AND    wrttp = '11'
AND    vrgng = 'RKL'.
This select return a sy-subrc value of 4 when executed. But when I go the COEP table and try to select data basing on the same conditions, I am able to retrieve data.
Any idea why?
Thanks,
Amy

HI,
its difficult to suggest some thing in this scenerio but.. one advice try commenting the like part and see if it is working if it works try adding like for one field at a time and check ..
SELECT belnr
perio
wkgbtr
wogbtr
objnr
gjahr
wrttp
vrgng
parob
parob1
uspob
bukrs
owaer
FROM coep
INTO CORRESPONDING FIELDS OF TABLE gt_coep_recv
WHERE perio IN s_perio
AND gjahr IN s_gjahr
AND bukrs IN s_bukrs
AND kstar LIKE '001124%'
AND objnr LIKE 'LKIRST%'
<b>AND parob LIKE 'LKIRSTP%STCC%' " I doubt this is the problem</b>
AND wrttp = '11'
AND vrgng = 'RKL'.
Thanks
mahesh

Similar Messages

  • LOOKUP not retreiving data

    Hi,
    I have a lookup function not retreiving any information. If a create a report in my application called "Rates" and use the same selection as in my LOOKUP function I can see a number, but for some reason it retreives a zero.
    In my REC statement i divide by LOOKUP(PRC). If I exclude the division the number from "A11100" is moved. Is there somehow I can see/check (or...) what the LOOKUP is querying out?
    *XDIM_MEMBERSET CATEGORY=BUDGET
    *XDIM_MEMBERSET CUSTOMER=P01
    *XDIM_MEMBERSET DATASOURCE=UPLOAD
    *XDIM_MEMBERSET PRODUCT=P101
    *XDIM_MEMBERSET PROFITCENTER=H111
    *XDIM_MEMBERSET RPTCURRENCY=LC
    *XDIM_MEMBERSET TIME = 2009.JAN
    *XDIM_MEMBERSET MEASURES=PERIODIC
    *LOOKUP Rates
    *DIM PRC:PRate_Acct = "PR10000"
    *DIM PRC:PRate_Entity = "GLOBAL"
    *DIM PRC:Product = "P101"
    *DIM PRC:Time = "2009.JAN"
    *DIM PRC:Category = "BUDGET"
    *DIM PRC:MEASURES = "PERIODIC"
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "A11100"
    *REC(EXPRESSION=%VALUE%/LOOKUP(PRC),ACCOUNT="A90100")
    *ENDWHEN

    Hi,
    Problem solved. Writing all dimension ID in capital letters solved the problem:-)
    /Lars

  • SAPscript external subroutine - select not pulling data

    Hi all,
    I am calling an external subroutine in my SAPscript. In this subroutine, I am using a simple select statement:
    * get sales order number
      SELECT vbelv posnv
        FROM vbfa
        INTO CORRESPONDING FIELDS OF TABLE it_so
         WHERE vbeln = gv_deldoc
           AND posnn = gv_posnr.
    The problem is no data is being pulled into it_so. I have confirmed in VBFA (through SE16N) that data exists in the system so this isn't the problem. Are there restrictions with using selects in SAPscript?
    Thanks,
    Edited by: pistols123 on Sep 8, 2011 9:11 PM

    Hi,
    Please refer below code.
    In SAP Script ,SE71: call the subroutine pool program with the below sysntax.
    /: PERFORM GET_DATA IN PROGRAM ZXXXX
    /: USING &XXXX-MATNR&
    /: CHANGING &V_YYYY&
    /: CHANGING &V_YYY2&
    /: ENDPERFORM
    Using Parameter will be the input in the subroutine pool to fetch the data.
    Changing Paramter will be the your output to pass the data into SAP Form.
    now goto SE38,and create a subroutine pool program with the name ZXXXX,follow the below code.
    FORM get_data TABLES tbl_in  STRUCTURE itcsy
                           tbl_out STRUCTURE itcsy.
    READ TABLE tbl_in INDEX 1.
      IF sy-subrc EQ 0.
        XXXX-Matnr = tbl_in-value.
    "Pass it through the conversion exit CONVERSION_EXIT_ALPHA_INPUT before SELECT."
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
      EXPORTING
        input         = gv_deldoc
    IMPORTING
       OUTPUT        = gv_deldoc
    SELECT vbelv posnv
        FROM vbfa
        INTO (l_vbelv,l_posnv)
         WHERE vbeln = gv_deldoc
           AND posnn = gv_posnr.
    READ TABLE tbl_out INDEX 1.
      IF sy-subrc = 0.
        MOVE l_vbelv TO tbl_out-value.
        MODIFY tbl_out INDEX 1.
      ENDIF.
      READ TABLE tbl_out INDEX 2.
      IF sy-subrc = 0.
        MOVE l_posnv TO tbl_out-value.
        MODIFY tbl_out INDEX 2.
      ENDIF.
    Moderator message - Welcome to SCN. But please do not ask for "rewards"
    Regards,
    VSNM
    Endform.
    Edited by: Rob Burbank on Sep 8, 2011 4:18 PM

  • Views Not Retreiving Data Immediately

    I am inserting 2,000 rows in a table and doing a commit! When retreiving the information through a view, it takes approx. 15 seconds before the committed rows are displayed.
    Any ideas why this is happenning. I did not know that Views could cache information.

    Hi Mario,
    check the execution plan of the query that compese the view.
    May be that the plan choosen to retrieve the records is not the best.
    Bye Max
    null

  • LOV not retreiving data

    Hi,
    i have a LOV which needs to show the data based on data in another field. When i open the page all the fields are defaulted, but my lov doesnt work, it works when i change the data in the other field, But after that whenever i come back to the screen it works fine. Somewhere the session variable is not setting properly. this error happens only when i login first time.
    please help

    Hi,
    That happens because the fields don't have a session value.
    When you change a value you're probably sending a submit request and all the fields are set with the default values.
    Maybe you can add a default value to you lov. A workaround would be creating a plsql page process to initialize session values.
    Hope that helps. Regards,
    Paulo Vale
    http://apex-notes.blogspot.com

  • ADF 11g can not select and copy data from cell of readonly table in IE

    hi,
    In ADF 11g, when render view object as readonly table with Single RowsSelection, using IE browser can not select and copy data from the cell, but it work in firefox.
    is it a bug?
    Edited by: kent2066 on 2009-5-18 上午8:46

    Hi Timo,
    Sorry forgot to mention versions.
    We are using 11.1.1.7 and IE 9.
    I tried in Google but could not get the solution.
    Kindly let me know solution for this.
    PavanKumar

  • Not able to put data selection condition in data selection tab of infopakag

    I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
    when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
    when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
    I have checked in transfer structure as well , the fields are marked for selection.
    Please advice .
    Please tell me what could be the reason for this problem

    Ashutosh,
    As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
    When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
    Hope this helps...
    *******Assign Points if it helps********
    Thanks,
    Gattu

  • 1099 Misc- RFIDYWWT program not selecting by clearing date

    Hello,
    I am trying to run the transaction S_P00_07000134 - Generic Withholding Tax Reporting for 1099 Misc forms in ECC6.0.  It is not pulling the vendor line items by the clearing date like the old 4.6 1099 program did (RFW1099M).  For example, an item was posted in 2007 and paid in 2008.  This is not getting picked up in the RFIDYWWT program.  Am I missing something?  I've selected Document clearing date under the output control and lists, but I don't think that's the right spot for data selection.
    Any help would be appreciated!
    -Lori

    Thanks Carol!  That is exactly it.  I did resort to putting in an OSS message - and that's what they told me after she "yelled" at me for asking the question...it wasn't a software issue, but remote consulting.  I'd like to see where in the SAP help it tells you that if you're not familiar with the program!
    Thanks again,
    -Lori

  • Delta field not enabled for selection in  generic data source

    Hi
    I have created a generic data source for the table VBFA....and for the delta pick up i have put the delta option as CALDAY on the field ERDAT...and  i have  selected that field for the selection option. but after i made it  delta enabled the selection option got disabled.
    Now when i check the info package delta selection tab that date column is not apperaing.
    But when i have to run the info package for the first i dont want all the data as it has a huge set of data.
    I wanted to  take only this months data.
    So is there any option to be set to enable this selection in info package.
    please suggest.
    Regards
    Shilpa

    Hi there,
    That's the stardard behaviour. If you use delta based om ERDAT, that field won't be available for selecting.
    You could for example try to build a view over VBFA, and let the field ERDAT there and another field, for example ZERDAT (that is just another alias for ERDAT). Create the delta based onyour view over the field (ERDAT), but you can still control the restrictions over the extractore with your ZERDAT.
    I don't know if this is possible, this is only an assumption.
    Another option could be first to create an extractor based on the table VBFA but without delta, that field ERDAT would be available. Do your full data restricting it, and after that, change your datasource to use deltas based on ERDAT. It will be unavailable than, but since you've already loaded previous full data, you could than use your delta like it is. But here, remember, your deltas will bring new and change data based on ERDAT. If it brings delta based on changed data over ERDAT to a record that you didn't brought over your full (only some data), it will be incorrect records.
    Also just an assumption, did not try it.
    Diogo.

  • Output does not match data sheet as only 1 report was available for selecti

    Output does not match data sheet as only 1 report was available for selection in hyperion planning.Can anyone help me in resolving this issues.Its very urgent.

    You will need to provide much more detailed information before anybody can help.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • HT1766 Can I "restore" my "Notes" on my iPhone and select the backup date?

    Can I "Restore" ny "Notes" from my backup and can I select the backup date. e.g. Backup a few days old..
    Thanks

    Backups are incremental.  You cannot select a set date.  In addition, you cannot select to restore only notes.  You must restore everything.

  • Unable to retreive data from Lotus Notes Database

    Hi there,
    I have problems to connect to a view in Lotus notes via Lotus Notes SQL Driver.  The following message appear when trying to retreive data via WebI
    Database error: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_DBC failed. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    I also tried via Desktop Intelligence and I got this error:
    Exception: DBD, [Lotus][ODBC Lotus Notes]Column not found - ActualApproverState: S0022
    Environment:
    - Lotus Notes Client 8.5
    - Lotus Notes SQL Driver 8.50.2009.317
    - BOE Professional XI R2 SP2
    I test connection in the Universe and it's working fine.
    thanks,
    Ricardo

    Hi,
    If you are trying to access the tables from a different user other than the user who created the table, then you have to enable the "Require fully qualified table names " check box. This check box will be available when you right click the "Datasource name".
    Here is an example:
    Lets assume Table1 is created by user1. If u try to access the Table1 using user2, you cannot access directly. Instead you need to access like "user1.table1".
    Hope this resolves ur issue.
    Regards,
    Arul

  • How to retreive data from a maintainence view?

    Hi all,
    I have used select query to retreive data from a maintainence view. But it gave me a syntactical error that XYZ is not in abap dictionary , it's a database / projection view?
    So can't we get data from a view using select query?
    Please share if u have answers.
    Thanks & regards,
    Chandru

    Hi,
    Maintenance view will be created for database tables only.
    Just display the maintainence from SE11 and click Tables tab in the screen
    Here you can find the list of tables used to created for Maintainence view.
    YOu can use these tables to write SELECT.
    If you give us the maintainence table, we will help you.
    Thanks,
    Ramakrishna

  • Retreive data from wa structure into fields.

    Hi friends,
                I am having a query regarding classical report.I want to retreive data for vendor billwise realisation report.I am getting few fields into my list screen(fields from bsis table).Remaining fields i want to retreive from table bseg(augdt,augbl....)with the condition that the belnr of both the tables should be same and Account type = 'k'(vendors).
    I tried it using select queries for the bsis and bseg..but data is retreived only from one table bsis and not from bseg.so for data from bseg i used workarea(wa).data is retreived for only single doc no. and not for other documents.
       If any problem in understanding this pls give me the mail id i will send in detail.
    Thanks and regards,     
    Anand.

    Hi Anand,
    You should not use Workarea, if you are exepecting N number of records. Please use internal table.
    SELECT * FROM BSIS
        into table i_bsis
         where ....
    if not i_bsis[] is initial.
    sort i_bsis by belnr.
    SELECT * FROM BSEG
    into table i_bseg
    for all entries in i_bsis
    where belnr = i_bsis-belnr.
    endif.
    Best regards,
    Prashant

  • Using DBLINK in ABAP to retreive data from externam system

    Hi All,
    Please help me, if anyone knows the answer.
    The basis team has created a dblink 'DBL_TEST.YY.XXX.COM'.
    Now I have to fetch data from another non-sap external system using this dblink only. Cannot have any entry in DBCON.
    I know the procedure of retreiving data using DBCON entry. But since DBCON will not be used here, so I have to use the DBLINK to get data from an external oracle table (say, ZTEST).
    I need the procedure to implement the logic in abap program.
    Thanks in advance,
    Ipsita

    My problem is now solved. We created views @the database level, and fetched data using the database view in Native SQL.
    In case anybody needs to do, I am giving a short code dump;
        TRY.
            EXEC SQL PERFORMING f_loop_output.
              select alias_type_id,
                     name,
                     molecule_id
              into   :w_tab
              from   ext.V_XXXX
              where molecule_id in
               (Select mh.MOLECULE_ID
                from  ext.V_YYYY mh, ext.V_XXXX al
                where  mh.molecule_id   = al.molecule_id
                and    mh.IS_CURRENT    = 'Y'
                and    al.ALIAS_TYPE_ID = :c_type_id
                and    al.NAME                  = :l_number
              and ALIAS_TYPE_ID in ('AAA','B','CCCC')
            ENDEXEC.
          CATCH cx_sy_native_sql_error INTO l_check_rs.
            l_text  = l_check_rs->get_text( ).
            MESSAGE i005 WITH l_text.
            LEAVE LIST-PROCESSING.
        ENDTRY.

Maybe you are looking for

  • Keyboard hardware key not working

    hi, i'm trying to set the keyboard hardware keys of my vaio, this is the output of a few commands; sto cercando di impostare le hardware key del mio vaio, butto qua qualche comando per capire meglio: cat /sys/class/dmi/id/sys_vendor Sony Corporation

  • Issue with connecting to SQL Server Database in 11g

    Hi We successfully created odbc connection say "Test" to read SQL Server database using odbc admin.The issue we are facing in 11g is, we are unable to import tables using the database connection "Test" in to Admin tool. In 10g we did not come across

  • Mac mail rules do not display properly

    I use Mac Mail rules to manage my mail, but I am having trouble using them because, many time the "Perform the following actions:" display gets so scrunched together that I cannot see what I've already entered or, if I'm editing a rule, what needs to

  • Script to ease the pain of using setfacl

    Edit : New version - https://bbs.archlinux.org/viewtopic.php?id=176379 (29/1/2014) Hello everyone, setfacl is very useful, but I find setting files individually very frustrating, especially when you have to set a lot of files/folders, and you might h

  • WRT110 DNS Error when wireless on Laptop

    I have a Dell laptop with both the Intel pro-set wireless connection and the standard microsoft windows wireless software is also on board. I just replaced my old wr54 (whatever its called) with the WRT110 and the hardwired connection works fine. The