Skip to Content
avatar image
Former Member

smartform for many profit centres

Hi All,

I am having an internal table that has content many profit centre range. let me cite this with an example. I am having internal table that has got a field Prctr. Now prctr can be same for many records. I am supposed to develop a report for each profit centre. One thing i knw i can do is in print program itself i take the records for individual profit centre and then send them as individual table and make call to smartform for every profit center. is there any other way where i can just pass the main table and rest is done in the smartform.

mind you the report shud be for each profit centre. that means the name of file when saved as .pdf should be different for each profit center. does anyone have a good work around??

thanks,

Reena

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 12, 2006 at 01:45 PM

    SORT ITAB BY PROFIT_CENTRE.

    LOOP AT ITAB.

    AT NEW PROFIT_CENTRE.

    CALL THE SMART FORM.

    ENDLOOP.

    This way your smart form will be called once for every new profit center.

    Regards,

    Ravi

    Note - Please mark all the helpful answers

    Add comment
    10|10000 characters needed characters exceeded