How to handle Big FIles in SAP PI Sender file adapter

Hi all ,
I have developed a interface , where it is File to Proxy, it is fine when i do with small and normal files
The structure contain one  Header unbounded  detail and one  Trailer, how to handle when the file size is more than 40 MB
Thanking you
Sridhar

Hi Sridhar Gautham,
We can set a limit on the request body message length that can be accepted by the HTTP Provider Service on the Java dispatcher. The system controls this limit by inspecting the Content-Length header of the request or monitoring the chunked request body (in case chunked encoding is applied to the message). If the value of the Content-Length header exceeds the maximum request body length, then the HTTP Provider Service will reject the request with a 413 u201CRequest Entity Too Largeu201D error response. You can limit the length of the request body using the tting MaxRequestContentLength property of the HTTP Provider Service running on the Java dispatcher. By default, the maximum permitted value is 131072 KB (or 128MB).You can configure the MaxRequestContentLength property using the Visual Administrator tool. Proceed as follows:
       1.      Go to the Properties tab of the HTTP Provider Service running on the dispatcher.
       2.      Choose MaxRequestContentLength property and enter a value in the Value field. The length is specified in KB.
       3.      Choose Update to add it to the list of properties.
       4.      To apply these changes, choose  (Save Properties).
The value of the parameter MaxRequestContentLength has to be set to a high value.
The Visual administartor tool may be accessed using this link
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40a08db9-59b6-2c10-5e8f-a4b2a9aaa3d2?quicklink=index&overridelayout=true
In short  ICM parameters to reset values for this case are
icm/HTTP/max_request_size_KB
icm/server_port_ TIMEOUT
rdisp/max_wprun_time
zttp/max_memreq_MB
Please look into this thread to know more about ICM parameters
http://help.sap.com/saphelp_nw04/helpdata/en/61/f5183a3bef2669e10000000a114084/frameset.htm
Second solution is that you must split the source file, so that each file is less than 5MB in size, then PI would not cause problem for file size between 1MB-5MB. you can insert header and trailer for individual smaller file obtained after split. All this can be done using scripts or conventional programing provided individual records within file are independent of each other. Finally you have to rename each new file created and put them in PI folder in sequential manner. All this can be achieved by simple shell script/batch file, a C code or java code. If you are going for a C or Java code you need a script to call them from PI communication channel parameter  "run operating system command before message processing".
regards
Anupam

Similar Messages

  • How to handle the control records in case of file to idoc scenario.

    Hi All,
    can you please clarify me how to handle the control records in case of file to idoc scenario.

    Hi,
    In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
    Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
    Regards
    Seshagiri

  • How to do the validation in sap xi (input file)

    hi,
    how to do the validation in sap xi (input file)?
    regards
    Ruban

    Hi Ruban
    There are no fixed set of validations.
    It all depends on the exact functional requirements. Most of validations revolve in XI around,
    1. Validation of madatory fields.
    2. Cross Referncing of data.
    3. Validation for data in some fields , etc
    refr the below links for few details regarding validation
    <b>File Validations in SAP XI – A Case Study</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
    refer this Blog
    <b>Validating messages in XI using XML Schema</b>
    /people/morten.wittrock/blog/2006/03/21/validating-messages-in-xi-using-xml-schema
    <b> Where to create logical validations  </b>
    Where to create logical validations
    <b> HTTP to File with source XML validation </b>
    HTTP to File with source XML validation
    Thanks!!
    Regards
    Abhishek Agrahari

  • How to handle sub subcontracting in SAP B1 ?

    Dear all,
    How to handle sub subcontracting in SAP B1 ?
    Let me explain in detail,
    My client doing sub contracting work for parent company,raw material is actually received from parent company
    thru 57F4 challan,raw material sent for further processes in my client company and later converted material
    is sent to a sub contractor for finishing thru 57F4 challan,after finishing material is recieved by client company,
    send it once again to parent company.In this process raw material is received as X and send it to parent company as Y.
    My question is, How to handle sub sub contracting items stock ?
    Expecting u all valuable ideas / suggestions.
    Jeyakanthan

    hai!
    Will u raise any bill for ths. i mean ur child cmpny to parent cmpny.?
    1. Receive the items to your child cmpny through GRPO or GR
    2. Use Production Order cycle to do FG.
    3. Define BOM or use Special Production
    4. Transfer to the Sub- contarct warehouse through Inv.Transfer.
    5. once after processing over, book inv.Transfer to you good down.
    6. Use Goods Return or GR to issue the item out to parent company.
    hope it gvs u a starting..

  • How to handle defect items in sap sd..

    Hi Friends,
    How to handle defect items in sap sd..
    My requirement is some of the XYZ materials are damaged 10%.Some more materials(Material number is XYZ) are damaged to 20%.When sales order is created with these defect items,the system should pickup the defect items only?One more thing is for 10% damaged items,one price is given.For 20% damaged items,one more price is given and so on.How this will be configured in sap sd.
    We hav an idea that making these type of defects as scrap.Then create one more material number  as AXYZ(Defects of XYZ) and receipt without po.We can use the defects in sales order and soon.But how pricing will be set for different levels of damages?
    Any ideas,documents and settings required for this scenario and share any ideas
    Thanks in advace....VM

    Hi All,
    Thank you very much for your replies and sharing your valuable information
    Just I am giving all the meeting points and those are
    They donu2019t want to convert into scrap.
    One more point is that if materials are in batches then???
    When we create sales order that damaged one only should be picked by the system.
    Manual entering the price need to be stopped
    Without maintaining separate material for the damaged, any possibilities?
    We discussed abt Split valuation point .Is it suitable to this? then how?
    How to handle this we are thinking.
    Both Rithvikau2019s point and Jigneshu2019s point need to be considered, actually this is main issue. There are more chances of malpractices/confusion to the user as mentioned by Rithvika. Here one more constraint is more material codes required for 10%, 20%, 30%........90% damaged one for one material as said by Jignesh
    Actually I mentioned only as example 10% and 20% but have many.
    Any ideas how to proceed...
    Thanks and Regardsu2026VM
    Edited by: vm on Apr 13, 2009 4:45 PM

  • How to transfer input file into XI through sender file adapter

    Hi
    I am quite new to XI. Want to know how I can transfer a file into XI through sender file adapter. I dont have any input file, so I have to create a sample input file and I want to transfer that into XI. Can you please advise me of the steps involved in that. I have finished work in design and directory, now I want to push file the sample file into XI. The receiver adapter is an IDoc adapter. And also a very trivial question. How I can place my sample file into my source directory. Thanks

    Hi Rajiv,
    If your transport protocol is NFS then you need to put the file in the XI server. Because it becomes the Network File System. For that you can just type the ip address of the XI server in the "run" command or in the browser with "
    " then in any of the Folders you can paste your file. But ensure that this is the path you give in your Sender File Adapter.
    If your transport protocol is FTP then you need to see that ftp is running in your system. for that go to Control Panel>Add/Remove Programs>Add/Remove Components. In that check the IIS server and go to details and see that ftp is also checked. Now ftp is running in your system.
    Now open your C:> drive >InetPub>ftproot . and create a folder here and paste your file. In the configuration of your File sender adapter just mention the name of the folder.
    For your information, you can create a file with xml tags and namespace and message type manually (or) you can directly get it from the test tab of message mapping and generate source code.

  • How to handle big java source files in JDEV 10.1.3

    Hi,
    I have some .java files that are like over 10,000 lines long. I know this is crazy but I didn't write it but I have to maintain it. I really dont feel like refactoring all these big source files right now.
    JDeveloper has lots of while-editing features that are probably grinding to a halt on this really big file. My CPU usage shows ~97% whenever I do anything in this file.
    Is there some preferences I could set or something I can disable just while editing this big file.
    Thanks,
    Simon.

    The delays between edits and the IDE stalls seemed
    about the same with this change in place.Ah... that's sad. It seems like there's another (un-configurable) timer mechanism for background parsing used by the structure pane.
    I didn't
    really understand what the numbers were controlling
    so I didn't try any other values. They control the frequency of a timer that is reset each time you press a key in the code editor. After the number of ms specified in these parameters has elapsed after the last keypress, the code in the editor is parsed. There are two settings, one for short files and one for long files (I forget what the threshold is between short and long).
    Maybe it isn't the parser since it still goes to 100%
    CPU (just less often) but I can still move the mouse
    around the file - no stalling. Here's something I'd find useful to investigate this problem: Run jdeveloper with jdev.exe so that you have a console. When the CPU hits 100%, switch to the console and press Ctrl+Break. Copy the stack dump (maybe take a couple of them) and email them to me (brian dot duff at oracle dot com).
    Dropping the structure window is a fairly simple work
    around for me. I can live without the structure
    window for this file although it is actually most
    useful as the file's size, and structure, increases.Yes, I can imagine the structure pane would be quite useful with a mammoth java file like the one you're working with :) Incremental find might be your friend in its absence (Ctrl+E, I think).
    If your considering an ER for the structure window
    (:-) then how about this too:
    "Cursur location within the file should be shown in
    the structure window"
    This already happens for Ant (build.xml) files but
    not for Java files - or at least not for me. The
    problem is that it is easy to get lost in a large
    file and the navigation assistance should be the same
    across all structured file types. Funnily enough, I was talking to one of the developers on the team that builds the infrastructure for the xml based parts of the product (including ant) about these kind of inconsistencies between the XML and Java structure panes just a couple of days ago... :) I'll file a bug for this (rather than an ER), since it's a UI inconsistency.
    Thanks,
    Brian

  • How to handle trailing Null columns in a Batch file when ESB reads the file

    Dear All,
    How can I handle trailing Null columns in a batch file (csv file) that is been used by an ESB FTP adapter for batch file processing.
    Since ESB is some times taking up the whole next record as the last column data..
    Please update
    many thanks...

    If your file is not designed to be amazingly large, then you don't need to use a temporary file -- you can just read the data into memory and manipulate it there. (Like, into a Document object or something.)
    But if you are dealing with really large files, you might want to consider using a database back end instead of a text file, which is a completely different approach I know but... well, that's why databases were invented.

  • How to handle special character in SAP CRM

    Hi all,
    I am facing a problem on SAP CRM Web UI - Contact Creation - When a special character is inserted on address fields of Business
    Partner (e.g. ` ~ ^ etc.), the interface does not understand this character and changes it to a TRIANGLE on pressing enter key.
    Kindly guide as how to handle it or something is missing in terms of (note or patch).
    I am running on SAP CRM 7.0
    Thanks,
    Pradeep Singh Dhadwal

    Hi Pradeep.
    At the end of the day, a character is stored as a byte sequence on disk, and a code page defines the mapping between the byte sequence and any given character.The code page determines what character you can see and enter, therefore different code pages map different characters to the same byte sequence.
    I suggest you to first check if your system is a Unicode system by checking the System menu->Status option->Unicode system field. I'll assume it is.
    Then, please run report RSCP0018 (optionally also RSCPINST and then select Current NLS config pushbutton).
    These reports will show you the actual configuration of languages and code pages of your Application Server. Please check that the correct languages and code pages are configured. If you need to know more about code pages configuration, please check Note 42305, which explains pretty well the whole process.
    Kind regards, and good luck.
    Federico

  • Service? How to handle this process in SAP?

    Hi,
    Ihave a problem
    The customer provide us his own material,
    In production process we add to it our own component. Than we have to pass it to our magazine with the same customer name but higher price.
    Is it a service? How to handle in SAP.
    Thanks in advance.
    Artur

    This is not service but internal subcontracting scenario, You can go through below link for understanding it better,
    [Internal Subcontracting   |http://forums.sdn.sap.com/thread.jspa?threadID=571772&messageID=4190422#4190422]

  • How to handle blank root element in xml source file

    Hi There,
    I have a dataflow which using xml source file. The job keep failing and I guess it might be caused by one of the root element which is blank. Can anyone advise me how to handle it?
    The xml file look like this:
    -<orderinfo>
    --<orderdetail>
    ---<orderid>1</orderid>
    ---<orderdate>20110101</orderdate>
    --</orderdetail>
    --<abc />
    -</orderinfo>
    element <abc> is blank
    Thanks and Regards,
    BL

    Hi Suneer,
    The issue is DS cannot validate the source file at all. It returns error message when I try to preview the source file in the dataflow. Is there any work around I can implement other than request the source team to change the file layout?
    Thanks,
    BL

  • How many Communication Channels required for File--Bpm(SAP R/3)--File

    Hi
        Pl..help me on this
        I am doing the following scenario File 2BPM 2 File
        i.e File -
    BPM(ASync)
            BPM -
    SAP R/3(Sync)
            SAP R/3 ---BPM (Sync)
            BPM ---File (Async)
        For me it looks three CC's  but still i am not confident
        Can any one explain me on this
    Adv thanx
    Prasad K

    File(<b>CommChannel 1 -File Sender</b>) -
    > BPM(ASync)
    BPM -
    > SAP R/3(Sync) (<b>CommChannel 2 - RFC Receiver</b>)
    SAP R/3(Comm Channel 3 -RFC Sender) --- > BPM (Sync)
    BPM ---> File (Async)(<b>CommChannel 4 - File Receiver</b>)
    <i><u><b>So a TOTAL of 4 Comm Channels.</b></u></i>
    Since Sinchronous so 4 channels .. if you use idoc adapter instead of RFC 3 channels will do
    Cheers,
    Himadri
    null

  • How to send XML file into XI using sender HTTP adapter

    I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
    String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
    How can I execute xml file by using HTTP sender adapter.
    Any one with better suggestions, about this idea?
    Thanks in advance for all.
    Ram Raj

    Hi
    Just use the following parameter to send xml file using HTTP adapter.
    "http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
    "&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
    with the help of this you are able to point out which interface you would like to use.
    And in payload pass the xml.
    and thats it
    carry on
    Cheers
    Regards
    Piyush

  • How to handle multiple attachments in XI mail sender adapter?

    Hi,
    is it possible to handle multiple attachments in a mail receiving in XI?
    Our customer wants to send us mails with multiple attachments and we have to convert each attachment to an idoc.
    But as I know XI (receiving mails) can handle only a single attachment in a mail. Is it true?
    Any ideas?
    Thanks a lot!
    Regards
    Wolfgang

    Hi Wolfgang,
    Well, although I have never tried a scenario of picking more than two attachments from one mail, I wonder if its possible in the first place!
    Here are the reasons why I think it is possible:-
    It is not mentioned anywhere in the SAP Notes for mail adapter that it is not possible.
    *It is not mentioned anywhere in the SAP help documentation that it is not possible
    *Also, I think if the receiver mail adapter can create more than one attachment, the sender should be able to pick more than one!:)
    Have you tried defining a PayloadSwapBean module to pick up more than one attachment?
    Just try experimenting with this particular part of the module code:-
    Content-Disposition: attachment;filename="MailAttachment-1.xml"
    Content-Description: MailAttachment-1
    I think even the following weblog might be able to help you to a certain extent:-
    "Receiving E-Mail and processing it with ABAP - Version 610 and Higher" - /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    Regards,
    Sushumna
    Regards,
    Sushumna

  • Archive file with errors in sender file adapter not working! please help!

    Hi Experts,
       I have a file to RFC scenario. the input is a XML file. I have setup the flag in sender file adapter channel for archiving the input files with errors. But it is not working.
    For testing I have used an invalid xML file for example without the main XML tag. I have also tested with a MSWORD file saved with.xml extension. But in both the cases the files are not getting archived.
    My archive location permissions are fine and in fact normal archive operation is happening. That is, if I select the processing mode as "Archive" and gave the Archive directory then files are getting archived. The problem is only with the "Archive faulty source files" option.
    What am I missing? DO I need to do some more configurations?
    What are the prerequisites if any for this option?
    How to test this?
    Please help me! I will be greatfull to you all!
    Thanks & Regards
    Gopal

    and go thru this links
    Creating a Single Archive of the Version Files
    http://help.sap.com/saphelp_nw04/helpdata/en/79/1e7aecc315004fb4966d1548447675/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/31/8aed3ea86d3d67e10000000a114084/frameset.htm
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

Maybe you are looking for