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

Template size error in smart forms

Former Member
0 Likes
5,377

Hi experts,

                  i have created a smartform with template for a window, and maintained  small in size(heigh and width) for template compared to window size....the smartform is working fine in the Development server...

                once it is transported to Quality it is throwing an error stating %template does not fit in window...even though is working fine in Development server...why this is happening...

          

             please tell ur valuable sujjestions to solve this issue

Regards,

Lokesh Rangappa

1 ACCEPTED SOLUTION
Read only

former_member187748
Active Contributor
0 Likes
4,385

Hi Lokesh,

just once again , save and acivate your smartform and move its TR on quality, sometimes

it happens that all the objects are not able to transport properly, please reduce the last some

lines of your templates height at some extent so that it will not effect your output values anymore,

save it , check it and activate it and transport it to QA, i hope your problem will get resolved.

28 REPLIES 28
Read only

former_member201275
Active Contributor
4,385

Is your window is attached to 2 pages, with a different height?

Read only

0 Likes
4,385

No, i have a single Page

Read only

Former Member
0 Likes
4,385

Hi,

Check the size of the template by pressing output options tab and compare it with the size of the window. ( Check whether the dimension units are same or not. ).

How many page formats are there. If more than 1 page exists, check whether in other pages template fit into the window. Open the smartforms in both the client and compare the dimensions.

Regards,

DPM


Read only

0 Likes
4,385

Hi,

     what do you mean by Dimensions exactly... CM,PT what ever it is both the window and template having same....

i dont have an authorisation of tcode :smartforms in quality

Read only

former_member201275
Active Contributor
0 Likes
4,385

Another question. Are you using the same printer on Dev as Q?

Have all objects been transported i.e. smartform, template, page formats, etc., to Q?

Read only

0 Likes
4,385

i have transported all these to qa..

i dont know??? the same printer also matters for this error?????

Read only

0 Likes
4,385

Defeinetly the device type that you are printing to will make a difference.

Read only

0 Likes
4,385

device type in the sense output device or Printer?

Read only

0 Likes
4,385

The device type that is defined in SAP for the printer you are printing to. This imo is the problem.

Can you try on Dev to print to the same printer as QA, or vice versa?

Read only

former_member223090
Participant
0 Likes
4,385

This message was moderated.

Read only

former_member187748
Active Contributor
0 Likes
4,386

Hi Lokesh,

just once again , save and acivate your smartform and move its TR on quality, sometimes

it happens that all the objects are not able to transport properly, please reduce the last some

lines of your templates height at some extent so that it will not effect your output values anymore,

save it , check it and activate it and transport it to QA, i hope your problem will get resolved.

Read only

0 Likes
4,385

thanks for ur reply.... i have done the same things what u have told in this 2ndTR(which is now in QA)...

   My prob is that, i have 6 users in QA login to test this smartform... For the two users no issue... but for remaining 4 users this template issue is coming....

  what will be excat problem for this users only......??

Read only

0 Likes
4,385

Hi Lokesh,

then i don't think there is any problem in your smartforms, just see all the 4 users , can you please

tell me that all the 6 users have the same SAP gui setup, see if any of the user has got correct

smartform, (no template issue), then i don't thing its smartform problem, please talk to your basis guys and ask him for patch level problem or gui problem.

Just setup the latest gui version available in those 4 user's system.

Because its not problem of smartform, its problem of display, which can be corrected either by

installing latest gui, or by patch level.

Read only

0 Likes
4,385

Ask all the users to check for the same document in print preview mode.  If issue still persists, then issue is with the device type . Then ask the user facing problem to use the device type which is working fine. Things will be alright.

Read only

0 Likes
4,385

Hi sanjeev,

    what is SAP gui setup... how to check that users are having the same set up or not ?

who will setup the latest gui versions???

Read only

0 Likes
4,385

Hi Lokesh,

just ask to your basis guys, or hardware guys, they will look it.

Tell him the problem , and ask to install latest gui version.

Read only

0 Likes
4,385

hi Deboriyo,

                  how to check the output devices for those end users..... are they really aware of it?

Read only

0 Likes
4,385

hi sanjeev,

           i will check basis and i will get back to you...

Read only

0 Likes
4,385

If they are not filling it manually. Ask them to send SU3->Default tab's screenshot which contains the output device field. Please keep in mind that user can override the default option in the print dialog ( While selecting the output type, click print option and check logical destination field ).

Read only

0 Likes
4,385

Hi Lokesh,

please once check this also, please go to transaction SU3, and check that all the users

have same configuration or not as shown in this screenshot. Check for Output Device.

Read only

0 Likes
4,385

hi sanjeev,

             after changing the output device to LOCL in the users(su3).....my issue solved...

  is there any function module which returns the output device based on the user login ..????

please let me know the functionmodule or any other thing like that...

Read only

0 Likes
4,385

hi Debopriyo,

after changing the output device to LOCL in the users(su3).....my issue solved...

  is there any function module which returns the output device based on the user login ..????

please let me know the functionmodule or any other thing like that..

Read only

0 Likes
4,385

You will get output devices for other users from table USR01 ( USR01-SPLD)

Read only

0 Likes
4,385

Hi Lokesh,

go through NACE transaction, where you can find the output types,

and also see the table TNAPR and NAST.

Alternately, output type can be found by USR01 table

Please see this wiki help for your better understandings

SAP Library - Message Control (CA-GTF-BS)

Read only

0 Likes
4,385

Hi,

Changing to LOCL may solve the problem, but is not necessarily the answer.  You need to know from your Basis and Security teams what the printer stategy is and what defaults are assigned in production.  Then your Smartform needs to work with these.

Regards,

Nick

Read only

0 Likes
4,385

hi Nick,

Thanks for ur reply

Read only

Former Member
0 Likes
4,385

Hi thanks for all ur replies...

        after changing to LOCL device type in the user login (su3) ,it is working fine...

iam converting my smartform output to PDF and it is displayed in a custom container.... so im passing LOCL to OUTPUT_OPTIONS  parameter of the function module(Smartfrm)... this is making problem i think....

what is the use of SSF_GET_DEVICE_TYPE.,weather i have to use this in my program before callig the smartform FM...????


please sujjest me..

Read only

0 Likes
4,385

Hi,

we use SSF_GET_DEVICE_TYPE to get output device type, the common syntax is as hown below

CALL FUNCTION 'SSF_GET_DEVICE_TYPE'

  EXPORTING

    i_language    = v_language

    i_application = 'SAPDEFAULT'

  IMPORTING

    e_devtype     = devtype.

please search, you will get many threads to explain its use.