SQ01 Output From Joining VBSEGK and VBSEGS tables-1 line of output per DOC

I setup a query using SQ01 which uses tables VBSEGK and VBSEGS ( parked documents).   The VBSEGS table has multiple lines per document in that there are multiple G/L accounts, cost centers and amounts in order to distribute expense acorss multiple cost centers from one vendor's invoice.     When I execute the query only the first line item in the VBSEGS table appears and the remaining lines do not appear.    Any insight to get all line items for each document from the VCSEGS table to appear will be appreciated.

Hi,
By default four links will be established between VBSEGK and VBESGS.
AUSBK
BELNR
GJAHR
BZKEY (This link should be removed for getting all the records)
However, you get the line items only if documents exist in both the tables.  Apart from that, if two line items in one table and three line items in another table, you will get only three line items in the report.  You need to select fields related to VBSEGK and VBSEGS tables.
Please provide me more information on your exact requirement.  I can confirm you whether this  is possible by way of query.
Best Regards,
Madhu

Similar Messages

  • Joining temporary and regular tables

    Can you create join between a temporary table and a permanent one?  I'm not sure how that would work. 

    You can join a temportary table to a permanent table like this:
    Specific to SSRS this will not supply a valid dataset in SSRS however.  If you add this as your query in your dataset in your report project:
    USE [tempdb]  
    CREATE TABLE #temp(  
    Col1    INT PRIMARY KEY,  
    nm      VARCHAR(100)  
    INSERT #temp 
    SELECT ContactID,  
           FirstName + ' ' + LastName AS nm  
    FROM AdventureWorks.Person.Contact   
    SELECT nm,  
           Col1,  
           LoginID  
    FROM #temp AS c JOIN 
    [AdventureWorks].[HumanResources].[Employee] AS e  
    ON c.Col1 = e.[ContactID]  
    DROP TABLE #temp 
    But if you attempt to use this as a datasource in a report project you will receive an error.
    Hope this helps

  • Join LDB's - Join LDB and a Table

    Hello Dear Experts,
    I would like to know whether it is possible to join 2 or more Logical DB's together or a Logical DB and a Table together through sq02 while creating an infoset.
    I have a case to solve where I need 2 different logical DB's to join for an infoset I want to create & I have also a case where I need to join a logical DB & a Table to join for an infoset I want to create through sq02.
    Really Great Thanks in advance for your valuable help.!
    Kind Regards
    George

    Hi
    Refer these links:
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec84446011d189700000e8322d00/content.htm</u>
    <u>http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm</u>
    <u>http://www.karakas-online.de/forum/viewtopic.php?t=730</u>
    Thanks
    Vasudha
    Message was edited by:
            Vasudha L

  • Output from java class and display

    I have a big output from a java class after executing a java class... where can store that huge output before I <cflocation to the same page? I need to display the output to the user on the relocated page...Any help appreciated...

    cfsavecontent to a session variable.

  • Can a output from one location and pass it as the input of another location

    I encount a challenging mapping, which invloves many "cross dimensional mappings" and "logic account".
    For maintenance purpose, it is better to converse the data souce twice instead of writing line by line scripts in maploader.
    Can I take the validated reuslt from LocationA as an input for LocationB without user knowing. That's means user only need to import the file once , then click validation, and click export as usual.

    Hi,
    How do you want to import data in Location B... transparent to user? or do you want the user to import it manually?
    Option A: you can create a batch file with file exported from Location A and run batch loader
    Option B: you can copy export file to inbox folder of Location B and then the user can find the file
    HTH
    Regards

  • Why does the published swf output from Presenter 10 fail to play when the zip output is uploaded to my LMS?

    On Win 7, using Presenter 10 the published output .swf (and associated files in the .zip collection) produces only a blank browser frame (both IE10 and Chrome) on upload and launch from the LMS. The index.html file is referencing two .js files that do not exist...
    <script src="./data/html/Project.js"></script>
    <script src="./data/resources/ha/wr_/OpenAjaxManagedHub-all.js"></script>
    Also, seem to be missing a presenter.css file in ./data/html I think the presenter.libs.js file is referencing.
    Are these files required for playback and correspondingly that's why only a blank browser frame is presented on the LMS launch?
    Is it possible that when I publish to my local these files are not being populated in the output .zip for some reason?
    Any help isolating the cause is much appreciated!
    -Ken

    @Willam I am wondering if the first problem has not been properly described. When viewing generated help if you right click and select View Source, as you know, you will get the HTML for the tripane window. I think Rtrown wants to see the code for the default topic. If so, that is something like View this frame.
    Turning to the last paragraph, there is also some confusion there.
    When this first happened, I wondered if the project was corrupted, and I tried a technique I picked up a while ago, involving removing the xpj and cpd files from Windows Explorer, and attempting to restore from the *.FPJ file. However, I get a message saying 'This file is not an HPJ file. Please select an HPJ file to open'. The project does not have an HPJ file! So I had to rebuild the project.
    First, you should only delete the CPD file in most scenarios. See Opening Projects on my site. Deleting the XPJ should not be done other than in a few situations. Secondly, you then restore from the HHP file, not the FPJ file. Not sure how you would do that. Finally an HPJ file is related to RoboHelp for Word and is its equivalent of the XPJ file in RoboHelp HTML.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Output from same script on two different platforms produce different outputs.

    I'm running a command prompt script on two different platforms (Windows 7 desktop and a Microsoft Server 2008 R2 Enterprise platform) and the output the script produces is different on each platform.
     Specifically; the script is
           For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
           For /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
           echo %mydate%>> log.txt
           echo %mytime%>> log.txt
    and the output from the Windows 7 desktop is:
           2014-07-31
           0249 PM
    While the output from the 2008 server is:
           ECHO is on.
           0249 PM

    Hi Dave,
    There's some very good learning resources here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Also, there's a script repository full of examples you can learn from and tweak to meet your needs here:
    http://gallery.technet.microsoft.com/scriptcenter
    As an additional suggestion, I'd highly recommend upgrading PowerShell on Win7 and WS2008R2 to v4. v2 was okay, but v4 makes life much easier (make sure you read the system requirements first though, there's still a few incompatibilities):
    http://www.microsoft.com/en-us/download/details.aspx?id=40855
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • How to join Dimensions and Fact Tables in OBIEE

    Hi All,
    I need to create report which need to get the information from two fact tables and 7 dimensions. The granularity is not same in both the fact tables. One fact table is having common keys between all the dimension tables and second fact table have only two dimension keys but with different names. My requirement is to create the report by taking the measures from both the fact tables.
    I have created joins between the second fact table and two dimension tables in physical and BMM layer and also set the highest level for all other dimension tables in the LTS of second fact table. when am creating report by taking the measures from both the fact tables, data is not getting for the measure which taken from the second fact table. Please advice me how to get the data for the measure which taken from the second fact table.
    Thanks in Advancec !!

    You have to use the level-base measure capabilities.
    http://gerardnico.com/wiki/dat/obiee/bi_server/design/fact_table/level_based_measure_calculations
    For all measures of the second fact table with the lowest grain (with two dimension keys), set for all dimension where you don't have any key the logical level to the "All" or "Total".
    And UNSET the highest level of the LTS for the second fact table.
    Success
    Nico

  • Joining transparent and pool tables.

    Friends,
    I Had to join 7 tables in which 6 are the transparent tables 1 is the pool table. I had declared 3 internal tables one for data from 6  transparent table(JOIN) second for data from pool table third for combining and saving data from both tables into single table. I had written following cide. But its giving errors. I am unable to locate where i made the mistake.
    Also is it possible to join two INTERNAL tables?
    TABLES: EKKO,EKPO,MAKT,LFA1,MSEG,EKET,KONV.
    TYPES: BEGIN OF TAB1,
    BUKRS TYPE EKKO-BUKRS,
    EKORG TYPE EKKO-EKORG,
    BSART TYPE EKKO-BSART,
    LIFNR TYPE EKKO-LIFNR,
    KNUMV TYPE EKKO-KNUMV,
    MATNR TYPE EKPO-MATNR,
    MATKL TYPE EKPO-MATKL,
    WERKS TYPE EKPO-WERKS,
    MENGE TYPE EKPO-MENGE,
    KO_PRCTR TYPE EKPO-KO_PRCTR,
    EINDT TYPE EKET-EINDT,
    MAKTX TYPE MAKT-MAKTX,
    NAME1 TYPE LFA1-NAME1,
      end of TAB1.
      DATA: ITAB1 type table of TAB1,
            WA1 like line of ITAB1.
      TYPES:begin of TAB2,
        KNUMV TYPE KONV-KNUMV,
      KSCHL TYPE KONV-KSCHL,
    KBETR TYPE KONV-KBETR,
    END OF TAB2.
      DATA:ITAB2 type table of TAB2,
            WA2 like line of ITAB2.
    TYPES : BEGIN OF TAB4,
    BUKRS TYPE EKKO-BUKRS,
    EKORG TYPE EKKO-EKORG,
    BSART TYPE EKKO-BSART,
    LIFNR TYPE EKKO-LIFNR,
    MATNR TYPE EKPO-MATNR,
    MATKL TYPE EKPO-MATKL,
    WERKS TYPE EKPO-WERKS,
    MENGE TYPE EKPO-MENGE,
    KO_PRCTR TYPE EKPO-KO_PRCTR,
    EINDT TYPE EKET-EINDT,
    MAKTX TYPE MAKT-MAKTX,
    NAME1 TYPE LFA1-NAME1,
    KSCHL TYPE KONV-KSCHL,
    KBETR TYPE KONV-KBETR,
    END OF TAB4.
    DATA: ITAB4 type table of TAB4,
          WA4 LIKE ITAB4.
    *select a1-bukrs a1 ekorg a1-bsart a1-lifnr b1-matnr b1-matkl b1-werks b1-menge b1-ko_prctr
    c1-eindt d1-maktx e1-name1 f1-menge into corresponding fields of table ITAB up to 50 rows
    from(((((( ekko as a1 INNER JOIN ekpo as b1 on a1ebeln = b1ebeln) inner join eket as c1 on
    a1ebeln = c1ebeln and b1ebelp = c1ebelp) inner join makt as d1 on b1matnr = d1matnr) inner join LFA1 as e1
    on a1lifnr = e1lifnr) inner join mseg as f1 on a1lifnr = f1lifnr and a1ebeln = f1ebeln and b1matnr = f1matnr
    and b1werks = f1werks and b1ebelp = f1ebelp) inner join konv as g1 on a1knumv = g1knumv) .
    select a1bukrs a1ekorg a1bsart a1lifnr b1matnr b1matkl b1werks b1menge b1~ko_prctr
      c1eindt d1maktx e1name1 f1menge into corresponding fields of table ITAB1
      from ((((( ekko as a1 INNER JOIN ekpo as b1 on a1ebeln = b1ebeln) inner join eket as c1 on
      a1ebeln = c1ebeln and b1ebelp = c1ebelp) inner join makt as d1 on b1matnr = d1matnr)
      inner join LFA1 as e1 on a1lifnr = e1lifnr) inner join mseg as f1 on a1lifnr = f1lifnr and a1ebeln = f1ebeln and b1matnr = f1matnr
      and b1werks = f1werks and b1ebelp = f1ebelp).
    *select * from ITAB1 into WA1.
    select KSCHL KBETR KNUMV into  TABLE ITAB2
    from KONV for all entries in ITAB1 where ITAB1-KNUMV  = KNUMV~KNUMV .
      select abukrs aekorg absart alifnr amatnr amatkl awerks amenge ako_prctr aeindt
        amaktx aname1 a~menge
        bkschl bkbetr into corresponding fields of table ITAB4
        from ( ITAB1 as a INNER JOIN ITAB2 as b on aKNUMV = bKNUMV ).
    LOOP AT ITAB4 INTO WA_ITAB.
    WRITE : / WA_ITAB-BUKRS,WA_ITAB-MATNR,WA_ITAB-EINDT,WA_ITAB-MAKTX ,WA_ITAB-NAME1 ,WA_ITAB-KSCHL,
    WA_ITAB-KBETR,WA_ITAB-MENGE.
    ENDLOOP.

    You have too many parentheses in your JOIN condiiton. Your FAE condition is incorrect. And no, you cannot do a JOIN on internal tables.
    Please do an F1 on SELECT.
    Rob

  • How to join HR_API_TRANSACTIONS and wf_item_activity_statuses table?

    Hi, please help im having issues joining the following tables:
    im getting muliptiple records, cos a workflow has muliple records.
    i want to show the wfis.activity status (the status that shows in e-business suite - workflow admin)
    is there a join that im missing ??
    select *
    from HR_API_TRANSACTIONS HAT, HR_API_TRANSACTION_STEPS HATS, wf_item_activity_statuses wfis
    where hat.transaction_id = HATS.transaction_id
    and HAT.status IN ('Y','YS')
    and hat.TRANSACTION_REF_TABLE = 'PER_ABSENCE_ATTENDANCES'
    and hat.TRANSACTION_GROUP = 'ABSENCE_MGMT'
    and hat.TRANSACTION_IDENTIFIER = 'ABSENCES'
    and hat.TRANSACTION_REF_ID is not null
    and hat.item_key = wfis.item_key
    Thanks,
    .....

    This is more a question for the EBS forum than the Reports forum. Better ask it there.

  • SELECTing from multiple rows and different tables

    Basically, I have a table with a primary key and some other columns of data. The second table has a foreign key that points to the first table then has a columns with related data. I want to write construct a SQL query where one of the columns is the primary key from the first table and the second column is a concatenation of all the rows in the second table that have the same foreign key.
    I need this in the form of one SQL statement so that I can use it to create a report in Application Express

    Just in case my first post was a bit unclear.
    My first table has a primary key, INTERACTION_ID, and several other columns of data.
    My second table has a foreign key, INTERACTION_ID, and one extra column, USER_NAME.
    There are several rows in the second table that share the same INTERACTION_ID as each interaction can have many user names. I want to construct a SQL query where I pull the interaction id in one column and concatenate all the relevant rows of USER_NAME as the second column.

  • 720 progressive output from Sorenson Squeeze and Sony Z1 HDV

    Hi
    I have a one off project where I need to film some shots in portrait 16:9 for output on (lots of) 720p digital screens on their sides. I plan on filming this with a Sony Z1 camera in 1080i HD mode on its side and then down-sizing in FCP and converting to progressive WMV files with Sorenson Squeeze.
    I know the Z1 doesn't really do progressive filming. Would it be wise to hire a camera that does support it natively for best results? Or would Sorenson Squeeze do a good job of de-interlacing to 720p for HD LCD panels? Plus, does anyone know of a bracket-type attachment to mount cameras at 90 degrees on a tripod?
    Any suggestions or tips for best results would be much appreciated, and thanks in advance for any help!
    Message was edited by: doug m
    Message was edited by: doug m

    Tom,
    I don't think that your issue is with the Z1. I think that it is with HDV footage in general (nasty format and all) but you don't want to hear that so let's work on getting you going.
    1) You do need some sort of external monitor. YOu have several options, Cheapest is to buy a Matrox MXO and an Apple or Dell 24" monitor. Other options include cards from AJA or Blackmagic. If you are doing everything in HDV I would recommend something from AJA or BM that way you can capture to a more easily editable format like DVCProHD. Do a search for Kona, Blackmagic or capture cards aadn you will find a wealth of info.
    2) for this footage you need to look at the original tapes on an HD tv and see if you are seeing the same thing. This will determine if it is a compressor issue.
    3) How low did you set your bit rate? Max should be below 7 or some DVD players will have issues.
    4) in DVDSP you should be able to bring in your QT ref file and it will encode it for you. If it won't import it makes me wonder if it is being exported properly. Are you going out of FCP by FILE>EXPORT>QUICKTIME>with current settings, and check Make Movie Self-contained?
    One more thing, in this process you are not working with film, others here may be more harsh about this but you are using video so let's call it what it is.
    K

  • Joining OCRD and OCQG tables

    HI all,
    How can i link these two tables?
    OCRD and OCQG?
    Appreciate your advice.
    Thanks!

    Hi,
    By default, join condition exist on these two tables with GroupCode field.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • Recordset output from multiple queries to single table

    Hi
    I am trying to find a way to build a dynamic table where the columns appear to need to come from to different queries or from a union query but am confused.My table would look like this and if there is month data then there will be Year to Date data but not neccessarily vice versa.
    The number of records will vary.
    My sql for Month is
    Select Class, sum(Value) as MonthData
    From Data
    Where Month = Jan
    Group By Class
    For Year is
    Select Class, sum(Value) as YearData
    From Data
    Group By Class
    So all data is coming from my table data which has columns Class, Month, Year, Value
    In my recordset in DQ I want to be able to specify a variable "Month" so user can change it but want year to date to always be year to todays date.
    any thoughts gratefully received.
    Simon
    Class
    Month
    Year to Date
    A
    DataSource1
    Datasource2
    B
    DataSource1
    DataSource2
    C
    DataSource1
    DataSource2

    Hi
    I am trying to find a way to build a dynamic table where the columns appear to need to come from to different queries or from a union query but am confused.My table would look like this and if there is month data then there will be Year to Date data but not neccessarily vice versa.
    The number of records will vary.
    My sql for Month is
    Select Class, sum(Value) as MonthData
    From Data
    Where Month = Jan
    Group By Class
    For Year is
    Select Class, sum(Value) as YearData
    From Data
    Group By Class
    So all data is coming from my table data which has columns Class, Month, Year, Value
    In my recordset in DQ I want to be able to specify a variable "Month" so user can change it but want year to date to always be year to todays date.
    any thoughts gratefully received.
    Simon
    Class
    Month
    Year to Date
    A
    DataSource1
    Datasource2
    B
    DataSource1
    DataSource2
    C
    DataSource1
    DataSource2

  • CLIPBOARD_EXPORT from class CL_GUI_FRONTEND_SERVICES and string table - sh

    Hi Gurus,
    I have a problem with this method. When I'm passin to it table of strings I'm getting short dump. Something about RFC and XML. In my opinion this is error in SAP coding, but maybe I'm wrong. Has anyone this kind of problems with this method? Maybe there is a note to it?
    BR
    Marcin Cholewczuk
    Edited by: Rob Burbank on Jul 30, 2010 2:50 PM

    > @Sandra thank you, I know this will work
    Then, next time, you will ask the question clearly, because it's not what we all have understood!
    > but I still think that this short dump is an effect of error in SAP coding so my question remains.
    No, as I said, all functions based on frontend / OLE always used the C type. When OLE was issued in release 3, the STRING type didn't exist (available since 4.6). As OLE worked very well with C type, they had no reason to spend time to make it work for other types (there is always a risk that there are new bugs, I don't see why it should be considered as a bad policy).
    You may simply argue that the documentation is not complete (or even inexistent sometimes), that's all.
    In your case, we see that the CLIPBOARD_EXPORT method documentation is incomplete:
    DATA (exporting) Contains a table of the data to be copied to the clipboard.
    SAP always worked like that, and we abapers, always had to guess and spend time how these API work. But that's not a big deal usually (as for this one).

Maybe you are looking for

  • Iphone 4 Midnight Release??

    Today i spoke with someone frm my local walmart nd they said they might have a midnight release. Can anyone confirm this?? And what are the chances of this happening??

  • Change the "Instructions Line" in Adobe Acrobat 8 Pro for fillable forms

    I have created a fillable form in Adobe Acrobat 8 Pro - Currently the Instructions say "Please fill out the following form" - I need to change it to "Fill out highlighted fields, choose "Print Form", and follow Instructions on printed Form".  I don't

  • IPhone early termination fee.

    My Iphone 4S 16Gb is completely smashed and im looking at getting a new one. Im on Telstras $59 freedom plan. How much will it cost me and is it cheaper buying a new iphone or paying an early termination fee? Im only 6 months into my plan.

  • If my iPhone stopped working, how do I recover all my pictures?

    Well you see, I dropped my iPhone 4S on the floor with the screen facing down and I picked it up and clicked on the home button but the screen turn into different colors. I tried turning it off and on but the screen wouldn't turn on. It was just diff

  • Temp tablespace and rman

    Hi, Os :aix Db:11.1 We scheduled archive backup every half hour's by oem.today a archive backup running more than 4 hours.The temp free space less than 5%.Our temp size 1TB. Does the temp space needed while doing rman backup? Thanks & Regards, VN