LIKP and VBRK query

Hi SAP gurus,
  I'm now writing a query using table LIKP and VBRK to display outbound delivery number and its associated S/O number returning by field VBRK-ZUONR (assignment), because somehow i found this field contains the relevant S/O number i am after.
  It is a pretty simple left outer join between LIKP and VBRK, however results are listed but returned with an empty list "Assignment" left to outbound delivery numbers. i picked up one O/B to check to make sure the assignment number and it is definitely available.
  Could anyone please advise a way of solving this problem, or otherwise if anyone knows how to write the query to display outbound delivery together with its associated S/O will be very much appreciated. (Note: table VBFA is not considered as one of the ways as i have to present a query)
  Many thanks
  Simon

Dear Simon
You can track the preceding data from delivery document which is stored in table LIPS and the field name is [VGBEL]
thanks
G. Lakshmipathi

Similar Messages

  • Question about tables LIKP and VBRK

    I am looking for a join, view, etc... between the tables LIKP (Sales header data) and VBRK (delivery header data).  What we want is information from LIKP and one piece of information from VBRK for the corresponding shipment.  From what I can tell, the only way to join these two tables is by going through tables LIPS (Sales items) and VBRP (delivery items).  Does anybody know of an easier and quicker way?  We will only look at this once or twice a year so creating a program for it is the last resort.
    Regards,
    Davis

    Hi
    Please check the function 'RV_ORDER_FLOW_INFORMATION'
      CLEAR : gt_vbco6, gt_vbfatab[], gt_vbfatab.
      gt_vbco6-mandt = sy-mandt.
      gt_vbco6-vbeln = p_vbeln.
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
        EXPORTING
          comwa    = gt_vbco6
          n_stufen = '50'
          v_stufen = '50'
        TABLES
          vbfa_tab = gt_vbfatab.
    LOOP AT gt_vbfatab WHERE vbtyp_n EQ 'J'
                         AND   vbtyp_v EQ 'M'.
    ENDLOOP.
    Hope this helps
    Caglar

  • Join Problem LIKP,LIPS,VBRK and VBRP

    Hi,
    i am working on the SAP Query report. But having problem in creating joins between the following tables
    LIKP
    LIPS
    VBRK
    VBRP
    please guide me
    regard
    khurram

    LIKP
    LIPS
    VBRK
    VBRP
    select a~ b~ c~ d~ into corresponding fields of table itab from likp as a inner join
    LIPS as b on a~VBELN = b~VBELN
    VBRK as c~VBELN = a~VBELN
    VBRP as d~VBELN = a~~VBELN.
    also check the first condition  a~VBELN = b~(KDAUF,VBELV,VGBEL,WKTNR)
    second condition a~VBELN = c~SFAKN
    third condition a~VBELN = d~(AUBEL,VBELV,VGBEL,VGBEL_EX)
    hope it solves...

  • Vbfa and vbrk tables invoice issue

    Hi friends,
    Here I am facing one problem in one of my report in that i am first match delivery no with likp and vbfa table then i am take vbeln from vbfa table
    like that
    SELECT SINGLE *
             FROM vbfa WHERE vbelv = likp-vbeln  AND vbtyp_n = 'M'
            AND vbtyp_v = 'J' AND rfmng NE 0 AND rfwrt NE 0.
        itab2-invno = vbfa-vbeln.
    Then I go in vbrk table like
    IF sy-subrc = 0.
    SELECT SINGLE * FROM vbrk WHERE vbeln = itab2-invno AND   fksto <> 'X'.                                             
           itab2-invdt = vbrk-fkdat .
    endif.
    so here its take's cancelled invoice also so I add one condition for from vbrk and add it here " fksto  'X'  ".
    so my problem is that I  want to filter vbeln which have  fksto <> 'X'.
    So how can I edit my code and take vbeln fvbrk.
    see this code and modify it if u hv any idea.
    THnaks,
    Prashant.

    Check how different was your code especially in the extraction parameters compared to the one in the above.
    When you need FKSTO NE 'X' i.e Non-Cancelled document, ofcourse you can change the condition and use accordingly.
    Eg: I dont have any syntax errors with the following code:
    PARAMETERS: p_vbelv TYPE vbeln_vl.
    DATA: l_vbeln TYPE vbeln,
          l_fkdat TYPE fkdat.
    SELECT SINGLE a~vbeln b~fkdat INTO (l_vbeln, l_fkdat)
           FROM vbfa AS a
           INNER JOIN vbrk AS b
           ON a~vbeln = b~vbeln
           WHERE a~vbelv = p_vbelv "likp-vblen
           AND   a~vbtyp_n = 'M'
           AND   a~vbtyp_v = 'J'
           AND   a~rfmng NE 0
           AND   a~rfwrt NE 0
           AND   b~fksto NE 'X'.
    IF sy-subrc EQ 0.
      WRITE:/ 'Billing Document:', l_vbeln,
            / 'Date:', l_fkdat.
    ENDIF.

  • BSEG to VBRP AND VBRK

    Hello,
    I need to link sales orders in VBRP and VBRK to their respective GL line entries in BSEG.  Dos anyone have a SQL query that accomplishes this?  I'm not sure what the relationships are between BSEG and these sales tables.
    Any help would be greatly appreciated!
    Thanks,

    Hello,
    Thanks for the answer, however it's not quite what I was looking for.
    To make it easy, here's what I need:
    SELECT *
    FROM VBRP a
    INNER JOIN BSEG b ON (a.VBELN = b.VBELN AND a.? = b.?)
    I need a query that gets me from the VBRP table to the BSEG table.  I know I can link on the invoice number (VBELN), but I'm not sure how to complete the link since the link is from one detail table to another detail table.  Does VBRP.VBPOS equate to something in the BSEG table?
    Basically I'm trying to get a listing of each invoice (with SQL) and figure out what the GL segments were for that invoice.
    Hope this clears things up.
    Cheers

  • Link field between kna1 and vbrk

    Hi All,
    how to link KNA1 and VBRK ?
    i need to get customer number KUNNR using Billing document number VBELN.
    reply asap.
    Regards,
    Booma Ganesan.

    Hi,
    VBRK-KUNWE will have the KUNNR value. Otherwise take the VGBEL and VGPOS value from VBRK and use that in LIKP as VBELN = VGBEL, select the KUNNR number. Use that in KNA1.
    Reward if useful..
    Thanks,
    Muthu.

  • Verifying and parsing "query" in cm:select query="..." ...

    I'm writting a session EJB that's passed a param (String query) which is supposed
    to be any valid "query" string passed to the cm:select tag (see "http://edocs.bea.com/wlcs/docs31/p13ndev/jsptags.htm#1057716"
    for more info on this tag and the query param).
    My problem is this: I don't think I should write ALL the stuff to validate and
    parse this string because bea has already done it in: com.beasys.commerce.foundation.expression.*;
    but the only source of documentation available on those classes is the Javadoc(which
    isn't that complete). Has anyone used these classes before(Search, Expression,
    Criteria, Logical)? Does anyone know of some documents on how to use them?
    Please help if you can. I'd really appreciate it. Thanks.

    rajan please just google or search SDN. there are large number of post for this..
    to give you a head start: for using a particular index in the select query a %_HINTS ORACLE 'INDEX clause is added

  • Insert and update query to calculate the opening and closing balance

    create table purchase(productid number(5) ,dateofpurchase date,
    qty number(5));
    create table inventory(invid number(5),productid number(5),
    idate date,openingqty number(5),closingqty number(5));
    Records in inventory:
    1,1,'01-jan-2009', 10, 20
    2,1,'03-jan-2009', 20, 30
    3,1,'04-jan-2009', 40, 50
    when I enter the purchase invoice for 15 qty on 02-jan-2009
    after say '15-jan-09' , a new record should get inserted
    with opening balance = (closing balance before 02-jan-2009)
    and all the opening and closing balance for that product should
    get affected.
    If the invoice for 20 qty is entered for the existing date say
    '03-jan-2009' in inventory , then the closing balance
    for 03-jan-2009 should get updated and all the following records
    should get affected.
    I need the insert for the first one and update query for the
    second one.
    Vinodh

    <strike>You can do this in one statement by using the merge statement</strike>
    Hmm, maybe I spoke too soon.
    Edited by: Boneist on 25-Sep-2009 13:56
    Thinking about it, why do you want to design your system like this?
    Why not simply have your purchases table hold the required information and then either work out the inventory on the fly, or have a job that calls a procedure to add a row for the previous day?
    If you continue with this design, you're opening yourself up to a world of pain - what happens when the data doesn't match the purchases table? Also when is the inventory cut-off to reset the opening/closing balances? Monthly? Annually? Weekly? If it's set to one of those, what happens when the business request the inventory for a particular week?
    Edited by: Boneist on 25-Sep-2009 13:59

  • How to put variable selection and the query result the same screen

    Dear all,
       how can I put the variable selection and the query result in the same screen? Please advise. Thanks.
    Jin Ming

    Not sure if you are saying you want the prompts on the same page as the results... however in 7.0 with BEx Analyzer, you can insert a text object from the design toolbar and assign it to the variable.... this way, lets say you run query for period 6, then the text object will display "6" on the same area where the query results are.

  • Verity - files and db query combo

    Is it possible to have both a search of some files and a
    query of a database table in the same cfcollection? If so, guidance
    on how to do this?

    I'm not sure if this answers your question, but it's possible
    to combine database and files while indexing.

  • How to implement enter and execute query in ADF

    I am new to ADF and I am trying to create a simple data entry screen in ADF 11g based on a database table. I am looking to implement the equivalent of the Enter Query and Execute Query feature in Oracle Forms. I tried the default operations that are available with the data controls. But they don't seem to have this feature. Can someone help me / point me to how this can be implemented.
    Thanks,
    Srini.

    Thanks Shay. As per your suggestion I have included the Find and Execute buttons for the VO Object and ran the page. I first clicked the Find button and entered by query condition and then clicked the Execute button. At this point I get an error popup asking me to enter values for all the mandatory fields. Am I missing something?
    Regards,
    Srini.

  • Alarm and Event Query Very Slow

    Group,
    I am using the DSC Alarm and Event Query vi to pull data from the SQL database (not the Citadel).  I have a filter set up that specifies the "Alarm Area" and the start and stop dates with maximun results set to 22.  These dates are set to only pull the last 24 hrs.  This vi will return around 10 to 20 entries out of perhaps 80-90 total events in the last 24 hours in the database.   This database is ~2M in size.   I have to set the timeout to almost 10 min for this vi to not produce a timeout error.  The results returned are correct but it just seems that the time to run this vi is excessive.  It is quering a database on the same system that the quering vi is running on.  Should I expect better preformance?
    Thanks
    Todd

    Verne,
    I have boiled down the code to this attachment.  This query took almost 7 min to return 22 results from a database size that is listed as 2.09877E+6.  I have also tried the Alarms and Event Query to spreadsheet vi also and it takes the same amount of time.  I am wondering if I place the Alarms and Events into the same (Citidel) database that the traces are going if it would be much faster.  I seem to get trace data back very fast.  If I recall correctly I seperated the alarms from the trace because I was having some sort of problem accessing the alarm data in the combined database...but that was several labVIEW versions ago.  Anyone else having this problem?
    Thanks
    Todd
    Attachments:
    Generate Alarm Log General Test.vi ‏19 KB

  • Relation b/w likp and ekko

    hi
      can i have the relation b/w likp and ekko(direct / indirect)
      with thanks
       mahi.

    Hi,
    You can link your sales order number with PO from table EKKN.
    1.First get sales order number for delivery from VBFA.
    2.You can get the Purchase order number for sales order from table EKKN.
    Regarsd

  • OBIEE -10.1.3.4.1 - high physical and logical query response

    Hi All,
    I am facing an performance issue in OBIEE 10g .My report is taking 2 mins to come up and when i fired the physical query in the db the data is coming in 2 secs.
    Below is the details from the log file.Here I observed that response time for physical and logical query is 109 sec ~ 2 mins.Please provide me the helpful pointers.
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>>, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>> DbGateway Exchange, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Execution Node: <<2650466>> DbGateway Exchange, Close Row Count = 3332, Row Width = 26000 bytes
    +++Administrator:370000:370015:----2013/01/22 07:28:04
    -------------------- Query Status: Successful Completion
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Rows 3332, bytes 86632000 retrieved from database query id: <<2650466>>
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Physical query response time 109 (seconds), id <<2650466>>
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Physical Query Summary Stats: Number of physical queries 1, Cumulative time 109, DB-connect time 0 (seconds)
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Rows returned to Client 3332
    +++Administrator:370000:370015:----2013/01/22 07:28:05
    -------------------- Logical Query Summary Stats: Elapsed time 109, Response time 109, Compilation time 0 (seconds)

    Did you run the SQL from a client on the OBIEE server or your local machine? Does the Physical SQL on the OBIEE server against the DB run in 2 Seconds and when sent by the OBIEE server it takes 109 seconds?? Is that correct?

  • Difference between Report painter and abap query .

    can anyone please tell me the difference between the report painter and the ordinary alv,clasical reporting and also the difference between Report painter and abap query. How the output format will be in Report painter. If anyone has any documents please send it to
    [email protected]
    Thanks,
    Joseph.

    hi,
    ABAP Query is an ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    link for abap query --
    https://forums.sdn.sap.com/click.jspa?searchID=221911&messageID=2790992
    whereas the Report Painter enables you to report on data from various applications. It uses a graphical report structure that forms the basis for the report definition. When defining the report, you work with a structure that corresponds to the final structure of the report when the report data is output.
    link for report painter --
    https://forums.sdn.sap.com/click.jspa?searchID=221874&messageID=1818114
    Regards,
    pankaj singh
    Message was edited by:
            Pankaj Singh
    Message was edited by:
            Pankaj Singh

Maybe you are looking for

  • Surprise suprise! Can't install itunes to my win7 64-bit...help!

    So I got a brand new Sony Vaio laptop with Windows 7 64-bit for Christmas and it won't let me install itunes. I keep getting the message: "The installer encountered errors before iTunes could be configured. Your System has not been modified. To retry

  • I have Mandirva Springs 64 bit OS. Adobe-Flash is not working?

    I recently installed Mandriva-springs 2010.1 64 bit os. Inspite of putting the flash player plugin so in /usr/lib64/mozilla/plugin folder it does not work. There is no folder for plugin in /usr/lib/mozilla/. How ever all other plugins are working fro

  • Purchased mac book air in USA, now in UK is it possible to change dollar sign to pound sign

    I purchased mac book air in USA, now inUK, can I change the dollar sign to a pound sign?

  • Why can't I make alias to server

    Previous versions of the Finder did let us make alias on our desktop pointing to server's share and folders. I know you can make a stack in the dock but aliases were so convenient!? This can't be done anymore why? When will this feature be back? It a

  • Applet doesn't work!

    Hello, I create an applet from a book. It works in JBuilder4 at home. But when I try to post it on MSFrontPage at home or on the Internet with IE5.5, it doesn't work. It just shows grey applet display with error message "Class SquareInt not found". W