SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    New Member
    Join Date
    Mar 2016
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Post SAPGuiTree : TreeView Activate item issue

    I am working SAPGuiTree and wants to activate item by passing value through parameter. if anyone knows about this kindly help me and here is my code

    Code:

    SAPGuiSession("guicomponenttype:=12").SAPGuiWindow ("guicomponenttype:=21").SAPGuiTree("treetype:=Sap ColumnTree","index:=0").ActivateItem "Inbound Monitor;03.05.2016;9395;Sales Movement","Sales Movement"

    here bold leters are the data insteadof hardcoding i want to give input from datasheet.

    DATE= 03.05.2016 date = parameter("DATE")

    here is the code which i used parameter insteadof data but i am getting an error "Cannot identify the required object"

    SAPGuiSession("guicomponenttype:=12").SAPGuiWindow ("guicomponenttype:=21").SAPGuiTree("treetype:=Sap ColumnTree","index:=0").ActivateItem "Inbound Monitor;date;9395;Sales Movement","Sales Movement"

  2. #2
    SQA Knight bklabel1's Avatar
    Join Date
    Sep 2012
    Location
    Kew Gardens, United States
    Posts
    2,596
    Post Thanks / Like
    Blog Entries
    1
    Mentioned
    2 Post(s)
    Tagged
    2 Thread(s)
    Total Downloaded
    0
    Abu,
    I do not have UFT in front of me. I think that the date value needs to be added into the string in pieces and then use the Execute method.

    Something such as:

    PieceA = "SAPGuiSession("guicomponenttype:=12").SAPGuiWindo w ("guicomponenttype:=21").SAPGuiTree("treetype:= Sap ColumnTree","index:=0").ActivateItem "Inbound Monitor;"

    PieceB = date

    Piecec = ";9395;Sales Movement","Sales Movement""

    FullString = PieceA & PieceB & PieceC

    Execute FullString

    Can anyone out there reading this improve on this?

    Thanks,

    Kevin
    When in Florida, Don't Tampa with the code. I made this up.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:03 PM.

Copyright BetaSoft Inc.