Module Context - Module adapter development question

Hi,
I've been using the method moduleContext.getContextData(nameParameterChannel) to get values from the communication channel for my custom modules adapter.
Reading the [API|http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/af/lib/mp/module/ModuleContext.html] there is another method for which I'm not sure what it does:
--> getContextData(String name, boolean fallback)
Returns a value of a module configuration parameter and if fallback is true and the parameter cannot be found in the module configuration it is tried to read it from the channel configuration data
With the usual method --> getContextData(String name), I've been always reading from the channel configuration data (name being the name of the parameter and the string returned being the value).
So what does that method above do? That place "module configuration" in contrast to "channel configuration data" is not clear to me.
Thanks!

Closing (not solution yet)

Similar Messages

  • Parameter name in module configuration of adapter module in comm channel

    Hi Experts,
    I have developed an adapter module to read a excel file , have used the module in the sender file adapter.
    What entrie should i put in parameter name and parameter value  in module configuration of adapter module in comm channel.
    Im too confused,,pls help

    Hi Ivan,
    The code is basically to read the all colums add em under xml tags and read from second row on wards the data
    please find below the module data code
    public ModuleData process(ModuleContext mc, ModuleData imd)throws ModuleException
                             Object obj = null;
                             Message msg = null;
                             MessageKey amk = null ;
                        amk = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
                        Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Module called");
                        try {
                                  obj = imd.getPrincipalData();
                                  msg = (Message) obj;
                                  XMLPayload xp = msg.getDocument();
                                  if (xp != null)
                                        byte by[] = convert(xp.getContent());
                                             xp.setContent(by);
                                       imd.setPrincipalData(msg);
                              catch (Exception e)
                    return imd;
                   public byte[] convert(byte src[]) throws Exception
                        String xmldata = "";
                   try
                             ByteArrayInputStream byteArr = new ByteArrayInputStream(src);
                             Workbook w = Workbook.getWorkbook(byteArr);
                             xmldata ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n"+ "<ns0:""MT_ExcelFiles"" ""xmlns:ns0=\"""urn:xyz:abc"+"\"> \n";
                               int a = w.getSheet(0).getRows();
                               int b = w.getSheet(0).getColumns();
                        for(int j=1;j<a;j++)
                                   for(int i=0;i<b;i++)
                                                  xmldata = xmldata + "<"w.getSheet(0).getCell(i,0).getContents().toString()">"w.getSheet(0).getCell(i,j).getContents().toString()"</"w.getSheet(0).getCell(i,0).getContents().toString()">";
                        xmldata = xmldata"</ns0:""MT_ExcelFiles"+">";
                        w.close();
              catch (Exception e)
           return xmldata.getBytes();

  • How to create a module for File Adapter

    Hi,
    I read somethings about module in Adapters.
    What I need to create a EJB? I need to generate a jar? Where I put it?
    Do they have anything about this or a step by step? I want to create a module fpr File Adapter
    Tks.

    Hi,
       >>>What I need to create a EJB?
           If you have NDS or Ecclipse you can create them automatically.
       >>>I need to generate a jar?
          Yes you need to generate a .Jar for that Ejb.
       >>>Where I put it?
          Put that .Jar in .Ear file. and then deploy it on to the Xi server or PCK or Decentralised Adapter Engine where ever u want to use.
       >>>Do they have anything about this or a step by step?
          Yes.Step by step procedure for creating module is available.You can get them at the links given above by others.
    Regards,
    Gowtham K.

  • Using Request Response Bean Module in FILE Adapter

    Hi Experts,
    Can we use Request Response Bean Module in FILE Adapter in reverse way. That is can we configure thses adapter modules in Reciever file channel and call a sender file channel in it?
    My case is RFC to File synchronous case? How do we do this?
    Thanks & Regards,
    priyanka

    Can we use Request Response Bean Module in FILE Adapter in reverse way. That is can we configure thses adapter
    modules in Reciever file channel and call a sender file channel in it?
    My case is RFC to File synchronous case? How do we do this?
    The above is not possible....Bean works only for Sender channel and not for Receiver.....requirement not possible using even a BPM as FILE does not support SYNC communication in receiver end......max you can do is split the scenario into SYNC-ASYNC bridge.
    Regards,
    Abhishek.

  • I recently changed my plan to the photoshop plan which includes photoshop and Lightroom but LR won't let me go into the Develop Module or the other Modules because it says Develop Module is disabled. Please renew your membership to reactivate. I'm still a

    I recently changed my plan to the photoshop plan which includes photoshop and Lightroom but LR won't let me go into the Develop Module or the other Modules because it says Develop Module is disabled. Please renew your membership to reactivate. I'm still a member so why won't it let me go into Develop Module? or any of the other modules?

    The Photoshop LR CC is active but you have not yet activated it. The activation server shows it. Please log out & log back in of the CC desktop CC.
    The Complete CC purchased last year is active till 11th of July. In case after logging out & logging back in does not resolve the issue, please contact Customer support Contact Customer Care
    Regards
    Rajshree

  • To find Custom Developed Function Module -Belonging to a Development Class

    Hi Experts,
    How to find custom developed function modules belong to a particular development class.
    Or Funtion Group belonging to a particular development class.
    Thanks in Advance,
    Regards,
    IFF

    Hi,
    Ofcourse you can get function group or function module associated with a Development class from Transaction SE80 or SE84.
    Step-by-step.
    1. From SAP start call transaction se84.
    2. Expand Program Library
    3. Select Function Group or Function Module
    4. In the standard selections give the 'Package' as the name of your development class.
    You will get the list of all function modules associated with your development class. The function modules starts with 'Z' or 'Y' will be the custom developed ones.
    Regards,
    Renjith Michael.

  • I need this file "How to Use the Content Conversion Module in JMS Adapter"

    Can someone send me this file:
    "How to Use the Content Conversion Module in JMS Adapter"
    I am not able to find it.
    Thanks
    Antonello

    pls refer guide
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-adapters/how%20to%20use%20the%20content%20conversion%20module%20with%20xi%203.0%20j2ee%20jms%20adapter.pdf
    Regards,
    Swetha.

  • Adapter development -  sender/inbound integration

    hi,
       i have few questions to ask ,in relation to adapter development.
    1) the sample adapter given part of the documentation contains implementation representing a file oriented integration process.can it be deployed as an adapter and tried in the adapter framework for integration?
    2)if the answer is yes to previous question,does the SAP's transaction managed provide transactional capablities for file access ?
    3)the ManagedConnectionConnectionFactory implementation provided part of the sample adapter also implements Runnable interface stating the purpose of supporting sender/inbound integration.how the client can initiate a sender/inbound integration without any support from the implementation's jca cci to send the message from its
    system ?
    4)is there some clear example of sender/inbound integration implementation done part of the JCA adapter ?
    regards,
    jana

    thanks gowtham,
    2)if you see the SPIManagedConnectionFactory's sender/inbound integration implementation (to be specific sendMessageFromFile() method)the tx manager obtained from SAPAdapterResource is started ,file is copied and finally the tx is called to commit.that's why i had ask the second question .
    3) the sample adapter implements CCI only for receiver/outbound integraiton,i fear i didn't find any of such support for sender/inbound integration
    4)see this is what i like about you
    regards,
    jana

  • Adaptive RFC question

    I have a general question: could you tell me the reason why the RFCs to be called in JAVA Web Dynpro should be designed transferring the table values in the "Tables" parameter tab and not the "Import" and "Export" parameter tabs?

    Re: Adaptive RFC question
    Posted: Apr 3, 2006 7:59 PM    Reply 
    Hi Tania,
    You need to know first what is import parameter, export parameter and table parameter.
    Import enables you to pass single set of values. Export enables you export single set of values. When you have data that is collection of n number of sets of data, use Table (Stucture) for import or export.
    E.G.
    Suppose, you are trying to see result of a student by Importing roll number of the student. You can use Export parameter to display result (a single set).
    But if you want to see reuslts for n number of students by inputing n number of roll numbers, you need to use table structure for inputing the roll numbers and outputing the results.
    An ABAP developer needs to document these parameters so that the WebDynpro developer can understand what are input tables and what are output tables.
    Need to know more ? let me know.
    Ashutosh

  • Partner adapter developer certification

    Is there any certification that SAP gives to an adapter developer partner? Is there any reference with this information?

    Hi,
    Refer to this link:
    https://www.sdn.sap.com/sdn/developerareas/xi.sdn?page=xi_adapter_framework_certification.htm
    https://www.sdn.sap.com/sdn/developerareas/xi.sdn?page=exchange_infrastructure.htm
    And post your question in this forum:
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-5&contenttype=url&content=https://SAP Integration and Certification Center (SAP ICC)
    Regards,
    Sridhar

  • What is diff between OPM modules, MFG Modules, discrete mfg modules, regular supply c

    What is diff between OPM modules, MFG Modules, discrete mfg modules, regular supply chain modules.
    As a techi guy I have worked on OM but not able to answer the difference between
    please help
    Thanks

    Process and Discrete industries have some fundamental differences in their product development, materials, production procesess and planning procedures. Process industries need to deal with Variable Ingredients, By & Co-products, UOM are that are Material Specific. Multiple Recipes and Formulas are used to make a single product due to seasonality or plant equipment variations. Process industries need Lot, Grades, Potency, Shelf-life.
    Manufacturing is different too...think of industries where materials are blended together like paints, or food products, beverages. Also unique is decomposition...breaking something apart, like a chicken into its components: legs, thighs, breasts etc and be able to track the costs.
    The Oracle Process Manufacturing suite is capable of supporting all of these industry requirements.

  • [bumblebee] Failed to load module "nouveau" (module does not exist, 0)

    Hello my friends,
    bumblebee does not work for me. I installed bumblebee, nvidia, nvidia-utils, mesa-libgl, bbswitch-dkms ...
    # lspci
    00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    00:04.0 Signal processing controller: Intel Corporation 3rd Gen Core Processor Thermal Subsystem (rev 09)
    00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
    00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
    00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
    00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
    00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
    00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
    00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
    00:1f.6 Signal processing controller: Intel Corporation 7 Series/C210 Series Chipset Family Thermal Management Controller (rev 04)
    01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M] (rev a1)
    03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6235 (rev 24)
    nVidia 620M at PCIBus 01.00.0
    First, nvidia is disabled by bbswitch.
    # cat /proc/acpi/bbswitch
    0000:01:00.0 OFF
    Then I execute the command
    # optirun -vv glxspheres
    [ 505.314018] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
    [ 505.315297] [DEBUG]optirun version 3.2.1 starting...
    [ 505.315938] [DEBUG]Active configuration:
    [ 505.316203] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
    [ 505.316421] [DEBUG] X display: :8
    [ 505.316552] [DEBUG] LD_LIBRARY_PATH:
    [ 505.316674] [DEBUG] Socket path: /var/run/bumblebee.socket
    [ 505.316788] [DEBUG] Accel/display bridge: auto
    [ 505.316900] [DEBUG] VGL Compression: proxy
    [ 505.317014] [DEBUG] VGLrun extra options:
    [ 505.317126] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
    [ 505.317295] [DEBUG]Using auto-detected bridge virtualgl
    [ 506.597122] [INFO]Response: No - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 506.597316] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 506.597448] [DEBUG]Socket closed.
    [ 506.597538] [ERROR]Aborting because fallback start is disabled.
    [ 506.597654] [DEBUG]Killing all remaining processes.
    Now, the nvidia is enabled.
    # cat /proc/acpi/bbswitch
    0000:01:00.0 ON
    # modprobe nvidia
    modprobe: FATAL: Module nvidia not found.
    /etc/bumblebee/bumblebee.config
    # Configuration file for Bumblebee. Values should **not** be put between quotes
    ## Server options. Any change made in this section will need a server restart
    # to take effect.
    [bumblebeed]
    # The secondary Xorg server DISPLAY number
    VirtualDisplay=:8
    # Should the unused Xorg server be kept running? Set this to true if waiting
    # for X to be ready is too long and don't need power management at all.
    KeepUnusedXServer=false
    # The name of the Bumbleblee server group name (GID name)
    ServerGroup=bumblebee
    # Card power state at exit. Set to false if the card shoud be ON when Bumblebee
    # server exits.
    TurnCardOffAtExit=false
    # The default behavior of '-f' option on optirun. If set to "true", '-f' will
    # be ignored.
    NoEcoModeOverride=false
    # The Driver used by Bumblebee server. If this value is not set (or empty),
    # auto-detection is performed. The available drivers are nvidia and nouveau
    # (See also the driver-specific sections below)
    Driver=
    # Directory with a dummy config file to pass as a -configdir to secondary X
    XorgConfDir=/etc/bumblebee/xorg.conf.d
    ## Client options. Will take effect on the next optirun executed.
    [optirun]
    # Acceleration/ rendering bridge, possible values are auto, virtualgl and
    # primus.
    Bridge=auto
    # The method used for VirtualGL to transport frames between X servers.
    # Possible values are proxy, jpeg, rgb, xv and yuv.
    VGLTransport=proxy
    # List of paths which are searched for the primus libGL.so.1 when using
    # the primus bridge
    PrimusLibraryPath=/usr/lib/primus:/usr/lib32/primus
    # Should the program run under optirun even if Bumblebee server or nvidia card
    # is not available?
    AllowFallbackToIGC=false
    # Driver-specific settings are grouped under [driver-NAME]. The sections are
    # parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
    # detection resolves to NAME).
    # PMMethod: method to use for saving power by disabling the nvidia card, valid
    # values are: auto - automatically detect which PM method to use
    # bbswitch - new in BB 3, recommended if available
    # switcheroo - vga_switcheroo method, use at your own risk
    # none - disable PM completely
    # https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods
    ## Section with nvidia driver specific options, only parsed if Driver=nvidia
    [driver-nvidia]
    # Module name to load, defaults to Driver if empty or unset
    KernelDriver=nvidia
    PMMethod=auto
    # colon-separated path to the nvidia libraries
    LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia
    # comma-separated path of the directory containing nvidia_drv.so and the
    # default Xorg modules path
    XorgModulePath=/usr/lib/nvidia/xorg/,/usr/lib/xorg/modules
    XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
    ## Section with nouveau driver specific options, only parsed if Driver=nouveau
    [driver-nouveau]
    KernelDriver=nouveau
    PMMethod=auto
    XorgConfFile=/etc/bumblebee/xorg.conf.nouveau
    /etc/bumblebee/xorg.conf.nvidia
    Section "ServerLayout"
    Identifier "Layout0"
    Option "AutoAddDevices" "false"
    Option "AutoAddGPU" "false"
    EndSection
    Section "Device"
    Identifier "DiscreteNvidia"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:01:00:0"
    # If the X server does not automatically detect your VGA device,
    # you can manually set it here.
    # To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
    # as you see in the commented example.
    # This Setting may be needed in some platforms with more than one
    # nvidia card, which may confuse the proprietary driver (e.g.,
    # trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
    # BusID "PCI:01:00:0"
    # Setting ProbeAllGpus to false prevents the new proprietary driver
    # instance spawned to try to control the integrated graphics card,
    # which is already being managed outside bumblebee.
    # This option doesn't hurt and it is required on platforms running
    # more than one nvidia graphics card with the proprietary driver.
    # (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
    # If this option is not set, the new Xorg may blacken the screen and
    # render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"
    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
    EndSection
    What is wrong? Thanks so much for help!

    Just did a downgrade and it's working again, here are my versions.
    linux 3.9.9-1
    linux-headers 3.9.9-1
    nvidia 319.32-2
    nvidia-utils 319.32-1
    bbswitch 0.7-4
    If you have conflicts, I found it easiest to remove those (bbswitch, virtualbox in my case), downgrade linux and then install the appropriate  bbs/vb packages

  • On the ES2, how do I get a pitch modulation (Pitch123) modulated by LFO2 to retrigger every time i hit a new key?

    On the ES2, how do I get a pitch modulation (Pitch123) modulated by LFO2 to retrigger every time i hit a new key?
    I understand this can be done with the LFO1, however, ideally I'd like this synced to the beat as can be done with the LFO2 but not the LFO1...
    I hope that's clear enough.

    You've discovered the limitation.  The way I see it, you have 3 work-arounds:
    1) Figure out the Hz equivalent to your bpm division and set LFO1 accordingly (google "bpm to hz calculator").
    2) Time your notes to coincide with LFO2's timing (re-write your music and live with it!).
    3) Set up the vector envelope with a synced sustain loop.

  • Urgent - XI adapter Development

    I am preparing to lay my hands on the XI adapter development.
    Could somebody provide some docs or link in this reg,
    reg,

    Naveen,
    I hope the below docs will help you in creating your own adapter.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe
    https://websmp201.sap-ag.de/~sapdownload/011000358700003237612005E/HowToCreateAdapterModules.pdf
    Adapter Development
    Adapter Development
    Adapter Development || sample Adapter
    Best Regards,
    raj.

  • Widget Development Question

    I need help setting margins on my widget with CSS. I have messed around with the margin properties of CSS, but how do they work in a widget environment? When the CSS is in a widget, would the margin be counting from the edge of the background image? In Safari, the margin counts from the edge of the viewing window.
    Please Help.
    Thanks

    Hi, the Apple Discussions are really meant for end users of Apple technologies, so it's usually hard to find answers to development questions here.
    However, Apple does have excellent mailing lists (listservs) covering all their technologies for developers. If you post your question to "dashboard-dev" at lists.apple.com, you'll be sure to find a lot of helpful answers there. You can also try the forums at dashboardwidgets.com. Good luck!

Maybe you are looking for

  • MySQL error: "Incorrect table name ``": [was: please help me]

    the script language is php & mysql database i created 2 files : the first : i made in it the following steps : 1- created recordset 2- dragged and dropped one field which i need to delete 3- put ( delete ) word and linked it with the second page by p

  • Oracle column store db

    I've heard that Oracle 12c will have a column store options similar to what companies like Vertica and SAP Hana have. In a very general question, is this available in the current Oracle 12c release? If so, is anyone using this feature and what is you

  • Tuning SIG 5583 - SMB Remote SAM Service Access Attempt

    We are running Active Directory and this sig is firing 30000+ times a day. I do not want to disable the sig as we would likt to watch for external IP's as the source or destination. Trouble is I cannot get an event filter to work for this beast and I

  • Enquiry about the Driver program SAPFM06P

    Hi, If I am executing the Driver program SAPFM06P, shows the error like this -> SAPFM06P is not a report program (type 'S'). How can I execute ..Plz help. Pooja

  • Is EBP a component of SRM?

    Dear experts: I read some documents and I think that EBP (Enterprise Buyer Professional ) is a component of SRM. Would you please help confirm ? Thanks!