2007 Mar 06 9:25 AM
Hello experts,
Is there a way to compare two work areas with the same structure to check if the values are the same? The problem is that I don't know the fields of the work areas, I have dynamic programming & field symbols..
Any statement to do that?
2007 Mar 06 9:30 AM
If both structures are same then u can use..
if wa1 EQ WA2.
*both are same
endif.
Hello experts,
Is there a way to compare two work areas with the same structure to check if the values are the same? The problem is that I don't know the fields of the work areas, I have dynamic programming & field symbols..
Any statement to do that?
2007 Mar 06 9:30 AM
If both structures are same then u can use..
if wa1 EQ WA2.
*both are same
endif.
2007 Mar 06 9:31 AM
HEllo,
U can check like this:
<b>IF WA1 EQ WA2
ENDIF.</b>
Vasanth
2007 Mar 06 10:27 AM
Thank you for your answers.
Now another question. I have a filled work area. I want to select that record from the original dictionary table in another work area. I also have the index of that record. How can I write the select statement?
2007 Mar 06 10:29 AM
hi George,
do this way ..
select single * from <DB Table> into <WA> where <conditions >.regards,
Santosh
2007 Mar 06 10:30 AM
read table itab into wa_old index <indesx no>.
select single * from table into wA_new where field1 eq wa_old-field1
field2 eq wa_old-field2.
2007 Mar 06 10:30 AM
SELECT SINGLE * FROM XXXX
INTO wa
WHERE matnr = wa-matnr
AND xxxx = wa-xxx.Specify all the key fiedls in teh whree condition.
2007 Mar 06 10:33 AM
I know to do it in the way you wrote above, but remember that I don't know the fields of the wa. the question is if I can write a dynamic select statement using the existing wa or record index.
2015 May 12 10:51 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |