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

Multiplication table in macro

naresh_kanderi
Explorer
0 Likes
544

Hai friends

When i was activate this , its shows a error , anyone can give answer to this..plz

REPORT  ZFUN_MULTI_TAB_REPORT.

PARAMETERS: mul TYPE i,

            len TYPE i,

            op TYPE i,

            gv_res TYPE i.

DEFINE mul_tab .

  do len TIMES.

    gv_res = &1 &2 &3 .

    WRITE : &1 &2 &3 ,' = ',gv_res.

    "len = len + 1.

    enddo.

  end-OF-DEFINITION.

mul_tab mul * len .

1 ACCEPTED SOLUTION
Read only

nishantbansal91
Active Contributor
0 Likes
483


HI NARESH,


PARAMETERS : mul TYPE i,

             len TYPE i,

             op TYPE i,

             gv_res TYPE i.

  data t TYPE char1 VALUE '*'.

DEFINE mul_tab .

   do len TIMES.

     gv_res = &1 &2 &3 .

     WRITE : '&1 &2 &3' , gv_res. " Your problem solution is pass this value in code.

     "len = len + 1.

     enddo.

   end-OF-DEFINITION.

mul_tab len * mul .

Regards.

Nishant Bansal

2 REPLIES 2
Read only

nishantbansal91
Active Contributor
0 Likes
484


HI NARESH,


PARAMETERS : mul TYPE i,

             len TYPE i,

             op TYPE i,

             gv_res TYPE i.

  data t TYPE char1 VALUE '*'.

DEFINE mul_tab .

   do len TIMES.

     gv_res = &1 &2 &3 .

     WRITE : '&1 &2 &3' , gv_res. " Your problem solution is pass this value in code.

     "len = len + 1.

     enddo.

   end-OF-DEFINITION.

mul_tab len * mul .

Regards.

Nishant Bansal

Read only

0 Likes
483

Thank  u Nishant