How to split the IDOCS based on document number change whit out BPM

Hi all,
Thanks,for giving the responce..
Scenario:File to IDoc.
Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
20000092
20000092
20000092
50000050
50000050
50000065
I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
                                                   2 for 50000050,50000050
                                                   3 for 5000006
By using external definations i am getting 6 IDOCs insted of 3.
Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
Thanks in advance.
Regards,
KP

HI,
for this no need of BPM.
You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
For this e.g
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
Regards,
Moorthy

Similar Messages

  • How to split the data based on one column

    Dear All,
    I have the table data like this.
    type quantity revenue_mny count country
    a 10           10          2 India
    a 20          12          3 India
    b 30          15          1 India
    a 35          20          2 US
    b 20          10          1 US
    b 60          15          1 US
    I woulkd like to split the date based on type column.
    For each country, for Type "a" get the sum of revenue count quanity ans same for b
    and all shuld come in on row for each country.
    output should be like
    country revenue_mny(For a) quantity(for a) count(For a) revenue_mny(for b) quantity(for b) count(For b)
    India 22 30 5 15 30 1
    US 20 35 2 25 80 2
    I tried the below query . its not splittng the date for each country in one row.
    select country,
    sum(case when type='a') then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='b' then quantity else 0 end) quantity_b from
    test
    group by country
    Please need your helo

    Like this?
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(case when type='a' then revenue_mny else 0 end ) revenue_mny_a,
    sum(case when type='a' then quantity else 0 end) quantity_a,
    sum(case when type='a' then cnt else 0 end) cnt_a,
    sum(case when type='b' then revenue_mny else 0 end ) revenue_mny_b,
    sum(case when type='b' then quantity else 0 end) quantity_b ,
    sum(case when type='b' then cnt else 0 end) cnt_b
    from t
    group by country;result:
    COUNTRY  REVENUE_MNY_A QUANTITY_A CNT_A REVENUE_MNY_B QUANTITY_B CNT_B
    India    22            30         5     15            30         1
    US       20            35         2     25            80         2Or you can do it with a decode instead of case. The result will be the same:
    with t as
    select 'a' type, 10 quantity, 10 revenue_mny, 2 cnt, 'India' country from dual union all
    select 'a', 20, 12, 3, 'India' from dual union all
    select 'b', 30, 15, 1, 'India' from dual union all
    select 'a', 35, 20, 2, 'US' from dual union all
    select 'b', 20, 10, 1, 'US' from dual union all
    select 'b', 60, 15, 1, 'US' from dual
    select country,
    sum(decode(type,'a',revenue_mny,0)) revenue_mny_a,
    sum(decode(type,'a',quantity,0)) quantity_a,
    sum(decode(type,'a',cnt,0)) cnt_a,
    sum(decode(type,'b',revenue_mny,0)) revenue_mny_b,
    sum(decode(type,'b',quantity,0)) quantity_b,
    sum(decode(type,'b',cnt,0)) cnt_b
    from t
    group by country;(I changed tablename from TEST to T and columnname from COUNT to CNT, because you should not use reserved words as tablename or columnname.)
    Edited by: hm on 09.10.2012 06:17

  • How to pick the data based on customer number

    Hi All ,
    greets....
    i have a requirement to select  the data based on customer number and then do furthur processing .
    example:
    this is some 10 dcouments in customer nr:v1000
    and 20 documents in customer v2000 in a internal table how to select that,
    thank s in advance.

    thier is an internal table which is having some 1000records.
    and their is 6 customers.
    in which i should pick the data based on customer number.
    how to write a code for that?

  • How to release the IDOC based on the count

    Hi IDOC gurus,
    How to release IDOC's based on the count?
    Actually, my requirement is I have to release the IDOC's of count 50 for every 5 or 10 minutes. I tried by scheduling the background job for the program RSEOUT00, but unfortunately there was no option of selecting the IDOC's based on count for the given message type except IDOC range i.e FROM and TO select options in the selection screen.
    Are there any other alternative where I can release the IDOC's based on count for every periodic 5 or 10minutes?
    Also, can I know how can we configure the multiple QUEUES for the IDOC's?
    I highly appreciate who can help regarding this and points are awarded.
    Thanks,
    Sreevani.

    Hi Ferry,
    I tried with that option. Maximum number of IDocs parameter is the package size not the count of IDOC's.
    I have 100 IDOC's with status 30 and all IDOC's got released eventhough the value of  "Maximum number of IDocs" parameter is 50. I checked in the code it is an package size i.e., maxm IDOCs that it can be transferred from RFC outbound queue to a port at time and not maximum number that can be processed for the program execution.
    Thanks,
    Sreevani.

  • Split the Delivery based on Storage location

    HI all,
    How to Split the Delivery based on Storage location when creating delivery.  is  there any functional setting ?
    Thanks
    Krupali

    Hi KR and Lakshmipathi,
    I am having exactly the same requirement.  My requirement is that i need to split one Sale Order line into multiple line items in delivery based on the stock in a particular storage location at the time of delivery creation.
    Eg.
    Line item 10 in Sale order for quantity 100.
    Storage location stock  in the priority
    ST01 = 40
    ST02 = 25
    ST03 = 2000
    I wish to have 3 line items in delivery like
    Line item           Storage Location             Qty
    10                     ST01                                40
    20                     ST02                                25
    30                     ST03                                35
    I was able to do the same in the BADI LE_SHP_DELIVERY_PROC ~ SAVE_DOCUMENT_PREPARE
    But i am facing problems regarding the inconsistency in delivery document such as Picking status update etc
    Suggest if there is any better method to do.
    Thanks in advance.

  • How to Split the message content?

    Hi ....
        I am having an input File like below format.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
       <Field1></Field1> -
    0 to 1
       <Filed2></Filed2> -
    0 to 1
       <Filed3></Filed3> -
    0 to unbounded
    </ns0:MT_ISO8583>
    Here Field 3 is repeating many times. The value in the Field 3 has to be splitted and should be mapped to the target feilds. Field 3 will stop repeating until when the first value in the field 3 is N.
    The length of the field is 142 characters in length.
    The field should be splitted based on the following structure.
    More data flag : 1 char (u2018Yu2019/u2019Nu2019) This indicates whether there are more records for the given criteria.
    Number of statements : 2char (00 to 20) Number of statements in this fetch
    The following are repeated as many number of statements
    Transaction date : 8 char ( YYYYMMDD )
    Transaction Id : 9 char (right justified, left padded with spaces)
    Part tran serial num : 4 char (right justified left padded with spaces)
    Tran Type : 1 char ( C - Cash, T - Transfer, L - Clearing )
    Tran sub type : 2 char ( BI, CI, NP, NR)
    Debit credit indicator : 1 char ( D - Debit, C - Credit )
    Tran value date : 8 char ( YYYYMMDD )
    Transaction Amount : 17 char ( with decimal )
    Transaction particulars : 50 Char (left justified, right padded with spaces)
    Transaction Posted date : 14 char ( YYYYMMDDHHMISS )
    Instrument number : 8 char (right justified, left padded with spaces)
    Balance at the end of the transaction : 17 char ( with decimal )
    Can you help me , how to split the message content in the field3?
    Below is the sample message.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ISO8583 xmlns:ns0="http://axis.com/bank_statement">
       <Field1>930000</Field1>
       <Filed2>234259901406</Filed2>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
       <Filed3><Y0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 0090209122637 14586. 42]]></Filed3>
       <Filed3><N0820090127S275433861005TBIC20090127 4872.14EDC/212-213-/M000044375340045 20090127151 959 32663.7620090127S278456264276TBIC20090127 5290.45EDC/214-215-/M000044375340045 20090127205840 37954.2120090131S299799314797TBIC20090131 1883.88EDC/216-216-/M000044375340045 20090131104028 39838.0920090202S31532814 662TBIC20090202 3105.37EDC/217-217-/M00004 4375340045 20090202121514 42943.4620090205S337981634779TBIC20090205 2052.20EDC/2 18-218-/M000044375340045 20090205104040 44995.6620090205 M53898 1CNPD20090205 42000.00TO CASH/SELF 20090205111633 12824 2995.6620090207S354072734740TBIC20 090207 4429.21EDC/219-219-/M000044375340045 20090207112958 7424.8720090209S3671 72631419TB Field 126: IC20090209 7161.55EDC/220-221-/M000044375340045 20090209122637 14586. 42]]></Filed3>
    </ns0:MT_ISO8583>
    Thanks & Regards,
    Leela

    using substring to get values you want, and map to corresponding target nodes except:
       fields3 ->count->Number of statement
    Regards.
    Liang

  • How to split the report into different versions view 1 agent delivery

    Hello
    I have a scenario where I need to send a dashboard to multiple users. The user information are stored in the table like the following:
    USER    Day     Car                  Pay Type                    Cost   Email
    USER1
    -10
    -2
    Honda
    Customer Pay
    500
    [email protected]
    USER2
    -4
    -1
    AUDI
    Customer Pay + Warranty
    1000
    [email protected]
    USER2
    -4
    -1
    PORSCHE
    Customer Pay + Warranty
    1000
    [email protected]
    Now I have a dashboard call Car, on this dashboard I have prompts like Date, Car, Pay Type, Cost, pretty much the same name as the columns in the above table. I have also set up session variables to pick up users based on the log in.
    Now for user2, he is getting 1 email, which is the dashboard with both Audi and Porsche on there. Instead, he wants to 2 attachments, 1 for Audi and 1 more Porsche. Is there a way to achieve this using 1 agent?
    Please let me know how to split the result sets based on user records in the table
    Thank you

    Hello,
    Thank You very much for the useful hint.
    Regards
    Aloha

  • Split the IDOC into multiple IDOC if the IDOC has more than 500 records

    Hi All,
    I developed an outbound IDOC in which we are facing an issue.
    There is some limitation on the maximum idoc size it can handle.
    If number of records is more than 500, split the idoc into multiple iDoc's, e.g. if it would have 1300 records , the result would be 2 iDoc's with 500 records, and the last one would have 300 records
    How can i acheive this.
    Regards
    Jai

    Hi,
    1) first you need to know which message type/Idoc type you are triggering.
    2) Get the Corresponding processcode from Partner profiles(WE20/ WE41).
    3) Then the look for prper user-exit in the related processing FM.
    4) write logic to split the IDoc accordingly.
    if no proper user exit available then copy the standard processing FM and need to all ALE related configurations.
    Catch hold any ABAP expert in your team to do all these.
    Suresh

  • How to split the Multi Provider

    HI All,
    Please give me the steps How to split the Multi provider and also let me know how to find the multi provider is parellal or series?
    Thanks
    Vasu.

    Hi
    If you have huge volumes of data, logical partitioning (splitting into multiple data targets based on a time characteristic) is always recommendable. You can choose to so only for the cube (split into 3 cubes) and have the suitable code when loading from the ODS's.
    Else you can split the ODS's as well and have the code in the update rules from source system to the ODS's. Either ways, once you choose to split...you have no choice but to use a multi provider to report on these splits.
    During the execution, query is automatically multiple sub queries and these sub queries read the partitioned cubes in parallel. This would increase the performance of reports. Hope this helps!
    http://help.sap.com/saphelp_bw31/helpdata/en/de/bcb73d73a5f972e10000000a114084/content.htm
    santosh

  • How to archive the IDOC

    Hi
    How to archive the IDOC to remove error form some report
    Thanks
    Manjunatha

    Hi
    goto Transaction SARA , Archiving Object  - IDOC - IDoc - Intermediate Document
    1 .Enter the archiving object IDOC and choose the required action, here  Write (= Archive).
    A warning will be displayed if some of the archiving sessions for the archiving object IDoc are still incomplete. You can ignore the warning but you then run the risk of possibly archiving some IDocs twice.
    2. Define the  start date of the archiving session and the  spool parameters (print output).
    The traffic lights should now be green, indicating that these parameters have been maintained. Please note that you can set the archiving mode for the print output to Store Only and therefore avoid printing every individual archiving log. Enter the object type IDOC as the attachment parameter and use the F4 Help to select a suitable document type for the object type. Also enter a free text as Additional information for the archiving report.
    4. Choose   Maintain to create a report variant. As selection parameters, enter the message type and a time period within which the IDocs received their last, current status.
    5.You can specify whether you want to perform this variant as Test or Production, in the Process Flow segment of the selection parameter screen. If you choose Test, you get statistics of the processed IDocs. For a detailed log, select Detailed Log. 
       6.         Choose  Continue and save your variant.
       7.      Return to the archiving screen and choose .
    If you selected immediately in step 3, the message New archiving job was generated is displayed in the message bar at the bottom of the screen.
           8.      You can check whether your archiving session is complete by selecting Job overview. If you choose Administration, an overview of the completed and incomplete archiving runs is then displayed. If IDocs which match your selection parameters were found in the database tables, your archiving session is displayed as a folder full of archive files.
    Please gothrough the Link
    http://help.sap.com/saphelp_erp2004/helpdata/EN/dc/6b81ed43d711d1893e0000e8323c4f/frameset.htm
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 29, 2008 12:03 PM

  • How to split the blob byte array and insert in oracle

    how to split the blob byte array and insert in oracle
    I am having a string which is of more than lenght 4000 so i am using BLOB datatype as input to get the string.
    need to split the blob in oracle and store in the different column
    The string is of bytearray i need to strore it in each column based on the byte array.

    this will be my input i need to split the above and store it in different columns in a table.
    for spliting say
    Column1 -1 byte
    Column2-3 byte
    Column3-5 byte
    ColumnN-5 byte
    Table will have corresponding data type
    Column1 - number(10,2)
    Column2 - Float
    Column3 - Float
    ColumnN-Float
    here Column2 datatype is float but it will always have 3 byte information.
    where as Column3 datatype is also float but it will always have 5 byte information.
    Say N is Column 120

  • How to split the debit memo due date (Cr. student recievable)?

    How to split the debit memo due date (Cr. student recievable)?
    I have to pay student back like a installment plan (out going payment).
    I tried installment plan but it is't work for a credit side.

    Hi,
    Thanks for your answer.
    (1) To use FPE1, I understand but it has to do 2 documents for this solution.
    Old doc.
          Dr. Revenue          500
              Cr. student A/R 500
    1st Create new doc
        Dr. student A/R  500
                  Cr. student A/R due 1 250
                       student A/R due 2  250
    2nd  Manual clearing (old doc vs new doc).
          Dr. studen A/R  500
                Cr student A/R 500
    (2) To use due date schedule
    We use this one in fee calculation, It can be debit side or credit side. I don't know it depend on booked-cancelled module.
    In the debit side we need to invoice student just one due.
    So, I can't use this solution.

  • How to setup the security based on roles in Organization.

    Hi,
    How to setup the security based on roles in Organization.
    For example:Few users are Manager and a few user are Non Manager .Manager should have access to all work data including Non Manager and Non Manager should access based role.How to setup this? How OBI server identify the user role?
    kindly let me know.
    Regards.,
    CHR

    Hi,
    You need to have Back End support to achieve this. In Back End you need to create two groups . You need to know what joins has to be made for which group (which is more important) and also make session variable for the userrole (with SQL supporting it). In the BMM layer, we need to put the security join conditions in the 'where clause'.
    And make a common report. User loggin in with the respective userid will have userrole and joins assigned in the Back end. And they will be viewing the report according to their access.
    Hope this will solve your problem.
    Regards
    MuRam

  • How to populate the GR based Invoice Flag in PO.

    Hi,
      How to check the GR based Invoice flag for a purchase order.One solution we think of is flagging the G.R IV flag at vendor master level in xk03 (Purchasing data view ).Are there any SPRO level configurations to attain the same.
    Thanks.
    Rakesh.

    Hi,
    Look into
    SPRO->MM->Inventory Mgmt->Good receipt->For GR-Based IV
    Refer:
    Re: CAN GR/GI  BE REVERSED EVEN THOUGH DEBIT NOTE IS RAISED

  • How to control the measure based on the related dimension.

    Hi Experts,
    In order to improve performance, I have created three kinds of time tables in DB,such as Year .Month, Day.
    Then import them into the physical layer in RPD, and combine them into one dimension in BMM.
    Actually, it has three level fact related with three time tables,so they are also dragged into one fact in BMM,and one column will be corresponding with three column derived from different Fact table in physical layer.
    So I want to know how to control the measure based on the related dimension.
    For example:
    when users drag the Year,Sales column, it will come from Year Dimension and Year Fact Table.
    when users drag the Month,Sales column, it will come from Month Dimension and Month Fact Table.
    when users drag the Day,Sales column, it will come from Day Dimension and Day Fact Table.

    Hi,
    Create a dimension Hierarchy, with Year >> Month >> Day Levels and
    Next Double click on Year Table LTS >> click on Ocntetnt Tab >> set as Year
    same way for Month LTS and Day LTS.
    So now when you select year column then server canknow which LTS to hit and Hits Year LTS.
    Mark If Helpfu/correct
    Thanks.

Maybe you are looking for

  • CopyListItem - creating a button in the ribbon and opening the new form with selecting item id data.

    Hi,             In Sharepoint 2013 online without visual studio, I need to create a copy button in the ribbon and by selecting a listitem and clicking the copy button. A new form has to be displayed with the selected listitem data. Please help me in

  • How do i save a pdf to be landscape view

    When I combine multiple files, a few of the images get cut off because its not rotating the picture. How do I save the image in landscape form?

  • Activation Problems with new Razor

    My original razor is worn out and limping on it's broke leg and my last nerve. I bought a Motorola K1m KRZR off eBay to activate while I'm still under my upgrade time. I went to the Verizon wireless web site, logged in, put the new phones ESN in and

  • Clamshell mode problem please help

    I connect my macbook to external display, then I sleep my mac by closing the lid. I've got a usb mouse connected before this sleep. After it goes to sleep I use the mouse to walk it up in clamshell mode and the computer wakes up in external display a

  • Duplicate Drive on Windows 2008 SP2

    Dear Expert ! currently. i m managed Windows 2008 x64 SP2. in the Disk Management these are three logical disk as attached . But when open windows explorer these are two Z drive duplicated similar size, file name.. . please give me advise . thank  yo