SAP Query with Logical databse BRM

Hi All,
I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
Thanks in advance.
Regards,
TNR

hi
in SQVI, kindly follow the below steps:
a.  in the left hand pane, click on the data fields.
b.  expand the 'accounting document header'.
c.  for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
d.  click on execute,
e. you can now enter the values for the BKPF-TCODE.
regards
eashwar
Edited by: eashwar1 on Feb 11, 2010 11:55 AM

Similar Messages

  • SAP Query with Logical databse

    Hi All,
    I'm developing one report by SAP Query using with logical database BRM to pick the accounting documents. But I would like add some kind of where condtion for one of field for BKPF table. Is there way to achieve this by using logical database concept? If there is a way please help me.
    Thanks in advance.
    Regards,
    TNR

    hi
    in SQVI, kindly follow the below steps:
    a.  in the left hand pane, click on the data fields.
    b.  expand the 'accounting document header'.
    c.  for the field BKPF-TCODE click on the 'List Fields' and the 'Selection fields'.
    d.  click on execute,
    e. you can now enter the values for the BKPF-TCODE.
    regards
    eashwar
    Edited by: eashwar1 on Feb 11, 2010 11:55 AM

  • How to create sap query with "or" relationship

    dear experts,
    I need a report to display the employee whoese WSR is
    changed in the month for infotype 0007.
    that is ,we want to search with selection
    begda OR endda between 2008-01-01 and 2008-01-31.
    how to create sap query with "or" relationship?

    hi use like this,
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
        pernr                 =  p_pernr
        infty                   =  '0007'
       BEGDA                =  p_date1
       ENDDA                 = p_date2
      TABLES
        infty_tab             = itab .
    hi use this by passing the pernr to fm and giving the dates low and high in the p_date1 and p_date2.
    loop at itab where condition.
    endloop.
    may it helps u,
    regards,
    venkat.

  • SAP Query with Multiple lines

    HI Team,
    Can we create multiple lines in an SAP Query? If yes, how (pls explain the steps)?
    Like can we have a line for the employee, next for spouse & then the next for child, so on...and then the next employee details.
    Also, there might be fields which will repeat in most of these lines for each employee.
    Thanks
    RL

    Hi RL:
    HR module have PA0021 table (HR Master Record: Infotype 0021 (Family), with this table into TCODE: SQ02  is naturally obtain the result that you ask, or Do you are customizing "Z" program with ALV?
    Regards
    José Luis

  • Access from WebI/ Universe to SAP Query with user who has analysis authenti

    Hello together,
    I try to run and build a WebI report which is build on a universe based on SAP BW query. The user has restricted access to the data provider on which the SAP query is build. This restriction is based on analysis authentification (SAP BI 7.0) if I start the SAP query in BW the user has only restricted access to the data in the data provider (on which the SAP query is build). If I start the WebI report the user has full access to the data. I checked the authentification and in my opinion there is no other authentification in SAP BW which extends the restrictions.
    Has anyone an idea why the authentification doesn't work?
    Greetings Janine

    Hey here,
    I m creaing my universe on top of Infocube or multiprovider.
    >> The recommendation path is to use BW queries with the necessary Authorization Variables leveraging your BI Authorizations.
    For eg:
    I have 2 users, User1 and User2.
    Now if I want User1 should see data for CostCentre = UK,India.
    User2 should see data for CostCentre = US, UK,India
    >> This is part of BI Authorizations in BW.
    Here are my queries:
    1) Will User1 and User2 be able to see the data level access in Webi Report based on the their Login?
    >> assuming you follow the 2 steps mentioned above (Query and authorization variables) - yes
    If Data level access cannot be achieved in Webi via universe created on top of Infocube/Multiprovider then what is the approach to do so?
    >> Data level security is part of your BI authorizations in BW.
    In a nutshell, BO alone can't do that, one has to set up at BI level.
    Hope clarified all your doubts.
    Gracias...!!

  • SAP Query with multiple list lines

    HI Team,
    Can we create multiple list lines in an SAP Query? If yes, how (pls explain the steps)?
    Example of what I am looking for:  can we have a line for the employee, next for spouse & then the next for child, so on...and then the next employee details.
    Also, there might be fields which will repeat in most of these lines for each employee.
    Ex: EE1 Pernr, PA, PSA, SAL, etc
          Dependant SSN, PA, Address, PSA, etc
          Dependant 2 SSN, PA, PSA, ettc
          EE 2 Pernr, PA, PSA, SAL, etc
    Thanks
    RL

    Hi RL,
    Just using SAP Query I don't think it is possible.
    SAP Query puts each and every DB record on a separate line.
    You need ABAP programming for this.
    Regards,
    Dilek

  • SAP query with FI-SD details

    Hi all,
    I need a report for open items between 2 dates (1.1.08 to 31.1.08) along with the details of billing document number and Sales order number.
    Can you tell me whether any std. t code provdes these details..!?
    If no, Can I create query for the same..!? what tables should I consider for this and in which order I should join them...!?
    Actually, I have tried SQ01, 02 and 03 but when i executing the report, the system is given no items.
    Br..........AJ
    Edited by: Anil Jonnalagadda on Oct 20, 2008 8:19 AM

    Hi,
    Thank you very much for the reply and I regret for not replying at the earliest.
    For this requirement, I used 3 tables BSID, VBAK and VBRP
    BSID- for open items
    VBAK- for Sales order
    VBRP - for Billing Document
    Even I have tried using BSID and VBAK
    BSID- for open items and billing document number
    VBAK- for sales order number
    But both the ways, I ve got the same message " no data selected"
    Can you post me document in sdn !?.  Eventhough it has been prepared in other than english, i can use google language tools and get it translated to english.  But, make sure to mention the language in which it is prepared.
    Further, can you give me logic how it is useful if we use KNA1 for this report..!?
    I am sorry to remind you about my requirement once again. But my intention is to give you my clear requirement only.
    My requirement is a report which shows the open items between 2 dates along with information of billing document number and sales order number.
    Regards,
    Anil Jo.
    Edited by:: Anil Jonnalagadda on Oct 21, 2008 8:51 AM
    Edited by: Anil Jonnalagadda on Oct 21, 2008 9:18 AM

  • Problem in SAP Query with currency conversion   based on table TCURX

    Hi All,
    I have an infoset where tables A903 and KONP are joined . Query is displaying the KONP-KBTER values with currency as stored in the database table .My requirement is to show the KBETR value as per decimals stored in TCURX table for that currency .
    For Example If KONP-KBETR = 51.29 JPY , It sholuld display as 5129  as  Decimal places for JPY is 0.
    There is FM CURRENCY_AMOUNT_SAP_TO_DISPLAY Which gives the equvivalent display value to the databse value value.But it is giving dump because of type conflict with
    KONP-KBETR .
      Can any body help me how can i solve the problem in My Query ? .Pls any small idea taht may help greatly  also warmly welcome .
    Thx,
    Dharma .

    Hi Sriram ,
    But how can i use it in Queries . I mean should I go for a additional filed in infoset and then passing the  converted value to the the that additional field .
    Thx ,
    Dharma .

  • New fields for query with logical DB AFI

    Hello,
    I'm trying to change a Query (SQ01) that uses an infoset that gets the data from a logica DB (AFI), and I would like to include some fields that are not in that logical DB (VIQMFE-OTGRP, VIQMFE-OTEIL, VIQMFE-FEGRP, VIQMFE-FECOD).
    Any idea or manual to do this?
    Thanks a lot!

    Hi!
    I found the solution to this problem.
    In order to show some fields that are not of de BDL, in the Extra tab of infoSet, I insert additional information on node DIAUFK.
    In concrete for the fields that I need, I make a selection in QMFE table and insert the columns that I want.

  • SAP Query with Code page option in background

    Hi All,
    I have a requirement.When the Japanese users run a query in foreground, they can specify the code page which they need to view the output.  When I tried to schedule the query in background as they requested, we discovered that we couldnu2019t specify the code page so I thought we would need some kind of ABAP program that could submit the query and be able to specify the code page.
    Can you please help me how to proceed with this.
    Thanks
    Sreekumar

    Hello Esperado9 Said,
    You can think about MB51 / MB5B report where you can define the selection variant and make settings as per your requirement. These both reports will serve your requirement if you are looking for material mvt documents or stock.
    Hope this helps.
    Regards
    Arif Mansuri

  • UPDATE Query with logic applied

    Hi Experts,
    I need your help for now. Here is my requirement,
    BANNER                                                                         
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production         
    PL/SQL Release 11.1.0.7.0 - Production                                         
    CORE     11.1.0.7.0     Production                                                     
    TNS for 32-bit Windows: Version 11.1.0.7.0 - Production                        
    NLSRTL Version 11.1.0.7.0 - Production                                         
    5 rows selected.
    DROP TABLE LINE_STATUS;
    DROP TABLE LINE_CHILD;
    CREATE TABLE LINE_STATUS
        LINE_ID     INTEGER     NOT NULL PRIMARY KEY,
        LINE_AMT    FLOAT,
        LINE_FLAG   INTEGER
    INSERT INTO LINE_STATUS VALUES(1,1.52,0);
    INSERT INTO LINE_STATUS VALUES(2,1.06,0);
    INSERT INTO LINE_STATUS VALUES(3,2.05,0);
    CREATE TABLE LINE_CHILD
        LINECHILD_ID        INTEGER NOT NULL PRIMARY KEY,
        LINECHILD_LINEID    INTEGER NOT NULL,
        LINECHILD_AMT       FLOAT
    INSERT INTO LINE_CHILD VALUES (100,1,0.50);
    INSERT INTO LINE_CHILD VALUES (101,1,0.50);
    INSERT INTO LINE_CHILD VALUES (102,2,1.00);
    INSERT INTO LINE_CHILD VALUES (103,2,0.05);NOW I NEED TO COLLECT THE SUM OF LINECHILD_AMT FOR EVERY LINECHILD_LINEID REFER LINE_STATUS(LINE_ID) AND TO CHECK
    THE VALUES ARE SAME, THERE CAN BE DIFFERENCE 0.01 THEN TO UPDATE LINE_STATUS(LINE_FLAG) VALUE.
    For Example:
    SELECT SUM(LINECHILD_AMT) FROM LINE_CHILD WHERE LINECHILD_LINEID=1
    Result is 1,
    CASE
        WHEN LINE_STATUS(LINE_AMT)!=SUM(LINECHILD_AMT) THEN 2
        WHEN LINE_STATUS(LINE_AMT) =(LINE_STATUS(LINE_AMT)<=-0.01 OR LINE_STATUS(LINE_AMT)>=0.01 THEN 1
    END CASE <<RESULT>>UPDATE LINE_STATUS,LINE_CHILD SET LINE_FLAG = CASE <<RESULT>> WHERE LINECHILD_LINEID= LINE_ID;
    How can i achieve this ?
    Thanks,

    This may not be the exact requirement as per as values of CASE statement is concern, but it should serve your purpose.
    SQL> select * from LINE_STATUS;
       LINE_ID   LINE_AMT  LINE_FLAG
             1       1.52          0
             2       1.06          0
             3       2.05          0
    SQL> SELECT * FROM  LINE_CHILD;
    LINECHILD_ID LINECHILD_LINEID LINECHILD_AMT
             100                1            .5
             101                1            .5
             102                2             1
             103                2           .05
    SQL> ed
    Wrote file afiedt.buf
      1  UPDATE LINE_STATUS
      2  SET LINE_FLAG=( WITH Sum_Line_Status AS ( SELECT LINE_ID S_LINE_ID,SUM(LINE_AMT) LINE_AMT_SUM
      3                                            FROM LINE_STATUS
      4                                            GROUP BY LINE_ID
      5                                          )
      6                  ,Sum_LINE_CHILD AS ( SELECT LINECHILD_LINEID S_LINECHILD_LINEID,
      7                                       SUM(LINECHILD_AMT) LINECHILD_AMT_SUM
      8                                       FROM LINE_CHILD
      9                                       GROUP BY  LINECHILD_LINEID
    10                                     )
    11                    SELECT
    12                       CASE WHEN ABS(LINE_AMT_SUM-LINECHILD_AMT_SUM)>0.01 THEN 2
    13                            WHEN LINE_AMT_SUM=LINECHILD_AMT_SUM THEN 1
    14                            WHEN ABS(LINE_AMT_SUM-LINECHILD_AMT_SUM)<=0.01 THEN 3
    15                       END
    16                    FROM   Sum_Line_Status,Sum_LINE_CHILD
    17                    WHERE  S_LINE_ID=S_LINECHILD_LINEID
    18                    AND  S_LINE_ID=LINE_ID
    19*                   )
    20  /
    3 rows updated.
    SQL> SELECT * FROM  LINE_STATUS;
       LINE_ID   LINE_AMT  LINE_FLAG
             1       1.52          2
             2       1.06          3
             3       2.05

  • SAP Query with constante code mvt value

    hello,
    I wish to create several abap query since tables MKPF and MSEG for the inventory mouvements. each query for a type of inventory turnover (101, 501,…), but I should not put the code movement in criteria of selection. it is necessary that the code movement should be fixed in the query. should-I declare the MSEG-BWART as a constante? where I can do it?
    thank you for your assistance.
    cordialy Said

    Hello Esperado9 Said,
    You can think about MB51 / MB5B report where you can define the selection variant and make settings as per your requirement. These both reports will serve your requirement if you are looking for material mvt documents or stock.
    Hope this helps.
    Regards
    Arif Mansuri

  • Query with logical DB KDF

    How can I obtain the value of the field LFA1-EMNFR?

    Hi,
    You could use the <b>GET LFA1</b> statement to evaluate LFA1-EMNFR. Try something like:
    <b>
    GET lfa1.
    WRITE lfa1-emnfr.
    </b>
    The LDB driver program would automatically fill the work area of LFA1 and make it available for you in your program. You could then manipulate it as you need. Hope this helps.
    Regards

  • 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

  • How to write ABAP Logic in SAP Query to fetch records from many Tables

    Hi Expert,
    I have one requirement, want to display all BOM (Equipment BOM, Function Location BOM and Meterial BOM) from a particular plant.
    List of tables as below:
    EQST: Equipment to BOM Link
    TPST: Link Between Functional Location and BOM
    MAST: Material to BOM Link
    STPO:BOM item
    Requirement: When user enters Plant then SAP Query should execute and fetch all BOMs (as mentioned above) from STPO Table.
    I have done so far is as follows:
    I create User Group, Infoset and SAP Query.
    While creating INFOSET, i used 4 tables (EQST,TPST,MAST & STPO) and link between then is as follows:
    STPO-STLNR ---> EQST-STLNR : Left Outer Join
    STPO-STLNR ---> TPST-STLNR : Left Outer Join
    STPO-STLNR ---> MAST-STLNR : Left Outer Join
    Now its showing all BOM from all plants though I enter one Plant value.
    Please advise me to write SAP Query and Logic to fetch all BOM from selected Plant Value.
    Thanks,
    Jay.
    Edited by: jaykrishna007 on Jul 29, 2011 11:41 AM

    Hi FCannavo,
    Thanks for your quick reply.
    See, now I changed my Infoset design.
    I added one Plant Table (T001W) and then
    T001W-WERKS--->EQST-WERKS
    T001W-WERKS--->MAST-WERKS
    T001W-WERKS--->TPST-WERKS
    and then
    EQST-STLNR--->STPO-STLNR
    MAST-STLNR--->STPO-STLNR
    TPST-STLNR--->STPO-STLNR
    on selection screen, user will enter Plant Value.
    Now its showing some records, but i dont think so i would be correct output or not, please guide me whether it is correct or not?
    Thanks,
    Jay.

Maybe you are looking for

  • What's going on with ios8... Screen rotate does not work anymore, wifi doesn't work very well anymore and apps are crashing or running slow... Come on Apple sort this mess out

    ssince I updated my iPhone 5s to ios8 ive had nothing but problems... first the the screen rotation is not working... Checked the settings and  lock is off.... The wifi is intermittent, some times it works sometimes it doesn't.... the he iPhone is re

  • Finder application

    So I just got my iPad a couple weeks ago and I'm really enjoying it, however, I've got some ideas of a couple things that could be added in the release of iOS 4 for the iPad that I think would be useful and make the iPad really live up to it's potent

  • Editable TableView (similar to Access datasheet)

    What is the easiest way to implement a TableView similar to an Access datasheet in JavaFX 2 with the following features: 1) all cells are TextAreas and can be edited directly (with the textProperty bound to the data model) 2) if the text in the TextA

  • PLS-00801: internal error [74303]

    Below is the cursor, i am geting error as PLS-00801: internal error [74303] help me please CURSOR c_account_payee_n IS SELECT /*+all_rows*/ RA.royaltor_account_id, AP.payee_id, NVL(AP.statement_pc,0), NVL(AP.statement_qt,1), NVL(RA.statement_print_gr

  • Help! Cannot find notes in iPhone 6

    My notes in my iphone randomly disappeared. They were all there this morning, and when I went to write more notes this afternoon they were gone! None of these notes were attached to my email either. Does anyone know how this happened and how I can re