|
How to code abap logic to print stars like
this:
*
Check this code: parameters: p type i default 5. data: x type i,
x = ( p + 1 ) / 2 . do x times.
do y times.
enddo. write /. enddo. x = x - 1. do x times.
do y times.
enddo. write /. enddo.
Another example: Note : p_star should be odd Report z_test. PARAMETERS: P_STAR TYPE I.
START-OF-SELECTION.
p_star : 5 Output: test
I tested it, so it should work. |
|
Read Also
ABAP Books List
Smart Forms
ABAP Menu:
Return to Index:-
(c) www.gotothings.com All material on this site is Copyright.
|