Standar query

I have standard query. I save as the query and make some changes to the saved as query.
But the changes that i am making to the save as query are getting applied to the Standard query.
I also tried copying the query and making the changes to the copied query , but the changes are reflected in the orignal query also. why so?
Please help.

hi,
i think here their must be one of this scnarious
1. i think u haven't changed the tech.name
2.u are using the global structures if u use global structure and made changes it will reflect the queries which are
using the global structures
and let me know what are u changing in the saveas query

Similar Messages

  • Problem with an ALV of an standar query

    Hi:
    I made a copy of an standar Query. The asked me to add a column the user can modify. I see that it uses the function REUSE_ALV_GRID_DISPLAY. I modify the attribute
    it_fieldcat-INPUT = 'x' but when i continue executing the function it continue like output. I send an example of my registrer of it_fieldcat. If somebody can help me if i have to put another parameter would be great. Thanks.
    row_pos= 0
    col_pos= 0
    fieldname=   MARAV-MATNR
    tabname= 
    ref_fieldname=  MATNR
    ref_tabname=  MARAV
    currency= 
    cfieldname= 
    ctabname = 
    quantity =
    qfieldname= 
    quantity unit=
    qtabname =   
    roundfieldname =
    roundtabname =
    round   =     0
    decimals =
    decimalstabname =
    decimals_out=
    text_fieldname =
    exponent =
    key  =
    icon=
    symbol=
    checkbox=
    just=
    lzero=  X
    no_zero=
    edit_mask=            
    emphasize =
    fix_column = 
    do_sum    =
    no_out    =
    tech       =
    outputlen   =   000018
    offset      =  000000
    seltext_l   =  
    seltext_m   =  
    seltext_s   =  
    reptext_ddic = 
    ddictxt=    L
    rollname=    MATNR  
    datatype =   CHAR  
    inttype   =    
    ddic_outputlen = 000000
    intlen         = 000018
    lowercase   =
    key_sel = X
    no_sum  =
    sp_group =
    reprep  = X
    input = X
    hotspot =

    Hello,
    Try this example.. BCALV_TEST_GRID_EDIT_02
    call function 'LVC_FIELDCATALOG_MERGE'
          exporting
            i_structure_name = 'ALV_T_T2'
          changing
            ct_fieldcat      = gt_fieldcat.
        loop at gt_fieldcat into gs_fieldcat.
          <b>if gs_fieldcat-fieldname = 'CARRID'.</b>
           <b> gs_fieldcat-edit = 'X'.</b>
            modify gt_fieldcat from gs_fieldcat index sy-tabix.
          endif.
          if gs_fieldcat-fieldname = 'CONNID'.
            gs_fieldcat-edit = 'X'.
            modify gt_fieldcat from gs_fieldcat index sy-tabix.
          endif.
          call method my_grid->set_ready_for_input
            exporting
              i_ready_for_input = 1.
    Hope it helps
    Madhavi.

  • 0FIAR_C03

    Hi all!!
    Im using this cube 0FIAR_C03 and everything looks fine; the problem is when I display information about debitor in diferents range of analysis days, for example; I calculated in standar form the credit balance of each client from 1-30 days, 31-60, 61 to 90 and >90. The problem is that in some columns for example
    31-60 and 61-90 i have negatives values, that are payments that the client realized but in R/3 this payments not are cleared.
    So, I think that the problem is in R/3 and BW is ok; but i need to confirm this, how i can do that?
    Thanks for the help
    Mónica

    Hi all!!
    Thanks all for response,
    Im going to put an example to try explain me better.
    In BW I have a customer and this is the balance:
    Balance                      Current Balance                      Past due balance
    200                                    0                                             200
    Thats means that everything is in past due....
    Then I have this KF
    1-30 days                       31-60 days                      61-90 days                   >90 days
    100                                   -30                                 -50                                 180
    This information was created from the standar query.
    In R/3 i have this:
    Balance                        Current Balance                    Past due balance
    200                                      0                                           200
    At this point, everything is fine, but,
    1-30 days                        31-60 days                   61-90 days                 >90 days
    100                                     0                                    0                            100
    I review the transaction F.30 and FBL5N and found this:
    The Balance is correct, I have differents doctos
    I have a payment for the customer for -30 and another for -50; this payment are from June and July; this quantities are the same that I have in BW in the 31-60 and 61-90 key figures, but this quantities should be desconted from the >90 days, I mean this 80 should be sustracted from the 180 and I have >90 only 100, and this is not happening in BW. In BW this quantities are grouped in the days that were pay.
    I think that the problem is because in R/3 the user dont cleared the documents, in the transaction FBL5N i have this documents with status red, but im not sure that this is the reason.
    Thanks again for the response,
    Greetings
    Mónica

  • BI standard Querygiving incorrect results

    Hi all,
    I am working on FI and activated the BI content for FI AR and FI Gl and FI AP.
    i have loaded the data sucessfully and it is reconsiling with R/3 at DATA TARGET level which is cube 0FIAR_C05
    but when i run the standard query 0FIAR_C05_Q0001 i am getting incorrect results
    Cube:
    customer !  num of payments ! payment amt
    426         !      2                     !    10,000
    Query result
    426         !       2                     !   100,000
    This looks like a scaling error but i cant understand why a standar query has this issue,
    is this a bug?
    i know we can adjust the scaling factor but this will cause issues....
    can some one advice me on this problem.
    Thanks in advance
    CG

    Hi Praveen,
    The scaling factor in the query says From key Figure
    and in the properties of KF it says saling factor1
    but this came as standard and i cant see the proper reason.
    Thanks for ur quick reply

  • Are there any standar iview that works with transaction Ad-hoc Query?

    Are there any standar iview that works with transaction Ad-hoc Query?
    So, I want the same iview for the various querys.
    Are there any iview how this?

    I am working with Portal and HR.
    Now, we are looking for to make a query, get the generated code, and insert it in a rfc. So, i could make a java web dynpro and call the rfc. But this is not the best solution.
    My question is about are there any standard iview for this scenario.
    Do you know?

  • Query to display Standar Routings and Operations!

    Hello again SAP gurus...
    I'm trying to create a query to show Standard Routing and Operations.
    For this I am using PLKO -> PLAS -> PLPO. Select parameters are PLKO-WERKS only.
    The system don't show any information!!!
    Can someone help on this?
    Thanks in advance.
    Adelmo Silva

    Hi,
    pls try connect below
    PLKO-WERKS
    PLKO-PLNNR = PLAS-PLNNR and
    PLKO-PLNAL = PLAS-PLNAL
    PLAS-PLNNR = PLPO-PLNNR and
    PLAS-PLNKN = PLPO-PLNKN
    I hope this will work fine
    Regards,
    Sankaran

  • How to modify standerd query in sap...(/SAPQUERY/AM07)

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

    Hello Srini,
    First of all first identify the actual Exit name .
    Now go to Exit and enter the
    Loop at screen.
      If your conidition satisfies.
        screen-input = ' ' .
        modify screen.
      Endif.
    Endloop.
    Thanks,
    Chidanand

  • Standar ws ProjectByPartyQueryResponse_In is not returning any values

    Hi gurus,
      I'm trying to use the standar webservice ProjectByPartyQueryResponse_In in our landscape in order to get all the projects related to the person responsible for the project but the web service is not returning any values.
    When I execute the service -using soapui- with the following values (or any other value for that matters):
    <PartyID>20000143</PartyID>
    <PartyRoleCode>ZA</PartyRoleCode>
    The web service always returns :
           <Log>
                <BusinessDocumentProcessingResultCode>5</BusinessDocumentProcessingResultCode>
                <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>002(ECC_SE_COMMON)</TypeID>
                   <SeverityCode>3</SeverityCode>
                   <Note>No records returned for ZA 0020000143</Note>
                </Item>
             </Log>
    The party Id exists and also de party role code and there is at least one project that has that party with that role. I'm sure because I use other web service to find a project by id and in the result the project has the <Party> section with those values.
    I was looking for solutions, notes, threads in forums with no success, then i decided to debug the webservice and I did find the following line in the webservice code.
      SELECT objnr INTO TABLE it_data FROM ihpa
      WHERE  parvw = role_code AND
             parnr = party_id AND
             obtyp = 'PDN'.
    when that line executes the select always returns 0 values, then I look in the table IHPA using the SE16 without any filter and I found that my records exists!! but the select does not get it. I was wondering why the select is not working and then I filter the data in the SE16 using the same values that the query does
    for example:
    PARVW= ZA
    PARNR = 20000143
    OBTYP = PDN
    And I was surprised when the SE16 did not found any value even I was seeing in the previous screen with no filters!!!! And I supouse thats why the webservice is not working. I started making filters one by one, for example firts filtering just de PARVW = ZA and works, but when I filter just the PARNR =  20000143 the SE16 can't find any value, just when I put an * at the end of the number the SE16 returns all the values expected, Im guessing that the fields in the database has blanks at the end but this is a standar table and a standar program.
    Have any of you had the same problem? is there anything that I can do? does anyone knows if this is an unkown bug? becaus I could'n find any note on the marketplace.
    Any help would be appreciated.
    Gustavo Balboa

    Hi!
      The problem were solved but not using the Badi, because the badi only let you change the value of the var party_id and that var is declared as PARNR (of type numeric with length 10), and no mater wat you do the two 00 can´t be removed.
      We solved the problem with an enhancement point in the code at the method "party_get_data", look at the beginin and at the end. We just change the type of var used for party_id.. now we use a CHAR one insted the numeric used by the original code.
    And we repeat the select...
    Thank you very much for the help.
    METHOD party_get_data.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(1) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, Start                                                                                A
    $$-Start: (1)----
    $$
    ENHANCEMENT 1  ZPARTY_GET_DATA.    "active version
    DATA : WA_PARNR TYPE I_PARNR.
    DATA : WA_CHPAR(10) TYPE C.
    ENDENHANCEMENT.
    $$-End:   (1)----
    $$
      DATA :  temp_object_number TYPE ihpa-objnr,
              field1 TYPE char50,
              field2 TYPE char50,
              field_role TYPE char50,
              field_party TYPE char50,
              st_object_number TYPE TABLE OF bapiprexp.
      DATA : it_data TYPE TABLE OF st_data,
             wa_data LIKE LINE OF it_data,
             itab TYPE TABLE OF st_data,
             wa LIKE LINE OF itab,
             wa_project_details LIKE LINE OF project_details,
             null.
    Select Object number based on input Party and Role
      SELECT objnr INTO TABLE it_data FROM ihpa
      WHERE  parvw = role_code AND
             parnr = party_id AND
             obtyp = 'PDN'.
    Select Project ID based on input Object number
      LOOP AT it_data INTO wa_data.
        SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
        WHERE  objnr = wa_data-pspid.                         "#EC CI_NOFIELD
        ENDSELECT.
        MOVE-CORRESPONDING wa_data TO wa.
        APPEND wa TO itab.
      ENDLOOP.
      IF sy-subrc <> 0.
        field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
        field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
        CONCATENATE  field_role role_code_external INTO field1.
        CONCATENATE  field_party party_id INTO field2.
        MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
        CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
          TABLES
            return = party_return.
      ELSE.
        MESSAGE s082(ops_se_prs) INTO null.
        CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
          TABLES
            return = party_return.
      ENDIF.
      LOOP AT itab INTO wa.
        MOVE-CORRESPONDING wa TO wa_project_details.
        APPEND wa_project_details TO project_details.
      ENDLOOP.
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$SE:(2) Class CL_PRS_PROJECTPRJPARTYQR, Method PARTY_GET_DATA, End                                                                                A
    $$-Start: (2)----
    $$
    ENHANCEMENT 2  ZPARTY_GET_DATA.    "active version
      WA_CHPAR = party_id.
      SHIFT WA_CHPAR BY 2 PLACES.
      CLEAR party_return.
      REFRESH party_return.
      SELECT objnr INTO TABLE it_data FROM ihpa
      WHERE  parvw = role_code AND
             parnr = WA_CHPAR AND
             obtyp = 'PDN'.
    Select Project ID based on input Object number
      LOOP AT it_data INTO wa_data.
        SELECT pspid post1 FROM proj INTO CORRESPONDING FIELDS OF wa_data
        WHERE  objnr = wa_data-pspid.                         "#EC CI_NOFIELD
        ENDSELECT.
        MOVE-CORRESPONDING wa_data TO wa.
        APPEND wa TO itab.
      ENDLOOP.
      IF sy-subrc <> 0.
        field_role = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/ROLE_CODE' ) .
        field_party = cl_wd_utilities=>get_otr_text_by_alias( 'PLM-SE_PRS_XI_PROXY/PARTY_ID' ) .
        CONCATENATE  field_role role_code_external INTO field1.
        CONCATENATE  field_party party_id INTO field2.
        MESSAGE e002(ecc_se_common) WITH field1 field2 INTO null.
        CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
          TABLES
            return = party_return.
      ELSE.
        MESSAGE s082(ops_se_prs) INTO null.
        CALL FUNCTION 'PS_BAPI_MESSAGE_APPEND'
          TABLES
            return = party_return.
      ENDIF.
      LOOP AT itab INTO wa.
        MOVE-CORRESPONDING wa TO wa_project_details.
        APPEND wa_project_details TO project_details.
      ENDLOOP.
    ENDENHANCEMENT.
    $$-End:   (2)----
    $$
    ENDMETHOD.

  • Query on OT Calculation

    Our customer wishes the overtime hours to be computed in the following manner:
    1. Accumulate all the approved extra hours worked by the employee during the calendar month.
    2. Accumulate all the LOP hours for the employee for the calendar month.
    3. Compute A = (Extra hours - LOP hours) for the employee at the end of the calendar month.
    4. If A is positive, take A as OT hours for the month; If A is negative, take A as LOP hours for the month; If A is zero, do nothing
    Each time the employee goes on LOP or works extra hours, it is rounded off to the nearest 30 mins (e.g. LOP or extra hours of 75 mins or above but less than 90 mins will be treated as 90 mins ).
    5. Once the OT hrs are determined in the above manner, apply the OT rate to rate and compute the OT amount.
    My query is as below:
    How do we handle this requirement in SAP? Should it be done thru Time Evaluation in TM Schema or through Payroll Run in Payroll schema? I request our experts to help me
    -Shambvi

    Hi
    See a the standared Schema TM00 will not going to handle this. So you need to make it Z and then you need to do the some PCR config to achiev this,
    1. You have to maintain the employee Attendance in IT2011 on daily basis.
    2. Schema TM00 will take care of the abcentees as the record is not maintained in IT2011 for the day.
    3. To get those LOP Hrs you need to create one PCR for that.
    4. For getting the extra hrs for OT you need to config the time WT.
    5. To capture the OT hrs you need to config your OT WT in table V_T510S where M stands for OT.
    Best of Luck.
    Or else
    You can configure the Comp. off quota and through that u can resolve your issue..
    Regards
    Swapnil
    Edited by: Swapnil1983 on Oct 5, 2011 11:43 AM

  • I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work

    Hi,
    I want to use the SQL query IF EXIST to update or insert data in a ms access table, but it doesn´t work
    (fault number -2147217900)
    I want to search for a value in a ms access table , if it exist i want to update it, if not i want to insert a new row.
    Working with LabView 7.1, database con. toolset.
    Who can HELP?
    Thanks a lot
    Marco

    Hello,
    I think that If exist is not a standar SQL command (I know it exists I think in Oracle and SQL server), MS access doesn't support it, so I think the best way to do it is first make a Select and then either an Update or an insert, sorry...
    Paulo

  • How to modify standerd abap query  (SQ01) ...

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

    s shiva,
    my query is that one only.
    i am having one formula depreciation = ( previous year / aquesition value ) * 100
    this formula i have to insert.
    how can i proced.
    pls guid me.
    thankx and regards,
    sai

  • Question in SAP QUERY- SQ01,SQ02,SQ03

    Hi SAP QUERY Experts,
    I have a question for the query. Is it possible using a interface parameter for report-to-report interface? I mean when I double click on one the data record of query, I want to transfer the key information of this record to the query or report or transaction as parameters. Is it possible? If yes, could you tell me how?
    This is on SQ01, SQ02,SQ03
    Thanks and Regards
    Saravana

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

  • Query en web labels and buttons

    Hi all!!
    I have this requeriment,
    When i see the query in format web; we have this labels or buttons: bookmark, variable screen, exceptions and conditions, etc etc.... when i put the mouse on this buttons; appear a text that says: bookmark button, variable sreen button, exceptions and conditions button, etc....
    Is possible to remove this messages???
    I think that is necessary to change some standar code, but im not sure; I want to know what happend or if we have a note that mention this area.
    Thanks in advanced,
    Greetings,
    Mónica

    Hi
    if I understand your requirement correctly, you r referring to the Tool Tips for buttons on Web.
    You can turn off these in the XHTML code for the template , simply by removing the statement,
    <bi:TOOLTIP value="XXXXX" />
    Or in the property for the button group.
    I hope this helps you,
    Shakeel.

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

Maybe you are looking for