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

SmartForm Not Displayed

Former Member
0 Likes
5,216

Hi,

I have a smartform which works fine in development client but not in test client.

After transporting the form and program to testing client, I can't see the Print Preview of the smartform on the screen.

I can see the screen where I can click the 'PRINT PREVIEW' button but after clicking it, it does not display anything on screen.

While debugging its calling the correct function module 'SSF_FUNCTION_MODULE_NAME' and passes the form name. I use this in the FM ' CALL FUNCTION XXX'. But after this it does not dispaly the preview on the screen

Any idea where the problem can be. Is it some config, or client setting etc. Your help is really appreciated.

Regards

RK

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,921

Check in transaction V/40 whether you program and smartform are configured for the Output Type that you are using.

Regards,

Neeraj Gupta

Check in transaction V/40 whether you program and smartform are configured for the Output Type that you are using.

Regards,

Neeraj Gupta

7 REPLIES 7
Read only

Former Member
0 Likes
2,922

Check in transaction V/40 whether you program and smartform are configured for the Output Type that you are using.

Regards,

Neeraj Gupta

Read only

FredericGirod
Active Contributor
0 Likes
2,921

Hi,

Maybe, the smartforms return an error, can you try to put a break-point after the call function ? and get the sy-subrc ?

If you don't send info to the smartforms, try to call directly the function in SE37 (F8), SAP will return the error message.

That could be a inexistant text, problem with address .....

Rgd

Frédéric

Read only

0 Likes
2,921

HI,

A graphic was not transported and hence the error.

Thanks for the right advice.

On second thoughts, is there a way to determine before transporting the standard texts, graphics etc that have been used in Smartform. This can help prevent such errors.

Regards

RK

Read only

0 Likes
2,921

Hi

You should check all those elements in production, but if you have created an own program to drive the smartforms you should insert the fm SSF_READ_ERRORS, this fm returns all error messages.

So if SF is failed, you can get out the errors by SSF_READ_ERRORS and write a log (instead of showing the print) to know the errors have occurred.

Max

Read only

0 Likes
2,921

Hi Rajiv,

check for tables..

STXF* in SE11 data dictionary,you will find tables with smartform details.

Few of them are..

STXFCONTS Smart Forms: Form Subobjects(Saved)

STXFCONTV Smart Forms: Form Subobjects - Versions

STXFIMP Smart Forms: Generate at Upgrade

STXFOBJT Smart Forms: Subobject Long Texts

STXFTXT SAP Smart Forms: Texts

Read only

0 Likes
2,921

Hi Rajiv,

You can avoid errors like Graphic not found or Standard texts not found. But you have to add some program lines before calling Graphic or Standard text .

Example: Program lines before Graphic :

Please check the GRAPHIC in table "STXBITMAPS" as TDOBJECT = 'GRAPHICS" and TDNAME = 'Your Graphicname".

IF SY-SUBRC <> 0.

Set a flag V_FLAG = 'X'.

Then at graphic element check this at conditions as print only if V_FLAG <> 'X'.

For standard :

You can check the <u>check box "No Error if no text Exists"</u>.

Other technique :

Same way you can do for standard text by looking in to tables "STXH and STXL" .

We are using this technique for not to print Text label if standard text not present.

Hope this may help you.

Lanka

Read only

Former Member
0 Likes
2,921

Hi Rajiv,

Go to SMARTFORMS then directly execute , it will generate the FM, now try to execute that FM directly by passing some info,

it should give the preview or what ever..

if it is not then some thing wrong with your transport.

regards

vijay