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

reports

Former Member
0 Likes
617

can anyone sendme the answers for following ques?

1. number"0000011' supress the leading zeros and supress assign zeros before the number.how?

2.accept date from the user and in the output the first date of the month and last date of the previous month wil be displayed.how?

3. input is 'hello'.

i want to ourtput like this.

h

h e

h e l

h e l l

h e l l o

h e l l

h e l

h e

h.

how wil i write?

plzzzz kindly reply to this mail.

uttam.

4 REPLIES 4
Read only

Former Member
0 Likes
590

hi,

1.Use UNPACK.

Read only

Former Member
0 Likes
590

using keyword no-zero.

Read only

Former Member
0 Likes
590

2. use FM "RS_VARI_V_L_LAST_MONTH " to get last day of last month.

it is easy to get 1st day of current month.

parameters :p_date type sy-datum.

p_date+6(2) = '01'.

Read only

Former Member
0 Likes
590

len = strlen(p_input).

i=1.

while i le len

write:/ p_input+0(i).

i=i+1.

endwhile.

i = len-1.

while i ge 1

write:/ p_input+0(i).

i= i-1.

endwhile.