Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating multiple lines under a header - SAP
#7
Not Solved
Hello Ankesh,

still need a help on this. I ran this script below and the result is halfway, please see the attachment.
Please help review my script:

Code:
strCharacters=Datatable("Characters",dtGlobalSheet)'get the datatable values
strDescription=Datatable("Description",dtGlobalSheet)'get the datatable values
arrCharacters=Split(strCharacters,",")
arrDescription=Split(strDescription,",")
For i=0 to Ubound(arrCharacters)

SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Characteristic").Set "QTWTEST2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiButton("Create").Click
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Description").Set "QTP characteristics test2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiComboBox("Data Type").SetFocus
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiComboBox("Data Type").Select "Character Format"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiEdit("Number of Chars").Set "6"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTabStrip("TABSTRIP1").Select "Descriptions"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTabStrip("TABSTRIP1").Select "Values"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData i+2, "Char. Value",arrCharacters(i)
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData i+2, "Description",arrDescription(i)
next
Reply


Messages In This Thread
RE: Creating multiple lines under a header - SAP - by Fredodo - 12-28-2012, 03:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating Random String SomeIntern 0 4,785 08-21-2013, 09:10 PM
Last Post: SomeIntern
  Unable to right click column header sudhirzpatil 4 6,107 07-18-2013, 09:42 PM
Last Post: sudhirzpatil
  Problem in creating excel object kriday 1 2,213 07-13-2013, 12:45 PM
Last Post: Ankur
  Add Simple Text Header mot0rola 2 2,363 07-09-2013, 10:30 AM
Last Post: Ankur
  Datatable header inserting error Prashanth 0 2,642 05-21-2013, 03:39 PM
Last Post: Prashanth

Forum Jump:


Users browsing this thread: 1 Guest(s)