Creation of multiple Records in reciever  as per multiple segments in IDOC

Hi Sap All.
i have got a requirement in an IDOC to Webservice where the node in the reciever webservice should be repeated as many times as sender segment in the IDOC repeats.
here the problem is the sender IDOC-Segment has got occurance as 0..999 but the recierv structure node has got the occurance as 1.1.
your answer would be appreciated.
regards.
Varma

Hi Varma,
it is very simple,change your target strcute occurance,it wil solve your problem,
If you want to know how to chnage the occurance take XSD in to XSL Spy and add max occurs to 999. then you can see the element occurace to 1..999.
Regards,
Raj

Similar Messages

  • Creation of multiple Records in the file as per multiple segments in IDOC

    Hi SapAll.
    i have got a requirement to create a multiple records in a file based on multiple segments at sending Idoc in a File To Idoc Interface.
    the Scenario  is the reciever message type is mapped with fields of 3 segments in sending IDOC.
    SEG01   1.....1(PARENT SEGMENT)
      SEG02  0...999999(CHILD SEGMENT)
      SEG03 0...9999999(CHILD SEGMENT)
    in an instance where if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 2 times PI is creating the file with 2 records in it but
    when if the SEG01 exists for one time and SEG02 exists for 2 times and Seg03 Exists for 1 time it is raising the error in message mapping where it is supposed to create 2 records in a file with empty values in the fields (mapping with seg03) segment.
    can anybody help me in this.
    regards.
    Varma

    you can create a UDF after you validate if the count match. if match you create the message if not, call de UDF.
    this UDF should receive two parameters -->Queue SEG2 and queue of SEG3.
    then you should loop by the count of SEG2. if you find a Supress Value in the queue of SEG3 add a "" to result. for example.
    for(i=0;i<=SEG2.count;i++){
    If SEG3<i>.equals(ResultList.SUPPRESS) {
           result.addValue(" ");
    }else{result.addValue(SEG3<i>);
    the result of UDF is a queue which should map to target field directly coz it has context changes
    I think that is what you are needing. if no let me know.
    RP
    Edited by: Rodrigo Alejandro Pertierra on Jun 17, 2010 11:56 AM

  • Mapping of multiple segments of  Idoc HRMD_A06 to flat file

    Hi Experts,
               I am doing an Idoc to file scenario. Idoc i am using is HRMD_A06, which is having around 38 segments, contains the hiring action details of multilpe employees (Infotypes 0000,0001,0002,0003,0302,1001).
              When i have send the idoc , I am getting the file in the destination path, but having only one line which is having the the details of first employee.
              As the segments are repeating my mapping is not proper. Can anyone please help me with some details for mapping Idoc to file, when the segments repeats in a single idoc.
             Please also give me the details regarding the destination message interface.

    Hi
    Please go through below link,
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Its very simple to do some changes in your existing mapping and some occurance changes.
    Verify that if your file message structure has 0..Unbounded Occurance.
    Use 0..Unbounded and map accordingly to target structure with 0...unbounded..
    and test with sample xml in message mapping with multiple idocs data and see whther u get multiple records in target
    Also if you need each sengment on new line with FCC then refer below links
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM
    Edited by: Swarup Sawant on Jan 24, 2008 10:09 AM

  • Creation of multiple records in reciever file as per occurance of 1 segment

    Hi SapAll.
    i have a got a requirement in an IDOC To File Interface
    the Requirement is under sending IDOC there will be multiple segments whose fields will me mapped to reciever file,so here i got a business requirement as
    IDOC -
    Segment 1-occur for 1 time
    segment 2- occurs  for 1 time
    segment 3-occurs for 3 times so here PI Need to create a file with 3 records as segment 3 repeats for 3 times, here segment 1 and segment 2  field  values repeats for all the 3 records int the file and segment 3 fields values will have to be mapped respectively for each record of all the 3 records from each segment 3.
    i dont know on how i can acheive this.
    can any of sap group provide me the solution.
    regards.
    Varma

    > segment 3-occurs for 3 times so here PI Need to create a file with 3 records as segment 3 repeats for 3 times, here segment 1 and segment 2  field  values repeats for all the 3 records int the file and segment 3 fields values will have to be mapped respectively for each record of all the 3 records from each segment 3.
    Create your target structure as mentioned and do the mapping as shown below.
    <Records> 0..unbounded
         <segment1_Fields> </segment1_Fields>
         <segment2_Fields> </segment2_Fields>
         <segment3_Fields> </segment3_Fields>
    </Records>
    Now do the mapping like this..
            segment3 -
    >RemoveContext---> Records (parent node mapping)
             segment1----->CopyValue(0) ---> segment_field1
             segment2----->CopyValue(0) ---> segment_field2
             segment3----->SplitByValue ---> segment_field3
    Note: You can also use "UseOneAsMany" instead of "CopyValue" function to repeat the segment1 & segment2 values in each record.

  • Automatic creation of info record

    Hi All ,
    In my case, Automatic creation of info record is active during creation of PO and in case of standard PO,  price is automatically coming during creation of PO
    But in case of consignment PO, Price is not coming automatically.
    Please help...  thanks in advance

    HI,
    In Consignment PO, Price (Condtion tab) won't be there.
    As per the concept of Consignment, stock will be in our premise but ownership of the stock will be with the vendor. Only when we consume from the consignment stock it will come under our valuation & the price maintained in the consignment info-record will used in this case.
    Refer help.sap documentation for more details on Consignment.
    Thanks & Regards,

  • Need to create a mass upload program for appraisal document creation for multiple employee in abap hr

    Hi Expertise,
    I need to create a mass upload program for appraisal document creation for manager and his multiple employee
    at a time using tcode appcreate.
    Please help me out.
    Best regards,
    Priyaranjan

    Hi,
    I have done appraisal document creation for bulk using txt file.
    this fm used for single for creation in standard tcode (phap_prepare):  'WZ_HRHAP_0DOC_WZ01_START'.
    So create ztcode  usinh this fm for single form then record BDC for this tcode and called this tcode in that bdc for bulk creation .
    While recording for single I have used manual option instead of automatic .

  • Block creation of multiple prod. order against single sales order in CO08

    Hi All,
    We have a requirement of blocking the creation of multiple production order against single sales order in CO08 if the production order is already created for that item.
    How to achieve this?
    SmanS

    Hi,
    you need to check if any user exit is there which will check order haeder table for the said sales order if any Prod Order exist for the same and flag custome error whicle prod order save.
    Pls revert if you need any further information.

  • Creation of Multiple Shipments with respect to Single inbound.

    Hi,
    This is regarding creation of Multiple Shipments with respect to Single inbound.
    In standard SAP, you can create Shipment cost based on Inbound number.Requirement is here for single inbound can we create multiple Shipment document.
    Can we do shipment costing for Multiple shipment in single document through VI01.
    Yours Help in this will be highly appreciated.
    Regards
    Sunami.

    dear friend,
    to process shipment cost documents you can either call up a shipment cost document in change mode or you can create lists of the shipment cost documents
    you can create the following lists:
    -Shipment cost documents for calculation
    -Shipment cost documents for settlement
    to process a single document use t-code VI01
    to create lists of shipment cost documents to be changed use t-code  VI11
    so, if you need something very special you would think about the new enhancement...
    good luck!

  • Error during creation of info record for pipline material.(Urgent)

    Hi All,
    We are getting the following error during creation of Info record for pipeline material
    " Material XXXXX is not a pipline material"
    we have checked the material master  and found it is a pipeline material.
    Kindly advice on the same.
    Help in any form will be rewarded.
    Best Regards
    Arihanth

    Hi Arahanth,
       The steps u need to check are;
    1) The Material Type ( If standard then it is PIPE or if defined own Material Type check the settings once preferably in special material type a tick at pipeline mandatory)
    2) when u create the info record (ME11) ensure the info category is selected as pipeline.
    Hope its clear to u
    if solved do reward me points
    Regards
    Anil Thai

  • Restrict PO creation for multiple plants for same company code

    Hi Gurus,
    We want to restrict PO creation for multiple plants in the same company code. Based on Standard SAP settings for Purchasing organization assignment with multiple Plant and multiple Plant assignment with single company code, this is happening. Is there a way that we can restrict by doing some customization change.
    Any thoughts or ideas will be highly appreciating.
    Thanks and Best regards,
    Karun Kumar

    Hi,
    Said functionality is not available in SAP standard.
    To avoid the same ,i can suggest implement release strategy for PO,and then higher authority / commercial team can check created PO,if multiple plants available in single po then they have the option of rejection for the same.
    Or else check BADI-ME_PROCESS_PO_CUST,take the help from abapor and apply the restriction to select multiple plant in PO.
    Hope this will resolve your query,
    Thanks & Regards,
    Sandesh Sawant

  • Creation of condition record (MEK1) for freight w.r.t. vendor in STO

    I am working in ECC 6.0 environment. My requirement is to fetch value of freight automatically w.r.t. selected vendor in condition while creation of STO.
    How can i define condition record by MEK1 for the same? Which access sequence needs to be assign to freight condition for creation of condition record of the same so system can fetch value of freight in STO w.r.t. vendor?

    hi,
    Create one access sequence for freight conditon with follwing table and assign the same that access sequnce to condtion .
    665     Vendor/Customer/Material
    716     Vendor/Plant/Material
    give the fright accout key for valution with FG cost add and seperate GR/IR vaules for vendor payment.
    while purchase order update conditon and in the view detial mentain transporter vendor for the same .
    pass the miro ref planned delivery cost
    Sans.

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • 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.

  • Creation of Info record

    Hi ,
              I need to create and change the info records automatically from excel.(ME11).
    Is there any BAPI for this or we need to do only in BDC technique.
    Can anyone guide me in this issue.

    Hi Ramya,
    Try with below FMs
    ME_DIRECT_INPUT_INFORECORD
    ME_POST_INFORECORD
    ME_UPDATE_INFORECORD_PD.
    There is not much validation being handled in this FMs so it may upload wrong data as well .. which may create problems..
    No BAPIs available for creation of info records (ME11)
    I would suggest you to go for BDC in this case..
    [Link for BDC Example|FM or BAPI For uploading data in ME12 transaction;
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Trying to find a camcorder that records in 60 frames per second and will upload onto  ipad2 through camera connector

    Trying to find a camcorder that records in 60 frames per second and will upload onto  ipad2 through camera connector

    Old forum discussion, message now gone, but here's the summary
    Matt with Grass Valley Canopus in their tech support department stated that the model 110 will suffice for most hobbyist. If a person has a lot of tapes that were played often the tape stretches and the magnetic coding diminishes. If your goal is to encode tapes in good shape buy the 110, if you will be encoding old tapes of poor quality buy the model 300
    Both the 110 and 300 are two way devices so you may output back to tape... if you don't need that, look at the model 55
    http://www.grassvalley.com/products/advc55 One Way Only to Computer
    http://www.grassvalley.com/products/advc110 for good tapes, or
    http://www.grassvalley.com/products/advc300 better with OLD tapes
    Or
    ADS Pyro http://www.adstechnologies.com

Maybe you are looking for

  • Dream Machine for CS6 with Blackmagic Intensity Pro

    Good Day. Im about to move from CS5.5 to CS6, and along with the upgrade of software, I've decided that a hardware upgrade is due too. I'm looking to put together an entirely new PC as my old one (i3 with 4gb ram) will be inherited by the animator. W

  • JButton array with NetBeans 6.1

    Hi, I am relatively new to Java and NetBeans. I have the following problem; wish someone could help me. I need to create an array of 30 buttons programatically, on a Panel, namely pnlButtonPack. I have created this panel using NetBeans 6.1 GUI builde

  • Grphics Card - 3 Monitors

    Hi Everyone, Having isues selecting a new GFX Card. Have read the forum up and down, and am still not understanding what I should do. So my current system is as follows: MacPro 3,1 NVIDIA GeForce 8800GT 2x - 22" Acer Monitors OSX - 10.6.3 Processor -

  • IMPORT/EXPORT FROM ADDRESS BOOK TO ENTOURAGE

    Is there a way to export/import contacts from the Address Book to Entourage? Thanks

  • BI report in CRM

    Dear all, I am working on some queries which are using in CRM 7.0.  I found most BI queries are 3.X version which are using in CRM.  I just wonder how the 3.X queries can be displayed like 7.0 look in BI query? For example, the BW 3.X web template 0T