SAP Query in MSS - Not Data

Hi Sap Experts,
we added a custom query as described step by step in MSS Business Package (HCM Reports).
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/3a/3198408d953154e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/3a/3198408d953154e10000000a1550b0/frameset.htm</a>
After this steps the Query appears in the Reportlist and you can process it without any error message. But the result list does not contain any data.
When we test the query in backend there are data in the result list.
The Testuser has SAP ALL.
So I assume we have to do something else additionally to the steps described in MSS Business Package.
So what is the reason?
Best Regards,
Nadin

Hi SAP Experts,
The Reason was the following:
We were using a query that is based on logical database PCH so the
reporting iView tries to fill in the objects the user has selected
in the iView into the fields planversion, object type and object id.
We had to use a different query to get the expected result:
Instead of using a PCH query and accessing Personnel Administration
data (infotyp 0001 for example) out of this PCH-query we now
use a query that is based on PNP/PNPCE.
Kind Regards,
Nadin

Similar Messages

  • SAP Query - how to retrieve data within another program / FM

    Hi,
    I need to retrieve data from SAP Query, but when I used SUBMIT ..., the program results dump, because it is called within open custor loop.
    Is there any another way, some FM or sth else?
    thanks
    Juraj

    I already tried it, but I always get dump with CX_SY_OPEN_SQL_DB exception.
    The problem is, that I tried to execute the query within open custor loop and this exception is caused by calling commit work somewhere in query report.
    therefore I try to find another way
    thanks
    Juraj

  • SAP query SQ01 change not reflecting in Querys ABA program

    Hi Guys,
    Need your opinion on this issue. We have modified an existing query in SQ01. Added a new selection field and re-arrranged the selection criteria in general. However, I do not see any change in the generated ABAP report. The timestamp on the report in SE38 is from almost a year ago. Am i missing a step here?
    Thanks.

    Hi.
    Please try.
    SQ01
    Input query ID.
    menu-Query-More functions-Generate program

  • SAP Query thorugh SQVI not working

    I tried SQVI for some non-standard reports by Table-Join method. but i find very few times I succeed. Most of the times though the syntax is correct, when the selection screen is executed no data displays (with 'No data selected' message).
    What could be going wrong.
    Kindly help
    Regards
    Jogeswara Rao

    Hello,
    there can be few reasons for this:
    1. Your user authorization is low (maybe tables you have selected are not in your authorization profile)
    2. Maybe you have used incorrect join condition (inner/left outer join)
    3. Tables you are trying to join does not share the same information (watch for key fields as well)
    Best regards,
    Gabriel.

  • SAP Query - Ad Spec

    I want to get the Ad Spec and Sub Ad spec what are the essential Tables to use/link up?
    Currently the tables I using in SAP Query are:
    JHAK - Header Data
    JHAP - Media Item
    JHAGA - Billing Dataset
    JHAMOT - Ad Spec
    The linkage as follow:
    JHAK >> JHAP >> JHAGA >> JHAMOT
    The record as follow:
    Order 700002588 contain 2 Ad items, the 1st Ad item have 1 Sub Ad Spec & the 2nd Ad item without any sub Ad Spec.
    Order 700002615 contain 1 Ad item with 2 sub Ad Spec.
    By tweaking the link , it either I get duplicate records of  items to many ad specs/sub ad specs (700002588) and 1 Ad item with Sub Ad Spec (700002615) as shown:
    Order               Item        Ad Spec
    ========            ====        ========
    70002588            001          000001
    70002588            001          000002
    70002588            001          000003
    70002588            001          000001
    70002588            001          000002
    70002588            001          000003
    70002588            002          000002
    70002588            002          000002
    70002588            002          000002
    70002615            001          000001
    70002615            001          000002
    70002615            001          000003
    Or no duplicate records but an ad item suppose to have many sub ad spec was not shown:
    Order               Item        Ad Spec
    ========            ====        ========
    70002588            001          000001
    70002588            001          000003
    70002588            002          000002
    70002615            001          000001
    Is there any missing tables that i need to link up so as to have the correct number of item with ad spec and sub ad spec without any duplication?

    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=30083
    Please give me reward points...

  • Sap Query Additional Fields using  Abap Code

    Hi Experts,
    I am relatively new to the world of SAP query (Log Database PNPCE), I have written a number of additional fields to retrieve previous info-type data using the select statement E.G
    prev_endda = p0008-begda - 1.
    SELECT  single bsgrd
          INTO FTE1
          FROM
            pa0008
          WHERE pernr EQ  P0008-pernr
          AND   endda EQ prev_endda
    Although I can retrieve the previous info-type data , I was wondering if there was a easy way where I could take this a step further and show the Previous , Previous record. I.E
    Pernr     FTE Current    FTE1      FTE2
    101              60%          30%       75%
    I guess what I am asking is , is there a way to loop through the HR info-type records, does anybody know if there is a standard function or macro I can use to achieve this.
    Your help is much appreciated.

    Hi ,
    Thanks for our reply.
    I have pasted some example code into my additional field which I have created in SAP Query But im not sure how the loop bit works and how I can populate the additional fields that I have created , could you please explain this
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr                 = '000000019'
        infty                 = '01'
        BEGDA                 = '18000101'
        ENDDA                 = '99991231'
      tables
        infty_tab             = p0008
      EXCEPTIONS
        INFTY_NOT_FOUND       = 1
        OTHERS                = 2
        LOOP AT p0008.
    NOT SURE WHAT TO PUT IN THIS SECTION *****
      ENDLOOP.
    I have created 3 additional Fields in the infoset Current FTE ,FTE1 FTE2 , and I want to loop through the records and populate the relevant Additional field with the employees FTE  (I only want to populate  where there is a change)
    Sample Data
    Begda              Endda             FTE        Salary
    1/1/2010         31/12/999       60%         19K          (Current  FTE)
    01/08/2009     31/12/2009     100%       27k           (FTE1)
    01/07/2008     31/7/2009         50%       17K          (FTE2)
    Thanks in anticipation
    DM

  • Using SAP Query Extractor for GLPCA

    Hi, We are considering to use SAP Query to extract GLPCA data so that we can retrieve some additional information.   We are doing this because we need to check BSEG for a Material Number and replace Material in GLPCA it if it's different than the one in GLPCA.
    How can the SAP Query be used to perform the required delta?  Example: using CPUDATE and Time?
    Any help with this is greatly apprectiated.
    Thanks,

    Decided not to use SAP Query.

  • SAP Query into FTP through ABAP

    Hi Experts,
    I have an SAP query which needs to be run on a daily basis (through a back ground job) and the data that is pulled has to be stored in a file in tab delimited format and the same should be extracted to an FTP site. Can you please suggest ways for this?
    Thanks,
    Shashank.

    Hi ,
    Thanks for our reply.
    I have pasted some example code into my additional field which I have created in SAP Query But im not sure how the loop bit works and how I can populate the additional fields that I have created , could you please explain this
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr                 = '000000019'
        infty                 = '01'
        BEGDA                 = '18000101'
        ENDDA                 = '99991231'
      tables
        infty_tab             = p0008
      EXCEPTIONS
        INFTY_NOT_FOUND       = 1
        OTHERS                = 2
        LOOP AT p0008.
    NOT SURE WHAT TO PUT IN THIS SECTION *****
      ENDLOOP.
    I have created 3 additional Fields in the infoset Current FTE ,FTE1 FTE2 , and I want to loop through the records and populate the relevant Additional field with the employees FTE  (I only want to populate  where there is a change)
    Sample Data
    Begda              Endda             FTE        Salary
    1/1/2010         31/12/999       60%         19K          (Current  FTE)
    01/08/2009     31/12/2009     100%       27k           (FTE1)
    01/07/2008     31/7/2009         50%       17K          (FTE2)
    Thanks in anticipation
    DM

  • SAP Query :  Excel sheet  download problem

    Hi,
    While executing a Z SAP query in SQ01 and data is displaying  fine in the ALV format. But when we export the data to excel sheet, every column is appearing twice (repeating only the header,  with empty items)
    something like this......
    Excel sheet...
    Header MATNR  MATNR  MATKX MATKX   LIFNR  LIFNR  KUNNR   KUNNR
    Item     10                       Test                   ABC                ABC
                  20                       Test2                 XYZ                 XYZ
                  30                       Test3                 MNO               MNO
    What can be possible cause of this ? What can be the corrective step to the issue?
    Thanks,
    Jai

    Hi ,
    Please follow the below step .
    In SQ01 --> In the List Display screen --> click on Export --> Local file --> Spread Sheet --> Give the File name and click on generate .
    It s working file . and i can be able to download all the records to excel without any repeatation .
    Thanks
    Pavendhan

  • How to change order of columns in SAP Query

    Hi,
    I am working on SAP Query for first time using txn SQ01. Have some doubts on it.
    ->  If i want to change the order of the fields in the output in an existing sap query, i could not find any
       way other than deselecting the fields and again selecting them in the order they want to be. Is there any
       other way for this ? By the way, can we create an SAP query without an info set.
    Thanks in Advance.

    Hi Prasad,
    Please take notice of the [Forum Rules of Engagement |https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] ]
    here you can read
    Step 3: Provide Feedback and an Update
    Finally, it's nice to follow up with a brief update if you found the solution. People may try to help not because they know the answer, but because they are interested in solving the same problem; or people may just encounter the same issue in the future and be searching the archives. It's a good way to give back to the community, irrespective of whether you are a beginner or an expert.
    We are interested not so much that but much more how you solved your question.
    Thank you for cooperation.
    Clemens

  • RE: SAP Query

    HI All,
    I would like to create a report by SAP query for Asset master data how to create that report by using sap query kindly let me know from beginning to end as i am new to this area..
    regards
    venkat.

    Hi Venkat
    Use the transactio code SQVI and create the query.Use the tables ANLA,ANLB,ANLC,ANLZ,ANEP are some of important tables which can be used for asset related data.
    Go to SQVI and create a name and then use the table join functionality if you want data to be picked from more than one table.
    Then you will have selection or list check box.Here you have to decide what are the fields you want for input and what is the out put you require.Selection check box is input and list check box is output.
    There are another set of transactions like SQ01,SQ02,SQ03 which you have to do and transport the same.SQVI can be directly used in your production directly.
    Regards,
    Gokul

  • Where can I get the itab of generated sap query?

    Hi all,
    I generated a sap query which can display list of table in SAP ALV.
    Now I need to get the itab from the generated codes to perform some custom coding like sending the display list in email body message.
    Where can I get the itab now? From the SAP Query program I noted:
    data: begin of %g00 occurs 100,
                P0000-PERNR like P0000-PERNR,
                P0002-VORNA like P0002-VORNA,
                P0002-NACHN like P0002-NACHN,
                P0019-MNDAT like P0019-MNDAT,
                P0019-BVMRK like P0019-BVMRK,
                TEXT_P0019_BVMRK like TEXT_P0019_BVMRK,
                P0019-TERMN like P0019-TERMN,
                P0019-TMART like P0019-TMART,
                TEXT_P0019_TMART like TEXT_P0019_TMART,
                SYHR_A_P0019_AF_TEXT1 like SYHR_A_P0019_AF_TEXT1,
                SYHR_A_P0019_AF_TEXT2 like SYHR_A_P0019_AF_TEXT2,
                SYHR_A_P0019_AF_TEXT3 like SYHR_A_P0019_AF_TEXT3,
                P0019-UNAME like P0019-UNAME,
                %alvcount type i,
          end of %g00.
    data: begin of %%g00,
                P0000-PERNR(008),
                P0002-VORNA(030),
                P0002-NACHN(030),
                P0019-MNDAT(010),
                P0019-BVMRK(001),
                TEXT_P0019_BVMRK(040),
                P0019-TERMN(010),
                P0019-TMART(002),
                TEXT_P0019_TMART(081),
                SYHR_A_P0019_AF_TEXT1(072),
                SYHR_A_P0019_AF_TEXT2(072),
                SYHR_A_P0019_AF_TEXT3(072),
                P0019-UNAME(012),
          end of %%g00.
    I tried to declare DATA lt_g00 TYPE TABLE OF %g00 in infoset (END-OF-SELECTION After list output) but it cannot compile. It gives out the error message: Type "%G00" is unknown
    Anyone have any idea?

    Hi, colleagues!
    If someone's facing the same problem - it seems to be that the only solution is to use something like this:
    FIELD-SYMBOLS: <fs_alv_copy> TYPE ANY TABLE.
    ASSIGN ('(NAME_OF_YOUR_GENERATED_REPORT)%G00[]')
    TO <fs_alv_copy>.
    and then work with field symbol.

  • SAP MII 14.0 SP5 Patch 11 - Error has occurred while processing data stream Dynamic Query role is not assigned to the Data Server

    Hello All,
    We are using a two tier architecture.
    Our Corp server calls the refinery server.
    Our CORP MII server uses user id abc_user to connect to the refinery data server.
    The user id abc_user has the SAP_xMII_Dynamic_Query role.
    The data server also has the checkbox for allow dynamic query enabled.
    But we are still getting the following error
    Error has occurred while processing data stream
    Dynamic Query role is not assigned to the Data Server; Use query template
    Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
    Thanks,
    Kiran

    Thanks Anushree !!
    I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
    But we even needed to add the role to the data server.
    Thanks,
    Kiran

  • PDV and SAP Query - Missing Date Params

    Hello,
    I am working on getting an SAP Query onto our MSS portal using the PDV SAPQuery template.  I want the query to report data as of 1/1/06 but cannot seem to get it to work.  I set up a variant in the system to set the dates but the iview seems to overwrite the date settings at runtime. 
    The function module that is called by this iview seems to be looking for the parameters Begin_Date and End_Date but the iview does not have any such parameters.  Are these supposed to be delivered with the template?  Is there a way to add them?  Has anyone else sucessfully implemented a time sensitive query in the PDV? 
    Thank you,
    Josh

    Hi Josh,
    I ran into the same problem.
    I cannot select any dates. When I run the query without variant, I get results valid only on the system date. If I try to use a query variant with a selected period, I get the message that no dates can be selected.
    Have you or anybody solved the problem?
    Beata

  • SAP QUERY -logical data base ADA

    I have created a SAP Query with logical data base ADA,I have selected four tables in it.Do i need to link these tables if yes..where and how?The report is for fields in asset master data.
    .But i get below error when i try to genaret the output :
    Fields from parallel tables within a line
    Line: 01
    Field: Asset description
    (ANLT-TXT50, table ANLT)
    Field: License plate no. of vehichle
    (ANLZ-KFZKZ, table ANLZ)
    i get such similar five messages but they are warning..when i execute with warning however i get the fields with description but not with Value.Ex:i get asset description and not Asset number as required.

    You don't have to link them, they ar linked that is the power of a logical data base
    To get the text in your report you need the key fields
    Like
    (Lanque Key)
    company code
    asset number
    Asset sub number
    Go to info sets and look to the standard ones like /SAPQUERY/AM01

Maybe you are looking for

  • I want to add automatic fill-in when asked for my email address, phone number, location, etc. How?

    when i visit a website and they ask me to fill-in blanks, such as my email, name, address, phone number, I want firefox to remember. there is an application for auto-fill in. where do I find it?

  • Setting the first day of the week

    Hi, Is there any other place in Mac OS X where I could set system's first day of the week, except iCal? In iCal it's set to Sunday, but in OmniFocus mini calendars show Monday as the first day of the week, although even there in OmniFocus preferences

  • Time to create initial time machine backup on time capsule

    I am using a Time Capsule for my wifi service. Am attempting to use it for Time Machine for an iMac that has (with attached hard drives) ~ 268GB of stuff to back up. Time Machine says it will take 5 days. It never makes it past two before the compute

  • CRM 5.0, e-Commerce 5.0, e-Selling (Internet Sales)

    Dear all, we are currently facing problems getting the e-Selling (Internet Sales) application to work. Unfortunately none of my colleagues and I have worked with these applications. We are using: - NetWeaver EP 7.0 Portal Level 12 - SAP CRM 5.0 with

  • ITunes now wont auto connect when iPhone connected

    Since installing 10.6.8 on my macbook pro now when I plug my iphone in itunes wont auto sync??? Yes the "open itunes when this iphone is connected" and in itunes preferences the prevent field is unchecked. Ideas please ????