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

write statement problem

Former Member
0 Likes
705

HI gys,

In 4.5 B this is the statement " write SY-DATUM to L2_DATE MM/DD/YYYY"

I need same statement in ECC6.0.

Can any one help this statement.

Thanks,

Gourisankar.

7 REPLIES 7
Read only

Former Member
0 Likes
686

write SY-DATUM MM/DD/YYYY to L2_DATE

Read only

0 Likes
686

No, it giving error like " Statement not accessible.

Thanks,

Gourisankar.

Read only

Former Member
0 Likes
686

Pass sy-datum to another variable and try write...

Reward if it helps,

Satish

Read only

Former Member
0 Likes
686

Then tricky solution...


DATA : L2 TYPE CHAR10.

CONCATENATE sy-datum+0(4) sy-datum+4(2) sy-datum+6(2) INTO l2_DATE
SEPARATED BY '/'.

Read only

0 Likes
686

No, still i am facing the problem.

Read only

0 Likes
686

Your code is correct only it is typed in wrong place.

"Statement not accessible" means that program execution flow cannot reach this line.

Please check if it is inside any FORM or selection screen event

Message was edited by:

Tomasz Mackowski

Read only

Former Member
0 Likes
686

I think Tomasz is correct. In this simple example:

FORM test.

ENDFORM.

WRITE sy-datum TO w_char.

My WRITE statement is "Statement is not accessible".