Idoc - jdbc context object problem

hi all,
in my scenario i am sending message from 1 idoc to 3 oracle table,
i have one condition for one oracle table.
That if "e_code" field of idoc is empty then no record should be insert into table1.
so what i have to do.
i also try context object but i have define context object but it is not showing in id.
is there any other way to resolve my problem.

Hi Alex,
No need to go upto MI and IM
u control on Message Mapping MM front.
Just check "e_code" is "0 - empty" or exists
based on that generate u r Statement node of u r table1.
this would do
rgds
srini

Similar Messages

  • Context object problem

    hi,
    i have created a context object of type xsd:string and have assigned to a Message interface and have activated the change list.
    In Integration directory when i am configuring the receiver determination i wanted to specify a condition.
    i cannot see the context object in my condition editor. my sender is a business system with an SLD entry.
    but if i use my sender as a business service i can see the context object.
    my question is why cannot i see the context object when the sender is a business system.
    appreciate ur response
    thanks

    Hi.
    I'm having the same problem.
    Mi sender is a business system with a ZBAPI. R3->XI (BPM)
    I've created a context object and assigned to a field of ZBAPI.
    When i create the receiver determination, as sender i put the R3, with the ZBAPI and as receiver, i've got a BPM. When i try to set the condition, i cannot see the context object neither ZBAPI in Xpath.
    I have only one software component and i would like to use this context objet in order to set the BPM that will continue the process.
    Thanks.

  • Context Object for IDOC in Receiver Determination

    hi,
    I am trying to filter the receivers based on the vendor values in IDOC ORDERS using Context Object.
    I don't see the vendor field where i could filter the value.
    Any ideas would be greatful.
    Thanks,
    Tirumal

    hi,
    Conditional Receiver determaintion is possible only on the Source Message. the reason being that the integration engine will first execute receiver determiantion--> interface determiantion --> message mapping.
    If you are getting the IDOC as a source, then you can use the XPATH to do conditional receiver determination.
    Regards,
    Bhavesh

  • Assign Context Object "ProcessStep" to BPE variable?

    Hi all!
    What exact information does the <b>standard Context Object "ProcessStep"</b> (which should be available in BPM as stated in help.sap.com) include? Is it the ID of the current Workflow-Item / the instance ID of the parent BP process ...?
    I can not test it - since assigning this context object to a simple container variable (string) in my BPM results in the error: <b>The Value of Expression '&<MessageVarName>.PROCESSSTEP&' Cannot Serve As the Source of an Assignment</b>
    during Runtime Activation in "SXI_CACHE" !!????
    Any idea how this "ProcessStep" Context object is correctly used?
    Many thanks in advance ...
    Best regards,
    Andy
    Message was edited by: Andreas Scherf

    Read the error message:
    jservlet2\jservlet2-examples\ch09\ConfirmBookingDetail.
    ava:16: elementAt(int) in java.util.Vector cannot be
    applied to (java.lang.String)
    timeslot=table.elementAt(req.getParameter("timeslot"))Your problem is that the elementAt function in Vector doesn't have a string parameter. I've highlighted the problem
    Timetable table=new Timetable();
    String timeslot=null;
    timeslot=table.elementAt(req.getParameter("timeslot")).
    oString();
    i got the error...
    C:\Downloads\java\jasonHunter
    toString();
    ^
    why is it so?

  • Context Object not found in Integration Directory

    Hi experts,
    I am trying to do a content based routing scenario using BPM.
    The Scenario is
    ASYNC -> SYNC -> ASYNC
    The synchronous step here refers to a rfc call. The response from this determines the ASYNC systems to which data should be sent.
    I have declared container objects REQ and RESP accordingly in the BPM. Also have a Context object for the response.
    My issue is, while doing receiver determination, I am unable to find neither RESP message type ( for XPATH ) nor a context object declared in ESR for creating an expression.
    Could someone please help/guide me to resolve this.
    Please let me know if I was not clear.
    Thank you.

    Hi,
    I am on 7.11.
    The problem I am facing is that I am unable to find the corresponding structure to be used for XPATH.
    As mentioned, the scenario is
    ASYNC -> SYNC -> ASYNC's.
    I have two container variables : REq and RESP. RESP is populated after the SYNC call. The message type for the subsequent ASYNC is REQ ( step description ).
    So when I do receiver determination for ASYNC, I am able to see only REQ message type for building the expression. ( Obvious )
    But I would need RESP to build it.
    Please advise.

  • Context Obect Problem in PI 7.1

    Hi all,
      I am using PI 7.1,
    I have created the Context Object and Assigned to the "Service Interface(Outbound)" Message in ESR.
    and I have created the Receiver Role where I selected the Context object and gave the Receiver System also.
    Now I am getting the Error in Receiver Determination, while inserting the Receiver Role.
    Message is as follow,
    Check Result for Object | APPL1 | PlainStudent_Sync_out Checking local rule... Checking rule testt used and its context objects
    Cannot read context objects because software component version of interface is unknown
    Any Idea.. what may the Problem..?
    Thanks,
    Dhanabal

    Hi Dhanabal,
    Try the steps below
    1. Open your Outbound Message Interface (which you are using in your Receiver Determination) in IR, edit it and change the Interface pattern (which is there just below the category "Outbound") to "Stateless (XI30 - Compatible)" , save it activate it.
    2. Follow the same step for your Inbound Message Interface. Change the Interface Pattern from "Sateless" to "Stateless (XI30 - Compatible)" .
    3. Go to ID. Remove your Outbound and Inbound Message Interface from their respective Business Service/Comp and add it again.
    4. Create your your receiver determination again using the Outbound and Inbound MI you have changed.
    5. Open condition editor of your receiver determination.You should be able to see your Message Interface and can choose the XPath
    Thanks,
    Raj

  • Context menu problem in ADF 11g

    Hi All,
    A context menu problem puzzle me. Following is the source,
    =======================================
    <af:tree id="tree" value="#{treeTest.collectionModel}" var="node"
    contentDelivery="immediate"
    disclosedRowKeys="#{treeTest.treeDisclosedRowKeys}"
    rowDisclosureListener="#{treeTest.rowDisclosureListener}"
    rowSelection="single">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:image source="/image/#{node.treeLevel}.jpg" id="i1"
    inlineStyle="width:16px; height:16px; vertical-align:middle;"/>
    <af:outputText id="ddl" value="#{node.name}">
    <af:showPopupBehavior popupId="myPopup" triggerType="contextMenu"/>
    </af:outputText>
    </af:group>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup id="myPopup" popupFetchListener="#{treeTest.popupListener}"
    contentDelivery="lazyUncached">
    <af:switcher id="s1" facetName="#{treeTest.level}">
    <f:facet name="1">
    <af:menu text="menu 1" id="m1">
    <af:forEach items="#{treeTest.menuItems['0']}" var="menuItemss">
    <af:commandMenuItem text="#{menuItemss.name}"
    actionListener="#{bindings.onNodeClicked.execute}"
    disabled="#{!bindings.onNodeClicked.enabled}">
    </af:commandMenuItem>
    </af:forEach>
    </af:menu>
    </f:facet>
    <f:facet name="2">
    <af:menu text="menu 2" id="menu1">
    <af:forEach items="#{treeTest.menuItems['1']}" var="menuItemss">
    <af:commandMenuItem text="#{menuItemss.name}"
    actionListener="#{bindings.onNodeClicked.execute}"
    disabled="#{!bindings.onNodeClicked.enabled}">
    </af:commandMenuItem>
    </af:forEach>
    </af:menu>
    </f:facet>
    </af:switcher>
    </af:popup>
    </f:facet>
    </af:tree>
    ========================================================
    I want to get the commandMenuItem tag's information, i use following code in onNodeClicked method try to get it,
    FacesContext facesContext =FacesContext.getCurrentInstance();
    ELContext elContext = facesContext.getELContext();
    ExpressionFactory expressionFactory =facesContext.getApplication().getExpressionFactory();
    ValueExpression exp =expressionFactory.createValueExpression(elContext,"#{menuItemss.name}", Object.class);
    but the exp is null.
    Please help me to solve this problem.
    Thank you very much.
    Edited by: Yitao Li on Dec 4, 2009 1:06 PM

    You might need a #
    ValueExpression exp =expressionFactory.createValueExpression(elContext,"#{menuItemss.name}", Object.class);

  • Context objects

    Hi.
    I'm trying to use context object in order to decide what BPM should be used in a receiver determination.
    As sender, i have an R3 with an ZBAPI_CONFIRMATION.
    As receiver, 4 BPM. Each BPM is different and depending of a value of ZBAPI_CONFIRMATION, a BPM has to be executed.
    In repository, in imported objects, i have linked the context object to the field AAAA of ZBAPI_CONFIRMATION.
    The problem is that i can't view the context object in the condition of receiver determination.
    Any solution?
    Many thanks.

    I did the same and it worked for me.
    Add the product in the technical system(SLD).
    Select the check box for this particular product in the business system(SLD).
    In the Integration directory, do a SLD cache refresh. Use the menu Environment --> Clear SLD Data Cache.(this is the main thing)...
    If this does not work.... try removing the business system and adding it back again...
    Thanks,
    Renjith.

  • What is context objects and how we can use it Receiver Determination

    hi,
    i have situation here a idoc is triggered into the xi and i need to use the conditions in the receiverdetermination in that condition i need to use  context object how i can use it? and what is the difference it makes and why i need to use it?
    thanks in advance
    Amaresh

    HI,
    Context objects are alternative to XPATH expressions. It is like macros in other programming langugage. If you define this , you can use this object in the receiver determination while doing conditional receiver determination
    For more-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm
    /people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object
    Regards,
    Moorthy

  • IDoc - JDBC, acknowledgment not possible

    Hi Guys.
    I've this scenario, It makes a branch, to a BPM and to a JDBC. The problem is, i got an error at the JDBC acknowledgment response (Acknowledgment not possible)
                            IDOC
    Branch
                   BPM                 JDBC
              No errors              Acknowledgment
            in acknowledgment        not possible
    This scenario was made by a external consultant, and i don't know where is the JDBC acknowledgment defined.
    Does anyone know, where can i modified this and disable the acknowledgment response for the JDBC?
    Thanks in advance.

    HI,
    Go to BPM and check the Send Step .. Is it has mode as acknowledgement etc ?
    Also check is Exception Branch has been defined ?
    to suppress the ack for Idoc -[page no 10 - entry in table IDXNOALE in XI system
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    Regards,
    Moorthy

  • IDOC- JDBC    ---  ORA-00936: missing expression  - Error

    Hi all,
    I am working on a IDOC-> JDBC scenario.
    it works fine in development but in quality i amgetting the following message.
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'T_SAP_COST' (structure 'Statement2'): java.sql.SQLException: ORA-00936: missing expression
    there is no issue with mapping and i compared and everything is exactly the same as development.
    Has someone come accross a similar issue.
    Regards,
    Tarun Bahal

    This is not an error with respect to XI. There is some problem with the SQL query generated after the mapping. Generally ORA____ kind of errors are comman in JDBC Senario and even Oracle maintains something like our SAP Note for each ORA errors. I am not sure about the URL for searching this error. You can check in this URL too, [ORA-00936 |http://ora-00936.ora-code.com/] http://ora-00936.ora-code.com/
    Since you are saying that it works fine in developement, you can check with the data. Whether it is generating the SQL Statement properly or not. Also confirm whether you have sufficient data in the quality systems to generate the SQL Statement properly.
    Edited by: Prasad Ulagappan on Oct 16, 2008 11:34 AM

  • Error: Assignment of Context Object is Incomplete

    I am experiencing a rather odd problem in PI 7.1 SPS 7 - I am unable to add a context object to my Service Interface.
    First I create an xsd:string context object called "JobNumber".
    In the same SWCV, I open my service interface.  (abstract, stateless XI 3.0 Compat, asynch) and click the "Context Object" button.  In the Context Object Assignment screen, I navigate to the appropriate node in my schema and assign the context object.  When I save & activate the changes to my service interface I get this error:
    Check Result for Object SynchIncident
    Check of operations for service interface
    Check of operation SynchIncident
    Assignment of Context Object OMS_JobNumber | http://oge.com/ccs/order is incomplete
    Furthermore, if I click the button "Check and Correct Assignments for Context Objects" PI removes the context object altogether.
    Operation 'SynchIncident':
    Assignment of Context Object OMS_JobNumber |
    http://oge.com/ccs/order is redundant and will be removed
    Any suggestions for resolving this issue?

    hi
    Most likely, applying the latest XI patches for your current SP release will resolve this issue. The components that you need to apply the patches are:       
    SAP-XIAFC                                                              
    SAP_XIAF                                                               
    SAP_XIESR                                                              
    SAP_XITOOL    
    Regards
    Mark
    Edited by: Mark Smyth on Aug 25, 2009 8:53 PM

  • Reusing the Initial Context Object

    Hi all
    Environment: Weblogic 452
    JNDI implementation of Weblogic 452 is based on Javasoft JNDI 1.1 and
    SPI specifications.(refer: Developer docs for 452).Javadoc of
    InitialContext for JNDI 1.1 says (refer -
    http://java.sun.com/products/jndi/javadoc/index.html)
    An InitialContext instance is not synchronized against concurrent access
    by multiple threads. Multiple threads each manipulating their own
    InitialContext
    instances need not synchronize. Threads that need to access a single
    InitialContext instance concurrently should synchronize amongst
    themselves
    and provide the necessary locking
    1. Does reusing the InitialContext object accross threads for lookup and
    then execution of remote methods cause any problems? or should we
    synchronize access?
    How weblogic 452 handles this.
    2. Let say i do this
    a. get InitialContext
    b. do lookup
    c. get remote reference
    d. close context
    e. execute methods on the remote reference got in step c.
    does doing d ie..closing context cause problems in step e or later
    on....
    3. What happens if we dont close the intial context...
    Does WLS 452 intelligently garbage collect them and release any
    resources held internally by the initial context object?
    How much is the overhead?
    Is Initial Context heavy ie.. holds resources like sockets/etc...?
    thanks in advance

    I do not have an exact answer for most of your questions. From my
    experience and from research, I would suggest that the following is safe:
    Within an HTTP request, instantiate an InitialContext and using it for the
    duration of the request only (i.e. same auth info, same thread). I believe
    the same holds true for home interfaces. That is within the "web
    container", though. The choice of "caching" the context in the "ejb
    container" is a even easier for threads (ejb guarantee -- only one thread
    with access to your ejb at a time), but harder due to lack of clear spec on
    auth issues.
    Cameron Purdy, LiveWater
    "S Rajesh" <[email protected]> wrote in message
    news:[email protected]...
    Hi all
    Environment: Weblogic 452
    JNDI implementation of Weblogic 452 is based on Javasoft JNDI 1.1 and
    SPI specifications.(refer: Developer docs for 452).Javadoc of
    InitialContext for JNDI 1.1 says (refer -
    http://java.sun.com/products/jndi/javadoc/index.html)
    An InitialContext instance is not synchronized against concurrent access
    by multiple threads. Multiple threads each manipulating their own
    InitialContext
    instances need not synchronize. Threads that need to access a single
    InitialContext instance concurrently should synchronize amongst
    themselves
    and provide the necessary locking
    1. Does reusing the InitialContext object accross threads for lookup and
    then execution of remote methods cause any problems? or should we
    synchronize access?
    How weblogic 452 handles this.
    2. Let say i do this
    a. get InitialContext
    b. do lookup
    c. get remote reference
    d. close context
    e. execute methods on the remote reference got in step c.
    does doing d ie..closing context cause problems in step e or later
    on....
    3. What happens if we dont close the intial context...
    Does WLS 452 intelligently garbage collect them and release any
    resources held internally by the initial context object?
    How much is the overhead?
    Is Initial Context heavy ie.. holds resources like sockets/etc...?
    thanks in advance

  • Technical Context Object in ccBPM

    Hi,
    I'm trying to use a technical context object (filename) as part of a condition in a ccBPM. Although I can see the correct value of the dynamic attribute in sxmb_moni (e.g. adapter-specific attributes are set correctly), the condition is not evaluated correctly.
    Is this a XI bug?
    Regards,
    Torsten

    Torsten,
    If you look into this thread and read through the discussion you will get some insight on why a few parameters are not accessible inside the BPM.
    Re: Message id in BPM
    <i>We ran into the same issue and submitted an OSS Message about it. Here's the response from OSS:
    it's a known issue.
    when programming a mapping you must differenciate between two cases:
    Will your mapping be executed on the BPE (business process engine) or
    within an ordinary step on the integration server.
    Due to the different functionality of the BPE (e.g. split/merge) some
    parameters are not accessible and will not be evatuated there. This is a
    behaviour that was designed that way.
    if you are calling the mapping from the BPE engine, the MEssage ID
    and other constants are not accessible. The BPE engine can
    split/merge XI messages and then i makes no sense to correlate
    the messages in the BPE engine to any Message ID.
    If you are executing the mapping
    within an ordinary step on the integration server
    all Mapping Runtime Constants mentioned in the document under
    http://help.sap.com/saphelp_nw04/helpdata/
    en/84/4afc51f65c4e4fabfbbbd25f548ab7/frameset.htm
    ->Design -> Designing Mappings-> Imported Archives (XSLT/Java)
    ->java mapping
    are accessible.
    A possible solution for your problem would be to map the MESSAGE ID
    into the Xi payload before the XI message is transferred to the
    BPE engine. In the BPE engine you can then read the MessageID
    from the XI payload.</i>
    Regards
    Bhavesh

  • Container operation step in BPM using context object

    Hi all,
    in my BPM I have a send step using the file adapter. The file adapter builds a dynamic filename.
    Now I want to have the filename back into an acknowledgement. First, I need it in the container, right?
    So after the send step, I have a container operation step as follows:
    target: simple string
    mode: assign or append, doesn't matter
    expression: In expression editor, I select Interface variable 'message', then context object 'FileName' from namespace http://sap.com/xi/XISystem/File
    This should be the filename from the fileadapter, right?
    In SXI_Cache, I get return code 99:
    The Value of Expression '&MESSAGE.FILENAME&' Cannot Serve As the Source of an Assignment
    Why is there a context object, if you can' t use it??

    As far as I know, the filename in the Dynamic Header will be lost in when the message enters the BPM.
    As a work around, make a mapping at the Interface Determination level that reads the filename from the SOAP header and sets it into the payload which can be accessed inside the BPM.
    Reason the way I see this that the BPM does not store the filename is ,
    1. What if you have multiple receive steps in the BPM with a fork.
    2. How would the context object know which filename you want to read?
    The reason you see this in the context object is because all Context Objects are the info you get from the Adapter metadata.
    Regards
    Bhavesh

Maybe you are looking for

  • New iPhone 4S user: Problems syncing iTunes playlists

    I have had my 4S for only 3 days.  At setup, I indicated that I only wanted several specific playlists to sync to the iPhone, along with a couple of specific artists.  This initially worked fine.  Now, in playing around with the iPhone & the iTunes i

  • Ist mein MacBook Pro, 15", 2,53 GHz, Mitte 2009, mit der CS6 kompatibel? Welche Probleme gibt es dabei?

    Ist mein MacBook Pro, 15", 2,53 GHz, Mitte 2009, mit der CS6 kompatibel? Welche Probleme gibt es dabei?

  • TDS in IDOC

    Hi all,       I am creating invoice in FB60 with TDS and clearing clearing in F110 with IDOC.But TDS amount is not populating in IDOC.If any configuration to be done in my side.Please help me. Regards Sathish Kumar K.C

  • Multiple SQL statement in one step of procedure

    Hi, is it possible to run more than one sql command in only one step of a procedure. I need to run a script which insert about 2-300 records and i don't want to create 2-300 step.. any suggestions ? i tried : insert into myTable (myCol, myCol2) value

  • Ipod Photo storage and Windows Files

    Slightly technical question: I download photos from my Canon camera (EOS 300D) to my Ipod. Then upload to my computer and a file is created in Windows (My pictures) using the date the photos are taken. When I want to delete the photos from My Picture