<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Copy Control to split billing document based on material in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853764#M1474762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to work with copy control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req is --&lt;/P&gt;&lt;P&gt;Based on Payer (customer - KNA1 - custom field value ) I have to split billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One billing document per delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. One billing document per material on delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this .. I did copy of routine  007 and replaced the new routine  902.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this routine I am having the following structures.  - &lt;/P&gt;&lt;P&gt;VBAK Order Header          KUAGV View Sold-to                 *&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VBAP Order item            KURGV View Payer                   *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VBKD Business data order   KUREV View Bill-to                 *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LIKP Delivery Header       KUWEV View Ship-to                 *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LIPS Delivery item  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement logic to split the billing document based on material? &lt;/P&gt;&lt;P&gt;Can anyone tell me the logic how I can achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 23:46:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-05T23:46:31Z</dc:date>
    <item>
      <title>Copy Control to split billing document based on material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853764#M1474762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to work with copy control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req is --&lt;/P&gt;&lt;P&gt;Based on Payer (customer - KNA1 - custom field value ) I have to split billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One billing document per delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. One billing document per material on delivery&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this .. I did copy of routine  007 and replaced the new routine  902.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this routine I am having the following structures.  - &lt;/P&gt;&lt;P&gt;VBAK Order Header          KUAGV View Sold-to                 *&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VBAP Order item            KURGV View Payer                   *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      VBKD Business data order   KUREV View Bill-to                 *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LIKP Delivery Header       KUWEV View Ship-to                 *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LIPS Delivery item  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement logic to split the billing document based on material? &lt;/P&gt;&lt;P&gt;Can anyone tell me the logic how I can achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 23:46:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853764#M1474762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T23:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Control to split billing document based on material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853765#M1474763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a trick question? You have already mentioned all the ingredients, so just put it together...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, since you posted the question, let me try to give a short background. When SAP creates billing documents it basically sorts selected documents by some criteria (as far as I remember it's customer, sales organization and billing type) and then tries to combine as many items as possible for those. Just imagine that for each selected item SAP generates a billing document header and a billing document item. Now if the generated billing document header matches the previously generated billing document header, then the new item is added to the previous billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the billing document header field &lt;EM&gt;vbrk-zukri&lt;/EM&gt; can be used to define your own billing document splitting criteria. I.e. if in your example you simply write the material document number &lt;EM&gt;lips-matnr&lt;/EM&gt; to &lt;EM&gt;vbrk-zukri&lt;/EM&gt; (in addition to all the other fields that are relevant in your case - your functional consultant should tell you that and also do the remaining configuration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 01:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853765#M1474763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T01:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copy Control to split billing document based on material</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853766#M1474764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the sample code for splitting billing document based on Material No.  This code is to be written in the data transfer routine defined in VOFM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF ZUK,
          MODUL(3) VALUE '901',
          VTWEG LIKE VBAK-VTWEG,
          SPART LIKE VBAK-SPART,
          MATNR LIKE VBAP-POSNR,
        END OF ZUK.

  ZUK-SPART = VBAK-SPART.
  ZUK-VTWEG = VBAK-VTWEG.
  ZUK-POSNR = VBAP-MATNR.  " Material NO
  VBRK-ZUKRI = ZUK.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 04:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-control-to-split-billing-document-based-on-material/m-p/6853766#M1474764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T04:44:41Z</dc:date>
    </item>
  </channel>
</rss>

