2005 Jul 28 2:21 PM
Hi all,
I have a bit of a problem in smartforms.
I created a table node with two loops, the first loop is at the internal table it_contrato, this loop is the one you declare on the table, the other one is at the internal table it_bsid. which is in the table positions.(main area of my table node).
my problem is that I want to compare in the where clause of the second loop this two fields: wa_contrato-matnr (containing 700005) = wa_bsid-xblnr(containing 0000700005). this is, to loop only when this two fields are the same.
How can I compare this two field in the where clause if the matnr has leading zeros and the matnr doesn't ?
Before sending the data to the smartform, you would have to make sure that those fields are of the same format.
When filling the internal tables, do the conversion routine against them to make them the same.
Regards,
Rich Heilman
2005 Jul 28 2:25 PM
2005 Jul 29 5:03 AM
Hi,
Create one more field in the internal table(say field1).Once data are getting populated in that internal table,just create a program line and in that
loop at that populated table.
Use conversion_exit_alpha_output to remove leading zero.
modify that new field.
Then use that new field to compare.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |