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

Similar Messages

  • My MacBook Pro with Retina display displays power point and not other windows when connected to a projector

    My MacBook Pro with Retina display displays power point and not other windows when connected to a projector. Can anyone help out please?

    You should also ask this in the MacBook Pro forum. This is the forum for the white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?

    I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?
    Anyone else having this problem?

    Try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • Why can I highlight some pdf files and not others

    Why can I highlight some pdf files and not others

    Highlighting only works on text documents; a scanned document (image) cannot be highlighted.

  • Can a CR work only for one aggregation level and not other ?

    Hi Experts,
    I have a real time infocube (RTIC) over which there is a multiprovider, on top of which I have built 2 aggregation levels.
    There are sequence of 2 characteristic relationships (CR's based on exit class) defined for the same RTIC.
    Is it possible that the CR's be functional for one aggregation level and not in case of second aggregation level ?
    Thanks and Regards,
    Pankaj

    Additionally let me explain the scenario in more detail:
    The difference between 2 mentioned aggr levels is that of 0CALMONTH which is checked in second aggr level.
    0CALMONTH is assigned as target char in first CR, hence both the CRu2019s work for input ready report built on first aggregation level and do not function with input ready report built over second aggregation level.
    Therefore I wish to skip the complete execution of CRu2019s for I-R reports based on 2nd aggregation level.
    As CR of type with derivation is functional only if the target char selected is not present in the aggregation level.
    Please let me know if any more details are required.
    Thanks,
    Pankaj

  • EPrint servers accept jobs from some email addresses and NOT others

    I have an HP Photosmart Premium C410b which works a treat apart from when I try to use ePrint. I use my own (register.com hosted) domain email address for nearly all of my email. And when I send emails to @hpeprint.com I get the following bounce back :
    Delivery status notification
    We're sorry; your message to "[email protected]" has failed. The recipient's mail server responded with: "Diagnostic-code 550 - (5.7.1 Command rejected)". Please check the recipient's email address for typos or unnecessary spaces and resend. Thank you.
    So then I added my backup googlemail account as an 'allowed sender' and it works perfectly. I have even tried to do this with 'everyone' allowed to send to hpeprint still same problem. (i.e.. works for @googlemail.com but not my main personalised domain email).
    It sounds like the hpeprint email server / firewall is rejecting my personalised domain email address. Has anyone else experienced a similar problem.

    Hi all,
    We are aware of this issue and are working on a fix to implement in the near future.
    This is because some of the email from some certain are incorrectly identitifed as spam mail by the server.
    Thank you for your patience.
    I am an HP employee
    **** Please mark the post that solves your problem as "Accepted Solution" ****

  • IDVD created DVD plays on some DVD players and not others, HELP!

    Hi everyone,
    I just finished a huge wedding photo montage and burned it using iDVD to a standard DVD-R. I popped it into a Sony home DVD player and all went well, and looked great. Next I tried the DVD in a Mintek portable DVD player (so it's easier to take to the wedding and connect to the LCD projector) and the DVD is not recognized. I tested another computer burned DVD (from a wedding video that was burned on a PC) in the mintek and it does work. I also tested the mintek using a standard store bought DVD movie and it worked fine.
    Any thoughts on why this might be happening? I've browsed through the prefs for iDVD in search of some "compatibility" options but there aren't any.
    The wedding is Saturday so I'm really hoping to get this sorted out quickly.
    BTW I'm using the MATSHITA DVD-R UJ-815 (the one that came standard in the original 1GHz, 17" Powerbook)
    Thanks everyone!
    Dave-G

    Your problem is the Mintek portable DVD player.
    Some older DVD players will not play the newer burned media.
    This is by design to force conusmers to always upgrade and update there equipment to stay a head of the technology curve.
    I had the same problem with a 2 year old stand alone player wouldn't play anything I burned. It would play on other computers and on newer stand alone players but not on a 2 year old player. (VERY FRUSTRATING) I bought a new cheap stand alone and quess what , All was good it played.
    There are different codes that are on these players that distingish the players capability.
    Good Luck.
    Don

  • Burned DVD plays on some DVD players and not others

    Hello all,
    First, please forgive my ignorance because I do not work with video much and have no idea what I'm doing. Someone created a video that I need to burn so the DVD can play on any DVD player. The folder is titled "VIDEO_TS" and then the files within it have the following extensions: .BUP, .IFO, .VOB. with VIDEO and VTS as the prefixes. the largest file has a .VOB extension. The master disk is a DVD-R and I burned the video on a Verbatim DVD-R which played fine on my MAc, a PC and two DVD players. However, I tried it on two other DVD players and it could not be played. So now I'm trying to figure out how I can created a DVD that will be compatible with any DVD player or create an alternate version that can be played on the machines that currently can't play the DVD.
    Does all of that make sense? I've been all over the internet and seen different suggestions for similar problems but I don't want to spend money or waste time trying different tactics that won't solve my problem.
    Thanks in advance!

    Hi
    This is a question very familiar in iDVD forum. I use to answer like this.
    • Brand of DVD used matters - I only use Verbatim (more organic dye in these) - but there are other GOOD Brands
    • DVD-R - plays on more DVD-players than DVD+R as it plays on even older DVD-players (DVD+/-RW - don't even think of it)
    • BURN SPEED - is a major contributor to this problem - I never go faster than x4 - I use as standard x2
    There are two kinds a blanc DVD can be burned as
    • DATA-DVD - Files from DeskTop just stored on a blank DVD - few DVD-players can play this (only very very new ones and they are rare - if I'm rightly informed)
    • Video-DVD - a DVD-authoring program is a MUST. iDVD, DVD-Studio Pro, Burn, Roxio Toast etc etc
    I'm told that Compressor can do this - I never got it to deliver a Playable-DVD - BUT THIS IS DUE TO MY NEGLECT !
    So when iDVD or Toast creates this very special structured DVD - You find the two (must be there) folders VIDEO_TS and AUDIO_TS (empty) - and if the DVD-player don't find this = it will not play.
    Yours - very happy with iDVD and Toast (and DVD-Studio Pro - but this is hard to get right) - Bengt W

  • Adobe Reader prints some PDF's and Not others

    Hi
    I can successfully print some pdf files but there are two that I cannot print. the one I am having problems with is 24 pages and I cannot print this as singles pages or as a booklet. I can print the file from another machine. I though it was maybe because I was still on Reader X so I upgraded it to the latest Reader XI but that didn't help either. On the machine that can print the file it will flatten all 24 pages then print them. On the machine that can't print the file it starts to flatten the first page but when it hits 95% it crashes Reader. It doesn't matter if I am trying to print all 24 pages or 1 of the 24 pages it still crashes. But other PDF files print normally.

    My next guess would be HD-DVD, which is also not properly supported on the Mac. If there's some special extra form of copy protection, I suppose this could also present an issue. I've heard of that on CDs, but not DVDs. Another possible issue is if the discs are from a different region coding than your own. Imported DVDs can often have such region coding. Lastly, burned DVDs of pirated content often won't play because of broken copy protection duplication or if the content lacks the original menus on the original DVD.

  • Burned CDs from iTunes purchases play in some stereo units and not others

    My car stereo has no problems playing CDs I've recently burned from itunes purchases. My wife's car stereo can't! She doesn't have an ipod dock in her 9 year old car so it's CDs or nothing. Anyone have any ideas why the discs won't play in her car but do play on every other CD player (including my PC) that we own?
    Her car stereo has no issues playing other CDs, including CDs I've burned from itunes which were originally uploaded from CDs by me.
    It seems to be the most recent three purchases from itunes that are the problem. Do I need to convert the AAC files back to MP3 before burning or some other clever cheat?
    Thnx in advance

    Thnx for the comments Chris CA.
    Yes, Audio CD is selected when I burn the CDs.

  • Why am I having a hard time loading some web pages and not other

    My Home page

    only in safari ?
    tried other browsers?
    if only in safari
    then the safari forum may have more safari experts who may not read posts here
    https://discussions.apple.com/community/mac_os/safari

  • How could I config a Delivery Notes for a shipping point ?

    Hi Experts!
    I need to config a new delivery notes especially to tie a shipping point and a revenue channel...do you know how to proceed??
    Actually, my client already have a delivery note for a shipping point and a revenue channel, but now I need to create another type of delivery note with other number range for a different shipping point and revenue channel...
    I do not know the path in spro neither if I need to use a Tcode transaction....
    Please let

    the path is for creating new delivery types which can be processed thru txn vl01n, vl10b etc. when you want different delivery types to handle differnt sales document types.to deal with say free samples exports sales from depots etc differently.
    you must be meaning the output from vl03 , is it?

  • How are shipping point and delivery note connected ?

    I wanted to understand how is shipping point connected to process of creating delivery notes....can we configure sap using SPRO such that the delivery note creation happens automatically for certain shipping point once the order is created and saved ....and for certain shipping point the delivery note is not automatically created ( assuming we are using the same order type) but the determination of automatic DN creation is done by the value of the shipping points ??

    Actually what is shipping point?
    Shipping point is an independent org.unit which is linked to the plant and represent the point of departure or receipt of materials.
    Normally lot of shipping points are assigned to the plant.
    Relation:
                   Actually a delivery is created from a single shipping point only.. That is the reason when u complete the sales order, at the time of creating the delivery note, u are forced to enter the shipping point, without that the system willn't proceed further.
    Determination:
    It is determined with the formula of shipping conditions + loading grp + deliv. plant
    Answering to ur 2nd query,
    when u are creating the delivery from the sales order screen (by going to menu bar and click delivery), the system automatically assumes the shipping pt is from the sales order.
    But if u enter the different shipping point in delivery note creation, the system will thro an error that delivery split due to diff. shipping points.
    Hope i clarify ur queries, ur further queries are welcomable.
    Reward points if useful...
    regards
    Kaleeswaran

  • Shipping Point is not defined for this transaction

    Dear All,
    I have a question in creating new shipping point.
    Scenario:
    1. Created new shipping point and assigned it to plant.
    2. Maintain Shipping Point determination.
    When ever create a sales order, when i enter the new shipping point I hit this error.
    "Shipping Point is not defined for this transaction". What else is there to check. Please advise.

    Hope you have done intial trouble shooting,
    i.e. Combination of Shipping Point Determination=
    Loading Group - (1-Material Master Record)
    Shipping COnditions (1- Sales doc type , 2- Customer Master Data - Sold to Party)
    Delivering Plant - (1-Customer Material Info record , 2- Customer Master Record & 3-material master record)
    if system finds the above combination, SHipping Point will be determined.
    I hope you have done Copy of existing Shipping Point & renamed it. Then all the shippig Point determination Combinations will be copied. if not, you have to maintain manually in Shipping point determination customization.
    re-check n revert

  • I have an old iphone 3G that I want to use as an ipod touch. It does have a sim card and it has been reset but for some reason it will not pick up my wireless network, or any other wireless network.  What is the problem?

    I have an old iphone 3G that I want to use as an ipod touch.  It does have a sim card in it and it has been reset. For some reason it will not pick up my wireless network in my house, or any other wireless network.  What could be the problem?

    Is this the problem:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim

Maybe you are looking for