Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPWIN% printed on form

former_member239066
Participant
0 Likes
2,259

Hi Experts,

We have developped a smartform and 'SAPWIN%' is being printed on the top left corner of the form. We have not included tis text in the form.

Can you please advise how to avoid that from bein printed?

Thanks,

Vitish.

1 ACCEPTED SOLUTION
Read only

0 Likes
1,735

Hi,

you seem to be using a device type like SAPWIN,SWIN,SWINCF for your printer, but the printer is not connected to SAP via a Windows Printserver running SAPSprint or using frontend printing via SAPgui for Windows (LOCL etc).

Those device types are only useful when you have a SAP software in between which converts the data stream to Windows GDI calls for the Windows printer driver.

Regards

Alex

Hi Experts,

We have developped a smartform and 'SAPWIN%' is being printed on the top left corner of the form. We have not included tis text in the form.

Can you please advise how to avoid that from bein printed?

Thanks,

Vitish.

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
1,735

Declare a correct driver for your printer device in transaction SPAD.

Hint: Read first OSS note 1097990 - List of Printer Vendor Wizard Notes

Regards,

Raymond


Read only

former_member241258
Active Participant
1,735

USE window conditions

Read only

0 Likes
1,736

Hi,

you seem to be using a device type like SAPWIN,SWIN,SWINCF for your printer, but the printer is not connected to SAP via a Windows Printserver running SAPSprint or using frontend printing via SAPgui for Windows (LOCL etc).

Those device types are only useful when you have a SAP software in between which converts the data stream to Windows GDI calls for the Windows printer driver.

Regards

Alex

Read only

0 Likes
1,735

Hello,

Thanks for your reply. We are not using LOCL. We have assigned a printer that has been defined on SPAD. The device type used is HPLJCM1. Can you please advise?

Regards,

Vitish.

Read only

0 Likes
1,735

As explained by Raymond Giuseppi, the "OTF driver" of the device type of your output device (SPAD) is probably defined with both a "SWIN-like" value, and the access method of the output device is not "G" (or "F").

Details: setting a "SWIN-like" OTF driver means that the OTF format of your smart form is converted into SAPWIN format (something like #%SAPWIN%#...) but it won't be interpreted correctly if you don't pass it to a front-end printer (i.e. access method G/F) via SAP GUI (using SAPsprint/SAPlpd).

Read only

Former Member
0 Likes
1,735

Hi, check the program that calls that smartforms, the data in the header of the function of the smartform has something that triggers that code.

Regards