Get Message details in custom adapter module

Hello,
Could you please let me know how can we retrieve following parameters in custom adapter module?
Message size
Message Mapping name
Operation Mapping name
Sender and Receiver Interface names
Thanks!
Regards,
Shweta

Hi Shweta
Not all the information is available directly from the adapter module.
Message size
Retrieve the input stream of the payload, convert the stream to bytes and count the bytes length.
Message msg = (Message) inputModuleData.getPrincipalData();
XMLPayload payload = msg.getDocument();
InputStream inStr = payload.getInputStream();
// Convert inStream to bytes
int size = bytes.length;
Sender and Receiver interface names
You can only get Sender interface in sender module, and receiver interface in receiver module. You can get the from the getAction() method.
Message msg = (Message) inputModuleData.getPrincipalData();
String interfaceName = msg.getAction().getName();
Operation Mapping name
This is not directly available from the Adapter Framework. One workaround is to access this via the Integration Directory API. With the Interface Determination Service API, you can read the Interface Determination object to get the associated mapping. To do this you have to make a SOAP call to the API.
Message Mapping name
I'm not sure how this can be retrieved as this is only available in ESR.
If the module is on the receiver side, another option is to extract the information during mapping and store it into Dynamic Configuration, then in the receiver module, to extract it from Dynamic Configuration.
Rgds
Eng Swee

Similar Messages

  • Unable to deploy custom adapter module in PI 7.31

    Hi pros,
    I created a custom adapter module to split some complex input files to multiple messages. We use a SAP PO 7.31 java-only installation. I followed this document to create my adapter module:
    How to Create Modules for the JEE Adapter Engine
    I know it is for PI 7.1 but a colleague of mine said that he was able to create a running adapter module for PI 7.3 following the guide. I created the following projects:
    EAR project references the EJB project:
    Project facet of the EJBproject:
    ejb-jar.xml config:
    application-j2ee-engine.xml (in EAR project):
    When I try to deploy my module, I get the following error:
    Java version:
    NWDS version:
    Any hint is appreciated! What can be wrong? What can I check again?
    THANKS!
    Message was edited by: Stefan Münchow

    I am not sure if the version is the problem. We have PI 7.31, support package 14, patch level 0 and NWDS 7.31 support package 12, patch level 4. The version of NWDS is lower than the version of the PI. According to Note 1599298 the error occurs when the NWDS is higher than the one of PI. Besides, we are able to deploy BPMN processes with the same NWDS to the same server.
    This is the exact exception trace shown in NWDS:
    com.sap.ide.eclipse.sdm.deploy.DeploymentException: [ERROR CODE DPL.DCAPI.1027] DeploymentException.
    Reason: ASJ.dpl_dc.001085 Operation [deploy] of [sap.com_SplitArticleFileModule_EAR] failed
    at com.sap.ide.eclipse.sdm.threading.DCDeployThread.run(DCDeployThread.java:110)
    ------------- Nested exception -------------------
    com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE DPL.DCAPI.1027] DeploymentException.
    Reason: ASJ.dpl_dc.001085 Operation [deploy] of [sap.com_SplitArticleFileModule_EAR] failed
    at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:862)
    at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:259)
    at com.sap.ide.eclipse.deployer.dc.deploy.DeployProcessor70.deploy(DeployProcessor70.java:105)
    at com.sap.ide.eclipse.sdm.threading.DCDeployThread.run(DCDeployThread.java:80)
    Caused by: com.sap.engine.services.dc.cm.deploy.DeploymentException: ASJ.dpl_dc.001085 Operation [deploy] of [sap.com_SplitArticleFileModule_EAR] failed
    at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:246)
    at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:67)
    at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:282)
    at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84)
    at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100)
    at com.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3298] Operation [deploy] of [sap.com_SplitArticleFileModule_EAR] failed
    at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:167)
    at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:138)
    at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:57)
    at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:213)
    ... 8 more
    Caused by: com.sap.engine.services.deploy.server.utils.DSRemoteException: ASJ.dpl_ds.006193 Operation [deploy] of [/usr/sap/DP2/J64/j2ee/cluster/server0/temp/tc~bl~deploy_controller/archives/213/SplitArticleFileModule_EAR.ear] failed
    at com.sap.engine.services.deploy.server.DeployServiceImpl.catchDeploymentExceptionWithDSRem(DeployServiceImpl.java:3370)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:315)
    at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:139)
    ... 11 more
    Caused by: com.sap.engine.services.deploy.container.rtgen.GenerationException: Open failed for '/usr/sap/DP2/J64/j2ee/cluster/server0/temp/deploy/SplitArticleFileModule_EAR.ear1422275742985/com.sap.aii.utilxi.server.jar' with fd 218 returning message 'couldn't find 'END' tag' and errno 0 after trying cache.
    at com.sap.engine.services.webservices.server.deploy.preprocess.WebServicesGenerator.createSingleModule(WebServicesGenerator.java:100)
    at com.sap.engine.services.webservices.server.deploy.preprocess.WebServicesGenerator.generate(WebServicesGenerator.java:54)
    at com.sap.engine.services.deploy.container.rtgen.AnnotationsSupportingGenerator.generate(AnnotationsSupportingGenerator.java:27)
    at com.sap.engine.services.deploy.ear.jar.moduledetect.GeneratorWrapper.generate(GeneratorWrapper.java:43)
    at com.sap.engine.services.deploy.ear.jar.ModuleGeneratorTool.generate(ModuleGeneratorTool.java:110)
    at com.sap.engine.services.deploy.ear.jar.ModuleGeneratorTool.generateOverExistingModules(ModuleGeneratorTool.java:97)
    at com.sap.engine.services.deploy.ear.jar.ModuleGeneratorTool.generateModules(ModuleGeneratorTool.java:80)
    at com.sap.engine.services.deploy.ear.jar.EARReader.read(EARReader.java:240)
    at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.prepareNewDeploymentInfo(DeployUtilTransaction.java:217)
    at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:199)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:421)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:473)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:1836)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:360)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:313)
    ... 12 more
    Caused by: java.util.zip.ZipException: Open failed for '/usr/sap/DP2/J64/j2ee/cluster/server0/temp/deploy/SplitArticleFileModule_EAR.ear1422275742985/com.sap.aii.utilxi.server.jar' with fd 218 returning message 'couldn't find 'END' tag' and errno 0 after trying cache.
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:154)
    at java.util.jar.JarFile.<init>(JarFile.java:141)
    at java.util.jar.JarFile.<init>(JarFile.java:105)
    at com.sap.engine.services.webservices.server.deploy.preprocess.WebServicesSupportHandlerImpl.generateWebSupport(WebServicesSupportHandlerImpl.java:79)
    at com.sap.engine.services.webservices.server.deploy.preprocess.WebServicesGenerator.createSingleModule(WebServicesGenerator.java:69)
    ... 26 more
    Maybe the used jar files could be the problem?

  • Custom adapter module deployment in PI 7.1

    We upgrade XI 3.0 to PI 7.1. However, I dont see SDM directory anymore which is what I had used to deploy my custom adapter module.
    Is there a different way to deploy custom adapter module in 7.1? Is SDM discontinued?
    When I try to deploy the ear file from NWDS directly I get deployment exception error
    "Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !".
    I have given the message server host and port correctly in preferences.
    I am using NWDS 7 and JAVA SDK 1.4.2.15.
    Is there a new procedure to deploy custom adapters in PI 7.1?
    Regards
    Haseeb

    hi,
    check this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c
    regards.

  • Customer adapter module

    I'm developing one customer adapter module that calls stored procedure on sender side. I'm not able to stop process when Resultset is empty. As interface is firing every 60s, it is happening quite often and I want to avoid this, like std. JDBC adapter does. How to get this?
    kr
    mario
    p.s: there should be some documentation on PI server regarding development customer modules, and I've found ONLY compiled Java classes not the source code. Any idea?

    Mario,
    Its Adapter that calls the Module and it is not true other way around so you can't stop adapter through Module.
    In your module code you can write a code in such a way that it forms just a header(or anything you wish to) and send it further.
    In Receiver determination you can put a condition if certain node doesn't exist (in case of Result Set returns empty) then End the message (with or without error notification).
    Thanks,
    Sunil Singh

  • Setting Adapter-Specific Message Attributes in an Adapter Module

    Hi!
    I want to set Adapter-Specific Message Attributes in an Adapter Module. Is it possible to configure the Variable Transport Binding in this way?
    Best regards,
    Daniel

    I'd like to know it as well.
    I've checked out the XI AF API but didn't find much.
    One thing that I've observed is that since Module API can treat any Message Class (not only XI Messages), I guess it won't have any specific methods for XI messages (hence, no dynamic configuration). But you could try to get the message object and then treat it as an XI Message (you would be doing the steps that the Java Mapping API do before it calls a Java Mapping class) to get the Map objects (which include the parameters).
    Good luck on it, and let us know if you have any progress!
    Regards,
    Henrique.

  • Uses of custom adapter module

    hi all,
    I am doing a POC on exploring custom adapter modules. Can anyone please help me in understanding various possible uses of adapter module?
    I already know about creating PDF file, Reading/Writing Excel file, Encode/Decode, setting FileName, Sending attachment through Mail Adapter. Any other possible use of adapter module?
    Thanks,
    Mayank

    hi Jyothi,
    Now i am getting following error:
    Error jxl.read.biff.BiffException: Unable to recognize OLE stream
    My lines of code are:
                   System.out.println("01");
                   FileInputStream fis = new FileInputStream("C:
    Documents and Settings
    Mayank
    Desktop
    mayank1.xls");
                   System.out.println("001");
                   String str = fis.toString();
                   System.out.println("0001");
                   byte src [] = str.getBytes();
                   System.out.println("00001");
                   ByteArrayInputStream f5 = new ByteArrayInputStream(src);
                   System.out.println("000001");
                   Workbook workbook1 = Workbook.getWorkbook(f5);
                   System.out.println("000002");
    i am using lines because i will be converting xmlpayload to bytestream in actual module code.
    And output i am getting is:
    01
    001
    0001
    00001
    000001
    Error jxl.read.biff.BiffException: Unable to recognize OLE stream
    which means there is some problem in line
    Workbook workbook1 = Workbook.getWorkbook(f5);
    Also when i am reading file using:
    Workbook workbook = Workbook.getWorkbook(new FileInputStream("C:
    Documents and Settings
    Mayank
    Desktop
    mayank1.xls")); ,, it's working.
    Thanks,
    Mayank

  • SAP PI crashes because of Custom Adapter module

    Hi,
    We are facing a strange problem. We have deployed a custom adapter module developed in java which accesses a Hardware Security Module(HSM) and uses the keys in HSM to digitally sign our data. Now, when I use particular methods in this code and deploy it on PI server, the server crashes while testing this out. As soon as I run the channel having this adapter module, PI server becomes unavailable. It restarts on its own after a few minutes.
    One of the reasons I identified to be causing this issue is the signing mechanism used in code. When I used a mechanism that was not supported or not correct, it crashed the server. If i corrected it, it worked fine. I found no other thing in my code causing this behaviour apart from this mechanism. But I am still not able to understand how a single method in a code can cause the whole server to crash. Has anybody here faced such a problem? Any pointers would be appreciated.
    We are using SAP PI 7.31 java only installation.
    Thanks,
    Ravi Desai

    Hi Ravi
    1. To check if it is a memory issue. Once you start the channel, check the memory usage in nwa. Check if the memory is increasing once the channel is started.
    2. Add debug statements to print logs in default traces at as many places as possible. Since your code is not reaching the Catch block, using the debug statement you can reach the line in the code which is causing this issue.
    Regards
    Osman Jabri

  • Code to retrive the sender and receiver interface names using custome adapter module

    Hello Team,
    I want to develop an custom adapter module which could retrieve the names of the sender and receiver interfaces of the scenario and for that i am trying to use com.sap.aii.af.service.administration.api.monitoring.ProcessContextFactory.ParamSet but i don't know whether this API will support or not and also i don't know how to develop the code using this API so please suggest me some code for it so that i could retrieve the names.
    Thanks you all in advance.
    Regards,
    Avinash.   

    Hi,
    Just ASMA setting will do the needful. Are you planning to rename your target file name. If yes then only you will require UDF.
    Update: Since your directory name will be taken from source file name then you have to use mapping for this, else it will not be possible.
    I don't know if creating a new module for this will help you solve the issue, but in that case rather creating adapter module, mapping will be easier.
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Dec 7, 2009 3:04 PM

  • Get/set message interface name in adapter module

    Hello,
    From an adapter module, I'd like to get or even set the Message Interface name of the message that is handed over to the function "process" of the adapter module.
    I've got two context's, sessioncontext and modulecontext. With both contexts, you can get values from that context. I'm not sure which context has the message interface name of the message currently being processed, and I'm also not sure what that value is called (moduleContext.getContextData("name");).
    The reason for this is that sometimes you'd like to do something different depending on the type of message being processed.
    If anyone knows how to do this, I'd be glad to hear.
    Thanks in advance for any advice!
    Greetings, Walter.

    Hi Walter,
    It is fairly easy to get the interface name. When you have extracted the XIMessage there is a parameter, which allows you get the Action, where you can get the interface name.
    I have tried to change the interface name. You need to create a new message an copy the content from the old message over to this. This is a little tricky and I'm not able to get any code samples for you.
    /daniel

  • How to get the sent date in Adapter Module

    Hi
    How to get Sent Date in Adapter Module. I have used message.getSentTime(). But i am getting in 1179051733406 format is there any way to change this format.
    Is there any other way to get the date when file sending.?
    Is it possible to get Soap Header data Run Time xml file elements (<SAP:Date>) in SXMB_MONI into my Adapter Module.
    Please Help Me
    Best Regards
    Ravi Shankar B

    Is it possible to get Soap Header data Run Time xml file elements (<SAP:Date>) in SXMB_MONI into my Adapter Module.?
    Hi ravi, if you enable Adapter specific Message Attributes in your Adapter CC,(Source File TimeStamp), you can access the same in your ADapter code as a dynamic configuration
    Regards
    krishna

  • Get poll interval parameter from adapter module

    Hi,
    I'd like to make special treatment in my adapter module based on the "poll interval" information filled in Processing Parameters part of the adapter configuration.
    Can an adapter module access this information?
    regards
    Yann

    Hi Yann,
    >>>>Can an adapter module access this information?
    of course it can you just have to use
    a correct parameter's name
    check this post to get the java code
    Re: Access the URL Parameter from a Adaptermodule
    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>

  • Custom adapter module throwing exception

    Hi,
         We have written an adapter module (EJB) to convert a file structure into XML for conversion in XI. Using file adapter(FTP), we are getting the files converted into XML without any problem. However, when there is no file in the directory the module is throwing an exception and writing an entry into the log (polling interval is 1 minute).
    The requirement is when there is no file in the directory, the adapter should keep on polling, but without generating any exception or making an entry in the log.
    Can anyone help out with this please?

    strange...
    if a file is not found in the specified directory where your file adapter is polling, it is not possible that the control comes to the adapter module you have specified in the module chain.
    have you done something unusual in your CC config i.e. added only your module in the module chain and removed CallSAPAdapter

  • Required JAR's for developing custom adapter modules for PI 7.31 SP 09

    Hello experts,
    I have a new development wherein i have to consume .xlsx files in PI 7.31
    i have gone through a lot of blogs but did not find any relevant JAR's specially for PI 7.31, I am planning  to go for custom module development for conversion of .xlsx file into xml
    so need your help for finding the JAR's for PI 7.31 and also some custom JAVA source code for conversion of excel spreadsheet into XML.
    Regards,
    Sushant.Shinde

    Hi sushant,
    The module key seems correct ffor you. But the blog you shared is cozy. I developed 4 adapter modules using a document. Please refer that.
    And NWDS EHP1 is available you can use that to be perfectly sure on compatibility.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?overridelayout=true
    use the above document to verify the steps you followed-
    Please provide following screenshots
    NWA->configuration->infrastructure->Application Modules-> and search for *xlmodule*
    if you find your module then click on it and at the bottom there will be a window with JNDI Name. Share that JNDI name and use that JNDI name in your Module. (localejbs/JNDIName).
    Also go to NWA->TroubleShooting-> JNDI Browser and see where is your Adapter module situated. I mean under which directory. Either directly inside root/localejbs/ or root/localejbs/sap.com.
    Please verify your steps according to that and redeploy and share result.
    and Go to NWA- Site Map-> find Start & Stop
    In that go to Java Applicaitons Tab and search for your module. It must be started. If it is stopped try starting it.
    Regards,
    Vikas

  • How and when the realDelete method gets called for a custom adapter?

    Hi,
    I am a newbie in sun identity manager and is in the process of writing a custom adapter for documentum resource.
    While I am successful in creating the resource,then provisioning the resource to an user(i.e creating an account of the user on documentum ) updating the user through idm I am not being able to deprovision the resource.
    Actually in the trace I am not seeing the realDelete method getting called anywhere,but I am sure if it gets called it would do its designated job bcos as a standalone code it's working.
    Does this mean I am not properly doing deprovisioning in sun-idm?
    What method I am employing is in the assignment list of the user,i am putting the resource from assigned to unassigned side(i.e right to left side) just as in case of provisioning I have put it from left to right.
    Is it the standard way of deprovisioning or am I missing something here?
    Any sort of help would be highly appreciated.
    Thanks
    anjan

    You need to read that manual with more caution. It has all info you need.
    1. Table modification info stays in shared pool and flushed into dictionary by Oracle automatically. You can explicity do it by calling dbms_stats.flush_database_monitoring_info.
    2. dba_tab_modifications view = How many DML are applied to target table?
    dba_tab_statistics.stale_stats = Is statistics stale?
    3. When you call dbms_stats.gather... familiy, Oracle flushed the stale info to disk. You gnerally don't need to care about that.
    4. Statistics is considered to be stale, when the change is over 10% of current rows.
    (As of 11g, this value can be customized per objects. Cool feature)
    create table t_stat(id int);
    insert into t_stat select rownum from all_objects where rownum <= 100;
    commit;
    exec dbms_stats.gather_table_stats(user, 'T_STAT');
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No row selected
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO
    insert into t_stat select rownum from all_objects where rownum <= 20;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    No rows selected <-- Oops
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    NO  <-- Oops
    exec dbms_stats.flush_database_monitoring_info;
    select * from sys.dba_tab_modifications where table_name = 'T_STAT';
    TABLE_OWNER     TABLE_NAME     PARTITION_NAME     SUBPARTITION_NAME     INSERTS     UPDATES     DELETES     TIMESTAMP     TRUNCATED     DROP_SEGMENTS
    UKJA     T_STAT               20     0     0     2008-01-18 PM 11:30:19     NO     0
    select stale_stats from sys.dba_tab_statistics where table_name = 'T_STAT';
    YES

  • Get Message Details with C3PO & ObjAPI

    Has been a while since my last attempts but I have started experimenting
    with C3PO on GW2012 again.
    I hooked into the GW.MESSAGE.MAIL eGW_CMDID_OPEN event just fine,
    get the message ID, and now try to retrieve some message details with
    ObjectAPI.
    No shared folders, or proxies, just personal messages.
    The exception occurs when calling gwAccount.GetMessage(msgId)
    This seems so basic, it must be something pretty simple.
    Any suggestion?
    Thanks
    Wolfgang
    ' function called from execute handler
    ' get details of this message
    Dim cCode As String
    Dim msgId As String
    Dim msgObj As Object ' ObjAPI message object
    ' actually these objects are stored globally,
    ' and moved here just for testing purposes
    Dim gwCommander As Object ' TokenAPI handle
    Dim gwSession As Object ' ObjAPI session object
    Dim gwAccount As Object ' ObjAPI account object
    Set gwCommander = CreateObject("GroupWiseCommander")
    Set gwSession = CreateObject("NovellGroupWareSession")
    Set gwAccount = gwSession.Login()
    cCode = gwCommander.Execute("itemmessageidfromview()", msgId)
    If (cCode = "True") Then
    ' OK: shows my email address & message id
    ' like xxxxxxxx.xxxx.xxxxx.xx.xxxxx.x.xxxxx.x
    MsgBox ("getCurrentMessage: " & gwAccount.Owner + " -> " + msgId)
    ' ERR: Object variable or With block variable not set
    msgObj = gwAccount.GetMessage(msgId)
    ' never gets here
    MsgBox ("getCurrentMessage(): " & msgObj.Subject )
    End If

    On 4/15/2013 12:40 PM, Wolfgang Schreiber wrote:
    > Has been a while since my last attempts but I have started experimenting
    > with C3PO on GW2012 again.
    >
    > I hooked into the GW.MESSAGE.MAIL eGW_CMDID_OPEN event just fine,
    > get the message ID, and now try to retrieve some message details with
    > ObjectAPI.
    > No shared folders, or proxies, just personal messages.
    >
    > The exception occurs when calling gwAccount.GetMessage(msgId)
    >
    > This seems so basic, it must be something pretty simple.
    > Any suggestion?
    >
    > Thanks
    >
    > Wolfgang
    >
    I may be misrecalling but shouldn't it be
    Set msgObj = gwAccount.GetMessage(msgId)
    >
    > ' *************************************************
    >
    > ' function called from execute handler
    > ' get details of this message
    > '
    > Dim cCode As String
    > Dim msgId As String
    > Dim msgObj As Object ' ObjAPI message object
    >
    > ' actually these objects are stored globally,
    > ' and moved here just for testing purposes
    > Dim gwCommander As Object ' TokenAPI handle
    > Dim gwSession As Object ' ObjAPI session object
    > Dim gwAccount As Object ' ObjAPI account object
    > Set gwCommander = CreateObject("GroupWiseCommander")
    > Set gwSession = CreateObject("NovellGroupWareSession")
    > Set gwAccount = gwSession.Login()
    >
    > cCode = gwCommander.Execute("itemmessageidfromview()", msgId)
    >
    > If (cCode = "True") Then
    > ' OK: shows my email address & message id
    > ' like xxxxxxxx.xxxx.xxxxx.xx.xxxxx.x.xxxxx.x
    > MsgBox ("getCurrentMessage: " & gwAccount.Owner + " -> " + msgId)
    >
    > ' ERR: Object variable or With block variable not set
    > msgObj = gwAccount.GetMessage(msgId)
    >
    > ' never gets here
    > MsgBox ("getCurrentMessage(): " & msgObj.Subject )
    > End If
    >
    > ' *************************************************

Maybe you are looking for

  • Ntoskrnl.exe System %100 disk usage with windows 8.1. all the time!.

    hello i am also having the %100 disk usage problem and am starting a thread to upload my etl. file and see if i can get a solution. thnx. i should also mention i have tried every suggestion i have read on the internet even ones that worked for other

  • Disable Remote Resigtry service for SQL Server failover cluster

    Hi, Is it safe to disable Remote Registry service from the the two nodes of SQL Server failover clustering? Operating system: Microsoft Server 2008 R2 Enterprise Edition (64-bit) Database software: Microsoft SQL Server 2008 R2 Enterprise Edition (64-

  • 5130 phonebook entries sorting problem

    I have transferred my previous phone's contacts via PC application to my new Nokia 5130, but the phone sorts the entries by Last name. Is there a way to set the sorting to be by First name? I don't want to have to edit all my entries. Solved! Go to S

  • LSMW With multiple files

    Hi All, I am trying to see if it is possible to use two files in one LSMW session. I have a file with two columns: Legacy code and Amount I have another fie which is a lookup table and have two columns Legacy code and SAp wage type Is there way so th

  • Getting back Free Space on HD

    Okay I just upgraded to Leopard and Im need more free space for the needed updates. I have 22 GBs of music and a bunch of photos. What I really need is to figure out how to get back some freespace that I know I need. I know Im not using all the 80GB'