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

big thanks to you and the web......exactly what i was trying to do. According to your instructions, I made the following and will like to hear from you if it is ok.

Please see also the attached file:

‘my final code might look like this (2 coloms where multiple values may exist - Char. Value and Description)
Code:
strCharacters=Datatable("InputCharacters",dtGlobalSheet)'get the datatable values
strDescription=Datatable("InputDescription",dtGlobalSheet)'get the datatable values
arrCharacters=Split(strCharacters,".")
arrDescription=Split(strDescription,".")
For i=0 to Ubound(arrCharacters)
For i=0 to Ubound(arrDescription)

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+1,"Char. Value",arrCharacters(i)
next
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData i+1,"Description","arrDescription(i)"
next
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SelectCell 1,"Description"

Is this correct?


Attached Files
.doc   Tweek3.doc (Size: 25.5 KB / Downloads: 142)
Reply


Messages In This Thread
RE: Creating multiple lines under a header - SAP - by Fredodo - 12-19-2012, 06:46 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)