Access to ASMA FileName in a own module in a scenario without IR

Hi experts,
I have a scenario with only ID (no IR) in which I get a PDF file from file system and put it on a SFTP server with a SFTP module created for this reason.
So scenario has a sender CC for polling and a receiver CC with module SFTP for putting the file.
Obviously filename placed in SFTP server must be the same of filename get from file system (in fact is the same file), so I have flagged ASMA FileName parameter.
My problem is that I must pass ASMA FileName to my module.
My question is:
Is possible to read the value of ASMA FileName in my own SFTP module? or to pass it like a variable?
Thanks
Fabio

do go thru this - how to access Adapter Specific Message Attribute in my  own adapter module
you can indeed access ASMA in the module - /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules

Similar Messages

  • Accessing dynamically configured filename inside adapter module code.

    Hi,
    I am having a requirement where i have to access the filename configured using Dynamic configuration inside my receiver file adapter MODULE code.  I am having PI7.1.
    For accessing the DC filename i have inserted this piece of code inside my adapter module code:
    MessagePropertyKey MPK =new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File");
    String filename = msg.getMessageProperty(MPK);
    But when i am tesing this module i am getting: "Message processing failed. exception encrypting session key".
    This module is basically written for encryption.I am referring this blog:
    /people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules
    Do i  need to do something else for accessing DC filename inside my module??Please help??
    Thanks
    Amit

    Hi,
    My code is something like this:
    public ModuleData process(ModuleContext mc,
                   ModuleData inputModuleData)
                   throws ModuleException {
            Object obj = null;
             Message msg = null;
             MessageKey amk = null;
             String inpKeyLocation = (String) mc.getContextData("inpKeyLocation");
                try {
                  obj = inputModuleData.getPrincipalData();
                     msg = (Message) obj;
                  amk = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
                    XMLPayload xpld = msg.getDocument();
                  MessagePropertyKey mpk = new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File");
                  String filename = msg.getMessageProperty(mpk);
                  InputStream inps = (InputStream) xpld.getInputStream();
                                        and so on ......
    My encryption method somewhere down the line will use "filename" as one of its input.
    Please help??
    Thanks
    Amit
    Edited by: AmitSri on May 25, 2010 1:43 PM

  • Can we enhance the Sender SOAP Adapter with our own modules?

    Hi All,
    Can we enhance the Sender SOAP Adapter with our own modules on the Module Tab Page in the Module Processor?
    I believe the answer is no. However, whatever may be the answer, I would like to know that is there any specific reason for that.
    Please help me in this regard.
    Thanks,
    Yogi.

    Hi,
    I think, we are mentioning the URL of the adapter channel directly in the configuration. SO there is no place we can customize this flow..just a thought
    Because in the file adapter etc, After Adapter Engine picks up the data and before it goes into integration engine module is processed..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    Rgds,
    Moorthy

  • The application has accessed a fund managements or cash mgt module with par

    When I am trying to post a entry Mesage appears F1030
    The application has accessed a fund managements or cash mgt module with parameters missinfg or defective
    Please solve

    Hi,
    This error occurs when you post data which is not related to that specific company code.
    post the correct data and check.If the problem still exits.Please clearly explain the problem.
    Thanks
    micheal

  • How do I tell how many access points I have online? WISM module in 6509

    Does anyone know a way to view how many access points are online using the WISM module or another software tool. I know CiscoWorks will acccomplish this but it is too expenseive.

    Hi Rick,
    You can use this command :)
    show ap summary
    Hope this helps!
    Rob

  • I'm having a real problem with my cursor which seems to have developed a mind of its own, zigzagging allover, highlighting things without my command, and basically making my MacBook unuseable (it's taken me half an hour just to compose this!).

    I'm having a real problem with my cursor which seems to have developed a mind of its own, zigzagging allover, highlighting things without my command, and basically making my MacBook unusable (it's taken me half an hour just to compose this!).

    There are several possible causes for this issue. Please take each of the following steps that you haven't already tried until it's resolved. Some may not apply in your case.
    1. Follow the instructions in this support article, and also this one, if applicable. A damaged or defective AC adapter could be the cause, even if it's the right kind.
    2. Press down all four corners of the trackpad at once and release. If there's any effect, it's likely to be temporary, and in that case the unit must be serviced or replaced.
    3. Open the Bluetooth preference pane in System Preferences and delete all pointing devices other than the trackpad, if applicable. Disconnect any USB pointing devices. By a "pointing device," I mean a peripheral that moves the cursor, such as a trackpad, mouse, trackball, or graphics tablet. A plain keyboard is not a pointing device.
    4. Start up in safe mode and test, preferably without launching any third-party applications. If you don't have the problem in safe mode, but it comes back when you restart as usual, stop here and post your results. Do the same if you can't start in safe mode. If there was no difference in safe mode, go on to the next step.
    5. Reset the System Management Controller.
    6. If you're using a Bluetooth trackpad or mouse, investigate potential sources of interference, including USB 3 devices.
    7. A swollen battery in a portable computer can impinge on the trackpad from below and cause erratic behavior. If you have trouble clicking the trackpad, this is likely the reason. The battery must be replaced without delay.
    8. There's a report that a (possibly defective) Thunderbolt Ethernet adapter can cause the built-in trackpad of a MacBook to behave erratically. If you're using such an adapter, disconnect it and test.
    9. There's also a report of erratic cursor movements caused by an external display that was connected but not turned on.
    10. If none of the above applies, or if you have another reason to think that your computer is being remotely controlled, remove it from the network by turning off Wi-Fi (or your Wi-Fi access point), disconnecting from a Bluetooth network link, and unplugging the Ethernet cable or USB modem, whichever is applicable. If the cursor movements stop at once, you should suspect an intrusion.
    11. Make a "Genius" appointment at an Apple Store to have the machine and/or external trackpad tested.

  • I would like to be able to open up facebook and access the game Double Down Casino.  Can I do this without downloading an app?

    I am a new owner of an iPad!  So excited!
    Please help with a few questions:
    1.  Can I access the games Double Down Casino, Song Pop, etc. through facebook without downloading an app?  Every time I open fb and try to open these games, an app option pops up.  My friend has an iPad and downloaded the app, but cannot open the entire game using the app.  I want to have access to the entire game floor and be able to open gifts, etc. within the games, like I can on my pc.
    2. I would like to link several different email accts to the email app.  Can I do this, then choose the one I'd like to open?
    3. I have a Work Force printer/fax hooked up wirelessley.  How can I access this through my iPad to print material?
    4.  Any suggestions on good tutorial sites for the iPad?  I see there are some posted on YouTube.
    That is all for now!  Thanks for any help you can give me!
    JK Ames

    1. Since that game is based on flash, probably not. The iPad doesn't natively support Flash although some third party browsers do. You'd have to experiment and see which ones work for you.
    2. You can enter various accounts into the mail app. I've linked three, no idea if there's a limit. BUt when you open the mail app, it downloads from all of them. However you choose which is the primary and that's what you send from.
    3. If that printer isn't an air print enabled printer, you'll need to use a third party app, either from the printer maker or something like print n share, print central or printopia
    4. No idea there. Sorry

  • For OS X: Whenever I have internet access my disk is running continuously for a period of time without any activity on my part.  When I close internet access the disk activity stops.  Who is fishing for data?

    For OS X v5 or 6: Whenever I have internet access my disk is running continuously for a period of time without any activity on my part.  When I close internet access the disk activity stops.  Who is fishing for data?

    Thanks for your reply.  I don't use itunes so that couldn't be it.  Reading about Little Snitch and Hands Off, however,  educated me about the data harvesting in many apps and that when buying from the AppStore one will more likely get Apps with benign data harvesting.

  • Issue with filename in gui_download fn module

    Hi,
    i have an issue with the filename of text file that was dowloaded using gui_download fn module.
    PARAMETERS : p_file TYPE rlgrap-filename.
    CONCATENATE s_laufd-low6(2) s_laufd-low4(2) INTO gv_dt.
    CONCATENATE 'HINL' gv_dt '.001' INTO p_file.
    START-OF-SELECTION.
      DATA: v_file TYPE string.
      v_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          append                  = 'X'
        TABLES
          data_tab                = it_tab[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    data is downloaded into the textfile with filename as HINL2411 truncating the decimal part.
    How can i get the filename along with the decimal part as HINL2411.001.
    Thanks

    Hi ,
    Declare p_file  as TYPE string

  • Why do I get general access denied trying to update my own field in Active Directory?

    I am trying to update a field pertaining to my own user object in Active Directory using ADSI and C++ app. The operating system
    is Windows Server 2012 Standard.
    I am able to read, I am able to call Put without problems, but when I call SetInfo, it returns with "General access denied". I have
    confirmed that it's my own user object I'm trying to access.
    I obtain my own FQDN like this:
    GetUserNameEx(EXTENDED_NAME_FORMAT::NameFullyQualifiedDN, pszFullyQualifiedDN, &dwFullyQualifiedDN);
    Then I use it like this:
    LPTSTR pszObj = (LPTSTR)LocalAlloc(LPTR, dwMemToAlloc);
    wcscpy_s(pszObj, dwMemToAlloc / sizeof(TCHAR), L"LDAP://");
    wcscat_s(pszObj, dwMemToAlloc / sizeof(TCHAR), pszFullyQualifiedDN);
    I bind to an object like this:
    ADsGetObject(pszObj, IID_IADs, (LPVOID*)&pObject);
    This call succeeds:
    pObject->Get(CComBSTR("Description"), &var);
    This call also succeeds:
    VariantClear(&var);
    V_BSTR(&var) = SysAllocString(L"Some new value");
    V_VT(&var) = VT_BSTR;
    hr = pObject->Put(CComBSTR("Description"), var);
    Trying to commit the above change using the following:
    pObject->SetInfo();
    This is where it fails.
    It returns E_ACCESSDENIED General access denied error.
    As you can see, that is my own user object I am trying to update. To my understanding that is supposed to work provided I am a member of Domain
    Users group. Which I am.
    What could possibly be the problem?

    The problem is that in Windows Server 2012 Domain Controller, permission to write to public (and personal,
    for that matter) properties is not granted to "SELF". The field I am trying to write to belongs to public properties. The only property set a user is able to change for himself in Windows Server 2012, by default, seems to be "Private-Information",
    which consists of ms-PKI-Credential-Roaming-Tokens,ms-PKI-RoamingTimeStamp, ms-PKI-DPAPIMasterKeys, ms-PKI-AccountCredentials
    Why on earth a user doesn't have permission to write to his own personal fields in Windows Server 2012 AD, Microsoft??!?!?!

  • Accessing all the fields of a function module in EWM

    Hi All,
    I have a requirement to prepare a report that pulls some fields of the Function module /SCWM/STOCK_INC_OUT_MON.
    This Fuction module is in EWM.
    I need result rows for multiple values(user inputs) of warehouse.
    Cant we access individual fields from this FM without using the structure?
    i need to pull the fields MATNR, NLPA PROC and GRDATE
    for all the user entries in Wahrehouse code
    Thanks, Arka

    Hi,
    You can use the work area to capture the output of the function module and then use the data (fields) which ever you require.
    The structure of the Work area (Data Types of the field) should be same as data types of output parameters of that Function Module.
    Hope this helps.
    Regards,
    Shweta Soragavi

  • How do you access a variable in an KM (knowledge module)

    I am building a Knowlege Module and I would like to access a varible set outside the KM.
    Can a KM access a Project or Global variable?
    thanks in advance

    Yes, you can use the varible in KM. assign it as #var
    Thx
    Saurabh

  • Accessing LDAP in a custom JAAS login module

    Hi,
    I have developed a custom jaas login module in CE 7.1. I created a java dc which contains a class extending AbstractLoginModule. This DC is deployed on to the server using an EAR DC. I am trying to access LDAP in the custom login module. I am trying to establish an SSL connection to LDAP. For this purpose i have created a custom socket factory class which extends SSLSocketFactory. I used the code below to establish the connection.
              Hashtable<String,String> env=new Hashtable<String,String>();
              DirContext dirContext=null;
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL,ldapURL);
                    env.put(Context.SECURITY_PROTOCOL,"ssl");
                    env.put("java.naming.ldap.factory.socket", "com.test.ldap.MySSLSocketFactory");
                    dirContext=new InitialDirContext(env);
    MySSLSocketFactory is the name of custom socket factory.
    During a login process, the above code results in error because the connection to LDAP server could not be established. However the same code when executed in a webdynpro DC is working without any problem. What could be the reason for this?
    This is the error i could see in defaultTrace
    javax.naming.CommunicationException: js24.na.domain.net:636 [Root exception is java.lang.ClassNotFoundException: com.test.ldap.MySSLSocketFactory
    Loader Info -
    ClassLoader name: [service:security]
    Living status: alive
    Direct parent loaders:
       [system:Frame]
       [library:j2eeca]
       [service:timeout]
       [service:com.sap.security.core.ume.service]
       [service:adminadapter]
    Resources:
       /usr/sap/SV3/J10/j2ee/cluster/bin/services/security/lib/private/sap.comtcjesecurityimpl.jar
    at com.sun.jndi.ldap.Connection.<init>(Connection.java:205)
    at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
    at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1579)
    at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2681)
    at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:299)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
    at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
    at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
    at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
    at com.sap.engine.system.naming.provider.DefaultInitialContext._getDefaultInitCtxt(DefaultInitialContext.java:64)
    at com.sap.engine.system.naming.provider.DefaultInitialContext.<init>(DefaultInitialContext.java:45)
    at com.sap.engine.system.naming.provider.DefaultInitialContextFactory.getInitialContext(DefaultInitialContextFactory.java:41)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    at javax.naming.InitialContext.<init>(InitialContext.java:197)
    at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)

    Hi,
    I used an EJB to perform the LDAP search and called the EJB from the login module. It is working as expected.
    Regards,
    Shabeer

  • Crystal Reports: access to SAP BW tables in own namespace

    Hi BO experts
    we are running XI3.1 SP2 including reporting tools, integration kit and so on. The installation and the integration to SAP BW is working properly for most szenarios.
    Starting from Crystal Reports we would like to access a SAP BW table which was generated in an own namespace. By starting the database assistant we are connecting with the driver "SAP-tables,-clusters,or -functions" and see some tables in "DD (data lexicon)". But we can not find the self generated table in there. It is only possible to access the tables in namespace "/1CPMB/", "/B28/" and "/BI0/".
    How can we access tables from another namespace? Are there any restrictions for accessing SAP BW tables, e.g. namespace, configuration, settings etc.to stick to?
    Thank you very much for your suport in advance.
    Kind regards.
    Markus

    Hi Markus,
    just go to the Database Expert, select the connection to your BW server on the left window, press the right mouse button and choose Options from the context menu. In the field Table name LIKE: you can restrict the names of the displayed tables:
    eg. assuming your namespace is /ZMYNSP then just give there /ZMYNSP% ( % is a wildcard)
    Close then the Options window and choose Refresh using again the context menu (or just press F5)
    CR can only display a limited number of tables when you expand your BW System and by using the Options panel as described above you can let the system display exaclty the tables you need.
    Regards,
    Stratos

  • Ssh access into virtual context on the ACE module A(2.2)

    Hello,
    I tried to configure:
    Admin(conf)#context test
    Admin(conf-context)#ssh key rsa1 1024
    but this command ssh is not supported int this newest version. How can I configure the ssh access directly into virtual context on the ACE module??
    Thank you

    Here's a link on how to configure it.
    https://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/admin/guide/access.html#wp1049450
    Hope that helps.

Maybe you are looking for

  • Dynamic JNDI in SOA Suite 11g

    Hi, i have a urgent requirement for my project using SOA Suite 11g, and i have a problem in passing dynamic JNDI to the database adapters (eis/DB/...). say that i have 2 connections, eis/DB/conn1, and eis/DB/conn2 how to switch this information dynam

  • Submit Form button doesn't work in interactive form opened in Reader created in InDesign6

    One of the features I was really looking forward to  in CS6 was creating fillable forms with ONE application. I created a form following the step by step instructions in classroom in  a book for CS6.  When I opened the exported form in Reader X, I ge

  • Super drive on my Dual 800 g4 Quicksilver

    I trying to boot from the recovery disc that came with my Mac, However when I hold down the C key to boot the drive will spin up then stops. never getting to the disc so I can reinstall. So I figured the drive was bad( it is over 8 yr's old ). Instal

  • Mac OS X Lion too slow

    Hi, my Mac OS X lion was too slow. When i tried to repair my HDD. I was getting the following Verifying permissions for “Macintosh HD” Permissions differ on “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/Rem ote Desktop M

  • Is there a way to naming a card reader?

    Hi everyone! I’m new in Java, especially Javacard. I’m using GEMPC Twin smart card reader, GemXpresso211 PK_IS card and OCF1.2 for off-card application. I was able to run sample javacard program and obtain information about registered terminals from