F.19--Splitting Without PO Item

Dear Gurus,
We are on Ecc 6.0 and F.19 functionality is configured.When user run F.19 for a particular Gr/Ir account for company code the system splits not only the balance in GR/IR account as per PO but also as per Item details.
Say for PO XXXX there is a balance of Rs100 Debit in GR IR account.But this balance is due to combined effect of two PO items like this:
PO XXXX Item XY:Invoice Rs 250
PO XXXX Item XY:GR       Rs 90
This is shown in BNG Banlance of Rs 160 for PO XXXX Item XY
PO XXXX Item YZ:Invoice Rs 90
PO XXXX Item YZ:GR       Rs 150
This is shown in GNB Banlance of Rs 60 for PO XXXX Item YZ.
The requirent is that user does not want any segregation based on Item level of PO.They want to post as per PO balance.
Can any one please suggest how this can be achieved.
Regards
Raju

Dear All,
Please help.
Regards
Raju

Similar Messages

  • How to split a line item to 2 line item.

    Hi all !
    I have a request, help me please !
    In system I have a invoice with 1 line item value 1000 USD.
    Customer payment 600$. a incoming payment with value 600$ will post to system.
    I want incoming payment and invoice will auto clear 600$ but system can't auto clearing because value is not Identical.
    I want line item of invoice will split to 2 line item. Line item 1 value 600$ and line item 2 value 400$.
    Line item 1 of invoice will auto clear with incoming payment and system will exist a invoice with 1 line item value 400$.
    How to split a line item to 2 line item ? Have FM for split a line item to 2 line item in SAP ?
    If you have other solution for this request, help me please !
    Thanks !

    Hi,
    Have a look at Split line item - Sales Order
    Regards

  • User exit for split of PO items

    Hi all.
    In the creation of purchase orders from SRM shopping carts, we have a requirement to split the service purchase order lines in different items when the tax code in SRM is different. I mean, the requirement is to have only services with the same tax code in SRM in the same PO item. If the SRM tax code is different for a concrete service I have to split it in another PO item.
    In short, what I need is to know any user exit, badi, etc... in the creation of PO for the splitting of PO items. Can anyone of you help me?
    Thanks in advance.

    Hello Manosij.
    I have not much experience in SRM. I think that the difference between scenarios is where the subsequent documents of a shopping cart are created, is that right? In my case, the PO is created in the backend, in R/3.
    In the shopping cart (in SRM) the services are created everyone in a different SC item, with the possibility of having different tax codes for each one. However, in the purchase order (in R/3), the services are grouped all together in a unique PO item, all of them under a unique tax code (EKPO-MWSKZ). What I need to do is to have a PO item for each different tax code from the SC. The services have to be under their correspondent tax code in the PO.
    For example, I am creating a SC with two services, one of them with tax code VP and the other one with tax code V5. The PO must have two items, one with tax code VP and the other one with tax code V5. Currently, the PO is being created with a unique item with tax code VP. If both items in the SC would have tax code VP, it would be correct to have the PO with a unique item with tax code VP.
    I hope this clarify my requirement.
    Thanks.

  • Message Split without BPM - Error

    Hi,
    I am creating a message split scenario without BPM as per weblog <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible Split without BPM</a>
    I am able to receive message in XI but after that it shows error in Integration engine.
    Error Category : MAPPING
    Error Code : GENERIC
    I am able to see the message in SXMB_MONI with error
    <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>No messages created from split mapping</SAP:P1>
    Please advice.
    Thanks,
    Sri.

    Hi Venkat,
    I am not able to see sub-groupid in sxmb_moni.
    Please see below the contents from sxmb_moni trace.
    ============================
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Trace xmlns:SAP="http://sap.com/xi/XI/Message/30">
      <Trace level="1" type="T">Party normalization: sender</Trace>
      <Trace level="1" type="T">Sender scheme external = XIParty</Trace>
      <Trace level="1" type="T">Sender agency external = http://sap.com/xi/XI</Trace>
      <Trace level="1" type="T">Sender party external =</Trace>
      <Trace level="1" type="T">Sender party normalized =</Trace>
      <Trace level="1" type="T">Party normalization: receiver</Trace>
      <Trace level="1" type="T">Receiver scheme external =</Trace>
      <Trace level="1" type="T">Receiver agency external =</Trace>
      <Trace level="1" type="T">Receiver party external =</Trace>
      <Trace level="1" type="T">Receiver party normalized =</Trace>
      <Trace level="1" type="B" name="CL_XMS_HTTP_HANDLER-HANDLE_REQUEST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">XMB was called with URL /sap/xi/engine?type=entry</Trace>
      <Trace level="1" type="T">COMMIT is done by XMB !</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-ENTER_XMS" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-SET_START_PIPELINE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="SXMBCONF-SXMB_GET_XMB_USE" />
      <Trace level="1" type="B" name="CL_XMS_TROUBLESHOOT-ENTER_PLSRV" />
      <Trace level="1" type="T">****************************************************</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">XMB entry processing</Trace>
      <Trace level="1" type="T">system-ID = QN7</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2006-04-18T05:51:20Z CET</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">* *</Trace>
      <Trace level="1" type="T">****************************************************</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_UC_EXECUTE" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Message-GUID = 67F58830CE9E11DA91CD00111120E6DB</Trace>
      <Trace level="1" type="T">PLNAME = CENTRAL</Trace>
      <Trace level="1" type="T">QOS = EO</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_ASYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline = CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Get definition of internal pipeline = SAP_CENTRAL</Trace>
      <Trace level="1" type="T">Queue name : XBTI0002</Trace>
      <Trace level="1" type="T">Generated prefixed queue name = XBTI0002</Trace>
      <Trace level="1" type="T">Schedule message in qRFC environment</Trace>
      <Trace level="1" type="T">Setup qRFC Scheduler OK!</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Going to persist message</Trace>
      <Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>
      <Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>
      <Trace level="1" type="T">- Exit CALL_PIPELINE_ASYNC</Trace>
      <Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />
      <Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>
      <Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>
      <Trace level="1" type="T">system-ID = QN7</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2006-04-18T05:51:20Z CET</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
    - <Trace level="1" type="B" name="PLSRV_RECEIVER_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_RD_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">R E C E I V E R - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
    - <Trace level="1" type="B" name="PLSRV_INTERFACE_DETERMINATION">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL">
    - <Trace level="1" type="B" name="CL_ID_PLSRV-ENTER_PLSRV">
      <Trace level="1" type="T">I N T E R F A C E - D E T E R M I N A T I O N</Trace>
      <Trace level="1" type="T">Cache Content is up to date</Trace>
      </Trace>
      </Trace>
      </Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="B" name="PLSRV_RECEIVER_MESSAGE_SPLIT" />
    - <!--  ************************************
      -->
    - <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV">
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_PLSRV_RECEIVER_SPLIT-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">number of receivers: 1</Trace>
      <Trace level="1" type="T">Single-receiver split case</Trace>
      <Trace level="1" type="T">Post-split internal queue name = XBTO6___0000</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Persisting single message for post-split handling</Trace>
      <Trace level="1" type="T" />
      <Trace level="1" type="T">Going to persist message + call qRFC now...</Trace>
      <Trace level="1" type="T">NOTE: The following trace entries are always lacking</Trace>
      <Trace level="1" type="T">- Exit WRITE_MESSAGE_TO_PERSIST</Trace>
      <Trace level="1" type="T">Async barrier reached. Bye-bye !</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-PERSIST_READ_MESSAGE" />
      <Trace level="1" type="T">Note: the following trace entry is written delayed (after read from persist)</Trace>
      <Trace level="1" type="B" name="SXMS_ASYNC_EXEC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="T">Starting async processing with pipeline CENTRAL</Trace>
      <Trace level="1" type="T">system-ID = QN7</Trace>
      <Trace level="1" type="T">client = 100</Trace>
      <Trace level="1" type="T">language = E</Trace>
      <Trace level="1" type="T">user = XIAFUSER</Trace>
      <Trace level="1" type="Timestamp">2006-04-18T05:51:20Z CET</Trace>
      <Trace level="1" type="T">----
    </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PIPELINE_SYNC" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Get definition of external pipeline CENTRAL</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-LOOKUP_INTERNAL_PL_ID" />
      <Trace level="1" type="T">Corresponding internal pipeline SAP_CENTRAL</Trace>
      <Trace level="1" type="T">Start with pipeline element PLEL= 5EC3C53B4BB7B62DE10000000A1148F5</Trace>
      <Trace level="1" type="B" name="PLSRV_MAPPING_REQUEST" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
    - <!--  ************************************
      -->
      <Trace level="1" type="B" name="CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV" />
    - <!--  ************************************
      -->
      <Trace level="1" type="T">Mapping-Object-Id:29EB87F0231C357A8336DDEBD574EEAB</Trace>
      <Trace level="1" type="T">Mapping-SWCV:0CF1E1E0C5FC11DABCB9E4A50A07012B</Trace>
      <Trace level="1" type="T">Mapping-Step:1</Trace>
      <Trace level="1" type="T">Mapping-Type:JAVA</Trace>
      <Trace level="1" type="T">Mapping-Program:com/sap/xi/tf/_MM_filesplit_without_bpm_</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST" />
      <Trace level="1" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      </SAP:Trace>
    Thanks,
    Sri.

  • Splitting the Line items in Transaction LB02........

    Hi Frnds,
                I would like to know how to proceed further....afetr entering into standard transaction LB02, the user wants to split the line items depending on the quantity what he has enterd in the custom screen which i developed.
               Here am able to get the data in background necessary to goto standard transaction. After entering into the standard transaction how to split the line items.
    Functional Requirement
    In the screen, which i developed...
    The user enters material no...
    -->Matl qty  & matl desc will be displayed....
    -->Then user enters the bin no.   and the qty he wants to keep in that particular bin.
    -->Here depending on the qty the user has entered it has to reflect in the Tcode LB02.
    -->For example, total qty displayed in the custom screen after entering the matl no. is 20  From this qunatity, the user enters the quantity as 10 which is not GE to that qty (20)  which we got from database.
    -->Now this has to be replicated in the standard transaction in such a way that..the line items should also split according to the qty the user enters.......it may be upto n no. of  line items.....and the bin no. should also be entered into the stnd Tcode LB02 at the unloading point field......
    Thanks & Regards
    Message was edited by:
            Badri Thiriveedhi

    Managed to find an Enhancement Point in the Standard SAP Code and hence the Issue is resolved.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Message splitting without bpm

    Could anyone please give any idea or links about end to end configuration for  message splitting without using bpm.
    Thanks
    sabyasachi
    Edited by: Sabyasachi Mohapatra on Apr 7, 2009 11:50 AM

    Hi Sameerr
    .i have one sender  &  2 receivers.Please guide how to configure end to end in the receiver determination step & interface determination step.How many sender & receiver agreements need to be configured.
    Thanks & Regards
    Sabyasachi

  • Clearing document without line items

    Hello,
    While doing automatic/manual clearing, clearing doc gets posted with zero line items. We have requirement that documents without any line item can not appear in the legal books.
    Apart from validation/substitution, is there any way to avoid this ?

    Hello Mauri,
    Thanks for your answer.
    Problem is not how clearing rules/lines work but is there any solution in SAP to stop a clearing document being created without line items.
    For eg - while doing clearing,  FX gain/loss line item arises with zero amount in local currency. I know this is standard behaviour & also correct one, but, the requirement is that such zero lines can not appear in the legal books.
    Do you have any solution ?
    Thanks in Advance.
    Regards,
    Amol

  • Split one salesorder item into two items in delivery

    We want to split one salesorder item into two different items in the same delivery.
    This is because we will pick the material from two different storage locations.
    Any user-exit to use for solving this?
    Best regards,
    Terje

    Hi,
    We are not using batch management.
    I have looked into the foreign trade/customs standard functionality in SAP, but I can not see that them difference in stock in SAP what is duty paid or not.
    We need to have documentation in the system for the custom goverement for what stock is duty paid and not.
    For the same material we can have stock which are duty paid and not duty paid. This is decided when we do the goods receipt.
    For stock coming from Asia, it is profitable to have this on not duty paid stock since we are exporting it back to Europe and Asia later.
    We will send import and export EDI messages to a third party custom application handling all the papers with the custom goverement.
    The only we need to make track on in SAP is the stock for what is duty paid and not.
    In some situations we need to take stock from both duty paid stock and not duty paid stock when we deliver the same material to a customer. Therefor I asked the question of splitting one delivery item into two items.
    Best regards,
    Terje

  • I bought an iphone for my daughter and was unaware that we should have a seperate appleid for each.Now we share an id and get eachothers contacts and face time calls. I recently bought another iphone and want to change ids without loosing items and music.

    I bought an iphone for my daughter and was unaware that we should have a seperate appleid for each.Now we share an id and get eachothers contacts and face time calls. I recently bought another iphone and want to change ids without loosing items and music. How do I do this? The new phone is a 5.

    All purchases are always going to be associated to the ID that was used to purchase/download them.
    If you create an ID for your daughter you will want to check everywhere it is used to make sure you are not sharing messages and stuff. These would be iTunes/app store, iCloud, iMessages, and FaceTime.
    Go thru settings and find all mention of your ID.

  • Can a PM work center operation be split without assigning to individuals?

    We have a requirement to split the work time of a PM operation into more than one non-consecutive time period.  For example a maintenance trade work center containing 3 individuals is required to perform an operation that takes 40 hours.  Due to the plant schedule the work will be carried out in 20 hour segments.  20 hours in week 5 and 20 hours in week 7.  Can this operation be dispatched as a split without assigning the splits to individuals in the work center?
    We are using:  SAP Appl Release 470 and
    SAP R/3 Enterprise PLM, SCM, Financials  Release 110 and the latest support packs.

    Question is being posted to EAM Forum.

  • How to update storage location & batch split on delivery items?

    Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
    1) Enter or update a storage location on a delivery item?
    2) Batch split a delivery item to give multiple batch    numbers. For example if delivery item is '101' then    after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
    Do not wish to use BDC or call transaction. Any help appreciated.

    hi sailatha..
    im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity..  my requirement is  if the material is not there in the specified storage location it should search in the other storage locations for delivery.
    how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
    this is urgent requirement..
    kindly revert me back if u can help.
    thankx
    helpful answer will be rewarded.

  • MIRO. Amount Split without Taxes Code

    Hi,
    I´m trying to make a "MIRO" "Invoice Verification"  from a Purchase Order witn only one item.
    I want to split the amount in two parts, in order to assign each part a different Tax Code.
    Somehow, I cannot see the Tax Code Field, in the "Amount Split" TAB.
    Does anybody know how can i display this field?
    Does anyboby know a different way to solve this problem?
    Thanks in advanced?

    Hi
    I really appreciate your answer.
    I tried to do what you suggested, but it is impossible in my system. I cannot leave the TAX CODE field in blank in the position. The system gives me an error "m8249" "Enter a tax code".
    I tried to find out where I could erase this message in Customizing, without success.
    Does anybody know, where i can set this field as not a mandatory field for the MIRO?
    Thanks,

  • Nested Split WITHOUT Cross APPLY

    I have been wrestling with this for days and need an assist.
    I have to split a text field based on different Delimitters AND I need to do
    it without CROSS Apply because the database I am working in has a compatability
    level of less than 90.
    This is what I have attempted with the cross apply and it ALMOST works.
    Again the issue is that
    I want this
    ID Company  AdjustedZip
    1 McDonalds 55407
    2 Burger
    King 55401
    3 Wendys  32314
    3 Wendys  32121
    4 ChikFilA 30317
    4 ChikFilA 30318
    4 ChikFilA 30318
    5 Checkers 90134
    5 Checkers 90301
    5 Checkers 90210
    5 Checkers 90211
    And I am getting this
    ID Company  AdjustedZip
    1 McDonalds 55407
    2 Burger
    King 55401
    3 Wendys  32314
    3 Wendys  3,231,432,121
    3 Wendys  32121
    4 ChikFilA 30317
    4 ChikFilA 303,173,031,830,318
    4 ChikFilA 30318
    4 ChikFilA 30318
    5 Checkers 90134
    5 Checkers 90134;90301;90210;90211
    5 Checkers 90301
    5 Checkers 90210
    5 Checkers 90211
    BUT I CAN'T use the Cross Apply to do it,
    Here is my code
    Create FUNCTION [dbo].[DelimitedSplitMax]
    --===== Define I/O
    parameters
            (@pString VARCHAR(max), @pDelimiter
    CHAR(1))
    --WARNING!!! DO NOT USE MAX DATA-TYPES HERE!  IT WILL KILL
    PERFORMANCE!
    RETURNS TABLE WITH SCHEMABINDING AS
     RETURN
    --=====
    "Inline" CTE Driven "Tally Table" produces values from 1 up to 10,000...
    -- enough to cover VARCHAR(8000)
      WITH E1(N) AS (
                     SELECT
    1 UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL
                     SELECT 1
    UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL
                     SELECT 1
    UNION ALL SELECT 1 UNION ALL SELECT 1 UNION ALL SELECT 1
    ),                          --10E+1 or 10 rows
           E2(N) AS (SELECT 1 FROM
    E1 a, E1 b), --10E+2 or 100 rows
           E4(N) AS (SELECT 1 FROM E2 a, E2 b),
    --10E+4 or 10,000 rows max
           E16(N) AS (SELECT 1 FROM E4 a, E4 b),
    --10E+16 or 10,000 rows max
     cteTally(N) AS (--==== This provides the "base"
    CTE and limits the number of rows right up front
                         -- for
    both a performance gain and prevention of accidental
    "overruns"
                     SELECT TOP (ISNULL(DATALENGTH(@pString),0))
    ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) FROM E4
    cteStart(N1) AS (--==== This returns N+1 (starting position of each
    "element" just once for each delimiter)
                     SELECT 1 UNION
    ALL
                     SELECT t.N+1 FROM cteTally t WHERE
    SUBSTRING(@pString,t.N,1) = @pDelimiter
    cteLen(N1,L1)
    AS(--==== Return start and length (for use in substring)
    SELECT s.N1,
    ISNULL(NULLIF(CHARINDEX(@pDelimiter,@pString,s.N1),0)-s.N1,8000)
    FROM cteStart s
    --===== Do the actual split. The
    ISNULL/NULLIF combo handles the length for the final element when no delimiter
    is found.
     SELECT ItemNumber = ROW_NUMBER() OVER(ORDER BY l.N1),
    Item       = SUBSTRING(@pString, l.N1, l.L1)
       FROM cteLen l
    Create Table #Temp
    (Id int
    ,Company varchar (100)
    ,AdjustedZip
    varchar(255)
    Insert #Temp
    (Id
    ,Company
    ,AdjustedZip
    Values
      (1,'McDonalds','55407')
           ,(2,'Burger King','55401')
    ,(3,'Wendys','32314,32121')
    ,(4,'ChikFilA','30317,30318,30319')
    ,(5,'Checkers','90134;90301;90210;90211')
     Select s.ID
      ,s.Company     
            ,Case
       When Len(Ltrim(Rtrim(s.adjustedzip)))= 5 Then
    s.adjustedzip
       Else
       f.Item
       End  
       as
    AdjustedZip
             From
      #temp as s
    CROSS APPLY
    Select *
    From dbo.DelimitedSplitMax(ltrim(rtrim(s.AdjustedZip)), ',')
    Union 
    Select * From dbo.DelimitedSplitMax(ltrim(rtrim(s.AdjustedZip)), ';') 
     ) as f 

    I got the bug out and it appears to be running I am simply running the database with compatability set to 90 and there appears to be no issue with that.
    HERE IS THE CODE AND THANK YOU ALL!!!
    Select l.*
    From
    Select s.ID
    ,s.Company     
    ,Case
    When
    Len(Ltrim(Rtrim(s.adjustedzip)))=
    5 Then s.adjustedzip
    Else
    f
    .Item
    End
    as AdjustedZip
    From
    #temp
    as s
    CROSS
    APPLY
    Select
    From mailtrak.dbo.DelimitedSplitMax(ltrim(rtrim(s.AdjustedZip)),
    as f
    Union
    Select s.ID
    ,s.Company     
    ,Case
    When
    Len(Ltrim(Rtrim(s.adjustedzip)))=
    5 Then s.adjustedzip
    Else
    ff
    .Item
    End
    as AdjustedZip
    From
    #temp
    as s
    CROSS
    APPLY
    Select
    From mailtrak.dbo.DelimitedSplitMax(ltrim(rtrim(s.AdjustedZip)),
    as ff
    l
    Except
    Select ID,Company,Adjustedzip
    from #Temp
    where
    LEN(Adjustedzip)>5

  • How to split the Order items using standard procedure

    Hi All,
                   I am a BW Consultant and currently working for Sales Module. I have one question  regarding the Order Item changes in VA02.  For example a user creates one SO with Item 10 and the  quantity is 1000. Later they want to split this Order into two i.e. they change the first item quantity to 500 and create another item (20) with Quantity 500 .Users are doing this ,because of allocation process.
                 Now I would like to ask whether this is a standard procedure to follow.I have no issues with the new item , I am not sure  how they are changing the first order item qty in VA02, because Qty is greyed out . My assumption is, they are deleting the item first and then recreating with the new quantity.
                Hence I would like to check is there any other option/process  available to change the quantity and also would like to know whether it is a standard procedure? Reason I am asking this question is,extractor is not picking the correct records.Hence I suspect this is not a standard procedure to follow.
    Please advice .Thanks for your time.
    Thanks.

    hi raja,
    go to shedule line data of position 10
    here you want to have 1000 pcs for the 18.12.2009
    change her into
    500 pcs for the 18.12.2009   and
    500 pcs for the 21.12.2009
    at 18.12.2009 you will get adelivery of 500
    at 21.12.2009 you will get the rest.
    in total, the Position has 1000 pcs.
    hans

  • Splitting the Line Items in the Sales Order

    Hello,
             I have a requirement where when I enter a Particular Material and enter Quantity, then there should be a Line Item Split with Some Quantity with the First Line Item (000010) and there should be another Line Item which should be automatically created (000011).  I've tried MV45AFZZ - USER_EXIT_MOVE_FIELD_TO_VBAP but that is not of much help.
             Can someone give me the Place where I can create an Enhancement Implementation / or any Exit which would serve this purpose?
    Thanks and Regards,
    Venkat Phani Prasad Konduri

    Managed to find an Enhancement Point in the Standard SAP Code and hence the Issue is resolved.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

Maybe you are looking for

  • Upload Specific Excel Sheet from excel file in sap internal table..

    I have an excel sheet and it contains many sheets.. I want to read a specific sheet no.. or that sheet would have sheet name.. i want to read that specific sheet and load its data in the internal table.

  • Change Trading Partner

    Hi, How do you change the trading partner in a posted document?  We want to clear an account but there is a problem with the trading partner in one of the line items and we can not change the trading partner as it is greyed out.

  • DHCP over wireless bridge

    I want to setup a wireless bridge going from a current network (siteA), to a new small network across the street (siteB). I have 2 Cisco 1131AG Access points. I have no need for any client access, only the bridge. I have the interfaces up and can pin

  • Is there any flascc swc Hello World tutorial?

    Hi, I saw samples from flascc. But as for swc lib creationg - it's too complicated. Who can share samples with simple things like sending from flash to c++ data and back it using swc?

  • Is there a problem with photostream?

    phostream isnt working on my iphone, the folder is empty and just shows the icloud logo even though im taking pictures and there going into my camera roll.