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

Abap macro parameter number limit?

Former Member
0 Likes
1,430

Is there any number of macro parameter restriction?

I am using "set_column" to populate field-category for ALV report. Every is fine until I add ls_fcat-no_out = &10. I wonder the max parameter no. is 9? Then what can I do for this case?


  DEFINE set_column.
    clear ls_fcat.
    ls_fcat-fieldname = &1.
    ls_fcat-scrtext_l = &2.
    ls_fcat-edit      = &3.
    ls_fcat-do_sum    = &4.
    ls_fcat-no_zero   = &5.
    ls_fcat-just      = &6.
    ls_fcat-datatype  = &7.
    ls_fcat-outputlen = &8.
    ls_fcat-emphasize = &9.
    ls_fcat-no_out    = &10.
    append ls_fcat to pt_fcat.
  END-OF-DEFINITION.

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
781

Only up to 9 parameters !!.

Thanks

Venkat.

Is there any number of macro parameter restriction?

I am using "set_column" to populate field-category for ALV report. Every is fine until I add ls_fcat-no_out = &10. I wonder the max parameter no. is 9? Then what can I do for this case?


  DEFINE set_column.
    clear ls_fcat.
    ls_fcat-fieldname = &1.
    ls_fcat-scrtext_l = &2.
    ls_fcat-edit      = &3.
    ls_fcat-do_sum    = &4.
    ls_fcat-no_zero   = &5.
    ls_fcat-just      = &6.
    ls_fcat-datatype  = &7.
    ls_fcat-outputlen = &8.
    ls_fcat-emphasize = &9.
    ls_fcat-no_out    = &10.
    append ls_fcat to pt_fcat.
  END-OF-DEFINITION.

1 REPLY 1
Read only

venkat_o
Active Contributor
0 Likes
782

Only up to 9 parameters !!.

Thanks

Venkat.