Add value days (VALTG) causing invoice split

Hello!
I'm currently having a problem with field VALTG in sales order which is an invoice splitting criteria.
Additional value days was added to a pricing condition in VK12, by mistake. This value has been removed.
But created sales orders during this time now has this value in table VBKD and re-pricing of the orders does not remove the value. How can I fix this?
Appreciate ASAP answers as our invoicing is put on hold.
Best regards, Carina Karlsson

Hii,
Use the T-Code Mass
Give the business object BUS2032  and Execute
Select sales order business Item data MASSSDPOSVBKD
Select the field (Add.value days (MASS) MASSSDPOSVBKD-VALTG) and execute
now select the sales order range and give the value which u want to change
Hope it will solve the problem.
Regards
Shambhu Sarkar
Edited by: SHAMBHU SARKAR on Sep 7, 2011 1:52 PM

Similar Messages

  • Billing Date causing Invoice Split

    Dear SD Gurus,
    In VTFL, I'm using value "011 - Bill. date= Today" in field "Data VBRK/VBRP" to skip/avoid the billing date as the criteria that causes invoice to split.
    But the problem with this option is, I cannot do back posting. Whenver I change the billing date in the billing to previous date, it will still pick up today's date as the billing date, especially month end.
    Is there any other way to skip the checking? I need to back post the billing in certain circumstances.
    Thanks,
    Soo

    While doing the billing i.e. VF01, you can enter the billing date in the initial screen.
    Regards,
    GSL.

  • Invoice split based only on payer, material, invoice date

    Dear Friends,
    I have an issue which I don't know how to move further..
    Task:  avoid Invoice split during collective invoice creation in VF04. Invoice should be grouped by: payer, material, invoicing date.
    What I'm doing: clearing all fields which could cause invoice split in copy routine rv60c903 ( this one is used for this type of invoices ) in VBRK. Then changing partners - sold-to, ship-to, bill-to in enhancement., so that they are equal for all invoices with the same payer party. And also VBRK-ZUKRI is filled accordingly with the grouping parameters: VBKD-PERFK and VBRP-MATNR.
    What I can't understand: when I run SIMULATE in VF04, the invoices are grouped correctly, BUT when I run the actual Collective Billing button, for each delivery a new billing document is created.. I can't understand this!
    Thanks a lot in advance!

    Hi
    As Madhu tells you, check your settings in customizing (tcodes VTFA and VTFL). Second, take in account always the SAP Note 11162 - Invoice split criteria in billing document and related notes. Finally, set your own algorithm to rule the splitting defining ZUK structure to determine the value of VBRK-ZUKRI (remember that this field is a char 40) in your own VOFM subroutine.
    I hope this helps you
    Regards
    Eduardo

  • Invoice split due to fixed value days

    Hi All,
    we have created a sales Order with two line items. Whle doing F5 with reference to Sales order invoice getting splitting to two invoices. While check the split analysis system giving a log that  " Fixed value days for line item 10 is 000000 and for 20 is blank. I have verified the fixed value days feild in Sales Document & price conditions . But No fixed value days has been maintainted .
    Then why system splitting the invoice . Can any body having same problem earlier.
    Thanks
    Amarnadh

    Hi,
    At copy control order to pro forma VTFA at item level maintain DATA VBRK/VBRP as 001 or 003
    Kapil

  • Invoice Splitting - for some shipping points and not others

    Dear Gurus, I have a requirement where for some shipping points I need to be able to split an invoice on sales order (i.e. a separate invoice for each customer order) and for other shipping points I require a single invoice for multiple customer sales orders.  Using the copy control rules for LF to F2, I have set the Refence Number to B but this does not achieve what I want.  Would it be possible to achieve this via a copy requirements routine and by setting the values in VBRK-ZUKI?  Do I just copy the standard 003 routine and apply my changes here?  If yes, where do I insert the code - the top or bottom?  Regards

    In VOFM, first of all "Copying requirements" are used when we want to stop creating a target document from a source document or to prevent certain items from copying to target document under certain conditions. Copying requirements can't be used to do invoice split.
    Data transfer routines are the ones that allow invoice split (in addition to allowing copying fields from source to target). Although "copying requirements" is a loosely used terminology, it is important we make distinction between copying requirements and data transfer routines as both are different and perform different functions.
    SAP uses field VBRK-ZUKRI (a 40 character field) to store the combination of field values that are used as basis of invoice split. Invoice split happens if any of the fields stored in VBRK-ZUKRI differ across orders/deliveries (or their items) from which invoices are created.
    We assign VBRK-ZUKRI during item copy control in data transfer routines. The fields are simply concatenated and assigned to VBRK-ZUKRI.
    in VOFM, "Data transfer" routine 003 for Billing documents for example splits the invoice for each reference document, as shown by code below
    Include FV60C003
    *       For each reference document an invoice is created
    FORM DATEN_KOPIEREN_003.
      DATA: BEGIN OF ZUK,
              MODUL(3) VALUE '003',
              VTWEG LIKE VBAK-VTWEG,
              SPART LIKE VBAK-SPART,
              VGBEL LIKE VBRP-VGBEL,
            END OF ZUK.
      ZUK-VTWEG = VBAK-VTWEG.
      ZUK-SPART = VBAK-SPART.
      IF KURGV-PERFK = SPACE.
        ZUK-VGBEL = VBRP-VGBEL.
      ENDIF.
      VBRK-ZUKRI = ZUK.
    ENDFORM.
    In the above coding we are concatenating VBAK-VTWEG (Distr channel), VBAK-SPART (Division), VBRP-VGBEL (Reference Order from billing item) as the criteria for invoice split. So if any of these field differ then it will cause a split. So basically we are creating one invoice for all items that reference a single order
    So what you need to do for your requirement, is to copy the logic of data transfer routine 003 in VOFM to your own custom 9XX routine and make the assignment to ZUK / VBRK-ZUKRI only when shipping point (LIKP-VSTEL) is not equal to certain values that you don't want split to happen. It is better to maintain those shipping points in a custom table and make the check on the table rather than hard coding, so that in future it is easy to add more shipping points or remove existing ones if needed.
    Also remember to assign the new data transfer routine number 9XX to all relevant item categories in VTFL for your target billing type and reference delivery type

  • How Can i add "DateDiff(day, T0.DueDate" as a column in this query?

    How Can i add "DateDiff(day, T0.DueDate" as a column in this query?
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
          CASE  WHEN T0.TransType=13 THEN 'Invoice'
               WHEN T0.TransType=14 THEN 'Credit Note'
               WHEN T0.TransType=30 THEN 'Journal'
               WHEN T0.TransType=24 THEN 'Receipt'
               END AS 'Document Type',
          T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
          ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > [%1]) AND T0.RefDate <= [%1] AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

    Hi,
    As you mentioned not possible to assign the dynamic column in the query.
    will give you example for generate a dynamic column name in SQL query, using this example you can achieve your requirement.
    DECLARE @cols AS NVARCHAR(MAX),
        @query  AS NVARCHAR(MAX)
    select @cols = STUFF((SELECT distinct ',' + QUOTENAME(C.Name) 
                        from [History]
                FOR XML PATH(''), TYPE
                ).value('.', 'NVARCHAR(MAX)')
            ,1,1,'')
    set @query = 'SELECT [Date],' + @cols +'
                 from
                    select [Date], Name, Value
                    from [History]
                 ) x
                pivot
                    max(value)
                    for Name in (' + @cols + ')
                ) p '
    execute(@query)

  • INVOICE SPLIT AND CONSOLIDATION

    Hi Everyone!
    Do you happen to know any site that I can search for information on invoice split and consilidation? Or perhaps you can share with me some of the documents you have.
    I'll promise to reward points for those who'll give me answers. Thanks!!

    Hi Clarey,
    Invoice Split by Item Category-
    In trx VTFA (if your billing is sales order based) choose your billing type and SO type, there select your item categories and there select the field VBRK/VBRP data. In that field you will see the currently used routine. With the help of your ABAP guy create a copy of that routine under a different number and add your lines of code. Let's say you use routine 001. 
    FORM DATEN_KOPIEREN_001.
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    This is how it should look after modification:
    Header data
    VBRK-xxxxx = ............
    Item data
    VBRP-xxxxx = ............
    Additional split criteria
    DATA: BEGIN OF ZUK,
    MODUL(3) VALUE '001',
    VTWEG LIKE VBAK-VTWEG,
    SPART LIKE VBAK-SPART,
    PSTYV LIKE VBAP-PSTYV,    <- New line
    END OF ZUK.
    ZUK-SPART = VBAK-SPART.
    ZUK-VTWEG = VBAK-VTWEG.
    ZUK-PSTYV = VBAP-PSTYV.   <- New line
    VBRK-ZUKRI = ZUK.
    ENDFORM.
    After this routine is created and activated place it as the default copy control routine instead of the old ones.
    REWARD POINTS IF U FINDS THIS AS USEFUL...
    Regds
    MM

  • How we add Grace days to net due date

    Hi,
    How we add grace days (eg one week) to net due date? This is only for particular customers.
    Regards,
    Shaik

    Hi Azeen
    Try this way. I assume that you want to know how much is due from customers as on a particular future date, that should come between today and that date. For preparing the liquidity forecast for the month, I use the following method for estimating the recoveries from the Customers and payments to Vendors and it works quite well for me.
    Let's say for Customers you want to forecast the collections that would come in the month of Jan from today until 31 Jan'09. Use the FBL5N Report, using the 'Open Item Key Date' as a future date, in our example - 31 Jan'09. Change the layout of the report by including the feilds 'Net Due Date' and 'Arrears after Net Due Date'. Sort the report on the Document Date, this being the baseline date. Now in the 'Arrears after Net Due Date' you will find the overdue days, which would be equal to the difference between the Date of the Report (31 Jan'09) and the Net Due Date of the Open Item. Thereafter, use the filter for 'Arrears after net due date' and click on the icon for 'multiple values'. Exclude the range of days, by assigning the lower and the upper limits. Lower Limit will be in minus, for those invoices that would still not be due upto 31 Jan'09 and the upper limit will be 7, since you would be granting a grace period of one week and consider all those invoices as not due upto 31 Jan. Once the filter is set, the report will exclude the open items as per the filter and provide you with a fairly accurate estimate of collections for the period/month.
    Let me know if it works for you.
    Regards

  • Invoice Split Tax Departure Country

    Hello all,
    This is my first forum post - if this is not the correct thread if someone can point me in the right direction, that would be great.
    We have a sales order that is being split into two invoices. The invoice split analysis reveals that the tax departure countries of the line items are different. The plants are in different countries. It is my understanding that standard SAP functionality splits the invoice based on different tax departure countries.
    The problem is we have a user that is requesting to have both of these items on the same invoice.
    I have two questions:
    1) Is it possible to have these items on the same invoice?
    2) Even if we could put these items on the same invoice, is it a good idea? What are the reasons SAP has it setup this way by default? What are the negative consequences of doing this, etc.?

    Good evening,
    From your description above I am not sure if you are billing in CRM or ERP. Either way there are standard split criteria defined.
    Note  11162  is for ERP and outlines what fields cause a split and note 535005 outlines the split criteria in CRM. The split happens because you cannot have 2 different values for the one field on a single invoice. A way around it is to clear the field causing the split so that the data is not copied and therefore only one invoice is created. Of course the business needs to clarify if the information is needed on the invoice and if so then its not possible to clear the data and so a single invoice is not possible.
    See documentation at http://help.sap.com/saphelp_crm70/helpdata/en/4a/3db3a857e0422988e5a92c8f002685/frameset.htm  
    for further details and information on how you can influence the Invoice split.
    I hope this helps with this issue.
    Kind regards,
    Vanessa Donegan

  • Number of Pallets on layout in case of Invoice Split

    Hi,
    Ours is a warehouse managed storage location from where we deliver the goods of our Sales Cycle.
    IN the Invoice output, we have to print the number of pallets as no of packages, which is fine as we go back through VBFA & get the value of LIKP-ANZPK
    But in the case of a invoice split, where the delivery may have 5 pallets but we are only invoicing 2 pallets, it is difficult to create logic to get the data from the Item level from delivery. COuld anybody help with that pls
    Thanks

    Hi,
    I think that you need create your own VOFM subroutines in the copy rule from delivery to invoice. If will be important how to populate the structure ZUK (there are a lot of post about this issue in this forum) to split the invoices. I think that you need be careful with performance, because you must use VBFA table to link HU, delivery and other documents. Try do define the algorithm in this VOFM with an ABAPer.
    I hope this helps you
    Regards,
    Eduardo

  • Is it possible to add value item and non stock item in one billing?

    Is it possible to add value item and non stock item in one billing?

    Hi,
    Yes,it is possible .Take example of service scenario,where material used in servicing and service charges(labour) can be billed in single invoice.
    Billing document type,Customer and other header data should be same.
    Reward points if useful
    Regards,
    Amrish Purohit

  • XSLT Mapping: how to add one day to TimeStamp

    Hello Experts,
    My requirement is to add one day to current timestamp. Used $TimeSent to get the currenttimestamp. In Expired field, the need to add one day
    say Created= 2011-03-30T20:29:13Z
           Expired = 2011-03-31T20:29:13Z
         <xsl:param name="TimeSent"/>
         <created><xsl:value-of select="$TimeSent"/></created>
         <expired>2011-03-31T20:29:13Z</expired>
    How to add one day to the current timestamp. I am new to XSLT mapping and need some help with the code.
    Thanks
    Shikha Jain
    Edited by: Jain Shikha on Mar 30, 2011 8:34 PM
    Edited by: Jain Shikha on Mar 30, 2011 8:36 PM

    Hello All,
    Thanks for your reply. i tried the function and the code is working when i am testing in stylus studio. But the same code gives error when i  tested the xslt mapping in PI (Error: TransformerConfigurationException triggered while loading XSLT mapping).
    $TimeSent function is working when code is tested in PI , but it doesnot give value in stylus studio. Also Current-dateTime() function is doesnot give value in PI but works in stylus studio. Is there any difference in the functions used in stylus studio and XSLT mapping in PI?
    Also if i remove the code used for function(to add one day to timestamp), and use constant value(2011-04-02T23:24:56.763Z)the code is working fine in PI. Please help me to find out where the code is going wrong when tested in PI.
    Below is the XSLT code i am using
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ds="http://xsltsl.org/date-time" xmlns:functx="http://www.functx.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
       <xsl:function name="functx:next-day" as="xs:date?">
          <xsl:param name="TimeSent" as="xs:anyAtomicType?"/>
          <xsl:sequence select="xs:date(current-date()) + xs:dayTimeDuration(&apos;P1D&apos;) "/>
       </xsl:function> 
    <xsl:template match="/">
          <xsl:param name="TimeSent"/>
          <soapenv:Envelope xmlns:olsa="http://www.skillsoft.com/services/olsa_v1_0/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
             <soapenv:Header>
                <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                   <wsu:Timestamp wsu:Id="Timestamp-191900" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsu:Created>
                         <xsl:value-of select="$TimeSent"/>
               </wsu:Created>
    <wsu:Expires>
         <xsl:value-of select="concat(substring(functx:next-day($TimeSent) ,1,10) ,&apos;T&apos;, current-time())"/>                  </wsu:Expires>
                   </wsu:Timestamp>
                   <wsse:UsernameToken wsu:Id="UsernameToken-19030197" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                      <wsse:Username>ABC</wsse:Username>
                      <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">XYZ</wsse:Password>
                      <wsse:Nonce>erDTBNoUWv7GdHDaErrLwA==</wsse:Nonce>
                      <wsu:Created>2011-02-15T23:24:56.763Z</wsu:Created>
                   </wsse:UsernameToken>
                </wsse:Security>
             </soapenv:Header>
             <soapenv:Body>
                <olsa:GetMultiActionSignOnUrlRequest>
                   <olsa:customerId>ABC</olsa:customerId>
                   <olsa:userName>XYZ</olsa:userName>
                   <olsa:actionType>launch</olsa:actionType>
                   <olsa:assetId>222499_eng</olsa:assetId>
                   <olsa:groupCode>testgrp</olsa:groupCode>
                </olsa:GetMultiActionSignOnUrlRequest>
             </soapenv:Body>
          </soapenv:Envelope>
       </xsl:template>
    </xsl:stylesheet>
    Thanks
    Shikha Jain
    Edited by: Jain Shikha on Apr 2, 2011 9:51 PM

  • What is the best way to add a day to a Date object?

    I have come across numerous examples on adding a day to the CURRENT date, using the Calendar object. However, what I need to do is to add a day to a Date variable.
    Can someone tell me how to do that? I tried to set the value of my Date variable into the Calendar object, but, it appears that for the current JAVA version, they have deprecated the getYear(), getMonth() and getDay() methods for the Date class.
    Really appreciate your suggestions.
    Thank you in advance,
    SiowLing

    I haven't seen the OP express a concern over how to create/obtain the Date object (he could be using "new Date()" given the emphasis on "CURRENT"). Milliseconds is fine too if that's what you have (for example from a java.sql.Date).
    So the way to add a day to a Date object (the OPs original question) is to:
    - set the Date on a Calendar using setTime
    - add 1 to the DATE field of the calendar
    - get the Date from the Calendar using getTime
    Obviously you're right if the OP doesn't have Date object to start with, but just the "numbers" for year, month, day.

  • Add one day to a binding

    Hi all,
    I assume this is a very dumb question... How can I add one day to a date that is like this :
    #{bindings.ChooseDateCrah.inputValue}
    It's a binding in a the header text property of a column.
    That : #{bindings.ChooseDateCrah.inputValue + 1} or that : #{bindings.ChooseDateCrah.inputValue} +1 does not work.
    Thanks.
    Frédéric.

    Hi Frédéric,
    Yeah, you cannot apply a converter on the headerText attribute of a column. However, you can instead place an outputText in the header facet of the column, then the converter option still works.
    As for the code, no, in the RowImpl object in the getter method of your calculated attribute. (That method is quite complicated for a read only value though).
    You can check my reply at Re: How to access menbers of the current row of an af:table component? as for how to create a custom converter. In your specific case, however, you would have to extends DateTimeConverter and decorate the getAsObject and getAsString methods in order to add one day before calling super.getAsString and remove one day from the returned value of super.getAsObject before returning to ensure reversibility.
    A managed bean solution would imply the use of the implements Map EL hack which is both easy and hard, depending on your experience level with JSF and EL.
    Regards,
    ~ Simon

  • How can I add [# of days] to a date?

    edit::  Nevermind, I found the answer.  I'm using AS 2.0
    Answer: new Date(year, month, date+#)  where # is the # of days to add.
    Helpful link: http://blog.flexexamples.com/2007/08/24/date-math-for-lazy-people/  (AS 2.0 & 3.0)
    Original question:
    The title is horrible, couldn't think of how to word it.
    Anyway, I want to know how I can take a date, add a few days to it, then display the resulting date.
    For example, today's date is 8/20/2010.  I want to be able to add 10 days to this and then display the result in a label or other output.
    The label would then read 8/30/2010.  If I wanted to add 15 days to today's date, the label would read 9/4/2010.
    Any help is appreciated, thanks!

    Another way of adding values to a date object is to set up constants, and this will make life easier if you do Date math frequently, or are adding to a date which is unknown until runtime (i.e., not neccessarily today's date).
                private var todayDate:Date = new Date();
                //One day, in milliseconds:
                private const oneDay:Number = 1000 * 60 * 60 * 24;
                private function addDaysToTheDate():void {
                    //The number of days you wish to add:
                    var daysToAdd:Number = oneDay * 10;
                    //Add the days to today's date:
                    var answer:Date = new Date(todayDate.time + daysToAdd);
                    Alert.show(answer.toDateString());

Maybe you are looking for

  • I get double the amount od gmail notifications in notification -- both from new mail and all mail.  What can I do?

    I get double the amount of gmail notifications on my iPhone 4 or iPad 2 using iOS 5.  Any ideas how to fix?

  • IPod doesn't turn on

    Hi, I bough a camera connector and tried to transfer photo's from my camera to my 30GB Video-ipod - a message came onto the screen saying that the transfer was done. I coulnd't find these photo's on my iPod. I turned my iPod of and since then I wasn'

  • ORA-30951 Problems

    I am somewhat new to oracle and I am having a very hard time registering a large XML schema (approx 1MB). I tried the following code but I do not understand where or what the problem is. Is it with the XML schema? If so how do I find the line that it

  • Adding A Navigation Bar To A Template...

    Hello! I have created a Dreamweaver Template that only needs to have a navigation bar added to it for it to be completed. However, when I click on the area I would like to add it to, click on Insert --> Image Objects --> Navigation Bar, nothing happe

  • Director is better than Flash

    The only advantage Flash had over Director was the plugin penetration. Now that plugins are becoming irrelevant, Director should have a grand come back. The problem is the lack of vision in the part of Adobe. It is beyond me why people still use such