How to round value of container element in task description

I am trying to round the value of the container element from 3 decimals to 2 decimals for display purposes.
The command symbol in the task description is &_WI_Object_Id.OverallTotalCost&. I have looked at SAP Help and I have tried the suggestion of &_WI_Object_Id.OverallTotalCost(.2)& and &_WI_Object_Id.OverallTotalCost(Z.2)& with no success.
I have also searched the sap-wug mailing list and SAP ITToolBox and found no references rounding a container element in a task description. I have seen code assigning a value to a packed decimal variable to round. But I have not been able to get this to work as a command in a description for a task.

I created a new element in the container as suggested by Glauco and added the element binding in the workflow / task binding. Biggest hassle was finding a business object that had a type of 2 decimal places to use for the new container element.
The reason why the SAPScript symbol for reducing the number of decimals does not work in Task texts is because the container elment symbols are resolved first as text. Therefore only the SAPScript commands that apply to text will work like length.

Similar Messages

  • Get the value of Container element in message mapping

    Hi,
    Is it possible to read the value of container elements(bpm) in a UDF defined in message mapping. If yes, please tell me how?
    Thanks and regards,
    Siji

    Siji,
    Refer thread - Creating the container Object In Java Mapping
    Regards,
    Geetha

  • Assigning a value to container element in rule defination

    I am using a rule to determine an actual agent. I am using a function module containing actor_tab and ac_conatiner in TABLES parameter. the agent determined is appended to internal table actor_tab. I want this agent to be available in a container element(say: APPROVER) to use it further. I am trying to assingn the agent value to container element using macro  swc_set_element ac_container 'APPROVER' agent-name. But its not working...any other way to assgn this agent to the container element. Bindings from workflow container to rule container are proper.
    Edited by: Rishi Bhatia on Oct 19, 2008 2:46 PM

    i think you cannot modify the container element from Rule.
    the agents of the task determined by the Rule will be stored in some variable of the container automatically (i think it is RuleResult.Agents). you can check this yourself and then bind this element of the task to your APPROVER element.

  • Container element in task item text and task description inconsistent

    We use the purchase order release workflow 20000075: Workflow for release of purchase order
    The container element Release indicator (&_WI_Object_Id.ReleaseIndicator&) is used in the PO release effected task TS20000168 in work item text (title) and task desription (body text). 
    When we release the PO a workflow notification is send to the PO creator, the title text shown Release indicator = Z (released) and task body text shown release indicator = Z (same). 
    However, we do a cancel (undo) to the release of the PO, now when we view the same workflow nofication again the task work item text (title) shown Release indicator = Z (released) and task body text shown release indicator = X (blocked) -latest status.   
    In this scenario the title text does not updated with the latest release indicator value, the task body text does. Task work item title text and task body text is inconsistent for the release indicator. When we view the workflow notification at this point is confused with the release indicator Z and X (approved in task tile  and Blocked in task body text).
    Please help how to resolve this issue, any way to make the body text release indicator does not change once the notification is generated??

    This is very weird!!!!!  I will suggest you to check the binding such that the PO Object is binded from Workflow to Task and viceversa.
    Thanks
    Arghadip

  • Get container element of task container

    Hi,
    in my method of a Business Object I need to get the value of the element WorkitemID of my task container.
    I tried the following to read the value of the element:
    swc_get_element container 'WorkitemID' lv_wiid.
    But I don't get the workitemID of the task.
    What am I doing wrong here?
    Thanks for your help.
    Regards,
    Martin

    Hi Martin,
    Are you making a call to the BO method from the task you are using?
    If yes, then in the binding between the task container and the method container, pass the workitem element you need to pass to the method.
    In the BO method, add an input parameter 'WorkitemID' of the same type as the workitem element.
    Now create a data element in the method code of name 'lv_wiid' of the same type as WorkitemID.
    Then use the code:
    swc_get_element container 'WorkitemID' lv_wiid
    to fetch the value of the element in the code.
    Hope this helps!
    Regards,
    Saumya

  • How to change value of array element using property node

    hello all : )
    im using an array of combo-box. the size of array is not fixed.
    i want to use the strings[ ] property of combo-box to enter selection texts but since i have placed it inside the array im unable to use this property.
    i used 'arrayelem' reference property and connected property node to it but didnt got strings [ ] in the selection.
    so is there any way i can use the strings [ ] property
    Solved!
    Go to Solution.

    the picture what I posted is a snippet. It is a png file which also contains a vi:
    http://www.ni.com/tutorial/9330/en/
    I have found this post. I am just reading it:
    http://forums.ni.com/t5/LabVIEW/combobox-in-array-why-does-it-work-this-way/m-p/2146916/highlight/tr...
    It might help...
    hmm, it is more complicated as I thought )
    edit: just to be CLEAR: so you want to create a new selection LIST for each of the array elements (comboboxes)) OR you just want to set all the comboboxes to a particular value which is ALREADY in the combobox list??

  • How to select values of nested elements that have maxOccurs="unbounded"

    I have the following xml schema and xml data:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--W3C Schema generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qbl="http://10.0.1.233:8080/home/cpa/xsd/qbl.xsd" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" xdb:storeVarrayAsTable="true">
    <xs:element name="QBL_Envelope" type="QBL_Envelope_Type" xdb:defaultTable="MYQBL"/>
         <xs:complexType name="QBL_Envelope_Type">
         <xs:sequence>
                   <xs:element ref="Transmission_Date" minOccurs="0"/>
                   <xs:element ref="QBL" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
    <xs:element name="Transmission_Date" type="xs:string"/>
    <xs:element name="QBL">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="QBL_Number"/>
                        <xs:element ref="Priority"/>
                        <xs:element ref="Date_Prepared"/>
                        <xs:element ref="Line_Item" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="QBL_Number" type="xs:string"/>
    <xs:element name="Priority" type="xs:string"/>
    <xs:element name="Date_Prepared" type="xs:string"/>     
         <xs:element name="Line_Item">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Item_Name" maxOccurs="unbounded"/>
                        <xs:element ref="Line_Item_Weight"/>
                        <xs:element ref="Line_Item_Cube_Info"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Line_Item_Cube_Info">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="Line_Item_Cube" minOccurs="0"/>
                        <xs:element ref="Line_Item_Cube_Qualifier" minOccurs="0"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="Line_Item_Cube" type="xs:string"/>
    <xs:element name="Line_Item_Cube_Qualifier" type="xs:string"/>
    <xs:element name="Item_Name" type="xs:string"/>
         <xs:element name="Line_Item_Weight" type="xs:string"/>
    </xs:schema>
    insert into MYQBL values(
    xmltype('<QBL_Envelope>
         <Transmission_Date>030531</Transmission_Date>
         <QBL>
              <QBL_Number>316180J2</QBL_Number>
              <Priority>3</Priority>
              <Date_Prepared>20030530</Date_Prepared>
              <Line_Item>
                   <Item_Name>FREIGHT ALL KINDS</Item_Name>
    <Item_Name>Specail Item</Item_Name>
                   <Line_Item_Weight>0000212</Line_Item_Weight>
                   <Line_Item_Cube_Info>
                        <Line_Item_Cube>31.1</Line_Item_Cube>
                        <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
                   </Line_Item_Cube_Info>
              </Line_Item>
    <Line_Item>
                   <Item_Name>AAAAAA</Item_Name>
    <Item_Name>BBBBBBBB</Item_Name>
                   <Line_Item_Weight>0000512</Line_Item_Weight>
                   <Line_Item_Cube_Info>
                        <Line_Item_Cube>67.1</Line_Item_Cube>
                        <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
                   </Line_Item_Cube_Info>
              </Line_Item>
    </QBL>
    </QBL_Envelope>').createSchemaBasedXML('http://10.0.1.233:8080/home/cpa/xsd/qbl.xsd'));
    My question is how to select
    /QBL_Envelope/QBL/QBL_Number,
    /QBL_Envelope/QBL/Line_Item/Item_Name,
    /QBL_Envelope/QBL/Line_Item/Line_Item_Weight,
    /QBL_Envelope/QBL/Line_Item/Line_Item_Cube_Info/Line_Item_Cube
    /QBL_Envelope/QBL/Line_Item/Line_Item_Cube_Info/Line_Item_Cube_Qualifier
    in a select stetament? (Note that these elements QBL_Number, Line_Item and Item_Name have maxOccurs="unbounded") actually I want to use the select statement to create a view.
    I tried the following select statement and it works fine:
    select extractValue(value(b), '/QBL/QBL_Number'),
    extractValue(value(b), '/QBL/Priority'),
    extractValue(value(b), '/QBL/Date_Prepared')
    from egbl e, table(xmlsequence(extract(value(e), '/QBL_Envelope/QBL'))) b
    Please advise. It is import to us. Thank you for your help in advance!!!
    The database version is 9.2.0.3.0 and the operating system is Windows 2000.
    Thanks,
    Mary Wu

    Hi Mark,
    Thank you for your reply and I really appreciate!
    I tried the select statement you gave me but I got error:
    SQL*Plus: Release 9.2.0.3.0 - Production on Fri Aug 1 09:11:03 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL> set long 10000;
    SQL> set pagesize 10000
    SQL> select * from myqbl;
    SYS_NC_ROWINFO$
    <QBL_Envelope>
    <Transmission_Date>030531</Transmission_Date>
    <QBL>
    <QBL_Number>316180J2</QBL_Number>
    <Priority>3</Priority>
    <Date_Prepared>20030530</Date_Prepared>
    <Line_Item>
    <Item_Name>FREIGHT ALL KINDS</Item_Name>
    <Item_Name>Specail Item</Item_Name>
    <Line_Item_Weight>0000212</Line_Item_Weight>
    <Line_Item_Cube_Info>
    <Line_Item_Cube>31.1</Line_Item_Cube>
    <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
    </Line_Item_Cube_Info>
    </Line_Item>
    <Line_Item>
    <Item_Name>AAAAAA</Item_Name>
    <Item_Name>BBBBBBBB</Item_Name>
    <Line_Item_Weight>0000512</Line_Item_Weight>
    <Line_Item_Cube_Info>
    <Line_Item_Cube>67.1</Line_Item_Cube>
    <Line_Item_Cube_Qualifier>E</Line_Item_Cube_Qualifier>
    </Line_Item_Cube_Info>
    </Line_Item>
    </QBL>
    </QBL_Envelope>
    SQL> select extractValue(value(q), '/QBL/QBL_Number'),
    2 extractValue(value(q), '/QBL/Priority'),
    3 extractValue(value(q), '/QBL/Date_Prepared'),
    4 extractValue(value(n), '/Item_Name'),
    5 extractValue(value(l), '/Line_Item/Line_Item_Weight'),
    6 extractValue(value(l), '/Line_Item/Line_Item_Cube_Info/Line_Item_Cube'),
    7 extractValue(value(l), '/Line_Item/Line_Item_Cube_Info/Line_Item_Cube_Qualifier')
    8 from MYQBL e,
    9 table (xmlsequence(extract(value(e), '/QBL_Envelope/QBL'))) q,
    10 table (xmlsequence(extract(value(q), '/QBL/Line_Item'))) l,
    11 table (xmlsequence(extract(value(l), '/Line_Item/Item_Name'))) n;
    select extractValue(value(q), '/QBL/QBL_Number'),
    ERROR at line 1:
    ORA-00904: "SYS_NT0jPUiVR5SS6VqgqEvU1LkQ=="."SYS_NC_ROWINFO$": invalid
    identifier
    SQL>
    Do you have any idea about it?
    Actually before I posted the message I had tried the same select statement and had got the same error.
    Again, thank you very much and I really appreciate your help.
    Mary Wu

  • How to round values in CU41

    I would like to round characteristic value in dependency code.
    Thanks

    Hi,
    If this is your Original SQL statement, then it won't work.
    You have to change the line in AFTER_PARAMETER_FORM trigger from
    :lp_customer :=' AND account_number in ("44010","44020","44030")'to
         :lp_customer := ' account_number in (''44010'',''44020'',''44030'')';Then it will work.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to assign value from one element to another ?

    Hi,
    I am stuck up in silly problem.
    I have an XML as string i have used parseEscapedXML() to convert it in to XML object Type. see following code.
    <assign name="Assign_3">
    <copy>
    <from expression="ora:parseEscapedXML(ora:getContentAsString(bpws:getVariableData('inputXML')))"/>
    <to variable="inputVariable" part="payload" query="/ns1:email"/>
    </copy>
    </assign>
    above is working fine. In Debug window i can see values in "/ns1:email/ns1:ovdTriggeredDate" but now i need to assign "/ns1:email/ns1:ovdTriggeredDate" to another variable. see following code for refrence.
    <assign name="Assign_2">
    <copy>
    <from expression="ora:getNodeValue(bpws:getVariableData('inputVariable','payload','/ns1:email/ns1:ovdTriggeredDate'))"/>
    <to variable="Variable_2"/>
    </copy>
    </assign>
    in above code "ovdTriggeredDate" is a string and "Variable_2" is also String.
    i dont know why above code is not working
    Can anybody help me in this?
    Thanks in Advance.
    Nimisha

    Hi,
    ovdTriggeredDate is type of an element which is of type string. and Variable_2 is also of type string variable.
    see following use case.i have xml as a string
    inputXML = <email><ovdTriggeredDate>16thFeb</ovdTriggeredDate></email>
    i need to convert string to XML object. now i am assigning this value to Schema.following is my schema.
    <xsd:element name="email">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ovdTriggeredDate" type="xsd:string" minOccurs="1"/>
    </xsd:complexType>
    </xsd:sequence>
    </xsd:element>
    i am able to convert XML string to xml object. now i need only one variable of xml. so i am assigning "ovdTriggeredDate" to string variable "variable_2"
    but its giving me exception. any idea ?
    thanks,
    Nimisha

  • How to create XSD that contains elements of array as well ?

    Hello,
    I want to create a such XSD in Jdeveloper Like
    Employee-
    -firstName string
    -lastName string
    -student array
    Student is another XSD.
    Kindly provide me the source code or good link about that.
    Thanks

    Here you go...
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="Employee" type="EmployeeType">
    <xsd:annotation>
    <xsd:documentation>
    A sample element
    </xsd:documentation>
    </xsd:annotation>
    </xsd:element>
    <xsd:complexType name="EmployeeType">
    <xsd:sequence>
    <xsd:element name="firstName" type="xsd:string"/>
    <xsd:element name="lastName" type="xsd:string"/>
    <xsd:element name="student" type="xsd:string" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    Here an Employee element will have one firstName element, one lastName element and student element. And you can see student can be 1 to many (outbounded) elements.
    Hope this helps...
    Thanks,
    N

  • How to insert values in table using ADF Task flow? I am not able to bind CreateInsert on my first page fragement

    Hi,
    In Jdeveloper 12c I am trying to create a task flow where I have taken 3 pages to insert values in a table. On first page when I put data control of 2 columns as input with label, then on bindings tab I created an action as CreateInsert.
    Now when I am trying to create invoke action in executables then this option is not available.
    How can I create this task flow where values can be inserted in the table on the 3rd page fragment on commit button???
    All 3 pages have data control input boxes to insert values in the table.

    Hi,
    Right click on the task flow page activity, click create page def and add there. If your activity is a page, then you can select the page and generate the pagedef as well.
    Then you can add the executables.
    Thanks.

  • How to Initialize Container Element in BPM..No Payload found

    Hi All,
    How do we initialize a container element in BPM if that container element is a message Interface.
    I am doing exception handling in BPM, so whenever a exception occurs i need to send a mail.
    So in the exception box i have a transformation step and a send step.
    In the transformation step what will be my source message?
    How do i initialize that source message?
    What i have done right now is created a dummy interface(abs) for source and then mapped with the target abs interface.
    When i execute the schenario,in the monitor i find in the Transformation step the following error
    <i>No payload found.</i>
    Regards,
    Sumit

    Hi Pinto,
    I too agreee. Lemme try to explain witha example.
    In my first transformation, MI_MAIL_TEMP_ABS is there along with 3 other interfaces. Each one is getting mapped i can see that in monitoring.
    Now in the exception branch in transformation step,
    i am mapping MI_MAIL_TEMP_ABS to MI_MAIL_ABS.
    Now in the send step im giving MI_MAIL_ABS as the interface name.
    Do you see anything wrong with this?
    <i>>>>>>>>Did you try to do outbound interface -> inbound interface mapping in the exception branch? Just to try to make your scenario work. Then you can investigate further on why the abs message is not being carried away.</i>
    Which outbound interface & inbound are you talking about?
    Regards,
    Sumit
    Message was edited by: Sumit Khetawat

  • How to create a container element?

    Hi,
    Could somebody please tell me how to create a container element and how to create a multi container element? How is this element used in the fork step?
    I am using a fork with 3 branches but the agent assignment is a problem.The workitem does not go to the user set in the agents tab.
    Regards,
    Monica.

    Hi Monica,
    Within your Workflow Builder, there is a box on the left hand side that (Workflow Container). You should have an option (in change mode) to right-click and create or double-click on the <Double-Click to create> tab.
    Or you can go to the Workflow Container "Goto -> Workflow Container" and click on the "Create" <F5> icon.
    Same theory applies to creating a container element in your task. Go to your task and click on the "Container" button and select "Create".
    When creating your container, you can specify if it is a multiline container by checking "Multiline" under the container attributes.
    In a fork step, you would really only use your "Container Element" in the "End Condition" of a Fork step.
    Please advise what the "Agent Assignment" is referring to when you're using it in your fork? Which step in the fork?
    If you are assigning agents in one step of the fork, you cannot expect these agents to apply to your other 2 fork steps. The forks work independently of each other (to a point).
    Please provide more information if you need more help.
    Kind regards,
    Tom

  • Reg: Access the container element value inside the Task's description tab

    Hi All,
          I need to call one of my container element into the task's description tab as text symbols.
    Please let me know how to do it.
    Regards,
    Selva.

    define an importing element in the task container.
    map this importing element with the element in the workflow container.
    now you can use this task container element in your description text box. (method exxplained in the previous post to this problem)
    rgds,

  • Workflow container elements as attachment in an activity

    Hi @ all
    Iu2019m searching for a resolution to display a multiple attachment in an activity of my workflow.
    The scenario is as follows:
    An Activity should display the image, a generated attachment (from the User decision before) & the workflow conatainer elemnts of the included task. So far so good. The image and the attachment are displayed in the next activity, but how can I display the container elements?
    I need them because the user dynpro-inputs are stored in it. I generate the elements in my task and bind them from the workflow container. And now? What is the next step to get them in an attachment?
    THX
    REGRADS
    Phil
    Edited by: Philipp Höfer on May 18, 2010 2:09 PM

    Hi Karri,
    thanks again.
    if i understand you correctly, i'm going to my Step Task ->(n my case "Display Image"). After that to the tab -> Description and push the button "change text" to insert a new text. But how can i insert my container elemt values.
    There is a button "Program Symbol" but their is no entry. The Binding of the task and the workflow container is correctly.
    What i am doing wrong?
    THX
    Regrads
    Phil
    Edited by: Philipp Höfer on May 19, 2010 12:12 PM

Maybe you are looking for