2007 Jun 27 10:00 AM
hello
I have two data types like this ..
DATA: BEGIN OF XDMEAN OCCURS 20.
INCLUDE STRUCTURE XDMEAN .
DATA: END OF XDMEAN .
DATA: BEGIN OF XDMEANTEMP OCCURS 20.
INCLUDE STRUCTURE XDMEAN.
DATA: END OF XDMEANTEMP.
I want to copy data from XDMEAN to XDMEANTEMP. Kindly tell me whether
this move statement is correct.
MOVE XDMEAN TO XDMEANTEMP.
During debugging i found that the data is not copied to XDMEANTEMP.
Please help.
Regards
Sudha
Message was edited by:
Sudha Naik
2007 Jun 27 10:03 AM
hello
I have two data types like this ..
DATA: BEGIN OF XDMEAN OCCURS 20.
INCLUDE STRUCTURE XDMEAN .
DATA: END OF XDMEAN .
DATA: BEGIN OF XDMEANTEMP OCCURS 20.
INCLUDE STRUCTURE XDMEAN.
DATA: END OF XDMEANTEMP.
I want to copy data from XDMEAN to XDMEANTEMP. Kindly tell me whether
this move statement is correct.
MOVE XDMEAN TO XDMEANTEMP.
During debugging i found that the data is not copied to XDMEANTEMP.
Please help.
Regards
Sudha
Message was edited by:
Sudha Naik
2007 Jun 27 10:03 AM
2007 Jun 27 10:04 AM
Hi,
You have used the 'OCCURS' keyword, which makes it a table,
Use XDMEANTEMP[] = XDMEAN[].
Regards,
Samson Rodrigues.
2007 Jun 27 10:04 AM
APPEND LINES OF XDMEAN TO XDMEANTEMP.
or
XDMEAN = XDMEANTEMP[].
2007 Jun 27 10:04 AM
2007 Jun 27 10:07 AM
HI.
refer this code.
APPEND LINES OF XDMEAN TO XDMEANTEMP.
or
XDMEAN = XDMEANTEMP[].
Reward all helpfull answers.
Regards.
Jay
2007 Jun 27 10:10 AM
2007 Jun 27 10:16 AM
Hi ,
If Both internal tables has same structure u can use
XDMEANTEMP[] = XDMEAN[]
If structure differs
Loop at XDMEAN.
Move-corresponding XDMEAN to XDMEANTEMP.
Append XDMEANTEMP.
Endloop.
Regards,
A.Thuyavan
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |