Accessing Adapter Specific Attributes from ABAP proxy

Hi,
Now i have a scenario from where i take a file from FTP and send it to ERP by proxy. While taking the file i am taking also the file name by setting adapter-specefic message attributes -> File Name. So the file name appears inside the SOAP Header. Now how i am going to use the file name in my ABAP code on the SAP side.
Thanks.
Arman

Hi Arman,
Follow this link:
The specified item was not found.
Your case is very similar to that one. Extract file Name from SOAP Header and then map it into any
field of your proxy.
Carlos

Similar Messages

  • Multi-Message-split with ABAP mapping and adapter specific attributes

    Hi all,
    With <b>ABAP-Mapping I split 1 message to n messages</b>.
    So many files are generated in <b>file-Adapter</b>.
    Everything fine.
    But now I want the file names different using adapter specific attributes.
    It is not possible to use variable substitution and write the file name in payload because of receiver restrictions.
    I tried this with following similar coding in ABAP-Mapping:
    data: lt_records TYPE MPP_DYNAMIC_TAB.
          Loop.
          l_file_name = "payload-Inbound"-information
          ls_record-namespace = 'http://sap.com/xi/XI/System/File'.
          ls_record-name = 'FileName'.
          ls_record-value = l_file_name.  "l_file_name comes from inbound-payload
          append ls_record to lt_records.
         Endloop.
      CALL METHOD dynamic_configuration->set_all_records
        EXPORTING
          records = lt_records.
    If I start the interface I see in the monitoring the dynamic configuration with many entries for file-name in the the SOAP-Header mapping of the request message (following extract):
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Mapping der Request-Message
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPAADDRESS.XML</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPABROKERROLE.XML</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPACOMPANYSEGMENT.XML</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">BPACUSTOMERROLE.XML</SAP:Record>
    The result is that <b>all files have the same file name</b> (last entry in dynamic configuration).
    Is it possible to write the adapter specific configuration in ABAP-mapping <u>for every single result message</u>??
    Thank you for your help,
    Florian

    Hi Florian,
    I've a different idea...I dont think its a "right solution" but just another work around..it involves a BPM...
    In your ABAP mapping..set the dynamic config with as many variables as number of different messages...i.e. use the variables like 'FileName1', 'FileName2'...'FileName6' instead of 'FileName'. But use the same namespace 'http://sap.com/xi/XI/System/File'
    Call the above mapping in a BPM and capture the individual messages and set the attribute 'FileName' from the values of 'FileName1' to 'FileName6' accordingly using Message Mapping and then send the message using the 'Send' step.
    before you try this, try using the variable names 'FileName1' ...'FileName6' in the receiver adapters...enable the ASMS. <b>I know we need to select which variables from the dynamic config to be used by the adapter by specifically selecting 'FileName', 'Directory' etc...but just give it a try and see if it works..</b>
    Or..instead of using a BPM..you can combine Henrique's idea...use Adapter module to set the value for 'FileName' from variables 'FileName1'...'FileName6' accordingly.
    hope I'm clear..lemme know if you have any questions..
    cheers
    praveen

  • Using Adapter-specific attributes in Mail adapter

    Hi,
    I try to use adapter-specific attributes in my Mail adapter. I set the "Use Adapter-Specific Message Attributes" indicator, but I do not get a result in the mapping and also in the SXMB_MONI the attributes are not visible.
    The documentation also refers to Variable Transport Binding indicator:<a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm</a>
    Could this be the problem? I cannot find this indiciator! Does anyone know where I can find this indicator?
    Regards,
    Torsten

    Hi,
    The values for the parameters, set using adapter specific message attributes are available at runtime in the path http://sap.com/xi/XI/System/Mail.
    We need to write UDF's that can extract the values from this path.
    For Ex:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters() .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
        “http://sap.com/xi/XI/System/File”,
        “FileName”);
    String valueOld = conf.get(key);
    if (valueOld != null) {
        String valueNew = valueOld.replaceAll(“input”,”output”);
        conf.put(key, valueNew);
    If you check Dynamic configuration in sxmb_moni, you would be able to find the values for all the attributes that have been set in the adapter.
    Regards,
    Smitha.

  • Accessing Adapter specific message in Module

    Hi ,
          I am developing a module to set the content type in the mail adapter. I need to determine the content type based on the file name. If I am sending a PDF, then i need to set the content type as "application/pdf". I also need to set the file name.
    I have enabled the adapter specific attribute in the sender file adapter. How to access the adapter specific attribute in the module.
    With regards
    K.Varadharajan

    Hi,
       Now i am able to determine the file name using getMessagePrperty(). But i am unable to set the file name to the payload. The Payload it self comes as an attachment. The attachment name is some thing as shown below
    " [email protected]"
    We used SetName property also, but it is not working
    Does anyone know how to resolve the problem
    With regards
    K.Varadharajan

  • Adapter specific attributes - SOAP Adapter

    Hi,
    I am trying to use the adapter specific attributes of the receiver SOAP adapter. But I am not able to view the Dynamic configurations in sxi_monitor corresponding to this message. Any clue why!?
    I read through the SOAP adapter help on help.sap.com,
    <i>http://help.sap.com/saphelp_nw2004s/helpdata/en/69/a6fb3fea9df028e10000000a1550b0/frameset.htm</i>
    Here it says:
    <i>If you want to use header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, XHeaderName3. The parameters are embedded in the HTTP request under the names you enter here.</i>
    But I donot find an option where I can enter the names. Am I missing something here?
    Regards,
    Smitha.

    Hi Smitha,
    I did not try to use adapter-specific attributes with SOAP-adapter, but with mail-adapter. The documentation is quite similar, so I excpect similar results...
    So as far as I understood, the parameters XHeaderName1, ... etc are for dynamic extension of the set of adapter-specific attributes. For example, if you want to add some more information in the message header, you can program an adapter module and you have now a guide how to name the additional attributes.
    Usually, the "standard" adapter-specific attributes are starting with "S" (Sender) or "T" (Receiver). You can find the names in the documentation of the SOAP-adapter.
    In order to use the adapter-specific attributes, you have to check both indicators (adapter-specific attributes, variable transport binding). If this still doesn't work, you should use OSS. In my scenario (mail adapter) this didn't work, too. The reason was, that there was a bug in the adapter metadata (Integration Repository) of SAP BASIS. There was a SAP note, where I could download the correct adapter metadata. Maybe you can find a SAP note for the SOAP Adapter.
    Although this is probably not the final solution, I hope this guides you a step further.
    Regards,
    Torsten

  • Custom user attribute from ABAP to Portal UME

    Hi All,
    We have choose the ABAP as the data source for portal UME. We have a custom user attribute in the abap. Now i want to bring that custom user attribute from abap to custom user attribute in the UME.
    Any help will be rewarded.
    Thanks
    Sarang.

    Any resolution to this issue?

  • Adapter specific message attributes in ABAP proxy

    Dear all,
    i have a short question. I have a file to ABAP server proxy scenario. When picking up the file i write communication data from the adapter in the message header using dynamic configuration and route the message to a abap proxy.
    My question is: Do i have access to the header data in the proxy, or do I have to make a message mapping and put the header data into the payload of the message?
    Kind regards
    Florian

    Hi,
    here is a blog about your scenario:
    File to R/3 via ABAP Proxy
    Hope it helps.
    Regards
    Patrick

  • How to access Adapter Specific Message Attribute in my  own adapter module

    Hi,
    I'm developing a mail adapter customer module. Now I have a requirement about getting the CC information from mail. Even if I
    checked the option of "use mail package" when configing sender Mail Adapter, I still can not get CC information in my module
    because it is not included in mail package.
    I got to know CC information is included in ASMA(Adapter Specific Message Attribute), but how can I access ASMA in my module?
    Till now I know there are two ways to access ASMA
    1. use AF_Modules/DynamicConfigurationBean XI standard module to access ASMA.I did it as below:
    add this module in front of my own module, then set key: write http://sap.com/xi/XI/System/Mail SHeaderCC and value :      
    <b>message.refToMessageId</b>(which message property should be put here?). I'm trying to get it by message.getRefToMessageId() in my
    own module. But what happens is not as I expected, I get null instead of CC information. Which step I did wrong?
    2. use mapping api
       DynamicConfiguration conf = (DynamicConfiguration) <b>container</b>
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
         DynamicConfigurationKey key = DynamicConfigurationKey.create(
             “http://sap.com/xi/XI/System/Mail”,
             “SHeaderCC”);
    but how can I get <b>container</b> object in my module?
    Is there any other way to access ASMA in customer module?
    Thanks

    hi,
    >>>>but how can I access ASMA in my module?
    have a look at this blog:
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    and try getMessageProperty
    it's also here:
    in Adapter-Specific Message Attributes link
    http://help.sap.com/saphelp_nw04/helpdata/en/17/50d440e14f8431e10000000a1550b0/frameset.htm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Adapter-Specific Attributes Retrieval

    Hello,
    I am trying to retrieve the filename from the sender message type to be used in the mapping. In order to achieve this I ticked the Adapter-Specific message properties on both Sender and receiver CC. I created a user-defined function FilenameY with the following code to retrieve the file name. I am not importing any packages.
    //write your code here
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName; 
    Unfortunately I am getting the following message when I test mapping TESTMsgMapping. Any ideas why this is happening?????
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._TESTMsgMapping_ method FilenameY$[com.sap.aii.mappingtool.tf3.rt.Context@32a38dfd]
    Thank you
    Kathir

    Hello Saravana,
    That is right we will only get the attribute values at Runtime (we cant test the mapping fully at designtime) but the problem is that I am getting a similar error message at runtime.
    During the application mapping
    com/sap/xi/tf/_TESTMsgMapping_ a
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    was thrown: RuntimeException in Message-Mapping
    transformatio~
    So I thought the above problem at runtime was down to the message during the message mapping. I am not using any parameters to pass values to the function or using any packages either. Any comments will be gratefully accepted.
    Thank you
    Kathir

  • Tags dont appear in XI from ABAP Proxy!!

    Hi,
    I have an interface which receives the data from SAP to XI via ABAP proxy. There are some fields in the structure which are mandatory in XI and the values are not been passed from SAP. As a result, the tags dont appear when the message enter XI and this results in the message mapping failure.
    As a workaround, we are checking for the existence of this field in the incoming message and assigning some constant value to it.
    But is this, the only option? do we have any better approaches to tackle this?
    Thanks for all your inputs,
    Regards,
    Vinayak Kamath

    Hi Vinayak,
    <i>There are some fields in the structure which are mandatory in XI</i>
    In XI, we make the fields mandatory based on the requirement and business rules of the sender side. If u r making it mandatory, that means the sender has requested u to do so. This implies that the sender should send the data according to the specifications it has provided to XI implementer.
    So either request the sender to send data according to its specification or change the structure in XI.
    If u couldnt do either, handling it in message mapping is good enough.
    <i>
    do we have any better approaches to tackle this?</i>
    U may also configure alerts for the same
    <i>[Reward if helpful]</i>
    Regards,
    Prateek

  • How to extract attachment from ABAP proxy and store in archive link....

    Hi Experts,
    I need to consume an incoming email attachment in the ABAP Proxy program (POP Mail  --> PI --> ABAP Proxy) and then store this file in the IBM content management server through the Archvie Link connection.
    Any idea how to implement this piece of code in ABAP?
    Regards,
    Shobhit

    Hi Shobhit
    You can get the files from Sender Mail adapter. In proxy implement the method of protocol IF_WSPROTOCOL_ATTACHMENTS as said above.
    Archive Link supports HTTP, RFC etc depends on the system you are going to use for archiving. For your case you have IBM server i think you have to do HTTP synchronous. This will be like an interface again for you.
    Why are you using ERP system in middle. I think you can directly dump data to IBM server.
    Thanks
    Gaurav

  • Where is the Set Adapter Specific Attributes indicator on the comm channel?

    I really think I must be losing it guys.
    We are SP16, we went directly to SP16 from 9, so we skipped over SP14.
    When I go into a communication channel and choose an adapter(File) for instance. I cannot find the Set adapter-specific message attributes indicator anywhere!
    Someone please tell me where it is located! If possible please send a screenshot to [email protected]
    Thanks,
    chris

    Hi,
    did you reimport SAP BASIS component to IR ?
    just like specified in question 3 (adapter section)
    in the XI FAQ?
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    Regards,
    michal

  • Receive CSV attachment via Mail Adapter and process into ABAP proxy

    Hi,
    I have the following scenario:
    1. Receive e-mail with CSV attachment
    2. Process through Mail adapter (KeepAttachments = Yes in order to retain the CSV attachment)
    3. Receive into ABAP proxy (with CSV attachment)
    The next step is to read the attachment in the ABAP proxy and process the CSV attachment data into CRM.
    The CSV attachment contains the data I wish to process - the body of the e-mail will not contain this information.
    The problem I have is reading the attachment data in the proxy - not sure of the methods/class to call - anyone got any ideas ?
    Another question is this the best way to do this and process the CSV attachment data ?
    I know I could use the PayloadSwapBean to switch the payload to the attachment but then I am stumped with how the attachment is processed through PI 7.1 - how do you transform the CSV format payload into XML so PI will be able to process it through mapping.
    Either option is viable - an answer to either question would be great.
    1. How do you read the attachment data in an inbound ABAP proxy ?
    2. How do you transform the CSV attachment data after the PayloadSwapBean from CSV to XML ?
    Kind regards
    Colin.

    Hi Colin
    As you are not interested in processing the body of email. Swap the payload to the attachment using the PayloadSwapBean
    Change the content from CSV to XML using MessageTransformBean. Now pass this information to Proxy. You dont need to deal with attachments in proxy.
    It is not possible to read attachment in server proxy because the class and interface you create will not have data type which can refer to an attachment processing interface in ABAP.
    Thanks
    Gaurav

  • Possible to set Dynamic Config from ABAP Proxy

    Hi,
    I know how to get and set Dynamic Config from Java/XSLT mappings and adapter modules. But I want to do this from an outbound ABAP Proxy Call (in the same way I can set the serialization context for EOIO), is that possible?
    The scenario is: I have an interface; Proxy -> Xi -> ftp, with no mapping. It seems unnecessary to introduce a mapping just to set some dynamic config values for the receiving adapter which are already known at the outbound proxy call...
    rgds Johan

    Hi Bhavesh,
    In the thread you mention it is shown that you can set Dynamic Config properties during an ABAP mapping. My question was if I can set these properties already in the proxy call? Or did I miss something?
    Of-course I can introduce a dummy mapping in Java/XSLT/ABAP which copies the source message to the result message and sets the dynamic config properties, but I would rather not introduce a mapping if not neccessary...
    rgds Johan

  • API for access of guided procedure from ABAP / WebDyn: change/read status

    Hallo together,
    I'm very new to guided procedure and have some questions about possible interaction between WebDynpro ABAP and Portal guided procedures (UWL ?)
    is it possible to access a guided procedure or their attributes from WebDynpro ABAP? What are the relevant key attributes (ID's) to do so?
    Is is possible to change the status of a guided procedures f.e. from "completed" to "ready" from outside, let say WebDynpro ABAP? for the purpose of a monitor for mgrs.
    - possible szenario is a manager says: "no, not well done" go back to start and do it again !
    - another szenario: guided procedure is "running" and should be set to "completed"
    Any hint will be helpfull
    Thanx very much in advance
    regards Hans

    Hi Hans,
    There is a good and a bad news regarding APIs for GP and ABAP Web Dynpro and GP:
    The good news is that you can find [here|http://help.sap.com/javadocs/nwce/current/gp/index.html] the APIs for GP.
    The bad news is that the cooperation capabilities between GP and ABAP Web Dynpro are restricted in a certain way. One can use a ABAP Web Dynpro in GP as callable object, but GP is only capable to transport parameter values from GP to the UI but not vice versa. In many cases one needs a solution where the ABAP Web Dynpro UI accepts user inputs and forwards them to the GP context. This is not supported.
    Regards,
        Jan

Maybe you are looking for

  • DPM Express Full Backups Causing SQL timeouts

    Hi, We run a SQL 2008 R2 failover cluster on Server 2008 R2 SP1 connected to an Equallogic SAN. The SQL failover cluster is fully servicepacked and installed the latest cumulative updates.  We have all our databases in full recovery mode and protecte

  • FRM-92100 : Connection was interrupted

    I wonder if someone can help us with this problem. We tried our own forms application running on the web - calling a java bean and got it. Then we tried Oracle example: GetClientInfo and got it to work on one machine. We checked all the paths on our

  • Struts-logic, notEqual, compare null variable

    I would like to request advice using struts-logic. I have Jakarta-struts-1.0.2 working with JavaBeans on Tomcat 4.1 / W2K. The tags below should not print the value if the value (from a database) is null. The following tags: <logic:notEqual name ="bo

  • Problems with rendering to MPEG 2

    I'm working on After Effects 7 on Windows XP on a Dell inspiron 9100 The file format is 1024 by 768 pixels and the work includes sound. The final project is to be played on a flash card which takes MPEG2. I can't output my file as an MPEG2 as After e

  • Firefox refuses to shut down in task manager

    Even with upgrading java and flash. Firefox 6 STILL refuses to completely shut down without restarting. When will you have the REAL fix ready? I have win xp mce and the current gurus have no idea what to do next