on 2024 Jan 08 1:45 PM
Hello SAP,
I was trying to get the sum of a column of quote table where the columns rows are numbers.
I tried to write a script which adds all the rows of a column in quote table. The script goes as
"""
X=Quote.Quotetable['Quote Table Name']
For rows in X.Rows:
A=rows['Column Name']
""""
The variable A is getting the last row value of "Column Name" of QUOTE table "Quote Table Name".
Can anybody help on how to sum or add all the rows values of a particular column
Request clarification before answering.
Hi Robin,
The script is almost correct. You are missing the addition... See below:
X=Quote.Quotetable['Quote Table Name']
For rows in X.Rows:
A += rows['Column Name']
Best,
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
robin32
For Quote 2.0
A = 0
X=context.Quote.QuoteTables['Testing']
for rows in X.Rows:
A += rows['Amount']
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.