ME23N - Item Assembly Text value

Dear Experts,
In ME23N, when i click on the Item->Assembly text the values are populated in test system. But same is not populated in my production system.
1. From which table the Assembly Instruction text is been populated?
2. Is there any way to trigger the text for Assembly Instruction ?
Thanks.
Regards,
Ganesh R K

Hi Guru's
Please advice.

Similar Messages

  • Value Items and Text Items

    Hi Team ,
    Can someone frm the team give me an idea of these Value Items and Text Item usage .
    Also the relavence of the Item Category Field which is "Checked " in case of Value Items and Text Items.
    Thanks .
    Regards,
    Suman

    Hi Suman,
    the text items are relevant for delivery but not relevant for pricing.
    The value items are relevant for delivery as well as pricing.
    Regds,
    Rupali

  • How to comment in smartform for text value in abap

    how to comment in smartform for text value in abap.
    i want to comment text value which is coming in output
    From drag and drop option i had dropped an item text in text window and now i dont want to delete it i just want to comment it so can any one help me in commenting the text value.
    Advance Thanks for your help

    hi
    open the text element in the smartform.
    on the left corner, we have text editor button.
    open that and change the editor (goto-->change editor)
    on the new line, give the format as comment line /*. and you can write the comments as required.
    such lines doesnt reflect in the output layout.
    thanks
    pavan

  • Report- Pl/sql function returning sql query parsing page items as text?

    Hi Team,
    I am facing a strange issue .
    I have four page items namely
    1)JOB_CODE
    2)MIN_EXP
    3) MAX_EXP
    4) SOURCES1
    I have a report of the type "Pl/sql function returning sql query"
    declare
    v_sql varchar2(4000);
    begin
    if (:JOB_CODE IS NOT NULL and :MIN_EXP IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql:= 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:JOB_CODE IS NULL and :MIN_EXP IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:MIN_EXP IS NULL and :JOB_CODE IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where v_experience_years <= :MAX_EXP and V_REQUIREMENT = :JOB_CODE and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:MAX_EXP is null and :JOB_CODE IS NOT NULL and :MIN_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    end if;
    insert into query_list values (v_sql);
    insert into debug values (:JOB_CODE , :MIN_EXP , :MAX_EXP , :SOURCES1);
    return v_sql;
    end;
    Please not that I am insertin the query into a table called Query_list and the page item values into the table called Debug thru the pl/sql function which returns teh query.
    Now I select the data from the debug tables.
    select unique(query) from query_list;
    select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like '%:SOURCES1%'
    select * from debug;
    JOBCODE     MINEX     MAXEX     SOURCE
    21     1     10     donkeyHire
    And if I run the query in sql I get some records returned
    select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = 21 and v_experience_years >= 1 and v_experience_years <= and source like 'donkeyHire'
    V_CANDIDATE_ID     V_FNAME     V_CURRENT_EMPLOYER     V_EXPERIENCE_YEARS
    2     Vengu     Andale Tech     4
    But the record does not show up in the report!
    does this type of report parse page items as text?
    Why is it so?
    Waiting for an early reply.
    Thanks,
    venkat

    Venkat - You don't want to put ':SOURCES1' in quotes like that.
    Scott

  • How can I get the text value of an XML element  in MXML ?

    Hi,
    I have the following XML loaded into a variable of type XML :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times">5</entry>
         <entry key="rdc.proxy.host">http://192.168.1.2:8080</entry>
    /properties>
    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider to my variable and the dataField to "@key".  But I do not know how to get the text value in a second column...  Is there a way or do I need to change my XML to something like this :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times" value="5"></entry>
         <entry key="rdc.proxy.host" value="http://192.168.1.2:8080"></entry>
    /properties>
    Many thanks in advance.
    Marc

    yes, you'd better modify your XML structure to fit the DataGrid internals.
    Since dataField pattern require each grid row item to have a named property to be displayed, otherwise you'll be forced to overcome this pattern using custom labelFunction for the particular column which will implement your custom actions on how to extract appropriate data for that column out of grid row item. It will be much more complicated than just rearranging your xml structure.

  • Cannot add new items to a value list in AW database

    I have a database which I have been using for many years. One of the fields is a value list. I just went to add another item to the list, and no matter what I do, the Create button is grayed out. I have another value list in the same database that works fine.
    There are currently 170 items in the value list that is causin the problem, but I didn't think that there was a limit to the number of items that can be is a value list. (At least there is nothing in the AW technical specifications to indicate thin. I duplicated the existing database, deleted about 20 items from the list, then saved the file, and reopened it, and still cannot add new items to that value list. Does anyone know what might be causing the problem?

    Oops
    I read too fast.
    Here is a short script which may help.
    Replace the pop-up item by a text one and edit the property myList in my script to fit your needs.
    Select the field to fill and run the script.
    Then choose an item in the displaid list. It will be pasted in the selected field.
    This trick would give you to work with a "no limit" list of items.
    -- [SCRIPT DB fillFieldFromAlist ]
    Assuming that
    the front document is a database one
    and that a text field is selected,
    run the script to select an item in a list
    and paste it in the field.
    Yvan KOENIG, Vallauris (FRANCE)
    le 19 mars 2007
    property MyList : {"item 1", ¬
    "item 2", ¬
    "item 3", ¬
    "item 4", ¬
    "item 5", ¬
    "item 6", ¬
    "item 7", ¬
    "item 8", ¬
    (* edit the list to fit your needs *)
    tell application "AppleWorks 6"
    activate
    tell document 1
    set laClasse to (get class of selection)
    if laClasse is not field then return (* the selection is not a field *)
    set myItem to choose from list MyList
    if myItem is false then return
    set the clipboard to myItem's item 1
    select menu item 7 of menu 3 (*
    Tout sélectionner •• Select All *)
    paste
    end tell -- document 1
    end tell -- AppleWorks
    -- [/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 19 mars 2007 16:44:53)

  • How do you get a Node's text value using DOM?

    Hi,
    Can anyone tell me how I can extract the text values from <currency>, <Handle>, <shortcut> and <source> tags?
    This is my Code
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);
    This is the xml chunk that I want to mainpulate
    <LiveCurves>
    <dd.enumerate>
    <AUD>
    <Currency>AUD</Currency>
    <Handle>GregB_AUD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </AUD>
    </dd.enumerate>
    <dd.enumerate>
    <CAD>
    <Currency>CAD</Currency>
    <Handle>GregB_CAD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </CAD>
    </dd.enumerate>

    This is the new modified code but I still get blanks for the Text Values I am trying to retrieve....
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              if("GBP".equals(c.getNodeName())){
                        NodeList childNodes = c.getChildNodes();
                        System.out.println("Child Nodes Length " + childNodes.getLength());
                        for (int i=0; i < childNodes.getLength();i++){
                        if(childNodes.item(i).getNodeType() == Node.ELEMENT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeName() + "]");
                        if(childNodes.item(i).getNodeType() == Node.TEXT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeValue() + "]");
                   System.exit(0);
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);

  • Conditionally set page item based on value of another item

    Hello,
    I have a form that is used to create/apply changes to records. There is an application item (APP_ITEM_PROFILE)
    that is set on login which contains a value for the user's Profile ID. This Profile ID is used through out the
    application for authorizations (conditionally present tabs, etc).
    I've set a page item on the form equal to APP_ITEM_PROFILE so that the record is stamped
    with that user's profile ID when they create a record. Users with different Profile IDs may later make changes to
    the record but I want to keep the original Profile_ID on the record.
    I am trying to populate the Profile ID conditionally in the form based on the existence of a
    record ID. If there is no ID (a new record is being entered), then I want the
    Profile ID to be that of the current user (APP_ITEM_PROFILE). If there is an ID (modification is
    being made to an existing record), then I want the keep the Profile ID that was originally saved
    with the record in MyTable.
    I have this as the source for :P11_PROFILE_ID. The type is PL/SQL Expression or Function, Always, replacing... but it
    is not working (page not found when page is run):
    begin
    if :P11_ID is not null
    then
    select PROFILE_ID
    into :P11_PROFILE_ID
    from MyTable
    where ID = :P11_ID;
    elsif :P11_ID is null
    then select nv(':APP_ITEM_PROFILE') into :P11_PROFILE_ID from dual;
    end if;
    end;
    Item Descriptions:
    ID is the record ID.
    :P11_ID is the page item of the record ID (Display as Text, saves state).
    PROFILE_ID is the user's Profile ID.
    :P11_PROFILE_ID     is the page item of the user's Profile ID.
    :APP_ITEM_PROFILE is the user's Profile ID that is set on login.
    Any help is greatly appreciated.
    Thanks,
    Matt
    Update:
    I found one of Scott's answers:
    Using IF Else to determine the value of a Item
    and modified the above code to:
    declare l_ret number;
    begin
    if :P11_ID is not null
    then
    select PROFILE_ID
    into l_ret
    from MyTable
    where ID = :P11_ID;
    else select :APP_ITEM_PROFILE' into l_ret from dual;
    end if;
    return l_ret;
    end;
    It seems to be setting the Profile ID correctly when the ID is not null, but not when a new record is being created. In the latter case, there is no value.
    Edited by: mterlesky on May 11, 2009 11:02 PM
    Edited by: mterlesky on May 11, 2009 11:52 PM
    Edited by: mterlesky on May 11, 2009 11:53 PM

    Thanks. That is putting the value into the page item and session state but that value is not being saved when the record is created. I'm not sure why - here is part of the debug (the "Billing" table is the "MyTable" table in the previous posting). Any thoughts?
    On form, before submit:
    0.06: Saving g_arg_names=P11_PROFILE_ID and g_arg_values=112
    0.06: ...Session State: Saved Item "P11_PROFILE_ID" New Value="112"
    After Submit
    0.06: ...Session State: Save "P11_PROFILE_ID" - saving same value: "112"
    (validations not shown)
    0.10: Processing point: AFTER_SUBMIT
    0.10: ...Process "Get PK": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select BILLING_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P11_ID := get_pk; end;
    0.10: ...Session State: Save Item "P11_ID" newValue="452" "escape_on_input="Y"
    0.10: ...Do not run process "Get PK for CREATEAGAIN", process point=AFTER_SUBMIT, condition type=, when button pressed=CREATEAGAIN
    0.10: ...Process "Process Row of BILLING": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:BILLING:P11_ID:ID|IUD
    0.10: ...Process "Update TOTAL_HOURS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_HOURS = ((NVL(CD_90801_UNITS,0)*1.5)+ (NVL(CD_90804_UNITS_B,0)*.5)+ NVL(CD_90806_UNITS,0)+ (NVL(CD_90808_UNITS_B,0)*1.5)+ NVL(CD_90812_UNITS,0)+ (NVL(CD_90814_UNITS_B,0)*1.5)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NV
    0.11: ...Process "Update TOTAL_UNITS": PLSQL (AFTER_SUBMIT) begin Update billing set TOTAL_UNITS = (NVL(CD_90801_UNITS,0)+ NVL(CD_90804_UNITS_B,0)+ NVL(CD_90806_UNITS,0)+ NVL(CD_90808_UNITS_B,0)+ NVL(CD_90812_UNITS,0)+ NVL(CD_90814_UNITS_B,0)+ NVL(CD_90846_UNITS,0)+ NVL(CD_90847_UNITS,0)+ NVL(CD_90853_UNITS,0)+ NV
    0.11: ...Process "G_TRANS_COUNT_ADD": PLSQL (AFTER_SUBMIT) begin :G_TRANS_COUNT := :G_TRANS_COUNT +1; end;
    0.11: ...Session State: Saved Item "G_TRANS_COUNT" New Value="1"
    0.11: ...Process "Email_Notification": PLSQL (AFTER_SUBMIT) declare l_body_html varchar2(4000); begin l_body_html := '<p>Billing ID '||:P11_ID||' was entered by '||:P11_PROV_NAME||'.'|| ' More transactions may have been entered by the provider after this one.'||'</p> <p><a
    Edited by: mterlesky on May 12, 2009 9:21 AM

  • Corrupt Session State? - Apex form posts text value as Null

    Recently I've discovered an issue with our Apex installation in which any value chosen as a source for a text field ends up being posted as a null to the database.
    We are running APEX version 3.2 within an Oracle 10.2.0.4 database using the Oracle HTTP Server from the 10g companion disk.
    At first glance, everything appears to function as expected; I have created a simple table called "oracle_sr" with 2 columns both not null:
    SQL> desc capacity.oracle_sr
    Name Null? Type
    ORACLE_SR_ID NOT NULL NUMBER
    TIMESTAMP NOT NULL DATE
    Within APEX the form wizard was used to create a form on this table.
    After executing the pages and entering a value for the timestamp field I can create records without issue.
    The issue arises when I choose a source value for the timestamp field.
    Any of the source options result in the same error (including a static value) so I will focus on the SQL Query for the source as:
    select sysdate from dual;
    This should substitute the system date within the timestamp text field when the page is executed.
    As expected, the value appears in the text box but when I submit the form to create the record I receive the error:
    ORA-01400: cannot insert NULL into ("CAPACITY"."ORACLE_SR"."TIMESTAMP")
    I have been working with APEX for quite some time and have successfully used this technique in many applications but just started to see this error over the past few days. What is particularly odd about this message is that default "not null" validations created by the form wizard sees the timestamp filed as having a value. The session state information included below is reporting a value yet the database is throwing the ORA-01400.
    Has anyone experienced a similar issue? I've spent a fair amount of time trying to research this issue but cannot seem to find any similar posts.
    I have included the debug output from my test page, from what I can see, there does seem to be a value associated with the timestamp filed:
    0.00: A C C E P T: Request="CREATE"
    0.00: Metadata: Fetch application definition and shortcuts
    0.00: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.00: alter session set nls_language="AMERICAN"
    0.00: alter session set nls_territory="AMERICA"
    0.00: NLS: CSV charset=WE8MSWIN1252
    0.00: ...NLS: Set Decimal separator="."
    0.00: ...NLS: Set NLS Group separator=","
    0.00: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -06:00
    0.01: Setting NLS_DATE_FORMAT to application date format: DD-MON-RR
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: Fetch session state from database
    0.01: ...Check session 2303701116904676 owner
    0.01: Setting NLS_DATE_FORMAT to application date format: DD-MON-RR
    0.02: ...NLS: Set date format="DD-MON-RR"
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 109, page 50
    0.02: ...Validate item page affinity.
    0.02: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: *...Session State: Save Item "P50_ORACLE_SR_ID" newValue="" "escape_on_input="N"*0.03: *...Session State: Save Item "P50_TIMESTAMP" newValue="26-MAY-09" "escape_on_input="N"*
    0.03: ...Session State: Save "P0_CURRENT_PERSONNEL_ID" - saving same value: "1"
    0.03: ...Session State: Save "P0_OFFSET" - saving same value: "0"
    0.03: ...Session State: Save "P0_ACTIVE_WEEK" - saving same value: "24-MAY-09"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: ...Item Not Null Validation: P50_TIMESTAMP
    0.04: Branch point: BEFORE_PROCESSING
    0.04: Processing point: AFTER_SUBMIT
    0.04: ...Process "Get PK": PLSQL (AFTER_SUBMIT) declare function get_pk return varchar2 is begin for c1 in (select ORACLE_SR_SEQ.nextval next_val from dual) loop return c1.next_val; end loop; end; begin :P50_ORACLE_SR_ID := get_pk; end;
    0.04: ...*Session State: Saved Item "P50_ORACLE_SR_ID" New Value="6"*
    0.04: ...Process "Process Row of ORACLE_SR": DML_PROCESS_ROW (AFTER_SUBMIT) #OWNER#:ORACLE_SR:P50_ORACLE_SR_ID:ORACLE_SR_ID|IUD
    0.04: Show ERROR page...
    0.04: Performing rollback...
    ORA-01400: cannot insert NULL into ("CAPACITY"."ORACLE_SR"."TIMESTAMP")
    Unable to process row of table ORACLE_SR.
    Return to application.
    Any thoughts would be appreciated.
    Thank you,
    Justin.

    If you changed the Source Type of an item from Database Column to something else, then it cannot participate in the Automated Row Fetch/Automatic Row Processing (DML) choreography. You should leave the Source Type as it was and change the item's Default Value to populate it when the ARF process fetches a null for the column.
    Scott

  • Automatically update of quotation item external text

    Hello Cloud folks,
    we want use quotation item external text for transfer custom information from C4C to ECC.
    It's possible automatically update item external text with our custom information?
    In case of positive answer how we can do that?
    Thanks and regards.
    Daniele

    Hi,
    with repository explorer we found for Busisness Object "Customer Quote" that the element to use to force a value in external text could be Item.ItemTextCollection.Text.TextContent.
    Studio Compiler return the error message "Identifier 'TextContent' is read-only and cannot be changed" when I try to write a value there using the script Event-BeforeSave.
    The code inserted in the script il like this:
    this.Item.ItemTextCollection.Text.TextContent = "TEST TEST TEST";
    Could you tell me if I'm using the wrong element or I'm using the correct element but the way to use this is different?
    If the element is correct, which is the right code to write a value in it?
    If we try to use another solution for reach our scope and we try to transfer our custom fields created with studio, How can we extend wsdl file of the IFlow CustomerQuoteProcessingSalesOrderRequestOut?
    Thanks in advance for your suggestions.
    Best regards.
    Daniele Monti

  • Purpose and use of item category Text (6)

    What is the Purpose and use of item category Text (6).
    it is meant for which biz scenario?

    Thanks for your explanation.
    Sorry I am not convinced on this biz scenario what has been posted. Why to enter just the text in the form of PO and maintain record in the system . One can send a word document or simply put a call to outside party for sending legal document.
    Moreover it hardly matters whether the PO is of less value or nil value. In standard also we use free goods in PO also. SAP, I think without any specific reason will not provide item category Text "T"- there must be some strong reason for it.
    Also please note that item category text T is also allowed in scheduling agreement for document type LP and LPA. then simply entering text in scheduling agreement for item category does not make any business sense.
    If anybody has come across the biz scenario, please share in the forum. I searched and went to thread on similar topic but could not find any convincing answer on this.

  • Example for UITestControl.WaitForControlCondition Method checking for WpfText.Text value

    Hi
    I want to wait until the text value of a WpfText is a certain string. How would that be done using UITestControl.WaitForControlCondition Method when a predicate of the test function must be used and I need to reference the WpfText item I want to check
    text value of?
    Thanks
    RB_IA

    Hi RB_IA,
    AdrianHHH’s idea for that code is right, he meant that he compiled the code but he did not execute it to verify whether the code can run fine. I think that code should run.
    For the code you pasted, yes, the UITestControl parameter is not sent to IsStatusDone method through
     parameters within it directly, but the text is defined outside of IsStutusDone method and it is used in the IsStatusDone method.
    For your second doubt, Adrian used this API:
    WaitForControlCondition(Predicate<UITestControl>) which accepts a bool parameter as the specific condition instead of this API:
    WaitForCondition<T>(T, Predicate<T>).
    You can reference this code snippet which is used to
    wait till the status text of a control is “Succeeded” or “Failed”.in this blog:How
    To: Make playback wait for certain event?
    // Define the method to evaluate the condition
    private
    static
    bool IsStatusDoneOrError(UITestControl[] controls)
        WinText statusText = controls[0]
    as
    WinText;
        WinWindow errorDialog = controls[1]
    as
    WinWindow;
        return statusText.DisplayText ==
    "Succeeded" || errorDialog.Exists;
    // In test method, wait till the method evaluates to true
    UITestControl.WaitForCondition<UITestControl[]>(new
    UITestControl[] { statusText, errorDialog }, IsStatusDoneOrError);
    I am not a developer, maybe you can try to write your code like below to compare the text value of the wpf control through WpfText.DisplayText property with the expected text value:
    class ParameterisedIsStatusDone
        public
    ParameterisedIsStatusDone(string t)
    expectedtext = t;
        private
    string expectedtext;
        public
    bool IsStatusDone(UITestControl control)
    WpfText ControlTextVale = control
    as WpfText;
    return
    ControlTextVale.DisplayText ==
    expectedtext;
    ParameterisedIsStatusDone pisd =
    new ParameterisedIsStatusDone("Succeeded");
    yourControl.WaitForControlCondition(pisd.IsStatusDone);
    You also can reference Victor Zn's solution in that thread.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using BAPI_PR_CREATE , but failed to overwrite the item short text

    As I want to create PR items and rewrite the items' short text,
    even if i have give the short_text some  values ,
    but it still to be the default value after the PR items created.
    The following is main part of my program using BAPI  'BAPI_PR_CREATE' to create PR:
         w_pritem-material = t_in-matnr.
          perform frm_add_zero using w_pritem-material.
         W_PRITEM-PREQ_ITEM = SY-TABIX.
          w_pritem-preq_item = l_tabix.
          perform frm_add_zero using w_pritem-preq_item.
          w_pritem-acctasscat = t_in-knttp.
          w_pritem-plant = t_in-werks.
         W_PRITEM-STORE_LOC = '1003'.
          w_pritem-quantity = t_in-menge.
          w_pritem-SHORT_TEXT = t_in-txz01.
          append w_pritem to t_pritem.
          w_pritemx-preq_item = w_pritem-preq_item.
          w_pritemx-material = 'X'.
          w_pritemx-preq_itemx = 'X'.
          w_pritemx-acctasscat = 'X'.
          w_pritemx-plant = 'X'.
         W_PRITEMX-STORE_LOC = 'X'.
          w_pritemx-quantity = 'X'.
            w_pritemx-SHORT_TEXT = 'X'.
          append w_pritemx to t_pritemx.
        call function 'BAPI_PR_CREATE'
            exporting
                prheader = w_prhead
                prheaderx = w_prheadx
            importing
                number =  l_prnum
            tables
                return =  t_return
                pritem =  t_pritem
                pritemx = t_pritemx
                praccount = t_praccount
                praccountx = t_praccountx
                pritemtext = t_pritemtext
    Ivan Yang

    Now I try to use 'BAPI_REQUISITION_CREATE'  to instead of 'BAPI_PR_CREATE'.
    But it still fail , it always give a error message like that 'No direct postings can be made to G/L acct.'.
    Pls note that the ACCTASSCAT is setted to be 'M' , and I am sure that all the data entries can generate a PR without problem
    while using 'BAPI_PR_CREATE'.
    Following is the main part of my program:
    PR_ITEM-DOC_TYPE   = T_in-BSART.
    PR_ITEM-PREQ_ITEM  = l_tabix.
    perform frm_add_zero using PR_ITEM-PREQ_ITEM.
      PR_ITEM-ACCTASSCAT = 'M' .
    PR_ITEM-MATERIAL = t_in-MATNR.
      perform frm_add_zero using PR_ITEM-MATERIAL.
          if t_in-txz01 is not initial.
            PR_ITEM-SHORT_TEXT = t_in-txz01.
          endif.
        PR_ITEM-QUANTITY  = T_IN-MENGE.
        PR_ITEM-DELIV_DATE = '20090801'. 
        PR_ITEM-PLANT  = T_IN-WERKS.
        PR_ITEM-PREQ_DATE = '20090801'.
        APPEND PR_ITEM.
        PR_ACCOUNT-PREQ_ITEM = PR_ITEM-PREQ_ITEM.
        PR_ACCOUNT-G_L_ACCT = T_IN-SAKNR.  
        PR_ACCOUNT-SERIAL_NO = 1.
         PR_ACCOUNT-CO_AREA =  'XXX'.
          PR_ACCOUNT-PREQ_QTY = t_in-MENGE.
          PR_ACCOUNT-sd_doc = t_in-vbeln.
          perform frm_add_zero using PR_ACCOUNT-sd_doc.
          PR_ACCOUNT-SDOC_ITEM = t_in-posnr.
          perform frm_add_zero using PR_ACCOUNT-SDOC_ITEM.
        APPEND PR_ACCOUNT.
        CLEAR PR_ACCOUNT.
         CLEAR PR_ITEM.
    CALL FUNCTION 'BAPI_REQUISITION_CREATE'
    EXPORTING
      SKIP_ITEMS_WITH_ERROR                =
      AUTOMATIC_SOURCE                     = 'X'
           IMPORTING
             NUMBER                               = l_prnum
            TABLES
              REQUISITION_ITEMS                    = PR_ITEM
              REQUISITION_ACCOUNT_ASSIGNMENT       = PR_ACCOUNT
              RETURN                               = PR_RETURN
    Ivan Yang

  • Need validation that ensures only one item has a value.

    Hello,
    I need a validation that ensures that only one item has a value. I want to allow a person entering information into a form to have the option to either select from a drop-down or enter something into a text box but not both.
    I have found some information about validation of this type but I'm not sure how to use it. Here is what I found:
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    This validation ensures that only one item (ITEM_1, ITEM_2) has a value.
    Example 5:
    Assume a function similar to the following exists:
    create or replace function sampleValidation (p_arg in varchar2) return boolean
    as
    begin
    if p_arg= '1' then
    return true;
    else
    return false;
    end if;
    end;
    A validation of type PL/SQL Expression could then reference this function returning a boolean using the following syntax:
    sampleValidation(v('MY_ITEM'))
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please let me know how to implement this or give me another way to validate.
    Thanks
    Linda

    Linda,
    The best is to use a Validation of type PL/SQL Function Returning Error Text like this:
    BEGIN
       IF :p1_item_1 IS NULL AND :p1_item_2 IS NULL
       THEN
          RETURN 'One of the items must have a value.';
       ELSIF :p1_item_1 IS NOT NULL AND :p1_item_2 IS NOT NULL
       THEN
          RETURN 'Only one of the items must have a value.';
       END IF;
    END;Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Invalid text value. A text field contains invalid data. Check the value and try again

    Hello,
    I am having a problem with the error mentioned in the title. I see alot of others have experienced the same problem, but I have quite a twist to it.
    I see the problem when I try to edit a list item, and then try to save the changes.
    Here what I see in the ULS log:
    System.Runtime.InteropServices.COMException: Invalid text value. A text field contains invalid data. Check the value and try again  
    at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId,
    Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter
    pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)   
    at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean
    bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback,
    ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
    I have 3 front end servers(fx wfe1, wfe2, wfe3).  And here is the twist.
    If I access the library directly through wfe1 and wfe2, I get the error. If I access the library via wfe3 if works just fine.
    So because of this, I think it is safe to assume that is has nothing to do with the character limit of 255. Nor does it have anything to do with the field type, since it is already set to mulitible lines of text.
    So. Any ideas?
    Regards,
    Michael
    mic

    Check if there is any change in web.config of these servers
    http://support.microsoft.com/kb/2880758
    To work around this issue, limit the length of the personal message in the invitation to 256 characters or less.
    This is a known issue. Microsoft is working to resolve this issue.
    http://social.msdn.microsoft.com/Forums/en-US/7bb16e51-e7cc-439e-a8b3-755683ccac1a/max-length-on-custom-field-types
    To solve the problem you may have to change the field's parent type to "note". To do that you have to open your fldtypes... file under Templates/xml and change the line to:
    "<Field Name="ParentType">Note</Field>" from "<Field Name="ParentType">Text</Field>"
    You might also have to add a sql type if your text needs to be longer than 255 characters
    <Field Name=”SQLType”>ntext</Field>
    and inherit from SPFieldMultiLineText instead of SPFieldText
    If this helped you resolve your issue, please mark it Answered

Maybe you are looking for

  • Issue in Bank Reco

    Hi we have an issue in which we have entered certain transactions for Bank reco in FF67.  But the Batch session is showing an error in SM35. When i click on the error message, it says  Ex Rate Diff  accts are incomplete for A/c 220121 for currency EU

  • Freezing upon boot...plz help!!

    This is my sons computer and he started it up just fine.  Began to type in the search engine and it froze up.  He then tried to restart it.  When he did that the toshiba screen comes on stating press F2 or F12 (don't remember what they say.  The scre

  • Cfmail attachments not working

    So I have a web page that... 1 Generates an excel file. 2 Saves the excel file to my webserver. 3 Sends an email with the excel file attached. If the user opens the email via desktop outlook the attached excel file will open and display just fine. If

  • How to combine different projects to create final clip in after effect?

    Hello; i am newbie and learning adobe after effects cs6. I have downloaded  different templates from web and edited them according my wish and now i  want to create final movie by combining all the clips. Some clips/projects are with different resolu

  • Panasonic AG-HMC74ER and Premiere Pro CS4

    Hi i need help i use Premiere Pro CS4 with Black Magic Intensity Pro and Panasonic AG-HMC74ER europian version.All is working fine but a have a problem when importing an MPG2 files because my Panasonic AG-HMC74ER recording on SD card and with softwar