Use dynamic configurations inside an abap proxy

Hi,
is it possible to set dynamic configurations inside an abap proxy?
Inside an abap-mapping I can use "CALL METHOD DYNAMIC_CONFIGURATION->SET_RECORD".
What's up with an abap proxy?
Regards
Wolfgang Hummel

Hi,
Not Possible.
Thanks!

Similar Messages

  • Dynamic Configuration from Client ABAP Proxy

    Hello Experts,
    Is it possible somehow to set Dynamic Configuration values to Message Header when calling Client ABAP Proxy from SAP system?
    Best Regards

    I managed to get the dynamic header configuration at least with inbound proxies:
        DATA:
            server_context TYPE REF TO if_ws_server_context,
            proxy_framework TYPE REF TO if_proxy_framework,
            internal_protocol TYPE REF TO if_wsprotocol_internal,
            lo_inb_pxy TYPE REF TO cl_xms_inbound_proxy_plsrv,
            lo_dyn_header TYPE REF TO if_xms_msghdr30_dynamic.
          server_context = cl_proxy_access=>get_server_context( ).
          internal_protocol ?= server_context->get_protocol( 'INTERNAL' ).
          lo_inb_pxy ?= internal_protocol->get_framework( ).
          lo_dyn_header ?= lo_inb_pxy->xmb_message->get_dynamic_header( ).

  • How to configure systems for ABAP Proxy use

    Can somebody please point me to the documentation regarding the configuration settings for the use of ABAP proxies, on both the XI and client sides? I have performed readiness checks as specified by SAP, the ABAP Proxy tests all pass, yet when I write a program with a proxy, the message does not appear in the integration engine monitor.
    I think I have missed something in configuration settings, but don't know for sure. hence the request.
    Kind Regards,
    Tony.

    Hi,
    Please follow the below configuration steps for ABAP proxy:
    ABAP Proxy configuration:
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Thnx
    Chirag

  • Change Directory Path using Dynamic Configuration

    Hi,
    We have a requirement where the directory path for placing the files is different across our different environments. Ex: Development Environment has a different path than the Quality Enviornmnet. Also the full path is depending on fileds within the message.
    I want to use Dynamic Configuration to create the Directory path. But in order to capture the full requirement I need to know wheich environment I am within the User Defined Function.
    Can someone provide me the java class and function that I can use in my UDF to read the environment I am in.
    ( Essentially I want to read Sy-SYSID in ABAP...using Java. )
    Regards,
    Arunava

    Hi Arunva,
    >>Essentially I want to read Sy-SYSID in ABAP...using Java.
    It might not be possible to read system id in java, but you can read the sender or receiver service(SENDER_SERVICE or RECEIVER_SERVICE) and based on it can decide the diretory in DynamicConfiguration.
    If you have a sender or receiver SAP sysem then better to read its name because this business systm ill haeunique name aross different environment. Check this thread too
    User-defined function: RFC call
    Regards
    Suraj

  • Problem:obtaing file name using Dynamic configuration of file adapter

    hi all
    I am using Dynamic configuration for getting file name.
    I am getting Dynamic configuration in SXMB_MONI containg file name, but payload is empty unlike file i am sending.

    Hi All,
    Basically my requirement to get Filename in idoc segments in order to validate the posting at month end.
    Its an File to idoc scenario- GL Posting.
    Please check attached UDF and it gives error. Kindly help. Thanks

  • Using Dynamic Configuration api for SOAP adapter

    I want to use Dynamic Configuration api to send a SOAP request to a webservice.
    tha value in my adapter is
    my Target URL  is
    http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet? channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true
    which is the corresponding field i have to set in Dynamic Configuration?
    I have written the following code is this right?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    String temp = "http:/"+"/sap.com/xi/XI/System/SOAP";
    DynamicConfigurationKey key = DynamicConfigurationKey.create(temp, "TServerLocation");
    String varURL =
    "http:/"+"/xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true";
    conf.put(key,varURL);
    return "";

    Hi,
    Yes, your code looks fine. Can you let me know what is the error you are getting. Have you checked the Flag in your communication channel.
    Use Adapter-Specific Message Attributes
    Variable Transport Binding 
    Once you test your scenario you can see the Dynamic URL in your message Header by going to tcode sxmb_moni. See if you are able to find something called DynamicConfiguration in your message haeader. If yes what is the value set there.
    PS: From the target URL you posted It looks like your webservice is hosted on the XI box itself. Is it the same XI box or different box? Just curious to know.
    Reward point if answer is helpful
    Thanks
    Amit

  • How to use Java code inside WebDynpro-ABAP

    Hi,
        How to use Java code inside WebDynpro-ABAP.
    Could any one provide sample code.
    Cheers,
    Sam

    Hi Sam,
    We can't Bring Java Inside the ABAP. Both are running in different Environments.
    and also ABAP Codes are runs on BASIS.
    -Basis is a middleware between ABAP codes and Ur OS.
    -Contains set of programs to load,RUN,intepret the ABAP program..
    So Both are Different.
    Regards,
    Ramganesan K.

  • Accesing Runtime Parameters using Dynamic configuration

    Hi..
    Can we access  the following  parameters from mapping using DYNAMIC CONFIGURATION key?
    <SAP:TraceLevel>1</SAP:TraceLevel>
      <SAP:LogSeqNbr>000</SAP:LogSeqNbr>
      <SAP:RetryLogSeqNbr>000</SAP:RetryLogSeqNbr>
      <SAP:QIdInternal>XBTI0001</SAP:QIdInternal>
    Please let me know how to access
    Thanks
    Ram

    Hi Ram,
        I dont think we can achieve this one,only two ways to read any values at mapping level
    1)Dynamic Configuration--Option ruled out....not possible,
    2)Write some java coding to read the value,i think this one also not work it out.
    your req unique..i am looking for answer..:)
    Cheers,
    Raj

  • Getting file directory using dynamic configuration:Code needed

    Hi,
    I need the code for getting the source file directory name using dynamic configuration. Also, an explanation on how it can be used in mapping for comparison.
    Thanks,
    Vishal

    Hi Vishal,
      Refer  carefully the following blog by micheal to get the  Attributes dynamically during runtime by enabling the Adapter Specific message Attributes in adapter level.
      /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Create an UDF in mapping with no input parameters to it and include the piece of code and use it according to your requirement in mapping.
    //write your code here
    try{
    String filedirectory    = "";
    DynamicConfiguration conf1 = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","Directory");
    filedirectory = conf1.get(key1);
    return filedirectory;
    catch(Exception e)
         String exception = e.toString();
          return exception;
    Thanks,
    Ram.

  • Proxy to file using dynamic configuration

    Hi Frnds,
    I  have a scenario ABAP_Proxy-XI-File, here in the proxy I am getting a pdf file with xml as attachment now I need to save the pdf file to the target folder with the name availble in one of the fields of attached xml file.
    I have used Adapter specific attributes option for filename substitution but getting the follwoing error:
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    Please anyone can help me in overcoming this issue.
    Regards
    shiva

    U have a limitation here. At XI u can read only 1 file (pdf or xml). Bcoz receiver file adapter will not support attachment. pdf is required bcoz u need to transfer it to receiver. Xml is also required bcoz the directory name is inside that xml
    The workaround could be creating an adpater module that passes the directory name as well. U should send pdf file with xml as attachment.
    If u have the dir name, then the dynamic configuration code should be like this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    conf.put(key,MappedDirectoryName);
    This MappedDirectoryName should be the name passed through payload. The receiver file communiation channel must have dummy dir name
    Regards,
    Prateek

  • Using dynamic configuration to modify parameter in sender channel?

    Hi,
    I would like to be able to set the filename in an SFTP sender communication channel (based upon a name determined at runtime, which is read from another file).
    My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.
    Please can someone confirm if there is a method of achieving this requirement.
    Thanks,
    Alan

    Hi,
    >>>My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.
    they can be set anywhere in the message flow - in adapter modules too for example
    >>>I would like to be able to set the filename in an SFTP sender communication channe
    you cannot set it before the adapter starts polling from anything else
    what you can do is to create a file -> java proxy (sftp) - anything flow
    read this another file first -> call SFTP from a java proxy in a sync way to fetch the second file using the name from the first one -> do anything else what you need
    you can also do the same with one adapter - axis (put the file fetching and sftp call inside one class)
    but it  requires some java knowledge - but it would work in one sender adapter in this case
    Regards,
    Michal Krawczyk

  • Get IDoc-number from flat IDoc using dynamic configuration

    Dear experts
    In an IDoc2File scenario I have added the IDoc-number to dynamic configuration using the folling code in an UDF:
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","DOCNUM");
    conf.put(FileName, a);
    The information is stored in the SOAP message
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="DOCNUM">0000000000012345</SAP:Record>
    </SAP:DynamicConfiguration>
    Can anybody tell me how I can access this information in the "variable substitution" section of the CC? Perhaps something like "message:docnum"?
    Additional information:
    Taking the IDoc-number from the payload using e.g. "payload:ORDERS05,1,IDOC,1,EDI_DC40,1,DOCNUM,1" does not work, since the XML-IDoc has been converted to an flat-IDoc.
    Thanks in advance for any good ideas
    Markus

    Dear Rodrigo and Sarvesh
    Thanks for your help so far! I applied your hints and now it is working fine.
    But now I have the following additional questions
    1.) My message mapping only maps the input IDoc to an output IDoc of the same type and structure. The MM is only required to process the UDF. Is there another, better solution to achieve my requirement that the IDoc-number shall be part of the filename?
    2.) In the CC you have the possibility to use temporary files (section "Processing", Option "Put File" = "Use Temporary File". I think this will not work with the given solution, will it?
    To possibly help somebody else or clarify the mechanism once again, I wrote down how my solution now looks like.
    My UDF in the message-mapping looks like this
    - Input = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - Outpt = DOCNUM of IDoc, e.g. ORDERS05/IDOC/EDIDC/DOCNUM
    - UDF:
    public String putDynamicConfiguration(String docnum, Container container) throws StreamTransformationException{
    try
         DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
         DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
         String filename = "Prefix_" + docnum + ".txt";
         conf.put(key, filename);
         return docnum;
    catch (Exception e)
         return docnum;
    In the CC the settings are now as follows
    File Name Scheme = . -> only a dot or something else, because this field is obligatory, even if it is not used in this case.
    Variable substitution (...)
        Enable -> unchecked
    Adapter-Specific Message Attributes
        Use Adapter-Specific Message Attributes -> checked
        Fail If Adapter-Specific Message Attributes Missing -> checked
        File Name -> checked
        Directory, File Type, Temporary Name Scheme for Target File Name -> unchecked
    When I send an IDoc to PI and view the Adapte-Engine Version of the message (the SOAP-document, not the payload) I can find the Filename:
    <SAP:DynamicConfiguration SOAP:mustUnderstand="1">
    <SAP:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">Prefix_0000000000012345.txt</SAP:Record>
    </SAP:DynamicConfiguration>

  • Dynamic Configuration - CC Receiver - Abap Mapping

    How can I add info in the xml message in Dynamic Configuration from Abap Mapping ?
    Thanks in advance.

    Hi,
    The following should do the trick:
    data: l_dyn_record type MPP_DYNAMIC.
    l_dyn_record-namespace = 'http://sap.com/xi/XI/System/File'.
    l_dyn_record-name = 'FileName'.
    l_dyn_record-value = 'myFileName'.
    CALL METHOD dynamic_configuration->add_record
      EXPORTING
        record = l_dyn_record.
    Regards,
    Daniel

  • Problem with Configuration in Production ( ABAP Proxy - XI - FILE)

    Hi All,
    I have a ABAP Proxy -> XI -> FILE scenario wich is working perfectly in DEV and QAS environment.
    When the person responsible for transporting tried to transport the objects in QAS to PRD, the following error happened:
    Direction of communication channel |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA is incorrect.
    Correct the direction or choose another communication channel
    BS_MA_FileServer_PRD - Business System (FILE)
    CC_File_PedidosServ_MA_FileServer_IA  - My FILE Communication Channel
    This was what the Basis person sent to me. I don't have access to know exactly what happened. And I really don't know what could be wrong or if maybe a component was created wrongly in Production.
    Hope you can help.
    Points will be given.
    tks.. Daniela

    You have mentioned FILE is on the receiving side and ABAP proxy is on sender side.
    But the error pasted by you clearly shows syntax of a Sender Agreement .
    For receiver agreement it should be |<Sender Service>| |BS_MA_FileServer_PRD | CC_File_PedidosServ_MA_FileServer_IA
    Bipin

  • Receiver File Error while using Dynamic Configuration

    Hi All,
    My Scenario is from SAP IDOC --> PI --> FIle...
    In the mapping i have used the dynamic variable substitution for the receiver file....
    The Dyanamic file will be alwasy generated irrespective of the condition for the Mapping...
    Now Whenever SAP sends IDOC then file to be created . If the condition is met then there is no problem the file is being created...
    But if condition is not met then the error is being thrown in the Communication Channel...
    Error occurred while connecting to the FTP server "10.1.999.222:21": java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
    Note the payload has the dyanmic file generated....
    And when i tested the mapping by coping the payload then
    I am getting the target with empty ...but with MT_ProductMaster node...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ProductMaster xmlns:ns0="http://xyz/Ix_ProductMaster/WMS"></ns0:MT_ProductMaster>
    and the error i think bcz of this payload ... but i dont have any option to remove this .... because if condition not met then the root node always will be created...
    In CC File  Content conversion i have given like this
    Record setStructure  FileHeader,FileDetail,FileTrailer
    FileHeader.fieldSeparator |
    FileHeader.endSeparator |'nl'
    FileDetail.fieldSeparator |
    FileDetail.endSeparator |'nl'
    FileTrailer.fieldSeparator |
    FileTrailer.endSeparator |
    and my MT structure is
    MT_ProductMaster 1.1
    FileHeader  0...1
    FileDetail 0....unbounded
    FileTrailer 0...1
    Please help me on how to ignore the empty root node... do i need to handle something else???
    Regards,
    Sridhar Reddy

    Hey
    Record setStructure FileHeader,FileDetail,FileTrailer
    FileHeader.fieldSeparator |
    FileHeader.endSeparator |'nl'
    FileDetail.fieldSeparator |
    FileDetail.endSeparator |'nl'
    FileTrailer.fieldSeparator |
    FileTrailer.endSeparator |
    and my MT structure is
    MT_ProductMaster 1.1
    FileHeader 0...1
    FileDetail 0....unbounded
    FileTrailer 0...1
    of course you will get error in content conversion if file is missing any of the parameters expected by FCC.
    Right now the Content conversion is expecting several values in your payload(even if blank values) but you don't have any of them hence you get this error.
    If you want to deliver empty file,you need to map all the receiver side nodes to some default,so that it is populated to that default (could be blank) if no values are present,then when this comes to content conversion,it will assume the blank value as node and do correct conversion.
    If you dont have values in payload but have specified parameters for it on content conversion,then you will get errors as you mentioned in your first post.
    Thanks
    Aamir

Maybe you are looking for

  • [Solved] No AIGLX after recent update (xf86-video-ati)

    Hey there, I was wondering why gnome3 wasn't working in full mode so I played around a bit and finally updated my xorg-server to 1.10.* along with all of my graphics drivers. Now I don't have opengl support anymore. Before gnome3 I was running compiz

  • ITunes Won't Open After Upgrading

    I have tried everything mentioned in the other threads but nothing seems to work for me. Everytime I open itunes it would show the hour glass then the hour glass would just go away and nothing happens, when i check my task manager, itunes is running

  • Hide one layer, and remove the visible layers using preflights!

    Hello, I have one pdf (with one layer called "ARTWORK")  in which I create a layer using Javascript. To do this I create a watermark and asigning it to a OCG contents with this code: this.addWatermarkFromText("watermark"); this.getOCGs(); function Fi

  • How to allow users to record new lines in an input ready query?

    Dear All, I am using BI integrated planning (NW2004s) and I would like to create an input ready query with account numbers in the rows. I drag 0ACCOUNT into the line field in the BEx Analyzer which has many individual values in the relevant filter. I

  • When Coherence security is enabled there is a significant performance hit

    When Coherence security is enabled, every call to do the cache operation do a security check. This is negatively impacting application's performance. I'm using the built in DefaultController & java keystore login. Is there any workaround so that the