‎2007 Nov 15 4:29 PM
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.
‎2007 Nov 15 4:31 PM
‎2007 Nov 15 4:34 PM
No, it giving error like " Statement not accessible.
Thanks,
Gourisankar.
‎2007 Nov 15 4:37 PM
Pass sy-datum to another variable and try write...
Reward if it helps,
Satish
‎2007 Nov 15 4:45 PM
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 '/'.
‎2007 Nov 15 4:56 PM
‎2007 Nov 15 5:09 PM
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
‎2007 Nov 15 5:18 PM
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".