Different Message Type, Different Namespace, same structure

Hi,
we have the scenario:
We have a message type (with our namespace) in a regular file-tofile scenario.
The sender is sending us an xml-file from his PI that  has exactly the same structure and same xsd.
Except, that his message type name and namespace are different.
What is the scenario to get his message type and namespace mapped to my message type and namespace in a regular file-to-file scenario?
Thanks
hs

Hi, you could also remove namespaces with XMLAnonymizerBean, then you only need to adapt the message type.
Alternatively you can import the external definition of the message and create a mapping for that. You can reuse your existing message mapping, just do a copy and change the message type in the signature. Then you can correct structural inconsistencies automatically in order to adjust the mapping to the changed namespace and message type. Or even better, create a mapping template for the structure which you use in both message mappings. Like this, you have a separate interface and mapping for the file and thus a clear separation of message flow.
Regards, Martin

Similar Messages

  • Can we assign same  basic type to  different message type in ALE

    Hi Expert
       can we assign same idoc type to different message type?

    Hi,
    Yes you can assign the one idoc type to multiple message type. Message type nothing but it represents the kind of data we transfer.But idoc type is the format in which we transfer data. As an example in Messager types "ORDERS" and "ORDRSP"  both indicates the order related data, and in both case idoc type can be ORDERS01, ORDERS02.............
    Thanks,
    Asit Purbey.
    Edited by: Asit Purbey on Oct 12, 2009 3:07 PM

  • IDOC - IDOC scenario with different message types

    Dear Experts
    I will like to have your expert opinion in the following question:
    I have an IDOC -> IDOC scenario. Wherein at the destination system I have a message type which does not exist at the source system.
    Also the IDOC type at destination system does not exist at the source system.
    Let say, I will be creating custom message type at source system (Z****) and will also be creating the custom IDOC type (z****) with the same structure, definition as the destination.
    Now my question is, even if there will be different message types and different IDOC types but with the same structure (the segment level definition
    and field attribute remains the same at both the system). The difference lies with the names. And I have proper mapping though process code.
    Will I be able to receive the IDOC correctly at destination?
    Thanks & Best Regards

    Hi All
    I figured out the answer myself now.
    You got to have same name for message type. All of you said this and this is rite.
    Coming to IDOC type, I did not really got clear idea on this from this discussion.
    But after working on a scenario, I learnt that, you can have different names for IDOCs, but provided that, whichever IDOC type the source system is sending, the same type must exist in your destination as well. Otherwise, system wont process your IDOC. But from mapping point of view, its upto individual how do thay handle mapping inside inbound process code for different idoc types / strucutes.
    Lesson learnt by me, ideally try to keep same name for both logical message and idoc type at both source and destination. If possible try to keep the structure level also the same. This is my view, learnt it the hard way.
    Cheers
    Shane

  • IDoc Message Type different in sending to receiver system

    Hi,
    I am sending DESADV (message type) IDoc to other SAP system. But problem is in other system Message Type DESADV is available in a different name ie DESADV1.
    No of segments and their name are same in both the system are same..
    In that case if i am sending DESADV from sending system whether receiver system can get IDoc?
    Note: In sending system i could not able create message type DESADV1
    Sa_R.

    Hii..
    Looking like Strange scenario...
    Normally we must have the Same message type in both Sender and Receiver systems.
    Bcoz whenever the IDOC is Received in the Receiving system it will process based on the Message type. So the Same message type must exist in the Sender as well as Receiver.
    I can think of a Solution: Just try..
    In the Sender system Create a Reduced message type  (Tcode BD53) Of the Message type DESADV. Select all the Segments and Fields
    In the Receiver system also Create a Reduced message type with the Same name as Sender system (Tcode BD53) Of the Message type DESADV1. Select all the Segments and Fields.
    Then use this Reduced message type since it exists in both the Systems.
    <b>Reward if Helpful.</b>

  • Different Stock types in the same HU....

    Hi Team,
                        Is there a possibility that i can have the different stock types in the same HU in SAP EWM.If we have  any options please let know.
    Thanks,
    Kris.

    Mixed Stock Types for the Same Product
    Controls whether a product in a bin or HU is allowed to be of more than one stock type. If the field is blank, different stock types are allowed. If it is selected, the product or batch can only exist in one stock type.
    Dependencies
    If the available quantity level for the storage type is set to Storage Bin, then this field is completely independent from other storage type settings. However, if the available quantity level is set to Highest-Level HU, the following dependencies exist:
    Mixed Storage must be set either to 1 - Several Non-Mixed HUs with the Same Product/Batch or to 2 - Several HUs with Different Batches of the Same Product.
    Mixed Storage in HU must also be set either to 1 - Several Non-Mixed HUs with the Same Product/Batch or to 2 - Several HUs with Different Batches of the Same Product.

  • How to assign different Message Type to different Doc. Types

    Hi,
    Can anyone tell me how can I assign different Message Type to different Doc. Types e.g. in ME21N. So that whenever the Doc Type is selected the respective Message Type is automatically assigned.
    Lucky

    hi there
    follow this path
    spro - materials management - purchasing - messages - output cntrol - message types - define message types for p/o
    then
    spro - materials management - purchasing - messages - output cntrol - message determination schemas - define message determination schemas for purchase order
    then
    go to
    mn04
    give doc type  - enter
    enter partner role & other parametrs

  • Sending Message Type from the same Logical System to 2 different ports

    Hi,
    I need to transfer the same message type 'DEBMAS' in the same logical system,
    to 2 differenet port - directly to XI (as an IDOC) and to function (as a PROXY),
    In XI this are 2 different interfaces.
    I see in we21 that when adding message type in outbound I can also write message code or message function so I tried adding an additional row of DEBMAS with message code but it did not work.
    Thanks,
    Naama

    Hey,
    This question should not be posted here, but in the XI forum,
    anyways,you can do it in 2 ways
    1) You can send the message to XI, and in XI it should be configured to send to
    two different places, which can be done in the Receiver Communication Channel, one would be IDoc Receiver and another would be a SOAP Receiver. ( here you send one message to XI and XI will send it to the PROXY )
    2) You can specify the settings in your Partner profile (we21)and while generating the Port (we20).
    Regards,
    Samson Rodrigues.

  • How to handle different message types of EDIFACT in single input file.

    Hi All,
    Currently we have a requirement like we will be receiving the input with different messages in the same input file (eg: ORDERS and ORDRSP in the same file).
    We have configured both the message types in the document definitions. One more thing is the versions of the messages are different.
    When we pass the input we are getting the error.
    The input looks like below,
    UNB
    UNG
    UNH*ORDERS
    UNT
    UNE
    UNG
    UNH*ORDRSP
    UNT
    UNE
    UNZ
    Please assist us to overcome the error.
    Thanks,
    Ravindra.

    Hi Prasanna,
    Thanks for your reply.
    I have created the agreements for both the messages still i'm getting the below error,
    B2B-50037
    B2B inbound message processing error
    If i give the input as separate messages (i mean 2 input files). Its working fine.
    Also let me know is there any configuration settings to handle multiple messages in a single input file.
    Thanks,
    Ravindra.

  • One message type different IDoc Types

    Hi All,
    Can we use one message type and different data types based on the requirement in PI mapping.Basically  I want to select mappings based on IDoc ...My requirement is to use different IDoc types for one message type in mapping ...will it work ?
    Thanks ,
    Vinay.

    If you will be wanting to have 1 message producing different IDOCS types  (to be meaning that not just multiple IDOCS of the same type) then this must be done via a BPM as the IDOC adapter will not be able to handle it by itself.  Have a receiver determination step in the BPM for each IDOC type - you'll then be sending each via foreach block.

  • Idoc creation - Different Message types

    Hi All,
    Is there an efficient way of  to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?
    Please advise.
    Regards,
    Meghna

    Thanks for your reply.
    We have lot of custom development and we have to go with an ABAP program to create these Idocs.
    Here's what I am planning to do:
    fill DEBMAS05 idoc type.
    append EDIDD.
    fill ORDERS05 idoc type.
    append EDIDD.
    I'm planning to use INBOUND IDOC Process function module to create these idocs.
    For performance reasons do you want me to call this FM twice or only once for both ( by appending EDIDD both debmas and orders records ).
    Please advise.
    Meghna

  • How to send different message types to different partners in purchase orde?

    Hi Folks,
    I have been searching the forum for my question and have not found a solution yet. Maybe there is one out there that can give the solution.
    The situation is as follows.
    PO is created and output is determined for the Vendor and medium is correctly set to 5 (External Message, PDF).
    The requirement is the be able to either manualle add a partner and enter a email address or get it via automatically determination from buyer (Pur.Grp.)
    I have made a new Message type as a copy of neu and only allowed partner BU (Buyer). However that does not seem to work
    Anyone out there that could help?
    Thanks in advance,
    Thomas

    Hi Craig,
    In the print program we call the form z_get_mail_address
        when '5'.
          data:  lvs_comm_type     type   ad_comm,
                 lvs_comm_values   type   szadr_comm_values.
      ... use stratagy to get communication type
    enhancement-section lmedruckf1o_01 spots es_saplmedruck .
          call function 'ADDR_GET_NEXT_COMM_TYPE'
            exporting
              strategy           = nast-tcode
              address_number     = lfa1-adrnr
            importing
              comm_type          = lvs_comm_type
              comm_values        = lvs_comm_values
            exceptions
              address_not_exist  = 1
              person_not_exist   = 2
              no_comm_type_found = 3
              internal_error     = 4
              parameter_error    = 5
              others             = 6.
    end-enhancement-section.
          if sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          endif.
    *Begin 27-09-2011
          perform z_get_mail_address changing lvs_comm_type lvs_comm_values.
    End 27-09-2011 xkgu
    convert communication data
          move-corresponding nast to intnast.
          move sy-repid           to xprogramm.
          call function 'CONVERT_COMM_TYPE_DATA'
            exporting
              pi_comm_type              = lvs_comm_type
              pi_comm_values            = lvs_comm_values
              pi_country                = lfa1-land1
              pi_repid                  = xprogramm
              pi_snast                  = intnast
            importing
              pe_itcpo               
    we added the following code:
    form z_get_mail_address changing lvs_comm_type type ad_comm lvs_comm_values type szadr_comm_values.
      data: c_recipient(2) type c value $R
            c_buyer(2)      type c value 'ZC',
            l_mail              like lvs_comm_values-adsmtp-smtp_addr.
      tables: pa0105.
        case nast-parvw.
          when c_indkoeber.
    Get mail address in infotype PA0150 subtype 0009.
    nast-parnr must be personal number from HR.
            select single * from pa0105 where
                  pernr = nast-parnr
              and subty = '0010'
              and begda <= nast-erdat
              and endda >= nast-erdat.
            if sy-subrc = 0.
              l_mail = pa0105-usrid_long.
              perform z_get_mail using l_mail. " some logic here
              lvs_comm_values-adsmtp-smtp_addr = l_mail.
              translate l_mail to upper case.
              lvs_comm_values-adsmtp-smtp_srch  = l_mail.
              lvs_comm_values-adsmtp-consnumber = '001'.
              lvs_comm_values-adsmtp-flgdefault = 'X'.
              lvs_comm_values-adsmtp-home_flag  = 'X'.
              lvs_comm_type = 'INT'.
            endif.
          when c_recipient
    Get mail address in PO item (EKPO-AFNAM)
            l_mail = ekpo-afnam.
            perform z_get_mail changing l_mail.
            lvs_comm_values-adsmtp-smtp_addr = l_mail.
            translate l_mail to upper case.
            lvs_comm_values-adsmtp-smtp_srch  = l_mail.
            lvs_comm_values-adsmtp-consnumber = '001'.
            lvs_comm_values-adsmtp-flgdefault = 'X'.
            lvs_comm_values-adsmtp-home_flag  = 'X'.
            lvs_comm_type = 'INT'.
        endcase.
    endform.                    " Z_GET_MAIL_ADDRESS

  • Different message type received. How?

    Hi Experts,
    Its sap to sap integration through xi.The message type send from sender sap is hrmd_a but at receiver side it is received as  hrmd_b as a result idoc failed with 51 status (error-> there are no entries available in the distribution model for the message type hrmd_a )in receiver sap system.
    I have checked in control record in XI and its hrmd_a only.
    Please help !!!
    Regards,
    Suresh.

    hi,
    >>>I have checked in control record in XI and its hrmd_a only.
    as control record has very little do to with it in XI
    check out the target IDOC (in the mapping) and it's name - probably it will be hrmd_B.something
    is it? or in the ID you've selected IDOC hrmd_B.something
    if you correct it there it will work for 100%
    Regards,
    Michal Krawczyk
    Edited by: Michal Krawczyk on Jul 16, 2009 12:32 PM

  • Need to createchange pointer with a different Message type

    Hii
    Existing Scenario :
    when i do some changes to the material characteristics through a z- transaction change pointers are created in the tables BDCP and BDCPS with message type ZVCRUMAT
    Required Scenarion :
    Now when i change the material characteristics i need change pointers to be created with message type ZMATCHG .
    Where should i do the changes to get this done .Please help .
    Thanks and regards
    Ramakanth Akunury

    Hello,
    First activate change pointers for message type ZMATCHG using BD50. Then identify the fields for creating change pointers using BD52.
    Thanks,
    Venu

  • Printing 2 different output type at the same time

    Hi,
    I need some advice on form printing.
    There are 2 forms(both are smartforms). first is printing bill of lading. second is printing packing list. Originally, these 2 forms are printed seperated via different transaction and output type.
    currently, user wishes to print the bill of lading thru vt02n, and print packing list after the bill of lading. in other word, they wish to print these 2 forms at the same time.
    i tried creating a program which include the BDC to print packing list (second form), so that later on it will be called during execution of the 1st form. i added the code in the print program of the bill of lading. However, the 2nd form is not printed.
    is there any other way to automate the printing of the 2nd form. Please advice.
    thanks in advance.

    If she simply renamed her iCloud ID, to change it on her phone all she has to do is go to Settings>iCloud, scroll to the bottom, tap Delete Account, then sign back in with the new ID name.  (Note: deleting the account only deletes it from the device, not from iCloud.  It will also delete anydata she is syncing with iCloud, but this will be synced back to her device when she signs back in.)  But before deleting the account, if she has any photos in photo stream that are more than 30 days old that are not in her camera roll or backed up somewhere else she should save these to her camera roll first or she will lose them.  To do this, open the photo stream album in the thumbnail view, tap Edit, tap all the photos she wants to save, tap Share, then tap Save to Camera Roll.
    Making this change on her phone will probably also update the account shown on icloud.com.

  • Can Same IDOC be sent to same Receiver with two different Message Mappings

    Hello Experts,
    Wierd doubt but want to confirm from you people.
    Scenario:
    One R/3 Sender
    SAP XI :
    One external Receiver :
    IDOC is sent from R/3 to external receiver via SAP XI.
    One interface has already been developed for the above scenario.
    Now client wants another interface to be developed for the same IDOC. Might be the values would be different for some specific fields.
    Doubt:
    Is it possible to send one similar IDOC to one target system with two different Message Interfaces?
    Ex: Created Message Interface 'A'  and correspoding Message Mapping with an IDOC
          Created Message Interface 'B' and correspoding Message Mappingwith an IDOC
    Values would be different in the IDOC and would be triggered from SAP R/3. Basing on the specific value of a field in the IDOC , can we trigger a different Message mapping for the same receiver?
    I donot see any reason in developing a new interface for the same IDOC but as per the situation mentioned above, can it be done?
    Thank you
    Alex.

    Create two interfaces for target side.
    If you want only one target interface should get data.
    You can use simple interface determination. Use the condition tab and specify the field there but the value should be constant. e.g. if field has value EN it should go to First interface and if Field has value != EN it should go to second interface.
    If you want to divide your message in to both target interfaces.
    Multimapping also can help but only if both of your target interface need idoc data.
    You can use ifexist standard node functions from UDF to choose between the field.
    For multimapping you can go to messages tab in the message mapping and can add interfaces using + sign.
    then when you see the design part you will see two messages.
    Now Start with receiver determination in ID and create one receiver determination for the sender and receiver, this shows you have only one receiver.
    In interface determination you have to choose extended and choose your mapping designed.
    then both your interfaces automatically would appear.
    Create two receiver agreements and one sender agreement.
    thanks
    hemant
    Edited by: Hemant on Aug 28, 2008 12:29 AM

Maybe you are looking for