HOW to send the SPlitted files to multiple Receiver On some Condition ?

Hi all,
It's Urgent,
Aim of our scenario
the single file is splited according to company code and creates as separate file
previously it was sending to same server..
we have got the CHANGE REQUEST ON THIS SCENARIO that to route to TWO FTP servers which is splitting according to company code.
But we are not changing any objects in IR
we have only need to change in ID
as now we are using on BUSINESS SERVICE which we have created in ID itself we are not using the BUSINESS SYSTEM created in SLD
We are using ONLY one INBound interface , Interface MApping , Message MAPPing .(no cahnges in IR)
Sender XML Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_FileEwadCompany occurence1-1
xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
<COMPANYEWADDATA> 0 -unbound occurence
<AUDIT_STAMP/>
<SEQNO/>
<SE_TYPE/>
<RECNAME_AUDIT/>
<FLD_NAME/>
<OLDVALUE/>
<NEWVALUE/>
<KEY1/>
<KEY2/>
<KEY3/>
<KEY4/>
<COMPANY/>
<SCE_PAYROLL_CODE/>
<ALTER_EMPLID/>
</COMPANYEWADDATA>
</ns1:MT_FileEwadCompany>
</ns0:Message1>
</ns0:Messages>
Receiver XML Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_FileEwadCompany 0-to-unbound
xmlns:ns1="http://bridgegcs.com/HR/EmployeeWorkforceAdminDataXI_IHR004">
<COMPANYEWADDATA>0-unbound
<AUDIT_STAMP/>
<SEQNO/>
<SE_TYPE/>
<RECNAME_AUDIT/>
<FLD_NAME/>
<OLDVALUE/>
<NEWVALUE/>
<KEY1/>
<KEY2/>
<KEY3/>
<KEY4/>
<COMPANY/>
<SCE_PAYROLL_CODE/>
<ALTER_EMPLID/>
</COMPANYEWADDATA>
</ns1:MT_FileEwadCompany>
</ns0:Message1>
</ns0:Messages>
IN Integration Directory We have to route to 2 FTP servers based on Company code .
WE have used XPATH with particular company codes TO one target Business service which we have created in ID where we are using one FTP server(FTP server 1).
For all other company codes it has to send to second FTP server for Second business system which has been created in SLD .
previously they used INTERFACE DETERMINATION as ENHANCED TYPE
IF we change to STANDARD its not DISPLAYING INTERFACE MAPPING in pop up window.
As now we created now .
One receiver determination
Two Interface DETERMINATIONs(As enhanced type).
Two REceiver Agreements.
As now we have tested
it is sending all files to both servers.
But we need to send to specfied FTP servers on the basis of COmpany code which we declare in XPATH expression.
could any one can guide us
POINTS WILL BE REWARDED FOR BEST ANSWERS..It's urgent
THanks in ADvance
Nandan

Hi nandan,
u said that u r using
1) business service for FTP1
2)business system for FTP2
u have given X-path condition in Rec determination...i.e depending upon the company code it will route to business service or business system .
so i guess there should be two reciver determination
2 interface dtermination
And also check ur Xpath....make sure that its like....
if (Comp code == 1)
go to FTP1
if (comp code == 2)
go to FTP2
regards
biplab

Similar Messages

  • How to send the PDF file to FAX will the nast table updates

    Hi all,
    How to send the PDF file to FAX. Will the nast table updates ( which fields updates ).
    Need is once fax is send for that delivery, again it should not fax again. Will the nast table helps to check the sent fax.
    Please give me sutable suggessions....

    Have you checked Forums » Community Discussions » Code Snippets 
    I believe there were some examples on converting/sending PDF.
    Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it.

  • How to send the pdf file....

    How to send the pdf file which is an outpu of smart form to sap users.
    How to delete the pdf file as soon as it was sent.

    Have you checked Forums » Community Discussions » Code Snippets 
    I believe there were some examples on converting/sending PDF.
    Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it.

  • B2B Broadcasting : How to send a single file to multiple trading partners

    Oracle 10g B2B (10.1.2)
    I have a use case where I need to send a file to multple trading partner. Actually BPEL ftps a file to the B2B file server and B2B picks that file and needs to send it to multiple trading partners.
    I read through the blog http://blogs.oracle.com/oracleb2bgurus/2009/03/broadcast_feature_in_oracle_as.html and did the following change.
    1. Created a generic identifier : Grouping.
    2. Added this identifier to the relevant trading partner.
    3. Modified the business action to include the actionName=Grouping; for all the relevant Trading Partner which is supposed to get the file.
    4. Used the Group identifier in the Trading partner agreement.
    5. Redeployed the TPAs.
    Issue :
    As the file has to follow a convention <Toparty>_<DocumentType>_<RevNo>_<MessageType>_<MessageId>.txt , I am able to send the file to the trading partner for which I put the name in place of <ToParty> and <DocumentType>.
    Please let me know the exact steps to follow. any document would be of great help.
    Thanks
    Rajeev
    Edited by: user10680470 on Oct 13, 2009 12:34 AM

    Hi Anuj,
    Thanks for replying. I had tried both options.
    For first option it returned error stating it could not identify the trading partner.
    Second one was looking more promising but due to the DocumentType parameter in the filename which I was using as the DocumentType of any one of the business action action name of a trading partner, it was giving error. Is it possible to have the DocType for multiple trading partners, just a thought.
    I will try to explore more on the option 2 with the fileformat using the actionname.
    Meanwhile if you could find anything please let me know.
    Thanks a lot....
    Rajeev
    Edited by: user10680470 on Oct 13, 2009 2:47 AM

  • How to send the error file as a attachment

    Hi All,
    Is it possible to send a mail by attaching the error file.
    I am writing the code in the events,if import failed then i need to send the mail with import failed error file as an attachment.
    Thanks.

    In your mail code, include something like the following prior to the .Send command. strAttach is the path to the Attachment:
    If Not strAttach="" Then' Attach file(s) to message
         Set fso = CreateObject("Scripting.FileSystemObject")
         If fso.FileExists(strAttach) Then .AddAttachment strAttach
         Set fso = Nothing
    End If

  • TO send the SPlitted Files into 2 FTP servers

    hi , IT'S URGENT,
    We are using ONLY one INBound interface , Interface MApping , Message MAPPing .(no cahnges in IR)
    IN Integration Directory We have to route to 2 FTP servers based on  Company code .
    WE have used XPATH with particular company codes TO one target  Business service which we have created in ID  where we are using  one FTP server(FTP server 1).
    For all other company codes it has to send to second FTP server for Second business  system  which has been created in SLD .
    As now we created now .
    One receiver determination
    Two Interface DETERMINATIONs(As enhanced type).
    Two REceiver Agreements.
    As now we have tested
    it is sending all files to both servers.
    But we need to send to specfied  FTP servers on the basis of COmpany code which we declare in XPATH expression.
    POINTS WILL BE REWARDED FOR BEST ANSWERS..It's urgent
    THanks in ADvance
    Nandan

    Hi Guys ,
    I have same scenario, But i made two Message interfaces and Two Interfaces mappings(eg : one for Plant1 and another one is Plant2) -
    IR
    ID :
    2 communication Channels ( one for Plant 1 and another one is Plant 2)
    Add 2 reciver determinations
    Add 2 interfaces determinations ( here you need to set up Conditions) based Plants
    Finally 2 receiver derminations.

  • How to send GoldenGate trail files to multiple targets

    Dear All,
    We had an existing prod GoldenGate configuration which is one source and one target (unidirectional).
    Now we want to add one more target to replicat same data. But the challenge we are facing is the existing configuration is not using data pump process.
    We are using only one extract process to extract and send data to remote host,
    like,
    EXTRACT ext
    USERID ggs, PASSWORD ggs
    RMTHOST prod1, MGRPORT 7809
    RMTTRAIL /goldengate/dirdat/aa
    TABLE scott.emp;
    Is it possible to add one more target in the same configuration???
    Please do help.
    Thanks,
    TrushB

    Please do update guys...

  • How to change the insert allowed false dynamically based on some condition

    Hi,
    I have two data blcoks B1 and B2.
    B1 is heade and B2 is detail.
    B1 contain one filed PO number based on that user press the button.
    Based on PO we get the some fileds in B2 from cursor.
    In B2 filed contain total 5 fields. 4 fields come from cursor button. remaining one field user will enter.
    My requirement is afte the getting the records from cursor. I need to not allowed to create new records.
    Please do the needful.

    902434 wrote:
    Hi,
    I have two data blcoks B1 and B2.
    B1 is heade and B2 is detail.
    B1 contain one filed PO number based on that user press the button.
    Based on PO we get the some fileds in B2 from cursor.
    In B2 filed contain total 5 fields. 4 fields come from cursor button. remaining one field user will enter.
    My requirement is afte the getting the records from cursor. I need to not allowed to create new records.
    Please do the needful.As per i understand you want on block b2 insert allowed false.
    Try this
    If your_condition then
         SET_BLOCK_PROPERTY('block_name', INSERT_ALLOWED, PROPERTY_FALSE);
    else
         SET_BLOCK_PROPERTY('block_name', INSERT_ALLOWED, PROPERTY_TRUE);
    end if;Hopes this helps..

  • How to use rule and send the same email to multiple recipents

    Hi,
    My requirement is to send the workitem to the multiple recipents. one of my reiend suggest me to use the rule but i don't know how to use that .
    can any one of you suggest me how to use rule in workflow.
    Also i want to send the same email to multiple recipent .how can i do it by using the multiline variable...please advice me with example if possible..
    Note :- Is it necessary to saparate the email id with comma or i will add all the email next one another..
    Please suggest.
    Thanks in advance ,
    Anand

    Hi Anand,
    I would suggest you first follow the guidelines of the forum and a little searching. One of your questions has been asked just a few threads below.
    Regards,
    Martin

  • How to send the entire binary file as Content in mail adapter

    Hi,
    I have the below scenario:
    A binary file is there on the XI server and this is more than 1 lines.
    This file needs to be sent across to certain email addresses via the XI interface.
    I have made the design and config and now get the the mail but so far not been able to get the file contents.
    The requiremnet is to send the entire file contents in the mail so that they appear in the body of the received mail.
    How do i do it?
    Can you please advice.
    Regards,
    Archana

    Hi,
    I am giving below the incoming mesasge details and the outgoing Mail message details.
    Sender File Adapter:
    Mesasge Content/Payload:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:MT_Ack_Mail_In xmlns:ns="Urn:Serco-com:interface:Banking:HSBC:FileTransfer">
    - <Content>
    - <Mail>
      <Details>UNBUNOA:3HEXAGON-ABCABC10268002081201:2152+692125127893</Details>
      </Mail>
    - <Mail>
      <Details>UNH1CONTRL:2:2:UN:APACS</Details>
      </Mail>
    - <Mail>
      <Details>UCI1000246720ABC10268002HEXAGON-ABC4+C09</Details>
      </Mail>
    - <Mail>
      <Details>UNT31</Details>
      </Mail>
    - <Mail>
      <Details>UNZ1692125127893</Details>
      </Mail>
      </Content>
      </ns:MT_Ack_Mail_In>
    Receiver Mail Adapter:
    Message Content/Payload:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
      <Subject>ME-Acknowledgement</Subject>
      <From>email of from</From>
      <To>my email</To>
      </ns1:Mail>
    I need to map the contents of the incoming payload Contents/Mail/Details (all the 5 instance) to outgoing Missing Content (after To field).
    If it can be in Mail body, then it would be best else please suggest what other option can I use?
    Also, If i want the file name to be in the subject of the mail, is that possible to be picked up in the configuration?
    Please help.
    Regards,
    Archana

  • Can anyone tell me how to send a PDF file so that it opens up in the body of the email itself? Thanks

    Can anyone tell me how to send a PDF file so that it opens up in the body of the email itself? Thanks

    That is a function of the recipient's e-mail software understanding what your software sent.  If it doesn't it will always show as an icon or attachment.   It is also a function of both your internet provider and their internet provider accepting messages of that size, and a function of their download attachment settings in their e-mail program.  There is no way to guarantee it will appear inline in the attachment.   The best you can do is attach with Windows Friendly format.  To do that, use the attach toolbar icon that looks like a paperclip, (View menu -> Customize toolbar if invisible) on Mac OS X Mail when composing the message.   A checkbox appears in the file dialog box's bottom to make it Windows friendly when you navigate to pick the PDF file.  That makes it as universally compatible as possible.  It still may not appear inline, but at least you are less likely to be incompatible.

  • How to send the report output to the application server in a excel file

    Hello,
    how to send the report output to the application server in a excel file.
    and the report runs in background.
    Thanks in advance.
    Sundeep

    Dear Sundeep.
    I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
    D A T A D E C L A R A T I O N *
    TYPES: BEGIN OF TY_EXCEL,
    CELL_01(80) TYPE C,
    CELL_02(80) TYPE C,
    CELL_03(80) TYPE C,
    CELL_04(80) TYPE C,
    CELL_05(80) TYPE C,
    CELL_06(80) TYPE C,
    CELL_07(80) TYPE C,
    CELL_08(80) TYPE C,
    CELL_09(80) TYPE C,
    CELL_10(80) TYPE C,
    END OF TY_EXCEL.
    DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
    WA_EXCEL TYPE TY_EXCEL..
    E V E N T : S T A R T - O F - S E L E C T I O N *
    START-OF-SELECTION.
    Here you populate the Internal Table.
    Display - Top of the Page.
    PERFORM DISPLAY_TOP_OF_PAGE.
    E V E N T : E N D - O F - S E L E C T I O N *
    END-OF-SELECTION.
    SET PF-STATUS 'GUI_STATUS'.
    E V E N T : A T U S E R - C O M M AN D *
    AT USER-COMMAND.
    CASE SY-UCOMM.
    WHEN 'EXPORT'.
    Exporting the report data to Excel.
    PERFORM EXPORT_TO_EXCEL.
    ENDCASE.
    *& Form DISPLAY_TOP_OF_PAGE
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_TOP_OF_PAGE .
    SKIP.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'O R I C A'
    CENTERED COLOR 1,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE,
    /05 SY-VLINE,
    06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
    CENTERED COLOR 4 INTENSIFIED OFF,
    132 SY-VLINE.
    WRITE: /05(128) SY-ULINE.
    E X C E L O P E R A T I O N
    CLEAR: IT_EXCEL[],
    WA_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    WA_EXCEL-cell_02 = ' XYZ Ltd. '.
    APPEND WA_EXCEL TO IT_EXCEL.
    CLEAR: WA_EXCEL.
    WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
    APPEND WA_EXCEL TO IT_EXCEL.
    PERFORM APPEND_BLANK_LINE USING 1.
    ENDFORM. " DISPLAY_TOP_OF_PAGE
    *& Form APPEND_BLANK_LINE
    text
    -->P_1 text
    FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
    DO P_LINE TIMES.
    CLEAR: WA_EXCEL.
    APPEND WA_EXCEL TO IT_EXCEL.
    enddo.
    ENDFORM.
    *& Form EXPORT_TO_EXCEL
    text
    --> p1 text
    <-- p2 text
    FORM EXPORT_TO_EXCEL .
    DATA: L_FILE_NAME(60) TYPE C.
    Create a file name
    CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
    '.' SY-DATUM+0(4) INTO L_FILE_NAME.
    Pass the internal table (it_excel which is already populated )
    to the function module for excel download.
    CALL FUNCTION 'WS_EXCEL'
    exporting
    filename = L_FILE_NAME
    tables
    data = IT_EXCEL
    exceptions
    unknown_error = 1
    others = 2.
    if sy-subrc <> 0.
    message e001(ymm) with 'Error in exporting to Excel.'.
    endif.
    ENDFORM. " EXPORT_TO_EXCEL
    *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
    Regards,
    Abir
    Don't forget to award Points *

  • How to send the PAYE EDI files - P45(1) P45(3) P46 to HMRC

    Hi,
    How do we send the EDI files like P45(1), P45(3), P46 etc.. to HMRC.
    Oracle Payroll generates the files, but doesn't support transmission to HMRC.
    Can these files be directly uploaded on the HMRC website ?
    Are there any recommended third-party softwares for the same ?
    Appreciate any inputs.
    Thanks,
    Vigneswar

    Thanks Avinash.
    I see some Third-party softwares here :
    http://www.hmrc.gov.uk/ebu/edi/edi-software.htm#P37_1596
    Are there any free ones ?
    Any idea how much does the licensing for EigarPay cost ?
    Thanks,
    Vigneswar

  • Syndicator Server: possible to split the export file in multiple file?

    Hello,
    is it possible to split the export files into multiple files e. g. at 5000 records?
    Perhaps there is a possibility in the mdss.ini? Or a setting in the mapping?
    Thank your for your responses!
    Melanie

    Hi Melanie,
    - If you are syndicating in the Xml format you have the option to syndicate one xml for every record. or multiple records one xml.
    For this you have to make a simple setting in the Syndicator-> Map properties->XML file output->(multiple files/single file)
    Other way around is:
    - If you are syndiacting in any other format say text then the output file goes as one file for all records present in the MDM repository, for this you can use the search options.
    - Create a search on some field value which will select a set of records from the lot.
    - Then you can syndicate only those records which satisfies the  search criteria.
    - In this way it is possible to syndicate in parts
    Hope It Helped,
    Kindly Reward Points if found useful
    Thanks & Regards
    Simona Pinto

  • How to send the file contents in the application server to ftp server

    Hi,
    how to send the file contents in the application server to ftp server.
    regards,
    sree

    Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
           HOST            = 'servername'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.
    Execute external commands (FTP Scripts)
    The following code shows the syntax of the FM 'SXPG_COMMAND_EXECUTE'. You pass it the external command created within transaction SM69 and it will execute it.
    DATA: ld_comline 
    LIKE sxpgcolist-name,
            ld_param    LIKE sxpgcolist-parameters,
            ld_status   LIKE extcmdexex-status,
            ld_output   LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            ld_subrc    LIKE sy-subrc.
      REFRESH ld_output.
      MOVE 'FTP_DATA_IN' to ld_comline.         "Maintained using trans SM69
    Execute external command, contained in 'ld_comline'
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = ld_comline
              additional_parameters   = ld_param  "Params passed to script
              operatingsystem              
    = 'UNIX'
           IMPORTING
                status                        = ld_status
           TABLES
                exec_protocol                 = ld_output
           EXCEPTIONS
                no_permission
                     = 1
                command_not_found
                 = 2
                parameters_too_long          
    = 3
                security_risk                
    = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry
              = 13
                jobcount_generation_error
         = 14
                OTHERS                       
    = 15.
      IF sy-subrc NE 0.
      ENDIF.

Maybe you are looking for

  • HT5642 WiFi speed issues with iPhone 4S since the update

    Since the update the WiFi on the iPhone is terrible. I run a 50mb speed and barley get 2mb. My iPad is getting 39mb speed. Is there a problem with this update for the iPhone that affects WiFi speed?

  • Is there a way to set up a button/action so that when a PDF is sent to print, it automatically crops it?

    I'm on a Mac with Yosemite, and am running Acrobat 9 Pro. I have an oversize PDF document that includes navigation tabs across the top like a website. It is interactive so a user can click through the PDF. My page size is 8.5"x11.5" - slightly taller

  • Sync Windows Vista Calendar with PC Suite & N95

    Is anyone aware of a way to sync my N95's calendar with the new (and improved) Windows Calendar which comes free with Vista? I'm using PC Suite 6.83.14.1 and this can only sync with Windows Vista Contacts (not calendar). Thanks!

  • Passing output to a method, I'm lost!

    I want to put all of my "output" including the returns on the three Temp functions in my method DisplayTemperatures, but I'm stuck and don't know how to do this. Please help import javax.swing.*; import java.text.DecimalFormat; public class Temp {   

  • Unable to reimport model.

    I'm using NWDS 7.2 SP03. I have to reimport several Adaptive RFC 2 Models. I successfully reimported some of them, but for some others I get a failure. In the Error Log there are these messages: method: doReimportDynRfc2Model -> Adaptive RFC2 model r