‎2007 Aug 23 2:34 PM
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.
‎2007 Aug 23 2:35 PM
‎2007 Aug 23 2:41 PM
‎2007 Aug 23 2:43 PM
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'.
‎2007 Aug 23 2:47 PM
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.