Application Development 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: 
SAP Community Downtime Scheduled for This Weekend

syntax err

Former Member
0 Kudos
139

i made this

zmilion = '1000000'.

and get

statment is not accesible

1 ACCEPTED SOLUTION

Former Member
0 Kudos
114

Hi Liat,

No problem.

Give it like this.

Start-of-selection.

zmillion = '10000000'.

That problem will be solved.

Regards,

SP.

8 REPLIES 8

Former Member
0 Kudos
114

There should be a syntax problem with the statements before and after this.

Can you post the entire code?

Regards,

Ravi

Former Member
0 Kudos
114

check zmilion its type or field length.

for ur case u asumed it is char ield.

Former Member
0 Kudos
114

Hi liat,

1. just give

<b>START-OF-SELECTION.</b>

zmilion = '1000000'.

regards,

amit m.

Former Member
0 Kudos
115

Hi Liat,

No problem.

Give it like this.

Start-of-selection.

zmillion = '10000000'.

That problem will be solved.

Regards,

SP.

Former Member
0 Kudos
114

Hi liat,

It's because u might have declared it in wrong event, like Initialization, Start-of-selection, At selection-screen etc...

Could u please send the piece of code which contains this statement.

Regards,

Satya Priya

Former Member
0 Kudos
114

Hi Liat,

I think you have written the statement after an ENDFORM statement or an ENDMODULE statement. In that case, the system will not be able to access the statement. It should belong to some event block to be executable.

Regards,

Anand Mandalika.

Former Member
0 Kudos
114

Hi Liat,

Check what is the type zmilion is declared.

if its a character type then ur statement would work as u have given it in quotes.

Since its an error, ur type is not character. So try to declare it as either Decimal type or an integer and directly assign the value 1000000 to it without the quotes.

Regards,

Tushar

Former Member
0 Kudos
114

tell me first how u declared

zmilion..?

data: zmilion type ?...

ramesh.