Manually closed DN appear with value 0 on sales analysis - items

Hello everyone,
When i manually close a Delivery Note (DN) using Data->Close that DN still appears on my sales analysis -> customer. (using the filter -> Delivery Notes)
However when i use sales analysis -> items i only get the list of items contained on that DN. All the columns (quantity, sales amount, gross profit, etc) are with zero values.
Is there any way of showing those values on the sales report? Or any other report? Is this standard system behavior? Shouldn't the items disappear completely then? What is the purpose of showing them without any further information?
Looking forward to be hearing from you.
Regards,
Sérgio Romã

Hello Gordon,
Thanks for the quick reply.
The business process requires me to close the DN manually:
The customer has something like 4000 employees that are created as customers. Each of those employees has a pre-defined creditline amount. DNotes can be created for each employee until that amount. On the second week of every month i need to close all these DNotes (i am doing this using an addon that runs based on schedule defined in a user table and that closes all DN that meet certain conditions) so that i can add more DNotes to each employee. At the end of every month i have another addon that totals all DN added that month (closed and open) and creates a single service invoice for a customer (defined in each employee).
So i need to close them manually because i cannot copy them to a consolidation partner (release of employee creditline and invoicing occur at the different moments during the month).
My disagreament with the system behavior is the following:
- I get the correct the results if i create a sales analysis -> customer. If they don't result in a sales transaction they shoudn't appear on this report either. (according to the logic you presented)
- Sales analysis -> Item. The item lines appear with zero. Once again, if it is not a sales transaction they shoudn't appear at all (according to the same logic). The system is doing the same thing as if the DN has been copied to an invoice which is a wrong behavior. This is a different situation and the item detail should be visible on the sales analysis report.
What do you think?
Regards,
Sérgio Romã

Similar Messages

  • Net Value in sales order item

    Hi All,
    Any one know how the system set net value in sales order item? (VBAP-NETWR)
    I mean, what kind of condition type will be considered in net value calculation.
    Thank you

    Hi,
    In Sales Order net value (NETWR) is always value before tax, it means the condition type determined before tax condition will be considered in sales order Net Value.
    In other words if conditon type have a category defined as D-Tax and Cond. class as D- Taxes, the value of this condition type will not be considered in Net value.
    regards
    Vivek.
    Edited by: Vievk Vardhan on Jan 7, 2010 2:00 PM

  • Function modules to display hidden characteristic values of sales ord. item

    Hi ALL,
    My requirement is to display the hidden characteristic values of sales orders item.
    Can anyone let me know the Function modules to be used.
    Thanks & Regards
    Deepthi

    Hi Deepti
    Use the Function Module 'VC_I_GET_CONFIGURATION' to get all the characterstics & their values for a sales order line item.
    You just need to supply the configuration field(VBAP-CUOBJ) to the FM.
    Regards
    Chetan

  • BAPI-To create production orders with reference to sales order & item

    Hi,
    Can anyone tell me which is the best method to create open production orders?
    Is there any BAPI available for creating production orders with reference to sales order & item.
    I tried this BAPI "BAPI_PRODORD_CREATE".
    I am getting pop up to enter serial number while executing the custom program.
    Which table contains the serial number(effectivity parameters)?.

    I have custom screen fields on notification service!
    i think a bdc is better.

  • Sales Analysis Item Tab Function Not Showing Orders Dollars

    Hello Gurus of SAP B1.
    This pertains to SAP B1 SP 00 PL 16 Version 8.8. 
    While doing the Sales Analysis function under Sales A/R > Sales Reports > Sales Analysis > Item Tab, the system does not report on the dollars for the day when I select "Orders" or "Delivery Notes'.  The system does display the proper dollars when I select "Invoices" on the "Item" Tab. 
    And the "Invoices" and "Orders" and "Delivery Notes" buttons display correct dollars on the other tabs for Customer and Sales Employee...so why not on the "Items" tab???
    Does anyone know why this might be happening and/or how to fix this???
    Thanks in Advnace - Zal

    Thanks for the quick reply Gordon - hope things are continuing to go well in your new endeavors &;-D
    Well that is really strange that items is handled that way - I have created SQL to get the results but I always like to balance out to what SAP B1 is reporting.  My SQL detail and grand totals are fine by Customer and I have been able to reconcile in that manner, but wanted to reconcile by items also.  I am certain I have done it before in SAP 2007A...
    Has there been a change to the item/sales order table in Version 8.8???
    Take care my FFF - Zal

  • Sales Analysis Item Tab Displays Zero Dollars for "Orders"

    This pertains to SAP B1 SP 00 PL 16 Version 8.8.
    While doing the Sales Analysis function under Sales A/R > Sales Reports > Sales Analysis > Item Tab, the system does not report on the dollars for the day when I select "Orders" or "Delivery Notes'. The system does display the proper dollars when I select "Invoices" on the "Item" Tab.
    And the "Invoices" and "Orders" and "Delivery Notes" buttons display correct dollars on the other tabs for Customer and Sales Employee...so why not on the "Items" tab???  Strange that a button would be displayed which does not work...
    Does anyone know why this might be happening and/or how to fix this???
    Does SAP plan on fixing this in any upcoming patch levels???
    Regards - Zal
    Responses received from SAP B1 Core Forum:
    Sales Analysis Item Tab Function Not Showing Orders Dollars

    Thanks for the quick reply Gordon - hope things are continuing to go well in your new endeavors &;-D
    Well that is really strange that items is handled that way - I have created SQL to get the results but I always like to balance out to what SAP B1 is reporting.  My SQL detail and grand totals are fine by Customer and I have been able to reconcile in that manner, but wanted to reconcile by items also.  I am certain I have done it before in SAP 2007A...
    Has there been a change to the item/sales order table in Version 8.8???
    Take care my FFF - Zal

  • Net Value in Sales order item and header URGENT

    Hi experts
    In some sales orders the net value is not shown but it is available in PR00 condition.
    Where should i check pricing proceedure or copy control,
    In the same sales order type i.e ZRP other sales orders are having net value,
    this sales order is created with reference to sales order type RE.
    Pls guide where to check and what correction needs to be done.
    Thank u in advance.
    regards
    SM

    Hi,
    Pricing procedure in tcode V/08, check the field 'SubTo'.
    Copy control in tcodes VTFA (between SO and invoices).Check the field 'pricing type' for conditions.
    I hope this help you,
    Regards,
    Eduardo

  • Dynamic field value in Sales order item table control

    Hi
    I need to find the VBAP-VKAUS (Usage indicator) field value in run time of the creation of sale order ...these values stored in the  table TVLV.
    when i debug the program SAPMV45A in the screen 4900 this VBAP-VKAUS value gets empty in structure VBAP even though i can see other values like MATNR etc...
    this field is configurable (dynamic) field and not appear for all the ordertypes.
    i need to pass this VBAP-VKAUS  value to KOMPD-VKAUS
    Thru user-exit..so please let me know if somebody knows how to find this VBAP-VKAUS  value.
    Thanks in advance
    Madi

    hi,
    Plz Check the struc KOMP/KOMK. Let me know, if this helped.
    Rgds,
    Raghu.

  • Default Batch value in sale Order items

    Hello SD Experts,
    Please, is there a way to recover a default value for the batch of all posts in a Sale Order (SO).
    In fact I want to have a default value Z001 in the batch field of all post's of  SO type ZS01.
    is that possible? if so how the customiz it?
    thank you in advance.
    SDA

    Hello,
    You could consider creating a batch strategy (T-code VCH1) and use it to control the batch determination in sales order.
    Hope it helps.
    Regards,
    Smile

  • Process order with reference to sales order

    Dear All,
    Is there any provision to create a manual process order with reference to a sales order .
    Regards,
    venkat

    If you would like to create a process order with assignment to sales order item, then you have to enter the sales order item on the initial screen of the Transaction COR1 via the Arrow besides the input field for  reference process order. This is the standard way to assign sales order for process order in COR1.
    For production orders, there is a separate Transaction CO08 for this purpose. But for process order, there is no such separate transaction available.

  • Compare sales order items (specific fields)

    Hi guys,
    I need to compare some fields from vbap and vbkd and to add values from sales order items, before I print then on screen.
    I need to compare if vbkd-ihrez_e and vbkd-bstkd and vbap-matnr are the same for two records from sales order (10 and 20), If they are the same then add vbkd-ihrez values (for items 10 and 20), also add vbap-kwmeng, and write that sum on screen.
    Compare item with previous one. if doing for 20 compare with 10, for item 30 compare with 20 etc.
    I start like this.
    select aubel posnr into (wa_tab-vbeln, wa_tab-posnr)
             from vbrp
             where vbeln = p_vbeln.
        append wa_tab to it_tab.
      endselect.
    loop at it_tab into wa_tab.                   << I need somewhere to compare fields if they are the same before I print them.
          select single fbuda bstkd_e ihrez_e ihrez bstkd
                          into
                          (wa_tab-fbuda,
                          wa_tab-bstkd_e,
                          wa_tab-ihrez_e,
                          wa_tab-ihrez,
                          wa_tab-bstkd)
                          from vbkd
                          where vbeln = wa_tab-vbeln and
                                posnr = wa_tab-posnr.
    select single kbmeng waerk netwr arktx kwmeng
                          into
                          (wa_tab-kbmeng,
                          wa_tab-waerk,
                          wa_tab-netwr,
                          wa_tab-arktx,
                          wa_tab-kwmeng)
                          from vbap
                          where vbeln = wa_tab-vbeln and
                                posnr = wa_tab-posnr.
    modify it_tab from wa_tab.
    endloop.
    How can I modify code to get this process? Thanks,
    Edited by: nihad omerbegovic on Nov 2, 2009 9:45 AM

    Hi Nihad
    select aubel posnr into CORRESPONDING FIELDS OF TABLE it_tab
    from vbrp
    where vbeln EQ p_vbeln.
    select a~vbeln a~posnr a~fbuda a~bstkd_e a~ihrez_e a~ihrez a~bstkd
    b~kbmeng b~waerk b~netwr b~arktx b~kwmeng
    into CORRESPONDING FIELDS OF TABLE it_vb
    from vbkd as a INNER JOIN vbap as b ON a~vbeln EQ b~vbeln AND a~posnr EQ b~posnr
    FOR ALL ENTRIES IN it_tab
    where vbeln EQ it_tan-vbeln and
    posnr EQ it_tab-posnr.
    SORT it_tab BY vbeln posnr.
    LOOP AT it_tab INTO wa_tab.
    IF lv_vbeln EQ wa_tab-vbeln. "means it's the same order but a different item
    IF ( lv_ihrez_e = wa_tab-ihrez_e ) AND ( lv_bstkd = wa_tab-bstkd ) AND ( lv_matnr = wa_tab-matnr ).
    ADD wa_tab-kwmeng TO lv_kwmeng.
    WRITE lv_kwmeng.
    ENDIF.
    CLEAR lv_kwmeng.
    lv_ihrez_e = wa_tab-ihrez_e.
    lv_bstkd = wa_tab-bstkd.
    lv_matnr = wa_tab-matnr.
    lv_vbeln = wa_tab-vbeln.
    lv_kwmeng = wa_tab-kwmeng.
    endloop.
    Thanks
    Pushpraj

  • Pivot sales analysis report by day for a particular month - sap has by month and annual

    Hi guys,
    I'm trying to come up with a pivot sales analysis query report for items for the month by displaying individual days sales, sales amount, gross profit, gross profit %
    e.g
    Month of March
    1st, 2nd, 3rd, 4th.....31st march. In sap their is a sales analysis report by
    days of the month
    1st March
    2nd march
    31st march
    item no
    item description
    Qty
    sale amount
    gross profit
    gross profit%
    qty
    sale amt
    gross profit
    gross profit %
    Qty
    sale amt
    gross profit
    gross profit %
    sugar
    20
    20,000
    5,000
    25
    30
    30,000
    10000
    33.3
    40
    40000
    15000
    37.5
    n02
    n03
    no4
    Regards Brian

    Hi,
    Due to pivot limitation, not possible to get above data in pivot table.
    Try this simple query which matches system sales analysis by item.
    SELECT t1.itemcode as Itemcode, T1.[Dscription] as 'Item description',  sum(T1.[Quantity]) as Qty, sum(T1.[LineTotal]) as 'sales amount', sum(T1.[GrssProfit]) as 'Gross Profit'
    FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry WHERE month( T0.[DocDate]) = '1' and year( T0.[DocDate]) =2014 GROUP BY T1.[ItemCode], T1.[Dscription]
    Thanks & Regards,
    Nagarajan

  • Inventory opening and closing stock with value report

    Hi All,
    Is it possible to get details of both opening and closing stock with value of each items of last financial year (2009-10) in inventory report?
    Mizan

    Hi..
    you can  try this query
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    set @FromDate =
        (Select min(S0.Docdate) from OINM S0 where S0.Docdate >='[%0]')
    set @ToDate =
        (Select max(S1.Docdate) from OINM S1 where S1.Docdate <='[%1]')
    select * from
        SELECT T0.itemcode,
        min(T0.Dscription) as 'Item Description',
        min(B1.ItmsGrpNam) as 'Item Group', W1.Whscode, C1.Location,
        (isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate ),0)-
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate<@FromDate),0)
        ) as [Opening Stock],
        isnull((
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode
            and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate
            and O1.docdate<=@ToDate and O1.inqty>0
            and O1.transtype in (20,18)),0
        ) as [Purchase Quantity],
        isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate
            and O1.outqty>0 and O1.transtype in (21,19)),0
        ) as [Purchase Return Quantity],
       isnull((
            Select sum(isnull(outqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate>=@FromDate and O1.docdate<=@ToDate and O1.outqty>0
            and O1.transtype in (13,15)),0
        ) as [sale Quatity],
        (isnull
            Select sum(isnull(inqty,0))
            from OINM O1
            where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
            and O1.docdate<=@ToDate),0
            isnull((
                Select sum(isnull(outqty,0))
                from OINM O1
                where O1.itemcode=T1.itemcode and O1.Warehouse=W1.Whscode
                and O1.docdate<=@ToDate),0)
        ) as [Closing Stock]
        FROM OINM T0
        INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
        INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode
        INNER JOIN OITB B1 ON T1.ItmsGrpCod=B1.ItmsGrpCod
        INNER JOIN OWHS W1 ON T2.WhsCode = W1.WhsCode
        INNER JOIN OLCT C1 ON W1.Location=C1.Code
        Group by T1.itemcode, T0.Itemcode, W1.WhsCode, C1.Location
    ) a
    where (a.[Opening Stock]
            +a.[Purchase Quantity]
            + a.[Purchase Return Quantity]
            +a.[sale Quatity]+a.[Closing Stock]
           ) !=0
    Regards,
    Bhavank

  • Post proft segment and cost center in a sales order with value type 4 in CC

    Hello,
    We have CO-PA activated in SD. When we create the Sales order the field "Profit Segment" is automatically filled (with the characteristics values) and additionally we field manually the cost center.
    The main problem is that when we post in the two CO objects the cost center becomes automatically with value type 11 "Statistical Actual".
    In the end of the month we need to do the Assessments (KSU5) from the invoices created from one cost center to various cost centers but since the cost center in the invoice has "statistical  actual" value type we can't do the assessments.
    Is there any way to post in profit segment and in cost center and the cost center becomes with value type 4 "Actual"?
    Thank You

    Hello,
    Thank You for you answer. I have one more question.
    Is there any way to desactivate the field "Proft Segment" only for a specific document type?
    I've already tried in transaction KE4W and system is not creating now the Profitability Analysis document but this field "Profit Segment" is still  with values so the cost center is still with value type 11.
    I've tried to delete manualy the values in the field Profitability Analysis but system gives me an error related with incomplete data in sales order. I've look in SD customizing and this field is not configured in the incomplete data messages
    Best Regards

  • Sales order stock and storage location stock on past date with value

    Hi everyone.
    I m looking for a report which can give sales order stock with value as it is shown in mb5b and storage location stock with value as in mc.5 is there any report which can give the combination of both the things on past date with values.

    can you tell me what shall be the fields and table for special stock on past date with value and sloc stock on past date with value

Maybe you are looking for

  • Recover photos from Apple TV

    Hi - I know this has been partially addressed before, but my MacBook Pro crashed and I lost all of my data on my hard drive. The only things not recoverable or backed-up were photos, that were also synced to my Apple TV. Is there anyway to recover th

  • Adobe Acrobat PDFs is not in my apps, how do I add it in 4.0

    Adobe Acrobat PDFs is not in my apps, how do I add it in 4.0

  • XELSYSADM is missing

    Hi All I configured OIM with LDAP (OVD) but still I can't see XELSYSADM user residing in the LDAP repository after the ldap sync process with OIM and after having integration done between OIM and OAM. Did I miss anything here ? Thanks

  • Can't finished calc when I add @currmbr function in a rule

    Hi, I create a rule as below ,it can't finished calc. "Sales total" = @sumrange("Sales total","Jan":@currmbr("Period")); But, When I change to "Sales total" = @sumrange("Sales total","Jan":"dec"); or others exclude currmbr function. It quickly to fin

  • How do I download PDFs from Safari by default?

    I want to download PDFs by default (to my downloads folder) rather than showing up in a browser window. I know it can be done, worked before I installed a new drive. But I don't remember what to do to make downloading the default. Thanks!