Same line Item but two differentreceiving IDOCS

Folks
I am new to SAP PI and seeking your help in the following scenario
legacy -> SAP PI -> branched to two idocs in ECC
The scenario is that a fixed length flat file coming from Legacy wil contain some line items  but each line will be a separate invoice ..the twist  . since it is a financial posting each invoice has to be posted in two different IDOCS which implies that for each line in the file there will be two IDOCS created in ECC
How can i make this happen without BPM ??
I have referred to a  blog 1 : n possible in PI without BPM but here it is a combination of 1:n  and also splitting of the line and posting it to two IDOCS simultaneously
since the transformation logics are different and so are the segments in both receiving IDOCS i will have to create two mappings but how and where to use them ??
Kindly help
Thanks
Rohan

Hi
The requirement  is actually not of two different IDOCS
but posting two the same IDOC twice ..
ie  for each line item coming in the file I have to post two idocs of the same IDOC Type
the file will contain around 500 lines and for each line there will be two idoc postings ofthe same IDOC type ..since it is a Financial posting ... there has to be two postings one for AR and one for AP
Can that be achieved ??
please tell me the steps for that
thanks
Rohan

Similar Messages

  • How to copy the line item description to other same line items - FBL5N

    Hi All,
    I have an issue while printing the description in the script.In the final internal table there are multiple same line items but the description is comming for the only one line item but my requirement is i want to copy the description text(bseg-sgtxt) to the other same line items also. I trying to use the control break statements but i am not getting the solution.
    can any one please provide me the solution.
    FYI.. please find the attched text doc..in the document the first four lineitems are same but description is comming for only one line item. I want to display the description to all the same line items.
    Thanks in advance.
    Regards,
    koushik

    Hi Bharat,
    Can u just attach the code where populating the internal table with description.
    Regards,
    Shashikanth

  • Same line items

    Hi,
         While creating a sales order ,my requirement is that the system should not accept same line item two or more times.
    Eg.,   Line item 10     xyz  material           10 units
             Line item  20    xyz  material            20 units
    In the above scenario system should not accept the second line item and should propose that a line item already exists.
    Regards,
    Phani Prasad.

    But its not a good Habit as while creating a Sales Order , sometimes User put / use the Same material in different Line Items with different Quantity as you would have different Batch with the Same Material.
    Otherwise , you can maintain the same in the User Exit MV45AFZZ with POSNR & MATNR as reference fields as the system will throw an error if it checks the Same material Code in different Line Items.
    Best Regards,
    Ankur

  • Sales order has 52 line items but in vbep some are not available

    Hi,
    what could be the reason for the problem;
    Sales order has 52 line items but in vbep some are not available...
    and some has 2 etenr as '0001' and '0002', why 2 lines in vbep for 1 posnr of order.
    Thanks.
    deniz.

    Hi,
    It is possible when some of them dont have valid Schedule lines.
    If they have valid schedule lines some confirmed qty should be available.otherwise we cant find them in VBEP table.
    Pls check by going to sales order  whether Sch.lines are valid or not.
    This you can check Thru
    VA03-->provide Sales Order number -->Select any line Item-->Menu item Goto-->Item-->Schedule Lines
    Thanks
    Parvathi

  • Particular sales order of the same line item hv created multiple production

    sir,
    I am having a problem in MD04. A particular sales order of the same line item hv created multiple production order.and continously planning is going on... I didn't get why it happens.
    Will u please suggest me what should i do in this case?
    Regards
    Meenu

    Hello sir,
    yes, ofcourse, for the finished material have the BOM with some semifinished productes which are to be produced .
    In co02 , we can go through the collective production order.
    One more thing is that, in the multiple production order date(scheduling date) shows in forward(future dates).
    For ex:09-05-2010.
    Regards
    Meenu

  • Cumulative amount in the same line item for the same account

    Hi
    I have an account which appears more than once in the same accounting document.Can I cumulate the amount in the same line item.
    IF it's possible, please how can i do it.
    Thanks in advance

    Hi Maher,
    Assumption:
    You have an accounting document in which more than one line item is there with the different amount. All the other details of the line items are same.
    Solution:
    If you want to make it one line item, key the amounts as zero in other line items and add the value to a single line item.
    Warm regards,
    Murukan Arunachalam

  • For same line item there are two or more values

    Hi Experts,
    I have to modify the output of the report with the VAS indicator (J_3AVATL-J_3ATLTYP). I am using two main internal tables. One for the Header data and another for the item level. For same J_3AVATL-BELNR there are two values for J_3ATLTYP.
    How to update the main internal table for item ?
    Kindly reply at earliest. I will reward for answers.
    Thanks.
    Ravi

    Hi,
    Against one Header data, there would be several line items i.e. 2 or more than 2.
    So there would be some other line item field viz POSNR . You can refer the same for line items.
    If still your question is not answered, then please elaborate your question.
    Best regards,
    Prashant

  • Pusrchase order having 3 line item But print preview in PDF shows blank.

    Hi All,
    Purchase order has 3 line items. While taking print preview in PDF format 1st page shows 1 line item and 2nd page is blank.
    I am not understanding the issue why other two line items are not getting displayed.?
    Please provide me with the solution.
    Thanks
    Forum

    Yes,there is a issue in print preview itself , if there is a issue in Print Prview that means page is gets skipped on next page ,therefore 2nd page automatically gets blank ,debug the same with abapor ,if this problem gets resolved then automatically system will convert the document in PDF as per print preview.
    Regards,
    Sandesh Sawant

  • Adding Values of same line item number

    Hi Experts... please help me on my issue below...
    I have this strucutre of my target message.
    Line_item (1..n)
    ...Line_itemno (1..1)
    ...Material_no (1..1)
    ...Qty (1..1)
    The line item no can be as follows...
    10
    20
    30
    31
    40
    50
    My problem is... i need to combine values for 30 and 31, at the same time i need to add the qty of the both... so for the sequence above, my target message should only contain 5 line items, with line item 30 as the combination of line items 30 and 31. Can I achieve this using standard functions?
    Please help.

    Follow this mapping.
    For Line Item parent node use this.
    http://www.flickr.com/photos/28929439@N06/4405415707/sizes/o/
    For Qty element mapping use this
    http://www.flickr.com/photos/28929439@N06/4405415711/sizes/o/
    make both the Line_itemno & qty element in the source to the highest context level.
    Use this UDF to sum-up the quantity of line items. UDF type shoudl be context.
    int sum=0;
    for(int i=0;i<var1.length;i++)
    sum = sum+ Integer.parseInt(var1<i>);
    result.addValue(sum);
    ~SaNv...

  • XVBAP has the new line item but does not update Sales Order

    Hi
    I need to update the sales order with a new line item when the line item has a base unit of measure as the sales unit. I need to then convert the base unit to sales unit with a whole figure and the rest can be in the base unit.
    I am able to see the update in the xvbap but the line item doesn't get updated.
    I am puting this code in a perform within
    MV45AFZB  within   Form  USEREXIT_CHECK_VBAP
    But I guess I am doing something wrong can someone please take a look at it and tell me what is wrong with the coding.
    *&  Include       ZSD_CREATE_NEW_LINE_ITEM              *
    *&      Form  create_new_line_item
          text
    -->  p1        text
    <--  p2        text
    FORM CREATE_NEW_LINE_ITEM .
      CONSTANTS: C_MEINH LIKE MARM-MEINH VALUE 'CSE'.
    Variables Used
      DATA: WS_WMENG LIKE VBEP-WMENG.
      DATA: INPUT  LIKE VBAP-KWMENG,
            WS_EA  LIKE VBAP-KWMENG,
            WS_CSE LIKE VBAP-KWMENG.
      DATA: WS_MVKE_VRKME LIKE MVKE-VRKME.
    Internal Tables and Structures
      DATA: WS_XVBAP LIKE XVBAP.
    DATA:
    it_vbap  LIKE vbap OCCURS 0 WITH HEADER LINE,
    it_vbep  LIKE vbep OCCURS 0 WITH HEADER LINE,
    it_xvbap LIKE vbapvb OCCURS 0 WITH HEADER LINE.
      DATA: BEGIN OF WS_MARM,
              MEINH LIKE MARM-MEINH,
              UMREZ LIKE MARM-UMREZ,
              UMREN LIKE MARM-UMREN,
            END OF WS_MARM.
      CLEAR WS_MVKE_VRKME.
      SELECT SINGLE VRKME INTO WS_MVKE_VRKME
        FROM MVKE
        WHERE MATNR EQ XVBAP-MATNR
        AND   VKORG EQ XVBAK-VKORG
        AND   VTWEG EQ XVBAK-VTWEG.
      IF VBAP-VRKME <> WS_MVKE_VRKME.
       LOOP AT XVBAP.
          SELECT SINGLE MEINH UMREZ UMREN
            FROM MARM
            INTO WS_MARM
            WHERE MATNR = VBAP-MATNR
            AND   MEINH = WS_MVKE_VRKME.
          IF XVBAP-MEINS <> WS_MVKE_VRKME.
            IF NOT XVBAP-KWMENG = 0.
              WS_WMENG = XVBAP-KWMENG / WS_MARM-UMREZ.
              IF WS_WMENG > 1.
    This means that the line item needs to be split into CSE & EA
                  INPUT  = XVBAP-KWMENG.
                  WS_EA  = INPUT / WS_MARM-UMREZ.
                  WS_CSE = WS_EA.
                  WS_EA  = WS_CSE * WS_MARM-UMREZ.
                  WS_EA  = INPUT - WS_EA.
    Now we have the qty. split into EA & CSE. Now to
    assign it to xvbap
                  XVBAP-KWMENG = WS_EA.
                  XVBAP-VRKME  = WS_MVKE_VRKME.
              READ TABLE XVBAP WITH KEY POSNR = XVBAP-POSNR.
                MODIFY XVBAP INDEX SY-TABIX.
                  WS_XVBAP = XVBAP.
                  WS_XVBAP-KWMENG = WS_CSE.
                MOVE-CORRESPONDING WS_XVBAP TO XVBAP.
                INSERT XVBAP INDEX SY-TABIX.
              ENDIF.
            ENDIF.
          ENDIF.
      ENDIF.     " IF xvbap-vrkme 'EA'.
    ENDFORM.    " create_new_line_item

    Hi Clark,
    Pls check the Include MV45AFZZ instead of the one which you are using . Here in this include MV45AFZZ you can have access to the Header and Line items data .
    Here in this include
          FORM USEREXIT_SAVE_DOCUMENT                                   *
          This userexit can be used to save data in additional tables   *
          when a document is saved.                                     *
          If field T180-TRTYP contents 'H', the document will be        *
          created, else it will be changed.                             *
          This form is called at from form BELEG_SICHERN, before COMMIT *
    form userexit_save_document.
    Endform.
    Either you can write the code you want to update the XVABP table here or you can use the form .
          FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
          This userexit can be used to move some fields into the sales  *
          dokument item workaerea VBAP                                  *
          SVBAP-TABIX = 0:  Create item                                 *
          SVBAP-TABIX > 0:  Change item                                 *
          This form is called at the end of form VBAP_FUELLEN.          *
    form userexit_move_field_to_vbap.
    endform.
    This are the 2 performs in this include where you can do you code and it will defnitely solve your problem.
    Good Luck to you . Let me know if your problem get solved.
    Thanks & Regards,
    Naidu.

  • How to handle the multiple line items in the Inbound idoc FM

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

  • SO Multiple Line Items but one line item in billing

    Hi Experts,
    I have a requirement from a client whereby they want to consolidate the items in the sales order and create billing as one line item.
    Example: in sales order there are 5 line items (user need to have separate line items due to PR need to be generated for different vendors via 3rd party).
    Line item 10: Miscellaneous charges - $20.00
    Line item 20: Miscellaneous charges - $20.00
    Line item 30: Miscellaneous charges - $20.00
    Line item 40: Miscellaneous charges - $20.00
    Line item 50: Miscellaneous charges - $20.00
    In standard SAP, when the user generates billing document - the billing will show 5 line items. However user wants to consolidate them into 1 single line item  i.e. Miscellaneous charges - $100.00
    Please advice how can this be done.
    Rgds

    Hi,
    Go to Tcode : VTFL.
    There select your  Billing Type with respect to Delivery type. e.g F1 --- LF or F2 -
    LF.
    Select thet option and goto Items.
    There at item level , select the item category of your materials. There In Details :
    Maintain Billing Quantity : H as Cumulity Batch Quantity.
    Let me know weather is has solved ur problem or not.
    Thanks.

  • Dunning block on Line item but not in customer master data

    Hi,
    What is the procedure to block a customer for the dunning process?
    I have following example:
    1. A dunning block was entered in an invoice line item (there was no dunning block in the customer master data)
    2. A dunning run was made
    3. A dunning letter was printed for the customer
    Is the block in the master data required for preventing a dunning for a customer?
    Thank you for your feedback.
    Kind regards,
    Linda

    Hi Linda,
    You can block the items of a customer without blocking his account completely by allowing his account for dunning program.
    1. Allow the customer account for dunning
    2.Edit the dunning proposal and block the items individually to the customer and save.
    3.Now you can see the dunning notices for only unblocked items of the customer.
    Thank you,
    Ramesh.

  • HT1203 how do I share some music on same itunes account without changing music using same itunes account, but two different ipod touches

    I need to know how to stop losing / adding music I like/ dont like to my and my brothers ipod.  I gave him my older ipod(2nd Gen) with music on it already. I bought a ipod (3rd Gen) also. Both devices are registered to me; but I gave my brother the older one.  Now when either of us add / delete music it affects both ipods when either one on us sync.  We use the same computor(windiws7), he uses his own account on the computor, butit accesses the same itune/ library.  How can we split the itunes music between the two ipods?

    Hi gail,
    Thanks for the quick reply! The music part makes sense, good to know I don't have to duplicate the lot. The big question stillr emains as to whether iTunes can cope with two different iPhones, running different versions of the iOS, and therefore different app versions.
    Currently all the apps in iTunes are years old, and many haven't updated in months (years?) because the 3G is running iOS 4.2.1 (and can't be upgraded). Many of these have since been updated in the iTunes store (for the various incarnations of iPhone since) and the old versions that my 3G requires have been replaced.
    I'm worried that syncing the 4S running iOS 5, and running the most recent updates for same apps, will cause iTunes to overwrite the old 3G compatible ones when I sync. Unless iTunes is smart enough to know which version of the app is for which OS, without updating the legacy version when I update the apps on the 4S?
    You guys shouldn't face that problem, as iPad and iPhone apps don't replace each other (I believe? Not sure about this) as new updates are released for each app, you'd have a copy for each device (for example Evernote for iPad, and Evernote for iPhone). I can't figure out if iTunes can handle keeping separate iPhone versions for Evernote iOS 4.2.1 and Evernote for iOS 5. My gut feeling is no, but I want to amke sure before I lose the legacy versions of each app.
    Of course, maybe I'm just paranoid and iTunes is in fact perfectly capable of keeping old and new apps in the same library?
    Cheers

  • Same message type and two different IDOCS need to be triggered

    Hi,
    I have two idocs with same message type,the partner profile is same.
    Please tell if there is any way to handle this situation without changing the message type.
    Please do the needful.
    Thanks,
    Nivedita

    Hi
    We can have same message type for different idoc types.
    ex:MATMAS.MATMAS01
        MATMAS.MATMAS02
        MATMAS.MATMAS03
    In the above example MATMAS is the same message type for different idoc types.
    Thanks

Maybe you are looking for

  • Networking with an iBook G4

    I have just set up the file sharing option in my newly arrived iMac. I am now able to access my iMac via an old iBook G4. But for some reason, I do not have networking access in reverse: that is, I cannot access my iBook via the iMac. The iMac runs t

  • Serial number search in Web IC in CRM 2007

    Hi guys, I am searching for a serial number in Web IC. The search is successful. However on confirming the IObject, the business partner ( Sold to ) associated with the I Object is not found.  However the same thing works if I use the Installed base

  • Tracing enabled = variable updated to next iteration value before end of current iteration

    Hello, I am facing a weird behaviour with variables and loops. (running Teststand 2010 SP1) I am iterating over a variable, when tracing is enabled that variable seem to take the value it should take at the next iteration too early. What I am doing i

  • Upgrade cs5 on windows to cs6 on mac

    hi, i have cs5 on windows but have recently bought a mac. i have been told i can upgrade to cs6 on mac with a cross-grade? could you please help as i cannot figure out how on the adobe site. thanks, Courtney

  • Java - Instance variable that can reference an array of integers?

    Hello, I have the following question in my assignment: Your first task is to declare a private instance variable called cGroups that can reference an array of integers. You should then write a constructor for GameN. This should take a suitable array