cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic spool titel (SMARTFORMS)

oskar_eller
Explorer
0 Kudos

Hello everybody,

does anybody know how to manipulate the titel of a SMARFORMS print. I want to make it dynamically to find single printed documents better in the SP01.

I already tried the output_options fields TDSUFFIX1, TDSUFFIX2, TDCOVTITLE and TDRECEIVER, but it didn't work.

   ls_output_options-tdsuffix1 = 'SUF1'.
   ls_output_options-tdsuffix2 = 'SUF2'.
   ls_output_options-tdcovtitle = 'TDCOVTITLE'.
   ls_output_options-tdreceiver = 'TDRECEIVER'.

   CALL FUNCTION lv_fname
     EXPORTING
       control_parameters = ls_control_param
       output_options = ls_output_options
       i_charge = ls_charge
       i_nachdruck  = space
       user_settings = space
       h_schacht = 'TRY01'
       i_ebeln = space
     IMPORTING
       job_output_info = ls_job_output_info
     EXCEPTIONS
       formatting_error = 1
       internal_error = 2
       send_error  = 3
       user_canceled = 4
       OTHERS = 5.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.


Thanks for any suggestions!


Best regards,
Oskar

Accepted Solutions (1)

Accepted Solutions (1)

oskar_eller
Explorer
0 Kudos

Hello everybody,

thanks for your responses, the problem was that I used the FUBA "SSFCOMP_OPEN" before. It uses also output options. So I had only to fill the  TDCOVTITLE field there and everything worked fine.

Regards,

Oskar

Answers (5)

Answers (5)

oskar_eller
Explorer
0 Kudos

Hi Raymond,

yes I did, but nothing happend. Check below the code and the results in SP01:

Best regards

Oskar

FredericGirod
Active Contributor
0 Kudos

Did you debug it ? 

did you check the field contains the final title ?

are you sure to be at the good place to change the title ? (I have do this mistake so many times)

Fred

raymond_giuseppi
Active Contributor
0 Kudos

Could you check in form definition if some code change the option values, e.g. in INITIALIZATION tab of global definition?

Regards,

Raymond

raymond_giuseppi
Active Contributor
0 Kudos

Did you actually fill :

  • for name of spool: TDDATASET, TDSUFFIX1 and TDSUFFIX2
  • for title of spool: TDCOVTITLE

Also in SP01/SP02 try to display both values

Regards,

Raymond

oskar_eller
Explorer
0 Kudos

Hi,

thanks for your replies. Unfortunataly TDTITLE as well as TDCOVTITLE didn't work. Can it be possible that this has something to do with smartforms? I also tried the FUBA GET_PRINT_PARAMETERS, but it didn't work neither (maybe I have used it wrong).

Yes, I'm sure that I check the correct spools 😉

Regars

Oskar

Former Member
0 Kudos

Hi,

The field ls_output_options-tdcovtitle is the correct one. It is working in my system. Please see below.

Are you sure you are checking the correct spools?

R

FredericGirod
Active Contributor
0 Kudos

Hi,

I think it's TDTITLE

regards

Fred