‎2006 Jul 17 12:46 PM
hi to all, can u help me in this, can we write like this in data statement
data : begin of it_vbak occurs 0,
vbeln type vbak-vbeln,
erdat(4),"can we write this like this mentioning length since its lenght is 8 iam taking 4 to get it same 4 spaces in selection screen can i do it
end of it_vbak
thanks& regards
Kranthi Revuri
‎2006 Jul 17 12:51 PM
What is the objective?
You can use the declarations like that in a internal table. If you want just the year part of the date, you can use the data element GJAHR for reference instead of giving like this.
Regards,
Ravi
Note : please mark all the helpful answers
‎2006 Jul 17 12:51 PM
What is the objective?
You can use the declarations like that in a internal table. If you want just the year part of the date, you can use the data element GJAHR for reference instead of giving like this.
Regards,
Ravi
Note : please mark all the helpful answers
‎2006 Jul 17 12:51 PM
Hello Kranthi,
Since u r not mentioning the refrence field ERDAT(4) will be character variable of length 4.
The code u have written for declaring the Itab. is correct.
If useful reward points.
Regards,
Vasanth
‎2006 Jul 17 12:51 PM
ya u can take any variable of any length ...
but erdat is used for date...
if u fetch date value in this variable it show error.
‎2006 Jul 17 12:52 PM
‎2006 Jul 17 12:54 PM
Yes u can . the control would treat it as a field of character field of length 4.