How to carry out Dynamic Replace action in OSb

Hi all
I want to do a dynamic replace in OSB.
like
Lets my input be :-
<cli:AccountInquiryRequest xmlns:cli="http://client.accountInquiry.dto.cards.nab.cz.fc.ofss.com">
<cli:requestUID>string</cli:requestUID>
<cli:cardType>string</cli:cardType>
<cli:AcctId>5</cli:AcctId>
<cli:scr>AcctId</cli:scr>
<cli:dest>requestUID</cli:dest>
</cli:AccountInquiryRequest>
So what i want to do is check for element name in <scr>(in this case AcctId) and then replace the contains of the <AcctId> with the contains of the element name given in <dest>(in this case its requestUID)
so in this case i want to replace the contain of requestUID with AcctId .
Please help !!!
Thanks

I think you need to determine the xpath used for replace at runtime.. You can try looking at xslt xalan:evaluate function for this.
The function syntax is as :
<xsl:value-of select="xalan:evaluate($XPath)"/>
You need to construct $XPath to point to right xpath . e.g concat("$body/*:",$body/*:dest)
This will make $XPath to = $body/*:requestUID
You can then pass this xpath string to xalan:evaluate.

Similar Messages

  • How to Carry out New Pricing in Sales Order userexit

    Hello,
    In userexit save_document_prepare of program MV45AFZZ, I'm adding an entry in XKOMV for a header pricing condition ZD01.  After saving, if I go back into the order and go directly into the line item conditions, the ZD01 does not exists at the item level.  If I navigate the the header conditions and then go back to the items, ZD01 appears as it should.  I believe what is happening is that the header condition is not being distributed to the line items unless New Pricing is carried out.  If I manually enter the ZD01 condiiton instead of relying on the userexit code, everything works fine.  The header condition is properly distributed to the line items.  Therefore, I believe the configuration is correct.  My question is, "How can I programatically trigger New Pricing from a sales order userexit".  Is this possible in SAVE_DOCUMENT_PREPARE or do I need to do it somewhere else.".
    Thank you,

    this problem has been resolved.  The problem was that I was appending the header condition to XKOMV instead of inserting the header condition as the first line in the table.  SAP will carry out the new pricing if the header condition is on the first line.

  • How to carry out / trigger defined substitution

    Hello,
    Can you tell me why I can not carry out the substitution, which is defined as following:
    Tcode: OPSN
    Applicatn area  PS       Project System
    Callup point    1120     Network activity
    Prerequisite:  AFVGD-STEUS = 'PS01'
    So when I change the some user fields of the (internal) activity in a project, when I save the project, the substition is not carried out, can you tell me what else I need to implement the trigger of substitution.
    Thanks a lot!
    Jing

    Dear,
    For first Query:
    1) Create a value assignment type with type u201CAu201D Node with class with all the tick marks for activate indicator a
    Path: SPRO>>Environment, Health and Safety >> Basic Data and Tools >> Specification management >> Specification Data Base Structure >> Settings for value Assignment >> Specify value Assignment Types.
    Here you will find total value assignment Types available in the system.
    Double click on the value assignemnt type, which you would like to change.
    In this screen you need to select the value ***. Category as "A". after selecting the category "A" you need to enter the class in the column class(valAss.). Select the last 2 check boxes (New VA Active & Change Active) out of six.
    If you want to create a new one go to "new entries" and follow the steps mentioned above.
    For second Query:
    2) Run Table based value assignment creation make sure the check edit is ticked ok
    Once the updations or changes happened in the value assignments, you need to do this activity.
    Path: SPRO>>Environment, Health and Safety >> Basic Data and Tools >> Specification management >> Specification Data Base Structure >> Settings for value Assignment >> Set Up Table-Based Value Assignment
    Here you will find 2 rows
    1. Create Entries for the Value Assignments
    2. Set Up Table-Based Value Assignment
    You need to select "Create Entries for the Value Assignments" first
    double click on this. You will find a execution button. execute it.
    system asks "Do you really want to change value assignment type entries?"
    click on "Yes".
    system updates the information in the value assignment tables, what ever you did the updates in value assignment types.
    you will find the message of "number of new entries and number of entries deleted"
    Go back...........you will find the activity performed tick mark.
    you have to do the same thing in the second line "Set Up Table-Based Value Assignment". Here execution is not required.
    Kamal

  • How to carry out an action on a task in a bpm process from another adf app?

    Hi everyone,
    We have a simple BPM process with only one human task with two actions: approve and reject.
    We want to know if it is possible to approve or reject this task from another adf application; I mean by clicking a button on a different page - not using the Actions menu in workspace, can I change the status of the task to approved or rejected and remove the task from the workspace of the assignee?

    I think you can use ItemAdding event to update your fields. This works better for you instead of ItemAdded event.
    Bala

  • How to Carry out Bulk SMS services on your website

    Hello friends
    Please I would like to introduce bulk sms services on my site I designed it with Fireworks and exported to Dreamweaver, then uploaded. But recently I have decided to make it more dynamic/blog with it by installing Wordpress and would not mind discarding the static aspects of it.
    With this, how can I introduce bulk sms services into this site?
    Thank you in anticipation

    Let me google that for you
    Nancy O.

  • How to carry out entry validation in SM30 with events

    Hi people,
    I'm creating a Z table with Maintenance view in SM30...i've modified the view so all fields are required as Rich H explained in some other post. But now i need to validate user input for a particular field against a standard table, and force to reenter if data is not valid. I've been looking up the available events...event 05 triggers when the line is new, but not when modifying. I've tried a couple of other events but don't serve my purpose. What i want is to validate data upon user's entered all the required fields (whether the line was preeexistant or  not). If data is valid then go on, if not trigger a message and force correction prior continuing (disallowing saving).
    Anyone knows how to do this?
    Many thanks

    I get what you suggest, but unfortunately i've already done that, it's not enough.
    Here's the situation: The table has this fields:
    KSCHL (PK-FK T685)
    LIFNR (PK-FK LFA1)
    EBELN (FK EKKO)
    EBELP (FK EKPO)
    Besides the implicit foreign key validations (i.e. the PO item exists in EKPO), i need to validate that it's not deleted (LOEKZ = 'L') and that the PO vendor is the one entered (i must not enter any PO which vendor isn't the one in that line). Hope I make myself clear.
    This code works but in event 05 (new lines). I need to find out an event for the modified lines as well:
    FORM f_validate_po.
      CHECK NOT ( ztmmiv001rps-lifnr IS INITIAL OR
                  ztmmiv001rps-ebeln IS INITIAL OR
                  ztmmiv001rps-ebelp IS INITIAL ).
      SELECT COUNT(*)
      FROM ekko
      WHERE ebeln = ztmmiv001rps-ebeln AND
            lifnr = ztmmiv001rps-lifnr AND
            exists ( SELECT *
                     FROM ekpo
                     WHERE ebeln = ztmmiv001rps-ebeln AND
                           ebelp = ztmmiv001rps-ebelp AND
                           loekz <> 'L' ).
      IF sy-dbcnt = 0.
        MESSAGE e000.
      ENDIF.
    ENDFORM.

  • How to carry out real-time or near real-time alerts?

    I just wonder when the source audit data transfer to audit vault server, does it done by Refreshing the Warehouse , or another process? Refreshing the Warehouse seems only normalize the raw audit data into the data warehouse. And can we control the frequency of transfering source audit data from soucre to audit valult server ?

    I was traced into transfering audit data from source to audit vault server, and found that it's very quickly to get the new audit data from source db into the audit vault server's table named avsys.av$rads_flat, it's almost realtime, but I have no idea about which process has done this, which process? how to control the frequecy ?
    Although the server has gotten the new audit data into the avsys.av$rads_flat, the warehouse still cann't get the new audit data whatever I refreshed the warehouse via Audit Vault Console or using command "avctl refresh_warehouse -wait" until 24 hours later. user579967 seems has the same problem, it really frustrated me. Is there anyone knows how ?

  • How to carry out license measurement for PLM Content Server

    Hi,
    Can anyone guide us on how the License measurement will work in case we have deployed the content server on a separte hardware box with AIX and Oracle
    thanks

    Hi
    The database is MaxDB and not oracle as mentioned.
    Thanks

  • How to carry out multiple searches on the same engine simultaneously.

    As mentioned above. I'm looking for a way to search multiple text at the same time.

    Can you give a more detailed example of what you mean?
    For example:
    * Do you want to type query #1 into the search box or address bar and open it in results tab #1, then type query #2 into the search box or address bar and open it in results tab #2? To do that, hold down the Alt key when pressing Enter or hold down the Ctrl key when clicking the icon that submits your search.
    * Do you want to combine numerous queries into a single request to Google and get the results all mixed together? You can use OR (must be in capital letters) with quotation marks or parentheses for grouping. For example: Android OR ios OR "windows phone"
    * Something else?

  • OSB: how to figure out the execution time of OSB proxy

    Trying to figure out how to determine the execution time taken for any given OSB proxy. Seems like the OSB built-in alerting facilities can display the average response time of all calls to a proxy but not individually. Is there a way to dig this out from the monitoring data being collected?

    Service monitoring which comes OOTB is supposed to be aggregated because in usual scenarios you dont need to see the processing time of a specific request. From a performance monitoring perspective the useful data usually is average processing time and minimum or maximum processing time for any request within the aggregation interval which is provided by OSB OOTB.
    Now, in some cases the business might want to track each request individually. So, for example they can track how long did it take to process a specific order. OSB does not provide this feature OOTB. There are multiple ways to get this implemented. Two of the most common ways are:
    1. Add a start and end time capturing in Proxy Services. You can use logging/reporting/publish to a DB etc to achieve this. But this is indeed intrusive and you will need to do this for every Proxy which needs to be monitored at every instance level. This is also a slight overhead in processing in itself.
    2. Use monitoring products which can monitor the WS invocations externally. This will mean more investment but definitely a much better solution. You can consider using different products from Oracle and other vendors based on your requirements, features of products and costs. A few examples are OWSM, Oracle EM, CA Wily etc.

  • Dynamic Replacement of IView

    Hi all,
    A portal page to integrate several kinds of contents is in general the best way.
    But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?

    Hi Purav,
    You can refer to this [link|http://help.sap.com/saphelp_nw70/helpdata/en/5f/cf9d4207e1c86ae10000000a155106/frameset.htm] for dynamic assignment of an iview to a page.
    Do you want to assign a particular iview on the basis of user access?
    If yes you need to personalize iview properties for individual users.
    Hope it helps.
    Thanks,
    Ami
    Points are always welcomed.

  • HELP ! Is it possible to carry out DES encyrptor in ABAP?

    How to carry out DES encyrptor in ABAP?

    The XMLConnector.jar is a jar of jars.
    There are some Java Web Application Servers that have issues with unjarring jar of jars for the jars within.
    So for those deployments, I do recommend unjarring XMLConnector.jar.
    For a Web App, you'd put the jars in the jar in the WEB-INF/lib folder, and other content within WEB-INF/classes. This because there's no special handling of a jar of jars - the CRJ engine merely asks the classloader to handle the loading.
    Sincerely,
    Ted Ueda

  • How to create an UI element dynamically on action in drop down?

    Hi,
    How to create an UI element dynamically on action of selecting a value from the  drop down?
    help out with the steps i need to follow..

    Hi,
    <u><i><b>Dynamic UI Element creation</b></i></u>
    We can create it only in the WD Modify View.
    Get the instance for the Root UI Element Container.
    Create the UI element Ex: Input Field, Text View etc.
    Bind the UI Element to the Attribute Value.
    Now bind the UI Element to the Root UI Element Container.
              IWDTransparentContainer root =(IWDTransparentContainer)view.getRootElement();
              IWDDropdownByIndex DdbName = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbName");
              IWDDropdownByIndex DdbAge = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbAge");
              IWDDropdownByIndex DdbGender = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbGender");
              IWDNode Mad =wdContext.getChildNode("Person",0);
              IWDAttributeInfo NameAtt = Mad.getNodeInfo().getAttribute("Name");
              IWDAttributeInfo AgeAtt = Mad.getNodeInfo().getAttribute("Age");
              IWDAttributeInfo GenderAtt = Mad.getNodeInfo().getAttribute("Gender");
              DdbName.bindValue(NameAtt);
              DdbAge.bindValue(AgeAtt);
              DdbGender.bindValue(GenderAtt);
              root.addChild(DdbName);     
              root.addChild(DdbAge);
              root.addChild(DdbGender);
    <u><i><b>Dynamic Action Creation</b></i></u>
    Create the Action in the Action tab.
    Create a Button.
    Get the reference for the created action (Through the Event Handler).
    Bind the Action to the Button.
    Bind the Button to the Root UI element Container.
    IWDButton ButGo = (IWDButton)view.createElement(IWDButton.class,"ButGo");
    IWDAction ActGo = wdThis.wdCreateAction(IPrivateStartView.WDActionEventHandler.GO,"Click");
    ButGo.setOnAction(ActGo);
    root.addChild(ButGo);
    Now write the required code for the Event Handler that is associated with the Action.
    //@@begin onActionGo(ServerEvent)
        IWDNode Mad = wdContext.getChildNode("Person",0);
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Name"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Age"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Gender"));
    //@@end
    Regards
    SURYA

  • How do I restore and carry out maintenance on external drives

    Under OS9 I used to regularly carry out optimising and maintenance on my mac and external hard drives. Now that I'm on OSX, I can't use Norton Utilities - that doesn't seem to work at all. Techtool Pro doesn't seem to fix external hard drives connected by firewire. Neither does Diskwarrior. How do I do maintenance for my mac and my drives. I have an external LaCie 160GB porsche firewire drive - that seems to have stopped working but I can't carry out any serious diagnostics as I have nothing that seems to work - DiskUtility doesn't carry out a full test and comes back with errors. I also have a Formac Oxygen 160GB external drive connected by Firwire which has also recently stopped working (when I mean stopped working, I mean that the mac no longer sees all the files I have stored on the drive and asks me if I want to initialise the drive - to which I obviously say no). I need to access the files on these external drives but can't get the mac to do this. Any help?

    Hi Naz,
    Norton Utilities does not work with OS X -- in fact it often makes problems worse. I fear NU has corrupted your external drives' directory structures.
    * Remove Norton: How to manually uninstall Norton SystemWorks for Macintosh 2.x.
    * Boot from your install CD/DVD and run Disk Utility. Repair Disk for the external drives. If DU can't repair, you can attempt DiskWarrior (it DOES work on external drives).
    Good luck; let us know how it goes.
    John

  • How do you carry out an event if a job finishes with a return code 4?

    Hi
    A job which would complete successfully in SAP via the SM36 scheduler completes with an 'Error' in Redwood CPS because there are errors within the spool and it ends with a return code 4.
    We don't want this to error in Redwood CPS, so we have set the return code mapping to Completed with entries of 0 and 4.
    I.e. whether or not there is an error in the spool, the job will complete successfully in Redwood CPS.
    However, we want to be alerted if there are errors in the spool.
    How do we do this? The manual says "A job can raise one or more events when the job gets a specific job status or return code" - where is this set? I can see on the 'Event' tab of a job definition you can raise an Event when the job enters a specific status, but I only want to raise an event (or carry out a step / send an email etc) if I get a return code 4 (none of the job statuses are relevant) - how can I do this?
    Thanks
    Ross

    Hi Anton
    Thanks for that. However, it's a bit more complicated...
    I have a job chain with 2 steps. Any one of the two steps can have an error in the spool which by default in Redwood CPS result in the job ending in status Error. I don't want this, as the second step should still run if the first step ran okay with with errors in the spool (but shouldn't run at all if the 1st step fails completely). I.e. setting 'on Error goto step 2' or having no dependancy at all is not what we want.
    Therefore, I set the return code mapping on Completed to return codes 0 and 4. I.e. if step 1 has an error in the spool (return code 4) it still ends as 'Completed' and step 2 runs.
    Our problem is that we want to be alerted if there is a return code 4 (error in the spool). I tried as you suggested by entering on the 'Raise Event' tab of the job chain to raise an event on status 'Error' with a return code of 4. But no event was raised. I think this is because the return code mapping is setting the status to 'Completed' (on return code 0 or 4) BEFORE the software checks the status; i.e. the status is actually 'Completed' (rc=4) and not 'Error' (rc=4) so an event is not raised.
    Ideally I want to set the Event to be raised on status 'Completed' with a return code 4 - but when I select 'Completed' the 'Error Code' box is greyed out.
    I.e. can't set this - I can only set on a generic 'Completed' and I don't want to raise a message if the status is Completed but the return code is 0....
    Any ideas??
    Ross

Maybe you are looking for

  • How to track changes in Start date

    Hello Everyone, Currently I am facing a new issue (requirement from management) that they want to track the activity start date change and generate a trend report on that so we cna display it to client that this many activities changed this times. To

  • Connecting a new Magic Mouse to a sleeping iMac

    I'm in the processing of migrating to a new Mac, was backing up some data on the old mac and disconnected the mouse and keyboard from the old one to pair with the new.  Now, the data has finished backing up (I think) and I'd like to reconnect a new M

  • 802.1X EAP-TLS User Certificate Errors

    I'm trying to implement 802.1x using EAP-TLS to authenticate our wireless users/clients (Windows 7 computers).  I did a fair amount of research on how to implement this solution and everything seems to work fine when authentication mode is set to: Co

  • Business Place in Dynamic Selection Screen

    Dear Gurus, I want to bring Business Place field in Dynamic Selection Screen of Transaction code FBL3N. Please guide how to do this. Regards, VS

  • Can't watch shows on a site that requires me to enable ads, but I have no ad-blocker..

    I have a VPN and I'm trying to watch my reg. shows on itv.com - they now require you to enable ads and disable/remove any ad-blockers you may have. Every time I try to watch my show now, I get the message stating I can't watch anything until it's dis