Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartform

Hi,

I am giving the printer name on the selection screen and the same printer name I am passing to smart form function module also for printing. As per requirement I need to print the smart form layout once if press execute button on the selection screen with the specified printer on the selection screen. But the print is not coming I am sending the logic which I have written please tell me where I did mistake. My printer name contains 12 characters. Please help me I will give points.

DATA: w_ssfctrlop TYPE ssfctrlop.

DATA: w_ssfcompop TYPE ssfcompop.

w_ssfctrlop-no_dialog = 'X'.

w_ssfctrlop-preview = 'X'.

w_ssfctrlop-getotf = 'X'.

IF p_spld IS NOT INITIAL.

w_ssfcompop-tddest = p_spld. (this contains 12 characters but w_ssfcompop is taking last four characters).

ELSE.

w_ssfcompop-tddest = 'LOCL'.

ENDIF.

w_ssfcompop-tdimmed = 'X'.

w_ssfcompop-tdnewid = 'X'.

  • w_ssfcompop-tdnoprint = ''.

w_ssfcompop-tdfinal = 'X'.

• w_ssfcompop-tdnoprev = 'X'.

I am passing w_ssfctrlop to control_parameters parameter and w_ssfcompop to output_options parameter.

Thanks.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question