Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

issue in dialog programming

Former Member
0 Likes
601

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.

5 REPLIES 5
Read only

Rushikesh_Yeole
Contributor
0 Likes
566

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.

Read only

sridhar_meesala
Active Contributor
0 Likes
566

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.

Read only

0 Likes
566

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.

Read only

0 Likes
566

SY-SUBRC is probably being set earlier. I don't think assignments change it.

Rob

Read only

Former Member
0 Likes
566

thanks for your useful inputs. i resolved the issue.