2006 Dec 11 1:19 PM
Hi,
how to move values of 2 records into 1 single record.
Thank you.
Hi,
Move the records data into two different structure
create new structure which is having two structure fields.
append new structure to internal table.
Regards
Bhupal Reddy
2006 Dec 11 1:21 PM
Hi SVJ,
Use <b>MOVE-CORRESPONDING</b> statement.
Use two MOVE-CORRESPONDIG statement for each record to push into a single record.
MOVE-CORRESPONDING record1 INTO record.
MOVE-CORRESPONDING record2 INTO record.
APPEND record.
Thanks,
Vinay
2006 Dec 11 1:22 PM
Do you have sufficient fields to move the data into?
itab
- field1
- field2
Then,
itab-field1 = wa1-field.
itab-field2 = wa2-field.
2006 Dec 11 1:23 PM
use like this..
Use Move-corresponding struct1 into struct.
Use Move-corresponding struct2 into struct.
Where Struct1 & struct2 are your 2 records and struct is a single final record..
Reward if usefull..
2006 Dec 11 1:24 PM
Hi
the concatenate command can be used to move the value of two records into one.
eg
data : field1(5) type c value 'abc',
field2(10) type c value '123' .
write 😕 field1 , field2 .
CONCATENATE field1 field2 into field2 .
write 😕 field2.
The output would be : abc123
Plz revert if it doen't suffice ur requirement.
Regards
Pankaj
Plz award points if it helps u
2006 Dec 11 1:24 PM
Hi,
Declare the table with all the required fields(for both 2 records). then while comparing the key value move the fields to the corresponding fileds.
Regards,
Satya.
2006 Dec 11 1:40 PM
Hi,
Move the records data into two different structure
create new structure which is having two structure fields.
append new structure to internal table.
Regards
Bhupal Reddy
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |