Skip to Content
avatar image
Former Member

creating no. of spool requests based on data

Hi all!

I am preparing a smartform showing the schedule deliveries of purchase orders of all vendors within a specified period. A new spool request is to be generated for each vendor's schedule deliveries. How can I raise a new spool request when the vendor no. is changed? Is it possible? If yes,please suggest.

Edited by: Jayasri P. on Apr 21, 2008 12:31 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 21, 2008 at 11:52 AM

    you will have to call the smartform separatley for each vendor

    and then set tdnewid = 'X'

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      you have to pass one more parameter to the function call

      ls_control type SSFCTRLOP,

      ls_control-no_dialog = 'X'.

      CALL FUNCTION lv_fm_name

      EXPORTING

      control_parameters = ls_control

      output_options = ls_composer..

      ...

      ...

      ...

  • avatar image
    Former Member
    Apr 23, 2008 at 08:46 AM

    Hi Jayasri, 1. Loop and Call Smartform function module for every Vendor . 2. When you Smartform function module not SSF_FUNCTION* , you will get OUTPUT_OPTIONS exporting parameter. In that u have TDNEWID field. You have to set 'X'. It will generate each time new spool request. Regards, Venkat.O

    Add comment
    10|10000 characters needed characters exceeded