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

Smartforms - Invoice cannot be displayed

Former Member
0 Likes
667

Hey,

I have a problem in Smartforms. I have developed a invoice form and for the most kinds of invoices, it works fine...

But when I try to print/view one special invoice, I get the message, that the form can“t be displayed! Can You tell me, how I can get more information about where the problem is and why the error occurs? I only know that there is a problem, but not the reason...

Thank You very much!

Arne

4 REPLIES 4
Read only

christian_wohlfahrt
Active Contributor
0 Likes
534

Hi Arne!

How about debugging? Sometimes printer is not assigned (/defined) in a special case, some data selects don't bring results -> empty table -> no loop -> no data to display...

At least in dev. system you can write 'break at <i>username</i>' in your data preparation part of smartform. Then debugger should stop - in case you start a screen display of your output.

If your interface isn't too complicate, you might call your document in test mode of smartform (like SE37).

Regards,

Christian

Read only

Former Member
0 Likes
534

Hey,

thank You for your answer. Where exactly can I place the breakpoint and how exactly? Sorry, but debugging Smartforms is new for me... ;o)

Regards Arne

Read only

0 Likes
534

Hi Arne!

Did you use SELECT (or FM) in your smartform development? If yes, just before the first (important) select would be a good place.

Did you already try test frame (TA smartforms, initial screen, F8)?

If your data is read in calling program, run a test program in debugging. Very simple one:

tables: nast.
nast-objkey = '00000001'.  "Your doc. no.
nast-kschl...              "some necessary fields

perform entry(zroutineprogram) using ...

Regards,

Christian

Read only

Former Member
0 Likes
534

Hi Christian,

I don“t use any SELECTs or other programming lines inside my Smartform. I only use the given data of the imported structures. Is it not possible where the error occurs? Or maybe why? (Something like "window xy is too big"... for example).

I think I have heard from anybody, that I can see more exact error descriptions.

cheers Arne