How  we can mention varible substitution for diffrent message payloads

Hi,
How  we can mention varible substitution for diffrent message payloads,
My sceanrio like following,
According the Outbound idoc message,based on the condition the messages to be split into 9 diffrent files.The sender message may or may not satisfied the condition to one or two messages or  all messages.
I done the mapping 1:N multimapping in messagemapping & Interface mapping too.
In reciever file adapter i put the variable substiution like as fallows.
Variable            Refrence
Name--            -
Filename -- payload:message_type_1,1,Segment1,1,Segment2,1,Field_1,1
<b>How we can mention variable substitution for remaining messages in the same communication channel.my message type names are diffrent for all 9 messagetypes.</b> Any ideas pl forward..,
When i am testing this scenario,able to processing a one file but the file is not placed in the specified target & gives the follwing error:
'Conversion configuration error: Unknown structure 'ns1:message_type_2' found in document', probably configuration error in file adapter (XML parser error)'.The file is
In this case Idoc data satisfied the one message condition only.
If any ideas & suggestions ..?

Hi Anjan
You could always put the "FileName" and "Directory" names into the Dynamic Configuration using a UDF in the map - possibly using a value mapping table to determine the correct values. Then simply reference "%Directory%" and "%FileName%" in the file adapter.  This way you do not have to reference payload variables and you set the names in the map. You will need to tick the box for "use adapter specific message attributes" in the file adapter. you UDF code will look something like
String dir = "/path";
String fil = "filename.txt";
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
conf.put(key,dir);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,fil);
- Stephen

Similar Messages

  • How we can find BAPI's for a transactions?

    hi
    how we can find BAPI's for a transactions?
    thanks in advance

    hi,
    use this function module SXV_GET_CLIF_BY_NAME
    function sxv_get_clif_by_name .
    ""Lokale Schnittstelle:
    *" IMPORTING
    *" VALUE(NAME)
    *" VALUE(PREFIX) TYPE SEEX_CLIF_PREFIX
    *" EXPORTING
    *" VALUE(CLIF) TYPE SEOCLSNAME
    call function 'SXV_ADD_PREFIX'
    exporting
    name = name
    prefix = prefix
    importing
    new_name = clif.
    endfunction.
    debug the function module you will get name of bapi  , badi  used for transaction  which ever operation you perform
    it will call this function module and will give you name 
    regards
    Deepak.

  • I want to know that i have recently create an apple id, i want to know that how i can use this id for gsx(without paid) or how to use this id for knowlaged

    i want to know that i have recently create an apple id, i want to know that how i can use this id for gsx(without paid) or how to use this id for knowlaged  
    pls give braef intro about all this things, i have searched on sites but i am not getting exact thing and meaning pls help
    and i wnat to complete hardware exam of mac what should i do
    thanks
    vicckey

    GSX, if you're referring to Apple's service by that name, is available only to employees of Apple-authorized service providers or self-servicing accounts. Unless you are employed by such an organization, you cannot access GSX. If you are employed by such an organization, they should set you up and give you the appropriate login information.
    If you are interested in becoming a certified Apple hardware technician, you can find information here:
    http://training.apple.com/certification/acmt
    Please note, though, that certification does not in and of itself give you access to any of the Apple resouces for support organizations; diagnostic tools, parts ordering, etc. You again must be employed by an authorized Apple support provider before you can gain such access.
    I have no idea what "knowlaged" might be.
    Regards.

  • How I can allow always and for all sites full-screen mode?

    How I can allow always and for all sites full-screen mode?
    And I want choose anywhere option "never show notification about full-screen mode" (screenshot attached)
    RUS
    Как я могу всегда разрешить и для всех сайтов полноэкранный режим?
    И я хочу выбрать где-нибудь опцию "никогда не показывать уведомление о полноэкранном режиме" (скриншот приложен)

    There is a preference setting on the <b>about:config</b> page that is meant for developers and testers to make this possible, but it is not meant for normal users.
    *full-screen-api.approval-required = false
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • How I can make an application for android from director?

    I have a project done in Director 11.5 how I can convert an application for android?
    What I have to do?

    Estas en el Foro de Usuarios en Español.
    Consultando esta página:
    Adobe Director
    Parece ser que se crean ejecutables que requieren Shockwave Player:
    What is Adobe Director 12?
    Adobe® Director® 12 and Adobe Shockwave® Player software help you create and publish compelling interactive games and eLearning courses for the web, iOS devices, Mac and Windows® desktops, DVDs, and CDs. Integrate virtually any major file format, including FLV, swf and native 3D content.
    No veo que sea compatible con Android.

  • HT204380 How i can install face time for my iPhone 4s & iPad 2 . Im living in UAE

    How i can install face time for my iPhone 4s &amp; iPad 2 . Im living in UAE

    FaceTime has been banned in UAE, it can not be installed.  

  • How i can unblock my iphone for use in mexico?

    how i can unblock my iphone for use in mexico?

    Only your carrier can unlock a phone - Apple and you can't.  See them.

  • MP3:  How large can import file be for 4 GB Nano?

    I am having trouble importing one particular MP3 file, 74,000 kb, into my my 4GB, which is only filled to 1.3 GB. Is the file too big? It's an audio book.

    The thread title "How large can import file be for 4 GB Nano?" is something of a give-away, no?

  • How I can make an account for the app store Spain without credit card?

    How I can make an account for the app store Spain without credit card?

    Follow these instructions and open an iTunes account. Then use that same account to get free apps from the Mac App Store.
    Create an iTunes App Store account without a credit card
    http://support.apple.com/kb/ht2534

  • Hi experts, how i can make confirmed quantity for the same day ???

    Hi experts, how i can make confirmed quantity for the same day ???
    regards,
    uday

    Hi Joao/ Phani,
    I have created a sales order in my IDES system with VA01 today and the delivery dates is confirmed for tomorrow ie 21st.
    My Question is how can i change the confirmed delivery date for the same day ???

  • Does any1 know how I can purchase a motherboard for iphone4??? Need help

    Does any1know how I can get a motherboard for iphone4? Help needed

    no official place
    https://www.google.dk/search?source=ig&hl=en&rlz=1G1TSEH_ENDK367&q=motherboard+f or+iphone4&oq=motherboard+for+iphone4&gs_l=igoogle.3..0i13l2j0i13i30j0i13i5.8784 94.878494.0.878758.1.1.0.0.0.0.114.114.0j1.1.0...0.0...1ac.1.Zgt1ZHjo8pQ

  • How I can do data management for classification ?

    Hi
    How I can do data management for classification.
    If I have new class and I want to add this class to a lot of materials, how can I do that? Is there a transaction to add and also to manage the data in the classification by mass?
    Vijay

    CLMM is the transaction for mass maintenance.
    there you click set an change values button
    you enter your class type.
    in assingments tab you enter the new class
    in target objs to enter the material number that need to get this new class assigned. (you can search the materials with the class they have currently and adopt the hits)

  • How we can check unicode check for function-pool.

    hi experts,
    how we can check unicode check for function-pool.
    pls tell needy.
    regards,
    praveen

    You can check the Unicode in the function group or use transaction UCCHECK

  • How I can make an ibook for iphone?

    how I can make an ibook for iphone? when I export my book, the iphone says that the format is just for ipad

    You need to recreate your book in .epub format.  The apple app for that is Pages. 

  • HT3529 How do I set a signature for text messages?

    How do I set a signature for text messages?

    You can set a signature in Mail but not in Messages.

Maybe you are looking for