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

case statement?

Former Member
0 Likes
1,035

wt is wrong with below..can any one please tell me..

i m getting error like . statement 'I103' ended unexpectedly.

data : lv_subject(30) type c value 'Bid Number XXXXXXXXXX'.

constants : c_num(10) type c value ' Number',

c_accepted(10) type c value 'accepted',

c_returned(10) type c value 'returned',

c_rejected(10) type c value 'rejected'.

replace c_num in lv_subject with space.

case lv_status.

when 'I1014'.

concatenate c_accepted into lv_subject seperated by space.

when 'I1013'.

concatenate c_rejected into lv_subject seperated by space.

when 'I1042'

concatenate c_returned into lv_subject separated by space.

when others.

endcase.

please help..

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,013

Hi,

change the line


concatenate c_accepted space into lv_subject separated by space.

and also check the spelling of "seperated" it is "SEPARATED"

aRs

10 REPLIES 10
Read only

former_member194669
Active Contributor
0 Likes
1,013

Hi,


when 'I1042'

please change to

when 'I1042'.       "< put dot 

aRs

Read only

0 Likes
1,013

hi..

thanks for your reply i have put the dot after that i m getting one more error.

Unable to interpret "C_ACCEPTED". Possible causes of error: Incorrect spelling or comma error.

please help.

Read only

former_member214999
Participant
0 Likes
1,013

out a period after when 'I1042'

Read only

Former Member
0 Likes
1,013

Hi,

in the third option 'I1042' you nedd add '.'

Regards,

DLC

Read only

0 Likes
1,013

IN THIS PART data : lv_subject(30) type c value 'Bid Number XXXXXXXXXX'. change the period with comme.

regards

David

Read only

former_member194669
Active Contributor
0 Likes
1,014

Hi,

change the line


concatenate c_accepted space into lv_subject separated by space.

and also check the spelling of "seperated" it is "SEPARATED"

aRs

Read only

0 Likes
1,013

Hi AS,

thanks for ur reply my problem got solved .. it is necessary to pass space next accepted ..

Awarded full points to u..

Thanks

Venkatesh

Read only

Former Member
0 Likes
1,013

after apssing space with c_accepted entire stirng will replaced by accepted. So i m reopening this question.. please help..

Read only

former_member194669
Active Contributor
0 Likes
1,013

Hi,

Then change it to


concatenate lv_subject c_accepted into lv_subject seperated by space.

aRs

Read only

0 Likes
1,013

thanks ..solved