Problem finding object for Custom Object Test

I need to create a custom object test that tests whether a an element is present after a record gets inserted into the database. The script is databanked and each iteration needs to insert a databanked record, then evaluate my custom object test to make sure the record was inserted. The trick is in writing the expression that finds the correct custom object. After one iteration, this is the code that finds the custom object;
RSWApp.om.GetElementByPath "window(index=0).link(text=""Category D"" | href=""javascript:OpenModal('DocumentCategoryAddEdit.aspx?documentCategoryId=377','400');"" | index=19)", element
Instead of always grabbing the object whose text is "Category D", I want to grab the object whose text is <<category>> (ie retrieved from a databank file). Search in the href or index isn't helpful because these will change with each iteration through my script.
I tried to modify the GetElementByPath to this:
RSWApp.om.GetElementByPath "window(index=0).link(text=dbValue|)", element
where dbValue is a local parameter that I set earlier on. When I run this, I get an object not found error.
Any ideas?

I much prefer to use RSWAPP.om.findElement. It is much more robust than FindElements.<BR>
RSWApp.GetDatabankValue Is what is needed anytime you want to return Databank values to the VBA environment<BR>
<BR>
Your code should look something like the following:<BR>
<BR>
Dim dbVal as string
<BR>
RSWApp.GetDataBankValue "MyDbVariable", dbVal<BR>
<BR>
This will return the contents of "MyDbVariable" which is defined and bound in the databank wizard to VBA variable dbVal.<BR>
<BR>
You can then use DBVal in your path:
<BR>
RSWApp.om.GetElementByPath "window(index=0).link(text="" & dbVal & "" | href=""javascript:OpenModal(&#39;DocumentCategoryAddEdit.aspx?documentCategoryId=377&#39;,&#39;400&#39;);"" | index=19)", element<BR>
<BR>
If you decide to use Find elements instead of GetElementByPath, the syntax would like the following: <BR>
<BR>
Set element = RSWApp.om.FindElement(dbVal, "A", "InnerText") <BR>
As you can see it is much simpler.<BR>
<BR>
Hope this helps!

Similar Messages

  • Is there a way to find version for customizing objects?

    hi
    Since we dont have version management for customizing objects like we have for programs or r/3 repository is there a way or some uitlity to find the version of customizing objects?
    ~Suresh

    Hi
       SAP default will provide Version Management na.
    go to se 38 -> ur program -> Utilities -> version management.
    Otherwise VSS(Visual Source Save ) is a tool used for version management.
    Check for VSS whether it is there in your company.
    Regards,
    kumar

  • Delta Replication for Customizing object from ECC- CRM

    I need help on delta replication activate for customizing objects from ECC to CRM.  I finished with initial load with product replication and everything worked weel. The problem is that product hierarchy continuely changing in ECC everyday, so the delta for the products error out due to incorrect product heirarchy in CRM becuase the delta is not working for DNL_CUST_PROD0, and DNL_CUST_PROD1. Please show me how to activate the delta for those DNL.  What business transaction do I need for those so the delta will work for them too?  Rewards points if helpful

    I think you need to do Request downlaod for the Product Hirearchy when ever there is new one created in ECC.You can do request downlaod by creating the object using R3AR2. Exeute the object though R3AR4 and monitor the status using R3AR3.

  • SPAU-like functionality for custom objects - Z* or Y* Objects?

    Hello Experts,
    My scenario is like below:
    Assume that my SAP System is DEV1 and it is of SAP 4.6X version. I have imported Program ZPGMA from foreign system DEV2. And are moved to the Production system PROD1. Now there are some corrections did in program ZPGMA in DEV1 system either by using modification assistant or by turning Modifications Assistant Off. And then moved to PROD1.
    Now we are going for Upgradation from 4.6X system to ECC 6.0.
    Now, i need to get the list of programs that have original system as DEV2 but are modified in DEV1.
    In brief, i am looking for some functionality similar to SPAU which would work for Custom objects (Z* or Y* Objects).
    Thanks and Best Regards,
    Suresh

    Hi Suresh,
    There is not any functionality like SPAU to find these kind of program.But if you want to find your DEV2 programs moved and modified in DEV1, just go in table TADIR and find source system field ( SRCSYSTEM ) as DEV2 .
    You will get list of program moved in DEV1.
    Regards
    NImesh S. Patel

  • MDG File Import for Custom Object

    Hello Experts,
    We are in MDG 6.1 and trying to implement the File import for custom object. Basically the idea is used to DTIMPORT transaction.Apart from the configurations in MDGIMG, What are the classes that has to be implemented? Can anyone share some info on this.
    Thanks

    Hi,
    After seeing this thread, i rechecked my POD. Email Id is not there.  Did you find any solution or explanation why it is not there?

  • Com.waveset.util.ConfigurationError: Cannot find columns for table 'object'

    I am trying to install IDM on my own laptop and use MS SQL Server 2000 as the repository. I run the create table scripts, copy all the jar files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Idm\WEB-INF\lib. But I still got the following error message:
    com.waveset.util.ConfigurationError: Cannot find columns for table 'object' ==>com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'object'
    Does anyone have any idea of what may cause this problem?
    THANKS!

    I found the solution to this issue.. is that the Database user ID must be set to the schema .. this is the statment that probably did not work:
    CREATE USER <username> FOR LOGIN <login name> with DEFAULT_SCHEMA = <database name>
    In sql 2005 expand the database... open security .. find the user.. right click and select properties.. in the default schema box.. select the SunSync database .. in the schemas owned by this user select the sunsync schema database..
    good luck

  • Implementing Data Search for Custom Objects

    Can any one have some information on implementing search criteria for custom objects.
    I am looking to modify the drop down values and search criteria based on custom data model.

    Hello Rajesh,
    The following configuration activity might resolve your query.
    Transaction: mdgimg.
    General Settings> UI Modelling> Define Field Properties for UI. Select your custom data model and go to "Hide Field Names."
    For the fields of the entity type, you don't want to come up in the search UI, check on "No selection".
    "No Selection" : These wouldn't come up as search Criteria. "No Results List": These won't come up in final result list.
    Best regards,
    Shephalika.

  • Access control for Custom Objects

    Hi,
    I am working with two custom objects: Custom Object 1 and Custom Object 5. There is a team on Custom Object 1.
    The user has access to both and has create access for Custom Object 5.
    The user is not the owner of a record in Custom Object 1, but is on the team for the record with full access.
    When in the related section for the custom object 5 you click on edit I get the following error: "You have read-only access to this record. Click Cancel button or Back link to continue. Access Denied.(SBL-DAT-00284)"
    When you click on the link to the related record and then on edit it works fine, the user can edit and save the changed record.
    I do not understand why this does not work in the related section.
    Thanks for your reply!
    Arnold

    Hi Errol,
    to build your own application authorization scheme around the security model supplied by Apex for administration of the Apex environment would be a bad idea.
    This was never intended for authorization scheme management in custom built Apex applications, it was solely intended to control access in the Apex environment overall. The API for it is not published, and making changes to it, such as adding more roles, would run the risk of breaking the overall Apex security model. It would not be supported by Oracle and Oracle would not guarantee the upwards compatibility of any changes you make in future versions of Apex.
    In short, you should follow Tyson's advice and build your own structure. As he indicated, there are plenty of examples around and provided your requirements are not too complicated, it will be relatively simple.
    Regards
    Andre

  • How to create number range for custom object

    Hi all,
    I want to create number range for custom object or custom tables
    Thanks
    Hemalatha

    Hi,
       Thanks, I am able to create a number range for custom object through SNRO tcode.
    Thanks
    Hemalatha

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • Collection of Objects for Transporting to Test Box

    Hi Experts,
    I am ready to transport from BW Dev system to Testing system.Actually some of the Objects activated before for diffrent applications like FI-CO,SD and CRM and exported to testing system.Now My turn to export some of the objects to test box.
    I am little bit in confusion.How do I collect the objects which I activted with my own request.I am sure I don't need to transport the Objects which already in Test box though my functional application required the same objects.If So how can I find which Objects are in Test box already or not.Is there any particular method to find which objects are not transported from Development to Testing.Please advise me.I need to finish my Transports by the tomorrow.I am running with urgency.
    Thanks,
    Suryam.

    Hi,
    Unfortunatelly for you, the best way is to collect through the transport collector in RSA1 all the objects that are needed for your solution.
    Normally if you did not change anything on objects that are already transported, the system will not collect them.
    But I would say that there is no added value to make a difference between stuff that were already transported and the other objects as in Dev you are aroking with them correctly....
    Hope it helps
    PYG

  • No versions after import for customer objects

    Hi all!
    I have a little problem with transporting of (customer dictonary objects) and the versions.
    The system enviroment is SAP ECC 6, software level
    SAPKB70016
    SAPKA70016
    SAPKH60302
    On the developer system the customer objects have versions - after transporting them to the quality system they have no versions.
    On the other side SAP Objects e. g. table BSEG or BKPF have versions - in the developer and also quality system.
    Its a strang thing. Normally versions will be created after import in a seperate step.
    How can i check if something is wrong with versions? The parameter "vers_at_imp" is not set in the tpparam but i think that shouldn't be a matter.
    Please can anybody help me - I don't believe that it will be a bug because all notes I found were for older releases.
    Thank you!
    Best regards
    Thomas Wassenhoven

    Hi!
    Thank you for the answer!
    I found additional information now - the version management is disabled per default (tp parameter vers_at_imp)
    Best regards
    Thomas

  • Generic Object Services for Custom Object Type

    I would like some advice please. I am not an ABAP Developer but I would like to enable the generic object services for transaction PP01 for a custom object type.
    I have searched for information, which suggests that the object needs to be published using the function module SWU_OBJECT_PUBLISH so that it is available in the Business Object Repository. If this is correct, please could someone tell me (in simple terms) how I can do this (with the assistance of an ABAP developer)?
    My colleague did some debugging which seemed to suggest that in order for the generic object services to be available, the field OBJTYP needs to be populated in table T778O. Is this correct? If so, how should this be done?
    Your advice would be greatly appreciated.
    Regards
    Corinne

    Hi,
    i'm also looking for the solution you have asked for.
    if you know how to do it please reply me with the solution.
    Thanks,
    suresh

  • Error in multiple operation with change document object for custom table

    hi all,
    I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation & deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&Z3RL_TAB&Z3RL_TAB" and EXIT the transaction.
    why I am getting this error??? is it not possible to do multiple operation with the change document???
    kindly help.
    Edited by: JaiKarthik on Apr 7, 2010 6:20 AM

       LOOP AT ts_mod INTO wa_mod.
                READ TABLE <i_itab> INTO <wa_tab> INDEX wa_mod-row.
    * Select the existing entries in table Z3RL for change history
                    SELECT SINGLE * FROM z3rl
                           INTO wa_z3rl
                           WHERE vkorg   = <wa_tab>+3(4)
                           AND   zzkunnr = <wa_tab>+7(10).
    * Move the old entries
                    IF sy-subrc = 0.
                      CLEAR ls_z3rl.
                      ls_z3rl = wa_z3rl.
                    ENDIF.
    * Update the table
                 MODIFY (viewname) FROM <wa_tab>.
                   CLEAR wa_z3rl.
                    wa_z3rl-mandt      = <wa_tab>+0(3).
                    wa_z3rl-vkorg      = <wa_tab>+3(4).
                    wa_z3rl-zzkunnr    = <wa_tab>+7(10).
    * Populate change tables
                    CLEAR wa_change.
                    wa_change-teilobjid = 'Z3RL'.
                    wa_change-textart = 'TEST_2'.
                    wa_change-textspr = 'EN'.
                    wa_change-updkz = 'U'.
                    APPEND wa_change TO ts_change.
    *call the fM to log the values in CDHDR table.
                    CALL FUNCTION 'Z3RL_WRITE_DOCUMENT'
                      EXPORTING
                        objectid                 = 'Z3RL'
                        tcode                    = sy-tcode
                        utime                    = sy-uzeit
                        udate                    = sy-datum
                        username                 = sy-uname
                        planned_change_number    = ' '
                        object_change_indicator  = 'U'
                        planned_or_real_changes  = 'U'
                        no_change_pointers       = 'U'
                        upd_icdtxt_z3rl= 'U'
                        n_z3rl= wa_z3rl
                        o_z3rl        = ls_z3rl
                        upd_z3rl= 'U'
                        lv_opt                   = ' '
                      TABLES
                        icdtxt_z3rl= ts_change.
                CLEAR : wa_mod, <wa_tab>.
              ENDLOOP.
    Edited by: JaiKarthik on Apr 7, 2010 6:49 AM

  • How to detect duplicate for custom object 1

    Hi expert,
    are there any fields in custom object can detect duplicates If These Fields Match?
    we thought it should be "Name" but it's not.
    Thanks, sab.

    Sab, field validation is not going to check for uniqueness of the custom object name. However, you could use field validation to add a value to the custom object name which could make it unique (such as name + rowID or name + created timestamp).

Maybe you are looking for

  • How do I access my Airdisk from the Internet?

    Hello, I have been scouring the web for the answer to this, and have found very little, why doesn't Apple help out more with this. They say it is possible, just not how to do it. My AE is bridged to my ISPs Netgear router which supports dyndns. I've

  • Middleclick on a link doesn't open a new tab anymore

    It used to open link in a new tab when clicking with the middle mouse button. Now it doesn't, but I can't find the setting to reactivate this feature.

  • AS2 component sizing problem

    I experiencing a problem with the AS2 (V2) components named Datagrid and List. Is there a way to resize the using actionscript just to display more datas instead of scaling or stretching to the new size but still displaying the same amount of visible

  • How to re-read email from Gmail?

    Guys another question from me. I have 2 account, Yahoo and Gmail. I access the 2 of them with a JavaMail application. my question is: 1. Why Gmail's POP3 protocol can't retrieve my newest message, e.g the one with today's date. I've set it to downloa

  • Siri Name and Email

    I had siri called me master and then forgot about it. today i emailed a teacher. will they be able to see my nickname?