File split in SAP PI 7.3.1

Hello ,
We have one requirement in which we have to split a flat file in SAP PI 7.3 in to two files based upon a particular condition.
COndition can be if payroll area =1 then it should be the part of first file and if payroll area =2 then it should be part of second file.
The main file will be a mix of payroll area 1 and 2. When this split is done then we have to send the two files to different receivers.
If there is some blog on SDN then please help!!!
Regards
Gaurav Ranjan

Thanks Amit ,
I am planning to create one message mapping only with multiple target mapping and based upon the condition records will be filled.
This is given in the blog suggested :
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1571?overridelayout=true
My only concern is i want all the records consolidated in one file/not one file for a record.
Please help!!!

Similar Messages

  • XML File splitting in PI

    Hi all,
    We have a requirement that the receiving application can accept files only of size 2MB. So this is a limitation from the receiving application
    The source system is SAP ECC system and the receiving application is a legacy application.
    Technically it is a ABAP Proxy to File scenario. Receiving application can accept files only in XML format.
    SAP ABAP Proxy code is written in such a way to read all the records in a SAP table and the full table load is sent as an proxy xml message to PI, PI has to split this  full xml file  in to chunks based on some condition and then transfer it to receiving legacy application.
    Can we achieve file splitting in PI for XML files based on no.of records or size.
    Please share your inputs/pointers to provide the best solution to this requirement.
    regards,
    Younus

    Hi,
    Yes this can be done by the amount of records you send through at a time.
    So lets there is 10000 records. You might only send 200 at a time and that will keep it under the 2mb limitation.
    This is a simple if function on your nodes. Please see the links below that would help you.
    Split source message into multiple target messages
    Defining Message Splits - SAP NetWeaver Process Integration - SAP Library
    Configuring Mapping-Based Message Splits - Integration Directory - SAP Library
    Split mapping created no messages SAP PI 7.11
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ea2fdf-f047-2a10-d3a2-955a634bde6b?overridelayout=t…
    Regards,
    Jannus Botha

  • Idoc to File Split Scenario..

    HI Experts,
    My scenario is Idoc to File split scenario..
    Idoc will be triggered from the SAP ECC system and at the target side we need to drop two text files at the ftp directory.
    so Idoc data needs to be splitted and to be dropped in two differient files in the target FTP directory..
    So can any one suggest how to go ahead with the scenario..
    Thanks,
    --Kishore.

    Hi,
    In the idoc, some of the data will go to onefile and some goes to other files..
    the structures of the two files are differient..
    There is no condinal spliting here every idoc contents should be mapped according to the requirement and dropped as two files.. at the target end.
    for ex:
    Idoc
    field1
    fileld2
    field3
    field4
    in the out put side
    file1 should contain
    field1
    field3
    field4
    file2 should contain
    field1
    field2
    fileld3
    This is what the requirement, if you are not getting reply back with your queries..
    Thanks,
    --Kishore..

  • File-splitting based on content.

    Hi Experts,
    This question is regarding file-splitting.
    Its a BAI2 file with multiple records in it.
    a)I need to split the file based on an identifier and make those many sub-files ( with header and trailer added to the file )
    b)And can we ensure we have the same name for the files? ( with a count suffixed in the end )
    The forum talks about BPM, Enhanced Interface/Receiver Determination, Message Mapping split etc..
    Which would be the best approach for this?
    Please advise.
    Thank you,
    Rakesh.

    Hi,
    Using Enhanced Interface/Receiver Determination approach is best one.
    1.If your version is 7.1 and above, you can also try using enhanced interface determination. Please go through the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1571?QuickLink=index&overridelayout=true
    2.In the Receiver Determination, you need to select " Extended" in the Type of Receeiver determination.
    Illustration of Enhanced Receiver Determination - SP16
    regards,
    ganesh.

  • How to Split one SAP instance to Multiple Instances?

    Can any one guide me how to Split one SAP instance to Multiple Instances?
    Thanks in Advance.
    Regards,
    VB

    Sure, just extract the pages to a new file. The form fields will stay in
    place.

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • How to open files from the SAP DMS (DOC Mgt. System) ?

    Hello All,
            I making the Transaction CV04N in BSP.
    When I execute this CV04N I should give a DOC Nr and the list is generated for this DOC.Now in the List if I select one Record and then Press Display Icon then the content of this list is opened in a new window in it's respective format (PDF,Word,GIF,Image file  etc).These are stored in the SAP DMS.
            I want to open a file from this SAP DMS .
    This can be done in ABAP using the standard FMs. But in BSP we can't use these FMs as it will call a screen.
    The Fm which I'm using is " DOCUMENT_SHOW_DIRECT ".
    In Report prog. To this FM I'll pass the
    a, DOC Type
    b, DOC Number
    c, Document part and
    d, Document version.
    then It'll directly open a PDF file in a new window.
    But in BSP how should I acheive this as the FM calls a screen internally.
    The content of the documents are stored in the DMS. Is there any TCODE or Table to get the files from the DMS ?
    How should I proceed ? can any one help me out.....
    Regards,
    Deepu.K

    Hello All,
             I found the FM : <b>CVAPI_DOC_OPEN_CAD</b> which wil return the file path.
    But when I execute this in my BSP since the FM internally calls a screen it fails.
    But can anyone tell me the alternative for this.
    Should I create a FM omitting the GUI code ?
    I found one more thread which says that I can use classes starting with cl_gos*.
    But all the classes use a gui.
    Dowload a document from R/3 DMS to BSP page
    Am I wrong in the interpretation of the logic from the above thread ?
    Please suggest me .
    I too went thru the BSP Applications <b>CVAW_ENTIRE, CVAW_DOCUMENT_DISPLAY.</b>
    But these are used to display only the <b>thumbnails.</b>
    There is no code for displaying other formats like PDF,XLS etc.
    Please correct me if I'm wrong and let me know the correct path to solve my problem.
    Regards,
    Deepu.K

  • Query on integrating windows file server into SAP KM using WEBDAV

    hi
    I have sucessfully integrated windows file server into SAP KM using WEBDAV. I have query in it regarding the possible validation against the portal Database user. Can we configure such that the user comparison happens for LDAP as well as database user. Have anyone configured such a scenario?
    Regards,
    Ganesh N

    Hi Ganesh,
    this should work in principle.
    However you would need a user in Active Directory for each user in the portal database that should connect to the file server if you are using the SSO22KerbMap Module as I assume.
    In my whitepaper I have mentioned this for the internal user index_service that does only exist in the portal database.
    Best regards,
    André

  • How to store a JSP file in the SAP Application server ?

    Hello All,
    My reqt. is as follows :
    1. I need to store a JSP File on the SAP Application server .
    How can I do this ?
    2. I want to call the uploaded jsp file from the server and call this jsp from abap to view the result of it .
    How can I achieve this ?
    First of all is this possible ?
    Regards,
    Deepu.K

    Hello Mike,
    Thanks for ur reply.
    I've imported the JSP as a mime object into the BSP.
    Now I've created the page to show that Mime Object as an image.
    But nothing is coming as an output.
    But then,there is an option for that mime object. i.e when I right click on the mime object there is an option called " convert to BSP".
    I selected that option and it created a view in my BSP .( My BSP is a page with flow logic application )
    Now how should i make this view to be an output ?
    I guess this shud be posted in the BSP Forum ...but still taking a chance here :)-
    Regards,
    Deepu.K

  • Picking a IDOC Flat File stored in SAP R/3 Application Server by SAP PI

    Hi,
    Can SAP PI pickup a IDOC Flat File stored in SAP R/3 Application Server Directory and send it back as an Inbound IDOC.
    Scenario:
    We have a data in the EXCEL Sheet, which will be used to a fill an IDOC and the IDOC will be just save in the SAP R/3 Application Server Directory, but can not be triggered due to its peculiar behavior. Afterwards, SAP PI should pole the SAP R/3 and pick up that IDOC Flat File from the R/3 Application Server and send it back to the SAP R/3 as an Inbound IDOC.
    For Ref: IDOC does not have a Outbound Process Code, thus can not be triggered and send to SAP PI. It is always used as a Inbound IDOC in SAP R/3 system.
    Regards,
    Saurabh

    SAP PI should pole the SAP R/3 and pick up that IDOC Flat File from the R/3 Application Server
    If SAP PI = 7.11 --> /people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
    send it back to the SAP R/3 as an Inbound IDOC
    why to send  some information again into R3 which it already has? cant some internal code in R3 read the info from excel and then update the IDOC directly?

  • Quality of service in Receiver file/ftp adapter (SAP PI 7.1)?

    Hi,
        We are building an IDoc to File scenario in SAP PI 7.1, where a single incoming idoc will create three different output files. Also files must be created in target server in a specific order.
        Our first idea to ensure that files would be created following a specific order was that Message mapping (in Java) build target payload with all three files following expected sequence.
        In addition, receiver file/ftp adapter is setup with a dynamic variable to create each file with a different filename adding also timestamp.
        Testing the scenario, we see that three files are created in target server but when we sort them by creation date, it seems they don't follow always same sequence.
        Sometimes adapter creates File1, File2, File3; next time it created File2, File1, File3 and so on.
        Our problem is that files must be created always with a specific order and we cannot use BPM. Does anyone know if a receiver file/ftp adapter can be setup to create files following specific sequence (EOIO)?
        I know that sender file/ftp adapter can be setup with a quality of service, but I didn't find anything similar for Receiver file/ftp adapter.
        Suggestions will be welcome.
    Kind Regards,
    Aitor

    Hi,
         First, thanks all of you for your quick answers. They were helpful because we learnt a new configuration setting.
         We tried your suggestions but they didn't really fix our problem.
         Finally interface has been re-designed and we will not have to apply this logic, so no issue from our side.
         However, let me continue with this topic in case that somebody else will have the same issue, then it will be able to review this thread.
         When adapter created the files in the target directory (windows server), files had the expected timestamp in each filename. However, if we sorted windows directory contents by "Date Creation", files were sorted different that timestamp shows in the filename.
         For example, adapter created following files:
    File1_20090325-115117-169
    File2_20090325-115117-174
    File3_20090325-115117-180
         But when we sorted windows folder contents, files were sorted as follows:
    File2_20090325-115117-174
    File1_20090325-115117-169
    File3_20090325-115117-180
         It seems that timestamp was pre-assigned by the adapter, but when adapter created the files, it did it with a temporary name and finally assigns the filename. If a file size was bigger than other, maybe it takes more time and windows creation date is higher.
         If so, it means that adapter is not following same instructions as itu2019s indicated in "maintain order at runtime" checkbox.
         Do you know if there is any way where we can push also the order in the adapter as we did in interface determination?
    Regards,
    Aitor

  • File Split to Multiple IDocs

    Hi all
    I have a problem with splitting an flat file into multiple IDocs. My attempt was to do this without BPM as mentioned in some similar posts, but I am not sure about how to get the file splitted. The flat file has multiple orders with multiple line items and each order should create a single IDoc of type ORDERS.ORDERS05. I have imported the IDoc as external definition with IDOC being 0...unbounded. My input file looks as following:
    ORDER1|LINE1|SOMETHING
    ORDER1|LINE2|SOMETHING
    ORDER1|LINE3|SOMETHING
    ORDER2|LINE1|SOMETHING
    ORDER2|LINE2|SOMETHING
    I have been getting this into the appropriate PI XML structure like:
    MT_Order
    ...OrderRecordSet  (0...unbounded)
    ......OrderRecord    (1...1)
    How do I get this into multiple IDocs for each ORDERx with its n LINE items? I was thinking of SplitByValue with value change on PO, but this doesn't seem to work.
    Any feedback appreciated. Thanks,
    Daniel

    Dear Daniel,
    You can achieve the required by using MultiMapping without BPM. Pls refer to the following blog for the same,
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Apart from the above, if allowd you can changed the IDOC occurrence and change the XSD of the IDOC and you can achieve the requirement with the simple message mapping.
    Thanks
    Prasanna

  • Is it possible to read archive files outside of SAP?

    Hi Experts,
    I would like to read SAP archived data (*.ARCHIVE.ARCHIVING)  with non-SAP application. I already know, that data is automatically compressed (and maybe encrypted?).
    My question: Is there some possibility to read archive files outside of SAP? I suppose that would be needed to do some decompress first.
    Your help is appreciated. Thank you!
    Jan

    Hi Stefan,
    Thanks for your reply. I found some points with your hint. Some summary for others:
    460620 - Migrating archive files:
    "Archived data may have to be migrated. One solution is to perform an SLO service archive migration. You can also perform an archive migration for archive files using the Archive Development Kit (ADK)."
    153433 - Access to archived data from other logical systems
    "For data security reasons, the ADK checks whether an archive file was created in the same system and client where it is to be read. If the client, system or file key do no longer correspond to the meta data that were valid at the time of archiving, you can no longer always access the archive file, particularly for reloading. If only the system ID changes when a new installation due to a system copy is carried out, read accesses are still possible. No solution is provided in the standard system. The access to archive files from other logical systems must be taken into account and carried out in a migration project."
    Unfortunately, I still do not know if it is possible to read archived data outside of SAP.
    Best Regards,
    Jan

  • Text File Attachment in SAP Mail ECC 6.0

    Hi,
    Is it possible to use a text format 'TXT' on the Function Module "O_NEW_DOCUMENT_ATT_SEND_API1" in ECC 6.0? Because I've seen alot of examples in the forum that are using 'XLS' Format attachments.
    I made a program that have been attaching text fomat file in the SAP mail. It is working fine in other SAP boxes but in our current box, as I tested it, opening the text attachment, the result is a file text now contained a long string (max1022 char) instead of a file that is tab-delimited. What would you suggest on this?

    yes u can attach txt file.refer to the code below!
    data: itcpo like itcpo,
          tab_lines like sy-tabix.
    Variables for EMAIL functionality
    data: maildata   like sodocchgi1.
    data: mailpack   like sopcklsti1 occurs 2 with header line.
    data: mailhead   like solisti1 occurs 1 with header line.
    data: mailbin    like solisti1 occurs 10 with header line.
    data: mailtxt    like solisti1 occurs 10 with header line.
    data: mailrec    like somlrec90 occurs 0  with header line.
    data: solisti1   like solisti1 occurs 0 with header line.
    perform send_form_via_email.
          FORM  SEND_FORM_VIA_EMAIL                                      *
    form  send_form_via_email.
      clear:    maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
      refresh:  mailtxt, mailbin, mailpack, mailhead, mailrec.
    Creation of the document to be sent File Name
      maildata-obj_name = 'TEST'.
    Mail Subject
      maildata-obj_descr = 'Subject'.
    Mail Contents
      mailtxt-line = 'Here is your file'.
      append mailtxt.
    Prepare Packing List
      perform prepare_packing_list.
    Set recipient - email address here!!!
      mailrec-receiver = [email protected]'.
      mailrec-rec_type  = 'U'.
      append mailrec.
    Sending the document
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = maildata
                put_in_outbox              = ' '
           tables
                packing_list               = mailpack
                object_header              = mailhead
                contents_bin               = mailbin
                contents_txt               = mailtxt
                receivers                  = mailrec
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                operation_no_authorization = 4
                others                     = 99.
    endform.
         Form  PREPARE_PACKING_LIST
    form prepare_packing_list.
      clear:    mailpack, mailbin, mailhead.
      refresh:  mailpack, mailbin, mailhead.
      describe table mailtxt lines tab_lines.
      read table mailtxt index tab_lines.
      maildata-doc_size = ( tab_lines - 1 ) * 255 + strlen( mailtxt ).
    Creation of the entry for the compressed document
      clear mailpack-transf_bin.
      mailpack-head_start = 1.
      mailpack-head_num = 0.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'RAW'.
      append mailpack.
      mailhead = 'TEST.TXT'.
      append mailhead.
    File 1
      mailbin = 'This is file 1'.
      append mailbin.
      describe table mailbin lines tab_lines.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = 1.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST1'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    *File 2
      mailbin = 'This is file 2'.
      append mailbin.
      data: start type i.
      data: end type i.
      start = tab_lines + 1.
      describe table mailbin lines end.
      mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 1.
      mailpack-body_start = start.
      mailpack-body_num = end.
      mailpack-doc_type = 'TXT'.
      mailpack-obj_name = 'TEST2'.
      mailpack-obj_descr = 'Subject'.
      mailpack-doc_size = tab_lines * 255.
      append mailpack.
    endform.
    regards,
    madhu

  • How to transfer one file to multi sap with same IDOC Type?

    Hi all!
    I need your help..
    My senario is tansfer one xml-file to multi-sap server
    with same IDOC type.
    IS it possible to transfer without BPM?
    I think that the way not using bpm is impossble,
    because the file is deleted by sender adapter.
    If I'm using BPM, how to design?
    I consider 'fork' or 'switch',
    but, I guess,
    Idoc is will be initialized by other branch at last step.
    I hope good information.
    Regards.

    Hi,
    you can create using BPM .
    IR
    you need to create source for one interface and trager for two differnent interfaces.
    suppose if you are doing message mapping in message tab source is one interface targer is multiple interface..so that source can map multiple interfaces...
    create the Interface mapping one source two are target interfaces.
    Create the Integration proces...
    First step is receive step next use the Transformation Step that means source message it will conver two targets...then use the Fork step Recever Determination step goes to the first Send step..
    again drag the another receiver determination and use tge send step..close the FORK step.
    regards,
    venu.

Maybe you are looking for

  • Tax Report Returns No Data [Message 131-85]

    Our client has been using SBO for the past few years and run the Standard Tax Report. They follow a standard procedure whereby they open the Tax Report enter the period details and click OK, the report returns all Input and Output Tax details. This m

  • Time Capsule & Netgear DG834GT in Modem Mode - Not working

    I've just taken delivery of a 1TB Time Capsule. I've switched my existing Netgear DG384GT modem/router into modem only mode, so routing functionality is disabled. I just want to use the DG834GT as a simple ADSL modem, whilst utilising the features (D

  • Has anyone upgraded CPS from NW 7.0 to 7.01, 7.1 or 7.2 ?

    We had a recent "Health Check" conducted by Redwood, and an upgrade of the Netweaver Stack was one recommendation.  The predicted improvements were better use of memory resources (better Java Garbage Collection), and general performance improvements.

  • Archivelog mode during upgrade

    HI All, During upgrading the database from 10g to 11g... I will put my database from noarchivelog mode to archivelog mode to save the disk space. Does this task improves or speedsup the process of upgradation or any impact. Suggestions please. regard

  • Error while starting NWDS

    Hi,   I am running NWDS 7.31 with JDK 1.6_0_26. While opening NWDS, in error log i am getting an error like... "VariableBlock: Classpath variable with null value: SAP_SYSTEM_ADD_LIBS" Please help... Thanks in Advance, Regards, Alex