Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating multiple lines under a header - SAP
#1
Not Solved
Sorry for the duplication - was originally created in General area:

Dear all,
i will like an assistance on how to get around this problem:

1. I created a new Characteristic "QTWTEST2"
2. I added a Char value "QTW002"(can add more than one value) under the header
3. Some characteristis have more that one Char value in my data table
4. How can i let qtp recognise the single/multiple Char. values from the data table.

I am attaching the composition of my data table and qtp codes

I will be glad of any input.

Code:
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 1,"Char. Value","QTW002"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData 1,"Description","TEST2"
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SelectCell 1,"Description"

Character name Char. Value Description
1 QTPXTEST1 QTX001 TEST1
2 QTWTEST2 QTW002 TEST2
3 QTWTEST2 QTW003 TEST3
4 QTPBRUN1 QTB001 RUN1
5 QTPBRUN1 QTB002 RUN2
6 QTPBRUN1 QTB003 RUN3

Line 1 - 1 char. value
Line 2/3 - 2 char value
Line 4,5,6 - 3 char value


Attached Files
.doc   Tweek2.doc (Size: 75 KB / Downloads: 99)
Reply


Messages In This Thread
Creating multiple lines under a header - SAP - by Fredodo - 12-14-2012, 08:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating Random String SomeIntern 0 5,073 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,350 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,741 05-21-2013, 03:39 PM
Last Post: Prashanth

Forum Jump:


Users browsing this thread: 2 Guest(s)