Sales report with gl numbers

Hi Gurus,
I want to generate a report from SD showing details of Material description (items sold) and amount from G/L Numbers 400013, 400017, 400018, 400001 and 400005.with the gl number also displayed. pls help.
thanks
Maureen

Hi,
You can get the Desired report usign the Following tables,
BKPF,BSEG
VBRK, VBRP
VBAK,VBAP & VBFA
I would Suggest you to first analyse what fields you want to extract in the report and if the extracting logic is fairly easy use a SQVI Queiries to make a desired report and specify the join conditions where ever needed in the infoset
or you can ask your ABAP team to write a program in your desired functionality,
Since your report is involving BKPF and BSEG better to write an ABAP Program than a Query.
There will be a reference number in the billing document header (VBRK) which needs to be used as a join condition to BKPF  and the accounting document number is the join condiion between BKPF and BSEG.
for getting t he GOods issue number you can use the document flow table VBFA. Give the billing document number as the Subsequent Number and preceding  document category as " R - Goods Movement"
Hope this Helps
Thanks
Srini

Similar Messages

  • Please any one provide crystal report for  Location wise sales report with GP

    Please any one provide crystal report for  Location wise sales report with GP.Please its urgent

    A report writer tool like Crystal reports is not available due to the cost involved in its licenses.Do you think that Oracle Reports is free then? It's $$$$.
    You can download and test it for free, but if you want to use it in production you have to buy a license.

  • Group By reports with Serial Numbers

    hi,
    i am creating group by reports with serial numbers. i use the
    following code to generate the serial numbers using a formula
    column:
    function SNOFormula return Number is
    SNO NUMBER(5);
    begin
    SNO := :SNO + 1;
    RETURN(SNO);
    end;
    I am able to acheive the required output with the above code in
    the case of Normal Tablular reports. But in the case of Group by
    reports, the output goes as follows:
    for example:
    sno,groupno,empno
    1,g1,e1
    e2
    e3
    4,g2,e5
    e6
    Any way out?. pls help.
    Regards,
    Prabhu S

    create a summary column in the group . set the function to
    count. set the source to the group name. set the reset at value
    as report. create a field in the lay our editor left of the
    group field. set the source as the summary column. you will see
    the numbering.
    Ex :
    Query : Select * From Emp;
    Group Field : Deptno
    Summary Field : CS_Count
    Properties of Cs_Count - Function => Count
    Source => DEPTNO
    Reset At => Report
    Now create a field in the lay out editor left side of deptno
    field lets say "SEQ", set the source to Cs_Count.
    It will disply the serial number of the groups.

  • To create SD Sales Order with Serial numbers

    Hi Experts,
    I want to create a Sales Order with serial numbers info attached to the items.
    The way, i m following is:
    1. Creating the order with BAPI_SALESORDER_CREATEFORMDAT2 function module and save it.
    2. Then add the serials to the already saved SO.
    3. The delivery document is automatically created through some customizing settings.
    This approach has a problem: After SO being saved, because the delivery document is automatically created through some customizing settings. This means i need update serial numbers in both SO and delivery document as well.
    I'm looking for a way to add the serial numbers to the SO before actually saving it. By this way the serial numbers would be actually added in delivery document too. I think BAPI_SALESORDER_CREATEFROMDAT2 is of no help, in this case.
    Is there any function module?
    Grateful for all suggestions...
    Regards,
    Jeo

    Hi Shiva,
    Thanks for your quick reply.
    I have checked that link which you provided. The link actually tells about how can we add serial no after SO being saved, but i want to add serial nos before SO actually saved.
    The same FM given in the link, i m using and its working fine.
    Can you let me know, how can i add serial nos in SO before saving it?
    Is there any FM exist, that could achieve this? OR How can we achieve this by CALL TRANSACTION, if there is no FM exist for this.
    Regards,
    Jeo

  • Sales Reports with Partial Shipments

    Hello,
    I need to write a sales report for open orders. If the order has been partially shipped, I just need to pull what remains to be shipped and display this total.
    If the order has not been partially shipped, I need to pull the doc total.
    How do I specify if an order has been partially shipped or not? Is there any way to say, "If a line in RDR1 has been shipped or partially shipped, sum the totals of OpenCreQty * Price, else pull DocTotal"?
    I need to display the report in 1 line per sales order.
    Thanks in advance,
    Chris

    Hi Christine, 
    Without knowing the exact fields you are using you should be doing something like: 
    If {TABLE.OpenCreQty} NOT EQUAL {TABLE.Quantity} Then
         0
    Else {TABLE.Quantity};
    NOTE: WHERE IT SAYS NOT EQUAL TO should be LESS THAN and GREATER THAN symbols. They don't show up in here.
    So the If is checking what was shipped with the order's quantity.  If they are not equal then show 0 otherwise show the order's quantity. 
    Now you can do a summary and sum this formula and you should get the proper numbers. 
    Good luck,
    Brian

  • Sales Report with Sales Group Field

    Hi Experts,
    Do you know some reports that will display also the sales group value?
    Thanks a lot!

    Hi
    You can create a Z report with the  logic of Fetching VBELN form Table VBKD with customer account assignment group KDGRP.
    Your selection query "Select VBELN from VBKD where KDGRP = '02' ".
    try and revert.

  • Daily sales report with last  selling price

    Dear All,
    how to query daily sales record with last selling price as  following:
    cust. code ,  item  , unit price, last selling price to this cust. within 3 month ,  highest  selling price of  this item with 3months
    I'm new to both  SAP and SQL, Please help! Many Thanks!!
    Wing

    Hi,
       Try this........
    SELECT P.CardCode,P.CardName,P.ItemCode,
    [1] as [Jan],
    [2] as [Feb],
    [3] as [Mar],
      [4] as [Apr],
    [5] as [May],
    [6] as [Jun],
    [7] as [Jul],
    [8] as [Aug],
    [9] as [Sep],
    [10] as [Oct],
    [11] as [Nov],
    [12] as [Dec]
    FROM (SELECT (T0.CardCode),T0.CardName,t1.ItemCode,T1.price,MONTH(T1.Docdate)as month
    FROM dbo.OINV  T0
    inner join INV1 T1 ON T0.DocEntry=T1.DocEntry
    inner join OITM t2 on T1.ItemCode=t2.ItemCode 
    WHERE T1.DocDate>='[%0]' and T1.DocDate<='[%1]' and T1.ITEMCODE='[%2]'
    and T0.CardCode='[%3]'
    ) S
      PIVOT  (max(price) FOR [month] IN
    ([4],[5],[6],[7],[8],[9],[10],[11],[12],[1],[2],[3])) P
    ORDER BY P.[CardCode]
    Check this link for SQL tutorials.........
    http://beginner-sql-tutorial.com/sql-subquery.htm
    http://w3schools.com/sql/default.asp

  • Sales Report with Crystal Report

    Dear experts,
    I have a client who wants a report which shows the following on sales analysis:
    Sale Employee Name, Customer Group Name, cardcode, cardname , ItemsGroup Name,
    itemcode, itemname, weight, quantity, Row Total Value.
    Thank you.

    Hi Tendayi
    Not sure what the question is. Do you need help with the query, with writing the Crystal Report? What are the selection criteria, date, customer, etc.?
    Here is a query to help you with the structure:
    SELECT T2.SlpName, T4.GroupName, T0.CardCode, T0.CardName, T6.ItmsGrpNam,
    T1.ItemCode, T1.Dscription, T5.SWeight1, T1.Quantity, T1.LineTotal
    FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OSLP T2 ON T1.SlpCode = T2.SlpCode
    INNER JOIN OCRD T3 ON T3.CardCode = T0.CardCode
    INNER JOIN OCRG T4 ON T4.GroupCode = T3.GroupCode
    INNER JOIN OITM T5 ON T1.Itemcode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    WHERE T0.DocDate >= '[%0]' AND T0.DocDate <= '[%1]'
    UNION ALL
    SELECT T2.SlpName, T4.GroupName, T0.CardCode, T0.CardName, T6.ItmsGrpNam,
    T1.ItemCode, T1.Dscription, T5.SWeight1, T1.Quantity, T1.LineTotal
    FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OSLP T2 ON T1.SlpCode = T2.SlpCode
    INNER JOIN OCRD T3 ON T3.CardCode = T0.CardCode
    INNER JOIN OCRG T4 ON T4.GroupCode = T3.GroupCode
    INNER JOIN OITM T5 ON T1.Itemcode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    WHERE T0.DocDate >= '[%0]' AND T0.DocDate <= '[%1]'
    ORDER BY T0.DocNum, T1.LineNum
    You can run this direct in SAP query wizard to see if it is what you need before you write the Crystal Report.
    Kind regards
    Peter Juby

  • Asset Report with PO Numbers

    Hello Experts,
    Is there any standard report which shows Asset ID, Asset Tag, Acquisition Cost, Accumulated Depreciation, NBV and PO numbers?
    Thanks,
    Bob

    Hi Bob,
    You can display this fields for example with RAGITT_ALV01. In this report you can define a Sort variant and an History Sheet version.
    You can change the output list via "Change layout" (Ctrl+F8) and also include another fields with report 335065 if the are not available in the layout.  The reports is for all fields (expect of RASIMU* und RAKOPL*) for all fields from ANLAV and ANLB. ANLAV is for ANLA, ANLU und ANLZ.
    Perhaps also the inventory lists are relevant for you.
    Regards Bernhard

  • PO report with asset numbers

    Dear all,
    where can we set link between asset in one PO  to line item of the same PO.At present we have link between asset and PO. so in one zreport we are getting multiple records for the same asset.means that asset is coming in all lines items of PO.Means if there are two line items in PO with quantity 2 and 4 respectively, that asset is coming in both line items instead of one line item.so the no. of assets are doubled.
    so where can we link asset and Po line item in generating z report.
    Thanks,
    Kumar

    Thanks for the answer.
    But there is no PO line item field in this table.So I cannot give logic.

  • Sales report with Batch number & expiry dates

    Hello friends,
    would any one please help me to frame this query to achieve the above ..
    my query is as bellow, but I want to add the batch number & expiry dates along with the other information.....
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    So which table to join to get the batch & expiry...
    Rgds
    Suman

    HI
    Batch table is OIBT, IBT1,OBTN
    SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[ExpDate] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry inner join
    IBT1 T2 on T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype and T2.baseentry=T1.Docentry inner join
    oitm T3 on T1.Itemcode=T3.Itemcode inner join OIBT T4 on T1.Itemcode=T4.Itemcode  WHERE T1.[ItemCode] >=[%0] AND  T1.[ItemCode] <=[%1] AND  T0.[DocDate] >=[%2] AND  T0.[DocDate] <=[%3]
    group by T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T4.[ExpDate]
    Thanks
    Mohammad Imran

  • Stock Report with Batch Number

    Hi ,
    My Client requires stock report with Batch numbers .required report format is
    Item Code,BatchNumber,OpenQty,OpenVal,PurchaseQty,PurchaseVal,SalesQty,SalesVal,ClosQty,CloseVal
    I tried using query on wiki for stock report but that query is written in 2007 and Batch tables and OINM table is changes in 8.81.
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLH-INItemInventoryOpeningandClosingStockper+warehouse
    can any one help with stock report- batches.
    Thanks,
    Preeti

    HI,
    use below query as basis and mofiy the fields required. it shows linking in batch and transaction tables:
    SELECT distinct T0.ItemCode,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum,T0.LocCode ,t4.DistNumber as [BatchNumber], T1.Quantity ,T5.CalcPrice as [Price]  
    FROM  [OITL] T0 
              INNER  JOIN [ITL1] T1  ON  T1.[LogEntry] = T0.[LogEntry] 
              INNER JOIN  OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
              INNER  JOIN [OITM] T2  ON  T2.[ItemCode] = T0.[ItemCode]   
              Inner JOin OINM T5 on T0.ItemCode =T5.ItemCode and T0.LocCode = T5.Warehouse  and T0.AppDocNum = T5.BASE_REF
    Thanks,
    Neetu

  • Customer group wise sales report

    can somebody give me a clue as to how to take customer group wise sales report
    thanks

    HI,
    it will not get the sales report with customer group wise in standard SAP.
    in standard you will get the data for the following selection :
    a. Sales Office wise : MC-E
    b. Sales Organization wise : MC+2
    c. Material(Article) wise : MC+Q
    tell me one thing, whether u need the report customer group wise or customer account group wise.
    Regards,
    somu.

  • MCSI report with two dimension

    Hello
    In MCSI, it is possible to get sales report according to  a group of criterias and to drill down according to an other group of criterias. However it would be also convenient to to get a sales report with two dimensions instead of drilling down in order to analyze with Excel Pivot Table. Is there a way to create a specific structure or something to get it done?
    Thanks
    sb

    Great thanks!
    However the two dimension that can be used do come from the first drill down criterias list. However it seems not possible to select a dimension from the second lists with the matrix function. Is there a way to stil get it from the second list as well ?
    thanks
    sb
    Edited by: STANISLAS BRESIN on May 23, 2011 10:38 AM

  • Sales Analysis Report for Batch Numbers

    I am currently having an issue with Batch numbers and sales analysis report item wise. If the goods are delivered it does not show the quantity in the report. is there a way to make the quantites show. Open delivery notes show the quantity in the report. Could the reason be that once the delivery note is closed the quantity does not show in the report.????

    Dear Mr Shah,
    If I understood correctly, you are saying that there is no issue in adding the document with the batch but it is not shown in the Sales Analysis report?
    The Sales Analysis report does not show information regarding the quantity because it focuses on the value of the document.
    In order to have an overview on the trasactions related to the batches please use the Batch Number Transaction Report under Inventory - Inventory report.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

Maybe you are looking for

  • HT1277 How can I re-set the default account in Mac Mail?

    I have two email accunts feeding into Mac Mail.  I want the system to default send from Account A, but it always defaults to Account B.  Thanks!

  • Set back ground color to a particular cell in table view

    hi,     iam working on a jspDynpage and have a htmlb table view for which i need a way to set back ground color to a particular cell in table view, the color has to be set based on a value..is there a way to do it without using an iterator...well iam

  • How to update and retrieve the table control entries and field entries.

    Hello everyone, i have a requirement, i have    company code , plant, fiscal year, posting period  fields in the selection screen and then below that i have a  table control which contains 4 fields  invoice no., check number, check date and amount. i

  • Character changed after compile

    I create sample function in sql: CREATE OR REPLACE function proba return number as --čćžđšČĆŽĐŠ sample text begin return 9; end; And open it in em: return number as --čćžđšČĆŽĐŠ sample text begin return 9; end; It is OK, but after edit/compile in em

  • S_RFC Function Groups

    Hello experts: I am currently using S_RFC with full authorization ( * ) for RFC users in satellite systems. Can anyone clarify what this implies in terms of security? Can I restrict the "Name of RFC to be protected" field only to the function groups