Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating multiple lines under a header - SAP
#5
Not Solved
Please correct me if i have misunderstood your requirement.

All you want to do is pass multiple values in one column and then use it in your script.

Say, datatable has a column named "InputCharacters" which has values as QTW002,QTW003,QTW004

Please note i have separated the values by comma.
Now the code goes as
Code:
strCharacters=Datatable("InputCharacters",dtGlobalSheet)'get the datatable values
'Now you need to split the values
arrCharacters=Split(strCharacters,".")'i am splitting on comma as the values were separated by comma
arrCharacters will have all the values now.

to get the values, you can use the index. Let us consider our example
arrCharacters(0) will give QTW002
arrCharacters(1) will give QTW003
arrCharacters(2) will give QTW004

you can use these values to set in the table as
Code:
For i=0 to Ubound(arrCharacters)
SAPGuiSession("Session").SAPGuiWindow("Characteristics").SAPGuiTable("Allowed Values").SetCellData i+1,"Char. Value",arrCharacters(i)
Next
Note: You can always modify the code to fit in ur requirement.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Creating multiple lines under a header - SAP - by Ankesh - 12-19-2012, 10:24 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)