2010 Feb 11 11:28 AM
Hi guys,
I am trying to take the date field in my form which is of type Dats yyyymmdd into an internal table field with type d. I am not able to do the same. when i check the value of sy-subrc it gives the value of sy-subrc = 4. kindly help me on the same of how do i go about populating my internal table with the date field.
Hi guys,
I am trying to take the date field in my form which is of type Dats yyyymmdd into an internal table field with type d. I am not able to do the same. when i check the value of sy-subrc it gives the value of sy-subrc = 4. kindly help me on the same of how do i go about populating my internal table with the date field.
2010 Feb 11 11:34 AM
Types: begin of int_table,
date type sy-datum,
end of int_table.
data: table type table of int_table.
wa_table-date = sy-datum.
append wa_table to table.
Use this..
define your fields of type sy-datum.
2010 Feb 11 11:35 AM
Hi,
You can declare the internal table using TYPES and in that declare the date field refering to the dictionary field having the date format as YYYYMMDD.
Thanks,
Sri.
2010 Feb 11 12:12 PM
i used the stratergy explained by you, but still it gives sy-subrx = 4. So i am not able to enter data in my internal table.
2010 Feb 11 2:30 PM
SY-SUBRC is probably being set earlier. I don't think assignments change it.
Rob
2010 Feb 12 8:14 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |