Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 11, 2007 at 05:46 AM

    Hi,

    U have commented this line try to remove this.

    Try like this. I am getting print.

    outop-tddest = 'LOCL'.

    outop-TDIMMED = 'X'.

    outop-TDNEWID = 'X'.

    outop-TDFINAL = 'X'.

    CPARAM-PREVIEW = 'X'.

    CPARAM-NO_DIALOG = 'X'.

    Assign points if useful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 11, 2007 at 05:48 AM

    Hi,

    And also be ensure that u should check newspool request option,

    compulsorty then only u will get print.

    check the variable for new-spool request it is availabe in which i sent u now.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for your reply how to use that cparam I mean how to pass that to smart form function module and how to declare that and you mentioned check the variable for new spool request. How to check that.

      Please help me. Once again thanks for your help.

  • avatar image
    Former Member
    Oct 12, 2007 at 06:29 AM

    Hi,

    Plese convert the printer name into upper case and accept first four characters only.I think this will work.

    Regards,

    Sreeja.

    Please rewards if useful.

    Add comment
    10|10000 characters needed characters exceeded