Create multiple idoc with multiple receivers based on value mapping table

Hi,
Scenario: 
Step1 : sender sends a finance doc iin the form of an idoc. This idoc will have multiple line items based on profit center. Do determine the value of receiving comp code(header field) n receiving system(logical sys name) value mapping table has to be used.
Solution so far: I can put an rfc lookup for fetching receiving comp code from mapping table with i/p paraameter as profit center . And split the incoming idoc based on comp code value by using split by value. Now I need your advise 2 take this further.
Issue 1 : say the incoming idoc has 4  line seg wid 4 diff profit center
Profit center.       Rec comp code.   Recv sys
P1.                       C1.                        R1
P2.                       C2.                        R1
PS.                       C2.                        R1
P3.                       C3.                        R2
Nw using this info, I want 3 diff idocs to be created for each unique comp code.
Idoc 1 : for C1 wid one line item + 1 for reconsilation ( to be generated additionally)
Idoc2 : for C2 wid 2 line items + 1 for reconsilation
Idoc 3: for C3 wid 1 line item + 1 for reconsilation
Idoc 1 and idoc 2 shud be sent to R1.
Idoc 3 shud be sent to R2.
Kindly advise on this

Hi experts,
U all r pretty close, but let me put this more clearly.
Step1: create multiple idocs based on unique comp code - I'm able to do this using rfc lookup n split by value. So I get 3 idocs each for c1, c2 n c3.
Nw as per the values from value mapping table.
Idoc for c1 contains 1 line seg.
Idoc for c2 contains 2 line segs.
N idoc for c3 contains 1 line seg.
steps2 n 3,  where I do not have a confirmed solution yet n need ur advise.
Step 2 : for each idoc generated I need 2 create n additional segment, mapping 4 which will be based on the values in the original segments for that idoc.
In d above scenario, idoc for c1 contains 1 line seg, nw I want 2 add one more seg to it. The amount and pisting key values in this segment wud be calculated based on the values of the amount and posting key belonging to the original segment in this idoc.
Similarly for idoc for c2 there are 2 segs, nw I need one more, means 3 in allm
Hence for idoc for c3, 1 orig already present + 1 more. = total 2.
Nw I need ur advise on how 2 generate this additional seg in each idocm
Step 3: when all dese 3 idocs are generated, ( in this case itz 3, in real time it can be n), I need to find their respective receivers using rfc lookup n then based on the receiver send 2 resp recvng systm
Nw how do I do this?
Please explain with examples if possible 4 bettr understanding.
u2020ђąu03B7kўu03C3u03C5 in advance.

Similar Messages

  • Report for multiple IDOCs with multiple POs

    Hi,
    In our project PO goes out to vendor through EDI 850 and Outbound IDOC is generated for this.Some times its failed due to connection issue at vendors end. so sometimes  we need to send  PO nos and its related IDOC nos  to EDI team as per their request.I can get IDOC number for a particular PO from WE09.But that transaction is for single PO i belief.But sometimes there are  20-30 pos and if we want to search its related IDOC at a single time then how can i search this in SAP?Is there any standard SAP functionality or i have go custom report?

    you need to copy the idoc failed idoc numbers, and segment name in which your PO resides
    Go to table EDID4, pass Segment name and idoc numbers, you will find all related PO numbers in
    Application data column, please note this column is a merged column
    You will need to download it as unconverted Text , call in Excel -Text column and get the records
    There is no other easy way for this
    Thanks
    DD

  • Vendor Master Creation through IDoc with Multiple Company Codes

    I am trying to create vendor masters sent from a 3rd party into SAP using CREMAS05 IDoc.  I have the requirement that the vendor should be created in each of 3 company codes and the vendor number is internally assigned in SAP.
    I create my IDoc with the general data E1LFA1M and multiple E1LFB1M & E1LFB5M Children.  When I post the IDoc using IDOC_INPUT_CREMAS which uses Call Transaction, the vendor gets created for the first company code, but the IDoc errors on the vendor extension XK01 for the next company code with the error: "Fill all required fields SAPMF02K 0111 ADDR1_DATA-NAME1". 
    In debugging through this, it appears that the vendor number that gets created in the first XK01 transaction does not get passed into the data for the second XK01 call and SAP tries to create a new vendor instead of extending the newly created one.
    If I force the value in during debug after the initial call transaction into the variable h_lifnr, it works fine (Vendor created with multiple company codes.
    Any help would be greatly appreciated.
    -Larry

    I cannot give you exact solution, but can guess why this is happening, below is what I believe.
    I think Synchronous update is not happening in call transaction, second transaction is getting processed before the first one is saved, debugging it works fine, because we give system enough time to save while processing.
    Generally in call transaction we have MODE, if we pass S - then synchronous update happens, in your case, you need to find the way to incorporate this.
    Hope it helps.
    Regards,
    Ravi Kishore.

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • Is it possible to create a form with multiple form fields on a single line?

    Is it possible to create a form with multiple form fields on a single line?  I can't find anything in the documentation or a template that does this.
    I am trying to create a "documents received" checklist with a check box on the left margin, a date-received field to the right of the check box and and a description of the document (Formatted Text) on the far right.
    In the past I have entered the Fixed Text with a word processor, published it to a PDF file, then added the check box and date fields with the Acrobat Forms editor.  I would prefer to use FormsCentral if it is possible.

    We now support multiple fields on one line. This post provides a brief overview.
    Give it a try and send us your feedback.
    Sorry it took so long.
    Randy

  • Creating a report with multiple Y-axes on one graph

    I currently have a script that will create a report with either 1, 2, or 3 graphs and has the ability to have four graphs per plot.  I would like to add functionality to this script by making the Y-axis on the graphs have multiple Y-axes.  How can I programmatically create a graph with multiple Y-axes?

    To create an new axis system use the command GraphObjNew, eg:
    Call GraphObjNew("2D-Axis","2DAxis1")
    Call GraphObjOpen("2DAxis1")        
      D2AxisBackColor = "blue"  
    Call GraphObjClose("2DAxis1") 
    Call PicUpdate
    If you have DIAdem Version 10 you can also create a new y-axis using GraphObjYAxisNew. This command is not available in versions 9.1:
    Call GraphObjOpen("2DAxis1")
    AxisNo = GraphObjYAxisNew("left")
    If AxisNo>0 Then
      Call GraphObjOpen(D2AxisYObj(AxisNo))
      D2AXISYTXT ="My new axis"
      D2AXISYTXTFONT ="Arial"
      D2AXISYTXTCOLOR ="red"
      Call GraphObjClose(D2AxisYObj(AxisNo))
    End If
    Call GraphObjClose("2DAxis1")
    Winfried
    Message Edited by winner on 03-23-2006 03:48 PM

  • Creating SVG Chart with multiple lines

    Hi All,
    I want to create a chart with multiple lines.
    Ex: I have one emp table with empno, sal and deptno columns.
    I want to print deptno in x axis and no of employees on y axis.
    I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
    So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
    For one line the query will go as
    select link, deptno, count(empno)
    from emp where sal > 15000 group by null, deptno
    Is this possible to draw this chart?
    Thanks,
    Manoj

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

  • How to isolate error with a record/segment in IDOC with multiple records

    I have an IDOC with multiple records/segments (typically 1000 records/segments). Sometime XI can not process the IDOC because of some control characters in data.
    1. How can I pre-processed the IDOC to remove those control characters?
    Can I use XPATH expression/Java class to do it? How can I configure the XPATH expression/Java class in XI to pre-process the file?
    2. Until I have answer to 1st question. I would like to find out the error is exactly for which record? What configuration can I do in XI to isolate the error is with which record/segment in IDOC?
    Thanks in advance.

    Split the IDoc.
    with in the UDF, after the validations if every thing fine, pass as successful records to success_MT and pass it to target system using Branching in BPM.
    if errors found in the record, then store the error records in Hash table with in UDF, get the IDoc number, frame as a string and raise alert.
    U have to do this in the context of IDoc.
    If U wanna get the IDoc Number, Segment Name and field name for every failure, U can pass the expected error field name as constant to UDF, frame the sentence in the UDF like -> <b>IDoc 1234321 segment – SEG001 – field – FLD03 has a special character ‘*’</b>.
    If U wanna pass this string to source/target, U can do in error messages branch in BPM.
    U must use BPM for splitting the IDoc, since it is multi-mapping.
    reg.,
    Yallabandi.

  • Problem in creating Maintenance Order with multiple operations

    Hello all,
    I am facing problem while creating Maintenance Order with multiple operations and sub-operations. I am using BAPI : BAPI_ALM_ORDER_MAINTAIN.
    For single operation it is working fine,but i am unable to create MO with multiple operations and sub-operations.
    Please, provide me the inputs required,
    I have used methods :
    ORDER        CREATE,
    OPERATION CREATE
    and SAVE.
    Regards,
    Siddhartha

    Hi,
    The FM you are using is a perfect one. This FM is bit tricky to use. You need to perfectly pass the Reference number field. which links various input table parameters of this FM.
    Thanks & Regards,
    Navneeth K.

  • How to create Item Codes with multiple Item Description

    Hi,
    for one of my client, we need to create Item Codes with multiple Item Description.
    e.g.,
    Item Code - M00285
    Item Description 1 - Blue Paint
    Item Description 2 - Red Paint
    Is that possible in SAP Business One? If "Yes" kindly provide a solution. Else recommend an alternative method.
    Regards,
    Ammheya U. Naaik

    Ammheya,
    I just wanted to add that there is an Add-On that handles "Style, Color, Size" situations like yours.
    It allows you to define a "master" item, (Paint, for example) and then setup the various styles, colors and sizes it comes in. 
    This creates sub-items for each with the master in the ItemCode (Paint-Blue, Paint-Red, etc)
    It's called MatrixOne from Navigator.  You could find it on the partner portal with other Add-Ons.
    Hope thathelps,
    Brad Windecker

  • How does create a server with multiple Clients ?

    Any people can lead me .
    How does create a server with multiple Clients ?
    Thanks

    For a multithreaded server you will need a thread to listen and at least one thread per client. If the conversation is half duplex, one thread per client works very well, if it's full duplex you will find one thread to send and one to receive much easier to program.
    I posted a Simple Socket Server that uses 1+2*clients threads.

  • Error creating a contract with multiple account assignments

    Hallo,
    I have created a PO agreement with a single account assignment on tr - ME31K.
    If I open this agreement and open the account assignments for an item I'm able to press the "Change display" button. In the screen which is showed I'm able to set the distribution to set the distribution to 1 - Distribution on quantity basis. If I do so I get the following error message: " Enter Acc. ***. Block". The only thing I could do is set this indicator!. But when I set this indicator this indicator is resettled and the message appears again.
    The thing I want to do is that it is possible to create a contract whit multiple account assignments.
    Could any one say what is missing or what is wrong?
    My SAP version is 47x110 SR1.
    Kind regards,
    Richard MeijnError creating a contract with multiple account assignments

    Rahul,
    The reason why I created a contract with a single Account Assignment is that it was not possible to save the document.
    So I created a document for my example and want to change it to a multiple Account assignment. So I did the steps as described.
    After adding a extra account line and pressing Enter I get the error message as described: "Enter Acc. ***. Block".
    There must be a setting wring in the IMG but I don't know which one?
    I have looked ad transaction "OME9" but couldn't see the cause.
    Kind Regards,
    Richard Meijn

  • Can I create a Formula with Multiple Products [ Not Co Products ] ?

    hi There,
    Have a simple question & Doubt.
    Is it okay to create a Formula with Multiple Products in OPM ? If Yes, how does the Formula behave with respect to Standard Costing Subledger.
    If not, what are the reasons for not creating formula with Multiple Products & what are the alternatives to that ?
    Thanks,
    Dhiraj

    hi
    U can very well define Multple products in a formula and ur std costing will work fine. But for any By products there is No costing method support. This is Oracles standard.
    Now it is clear,,,still any doubt...plz ask
    Regards
    R Singh
    Tech Mahindra Satyam

  • Multiple Macs with multiple user accounts

    I have a Mac computer connected to airport and use Time Machine for backups. This works well.
    I have now purchased a second Mac and would like to include this second Mac so that I can move between Macs and work. There does not appear to be any mechanism to allow this.

    After searching the web and the discussion here, here's my minimal impact solution for multiple Macs with multiple users in a household:
    1) Set up Mac1 for myself only
    2) Set up Mac2 for the wife and kid
    3) Set up each Mac to backup to the Airport base station using Time Machine (this would create two separate backups on the Airport base station's drive, which from what I've read has its own problems)
    4) On Mac1 setup "empty user accounts" for the wife and kid. These will not have any files in them - just an access mechanism. If they want to access their files, they can use Time Machine's "The Browse Other Backup Disks Option" to get their file from Mac2, work on it and then drop it in the Shared Folder. Next time they are on Mac2, remember to copy the updated/created file from the Shared Folder into their Mac2 user account. If possible, get Time Machine to not backup the "empty user accounts".
    5) Do the same for me on Mac2.
    Not the most elegant solution, but until Apple get off their backside and make this seamless, I can't think of anything else :-( .
    P.S. iCloud is not a soluton since it costs hundreds of dollars a year, uses up intenet data allowance and is slow.

Maybe you are looking for

  • Change color of pixels in a raster (png) image

    Hi, I have just begun using Illustrator CS6.  I have a very simple image (.png file) that I would like to annotate with some arrows and some text.  This file is what I guess you would consider a raster image (no vector graphics) that has a very limit

  • Time in maintenance order

    Dear sap Gurus, I have given 0.5 hours in tasklist and execution factor as 1.But where as in the maintenance order i was getting execution factor as 78 and time duration as 39.Please tell me the reason with regards, kumar

  • DTW Template for SALES ORDERS

    Hi All,             Can anybody give me the name of the DTW template used for Sales Orders Updation.              I am Using SAP Business One 2005B version. Thanks and Regards, Sree.

  • Find the 'DAY' for a given 'DATE'

    Hi Folks, I need a help regarding finding the day for a given date. My requirement is that..,          If I enter a date using 'parameters', it should write the 'day' for the corresponding date. To be more specific....., if I enter date as ' 07/15/20

  • MobileMe control bar

    I would like to add a MobileMe widget to my web page, but I don't want the little control bar at the bottom that shows the name of the gallery or the little arrow that opens up another viewing page. Does anyone know how to hide it? Barring that, what