Creating large idoc

Hi,
I am relatively new to SAP. I want to generate very large IDOC ( >=3GB) from SAP R/3 system and send it to my application. As of now, i used to create a MATCOR idoc using BD10. I didnt do any other configuration. But the size of the IDOC generated is small. Can some one tell me what configurations/settings i should do to generate large IDOC?
Thanks in advance,
Poornima.K

Hi,
Basically there is no size limit for idocs.But we have size limit for data in the segments which cannot exceed more than 1000bytes.
I have checked the basic type MATCOR01 related to the message type MATCOR and found the followign information.
Header segment E1MARAC can appear from 1 to 9999 times max.(Calculate the corresponding bytes)
Item Segment E1MAKTC can appear from 1 to 99 times max(Calculate the corresponding bytes).
SO obviously you cannot send 3gb with this idoc.
For your information a segment can appear a maximum of 9999999999 times in an idoc( Calculate the no of bytes).
If you are sending the data to any middleware jus check whether it is capable of handing such a huge size idoc. Because practically i have faced many problems while sending an idoc to MQ-Series due to size constraints.
Cheers,
Hakim

Similar Messages

  • Want to Block Large IDoc at PI

    I have a scenario where an ECC system sends IDocs to PI 7.0 and then they route to SAP MDM (MDM Adapter).  At times, we have had an issue where large idocs cause import issues at MDM.  We have (and continue to) looked into it on the MDM side, but I would also like to be able to block files larger than a certain filesize at the PI Receiver Determination.  I was thinking I could condition there and send smaller files on, but have larger files route elsewhere. 
    I see that I can use "Context Objects" in the receiver determination condition, and SourceFileSize is one of the options.  Problem is, the conditions only have operators EQ, NE, ~ and EX.  There is not a ">" or "<".  The XPath Expression field in the window where you select Context Object is also always grayed out.
    Any suggestions?

    Hi,
    Instead of Creating Custom field and then cal culating file size in that field.
    you can go with a simple approach.
    Create XMLFILEPORT in ECC for that particular IDOC.
    http://help.sap.com/saphelp_nw70/helpdata/en/3f/faa288bb7911d2897f0000e8216438/content.htm
    Then pick up the IDOC XML by using File Adapter .
    So it will be File to MDM Adapter scenario.
    Then you can use enhanced receuiver determination to check the file size
    You can go with enhanced receiver determination and using a mapping with dynamic configuration read the fileSize and then dynamically create the receiver determination.
    If filesize<100 then create only receiver in mapping
    Refe this blog
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    http://help.sap.com/saphelp_nw04/helpdata/en/43/a5f2066340332de10000000a11466f/content.htm

  • How to create Inbound Idocs in a ABAP program? Any function Module?

    Hello Experts,
    My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
    I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
    If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
    I populated T_EDIDD with data records from  IDOC_INBOUND_WRITE_TO_DB.
    To the function module IDOC_INPUT_ORDERS,  T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
    I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
    I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
    Can anybody please provide inputs?
    Regards.

    Hi Anjali,
    Thanks for the response.
    I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
    for compatibility: clear administration data of data records
               perform data_records_wipe
                                      tables
                                          t_data_records.
    FORM DATA_RECORDS_WIPE
                      TABLES
                          T_DATA_RECORDS_IN  STRUCTURE EDIDD.
      LOOP AT  T_DATA_RECORDS_IN.
        CLEAR: T_DATA_RECORDS_IN-MANDT,
               T_DATA_RECORDS_IN-DOCNUM,
               T_DATA_RECORDS_IN-SEGNUM,
               T_DATA_RECORDS_IN-PSGNUM,
               T_DATA_RECORDS_IN-HLEVEL.
        modify t_data_records_in.
      ENDLOOP.
    ENDFORM.                               " DATA_RECORDS_WIPE
    This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
    I need to create INBOUND Idocs with the data in ABAP program.
    Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
    Regards

  • How to create an IDoc just with the updated data.

    Hello I have a question regarding IDocs.
    In case I updated an existing material.
    Is there a transaction where I can put a matnr in, that reads the change pointer table and creates an IDOC with just the updated fields for an existing material.
    Like the transaction BD21, for example. But there I just have the possibility to enter a message type and not a material number.
    If there is no standard transaction. What steps do I have to do to achieve this goal?
    Kind regards,
    Tobias

    thanks a lot for your fast answers. but I want to decide weather I want to create a idoc that includes all data for a material (using transaction bd10) or create an idoc that includes just the updated data.
    The program logic should be the following:
    Select all materials in the change pointer table (that have been changed or new created).
    Check what value has been changed.
    If it is value YSAPSYSTEMXX (extension of mara) then create a idoc with all data for the material.
    If not YSAPSYSTEMXX has been changed create an idoc that includes just the updated data.
    For Idocs that include all material data I would use sap standard transaction BD10 and batch-input.
    For Idoc that should only include the changed/updated data I am searching for a corresponding transaction….
    Kind regards,
    Tobias

  • Multiple document numbers not created while creating multiple idocs.

    Hi Experts,
    we have developed one the interface file to idoc, whenever invoice number change it will create a multiple idocs.
    but i am facing some issue with context handling, can you suggest the suitable mapping / UDF for the below issue.
    Our customized idoc structure has header and line items and both are in not same level-its parent child structure.
    in our sample file there are three different invoice number and as per the requirement its creating three idocs and corresponding headers but not line item details.
    all line item details creating in 1st idoc itself and 2nd and 3rd idoc has only header items no line items. but tried fix with graphical mapping context handling for this problem but not resolved. please advise.
    Regards,
    Krushi.

    hi Hareesh,
    thank you for your quick response.
    after the File Adapter FCC, below is the inbound payload, first four feilds we mapped to header and rest for line items.
    <SettlementDetails>
    <row>
      <PaymentType>CHECK</PaymentType>
      <Filler></Filler>
      <Currency>IN</Currency>
      <Filler1></Filler1>
      <Invoice>100410-133MT5-MH</Invoice>
      <Filler2></Filler2>
      <SettlementMethod>4</SettlementMethod>
      <Filler3></Filler3>
      <PreferredTradingPartnerIdentifier>MT</PreferredTradingPartnerIdentifier>
      <Filler4></Filler4>
      <FinalPayAmount>12.00</FinalPayAmount>
      <Filler5></Filler5>
      <ProductIDUnformatted>55111064001</ProductIDUnformatted>
      <Filler6></Filler6>
      <Filler7></Filler7>
      <Filler8></Filler8>
      <PaytoPreferredTradingPartnerIdentifier>MT</PaytoPreferredTradingPartnerIdentifier>
      <ClaimType>ORIG</ClaimType>
      <CMSRecordID>FFSU</CMSRecordID>
    </row>
    </SettlementDetails>
    multiple settlement details will be there.
    regards,
    krushi.

  • Do not want to create EUPEXR IDoc during F110 run

    HI All
    I am running F110 with RFFOEDI1 program, and after the payment program, it is generating payext IDocs as well as EUPEXR IDocs. But I do not want to create EUPEXR IDocs. I Could nt figure out what settings are  driving these EUPEXR IDocs . Can any one help me out? plzz

    sorry,  I have nt added the message type to the partner profile.the program is still creating the EUPEXR IDocs...but those idocs are failing anyway as there is no EUPEXR Message type in the partner profile.

  • IDOC-Segment Created a idoc document against Billing document

    Dear All,
    Thanks in  advance.
    Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment.
    so i want to add the segment which it was missed during generation of IDOC document against billing document.
    Example:
    a) IDOC document misses one segment let suppose "Seg1".
    b) In "Seg1" it have only one field let suppose "Field1".
    c) But "Field1" does not have any value while generation of IDOC document so it doesn't create the respective segment in IDOC document.
    d) so here, i want to edit the IDOC document to add the "Seg1" in the IDOC document and reprocessing the IDOC document.
    Please help on this issue.
    Regards,
    Sridhar.

    Hello,
              If your requirement is to have the Segment even with only 1 Field, you'll have to create an Idoc Extension in WE30.
             In order to populate the Custom Segment, Use the Customer Function '002' in the IDOC_OUTPUT_INVOIC which is EXIT_SAPLVEDF_002 where you can actually insert the Segment as a Child Segment of an Appropriate Segment.
            You can go for Custom segment with the IDoc Extension so that you dont have to manually insert the Segment again and again while reprocessing it.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Creating multiple idocs in ABAP mapping

    Hi,
    my scenario is source message (JDBC) to target message (idoc).
    There can be multiple idocs (unbounded).
    I am using ABAP mapping to create the Idoc XML structure. For this i use function module IDX_IDOC_TO_XML.
    The idoc is getting created but the problem occurs in case of generating multiple idoc instances.
    I changed the idoc occurence to unbounded & used the new idoc external definition in the interface mapping.
    I also call the IDX_IDOC_TO_XML & create the output stream factory in a loop (per idoc ).
    However only 1 idoc gets generated every time.
    Can someone suggest how to create the multiple idocs.
    Regards
    Prasenjit

    Hi Prasenjit,
    In order to generate multiple idoc first of all you need to change the target structure with multiple occurence...that you have already done...
    Now while generating XML in abap mapping you have to make sure you have element idoc(with its content) repeating for your "N" number of idocs...
    can you please copy paste your final xml generated...
    Nilesh

  • Create an IDOC using Txt file

    Hello All,
    I have recived an   IDOC DATA in TEXT file.
    would u please help me how to create an idoc using the above text file.
    Kind Regards,
    Dev.

    Hi,
    first put the file in application server and then in we16 give the directory name and the path and the sender port info and press execute..ur idoc will be generated.before that in we21(FILEPORT),in the inboundfile maintain the directory name and the path.
    Regards,
    Nagaraj

  • Problem creating extended IDOC

    Hi Experts,
    I am currently working on CRM 5.0. I need to create segment and attach it to the standard basic IDOC type CRMXIF_PARTNER_SAVE01. I am able to create segment in WE31 but i am unable to add that to the basic standard IDOC type.
    It is displaying message "Action is not possible for generated idoc types".
    Is there any other way to add this segment to the standard IDOC.
    It will be great help if u can send me some documents on this...
    Thanks,
    Samm

    Hi,
    Create Extended IDOCe using transaction WE30.
    -If u want to extend  idoc type which already exists then use the radio button extension(where we can add few new fields
    -After this click on create button as described above. It takes you to a popup screen where you fill the description and also select the radio button accordingly and say ok
    -we go to next screen select idoc type and click on create new It gives a pop up window
    -Once you are done with the addition save the IDOC type and release the idoc type
    <b>Goto-> Edit -> Set release.</b>
    This completes the creation of Ext IDOC type.
    - Then assign this extension to the IDoc type in WE82.
    <b>Reward with points if helpful.</b>
    Regards,
    Vijay

  • Creating separate Idocs in Ecc system

    HI all,
    I have scenario like File(txt) --->to Idoc.
    The Flat file can have more than one orders and i need to create separate Idoc for each indivdual record at target system.
    To achive this requirement In File content conversion i used 'Recordsets per Message' as '1' but file adapter will pick the entire file and it process the entire file and 'Recordsets per Message' is not working hear(Adapter will not pick the records individually).
    How can i proceed please give me solution...
    Regards,
    satya

    Satya,
    There are two ways of processing the message - read all the content and create IDOC in the mapping program or
    Use the below parameters as per ur reqmt
    Recordset structure:Row,1
    Recordset per message:1
    I believe you might have given Row, * - it has to be Row(or what ever variable), 1
    Hope it helps!

  • IDOC_INBOUND_ASYNCHRONOUS FM not creating new IDOC?

    Hi,
    IDOC_INBOUND_ASYNCHRONOUS function module is not creating new IDOC in SAP.
    I configured all related functions against message type and idoc type.
    Please let me know the issue.
    I am processing old IDOC (created from non sap system) through BD87 and using custom function module. I called IDOC_INBOUND_ASYNCHRONOUS in custom function module.
    Chandra

    Hello,
    Aren't you getting any error messages ? You may check by creating watch points on the message id and / or number .
    Thanks

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • How to get the inbound idoc for the newly created inbound Idoc FM

    Hi,
    I have created a new function module to process the Inbound idoc.  I need to have a idoc to check my function module, whether it is working fine or not.  How I can get the data.  Do I need to have the idoc from the partner ?  Please help me ASAP.
    Thanks,
    sreenivas.

    Hi Sreenivas,
    Go to WE19 and get any of the your present idoc  with the idoc type
    then go to BD20...execute the same idoc...and there you can create the IDoc, and process the same with the Inbound function module tab..( give the FM you are using as the process code.)
    from there you can do the debugging aswell of that FM
    Thanks

  • Creating inbound idocs in the same system

    Hi
    Could you please let me know the Steps i should follow to get the following req done?
    Iam creating INBOUND IDOCS from flat file ...so my sending and recieving systems are same...
    In WE20 i have setup the logical system and assigned inbound parameters with message type and proces code.
    Iam using IDOC_INBOUND_ASYNCHRONOUS to create the inbound IDOCS but iam getting the error
    EDI: Partner profile inbound not available
    It looks like iam missing some settings here..
    Please let me know what checks i need to make sure to get rid of this error and post the idoc.
    Thanks
    Govi

    Hi,
    You need to create the partner profile in WE21 - Type Port.
    You need to give the directory name and the inbound file name. Just do the access test available to check if the file is accessible.
    Also create the process code in WE42 and maintain the processing FM.
    Hope this helps you
    Regards
    Shiva

Maybe you are looking for