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 Error

Former Member
0 Likes
2,456

Hello Experts,

When running a transaction, I get the attached smartforms error. I have checked the form and it seems okay, the error appears even when I revert to the standard form. The curious thing is that even when I assign a PDF form I still get the same error. My initial suspicions were focused on the form, now I am not so sure. Anyone have an idea what could be causing this?

12 REPLIES 12
Read only

Former Member
0 Likes
2,410

Hi,

Even the PDF is produced from the output of a smartform. So error in pdf mode is basically a smartform error.

Please check the sy-subrc after the smartform call in the driver program in debugging mode.

If sy-subrc is not 0 the variables sy-msgv1, sy-msgv2, sy-msgv3, sy-msgv4 will have the message which will the the component of smartform which is causing the problem.

Try it and revert.

Regards,

Ashish

Read only

0 Likes
2,410

Hello Ashish,

Thank you for your response.

As far as I can tell the execution is not getting to the form. Breakpoints placed in the smartform driver program are not triggered. The transaction goes straight to the error message...smartform error message.

Read only

Former Member
0 Likes
2,410

Hi,

Someone please shed some light on this.

Read only

0 Likes
2,410

You need to find the point at which the error is getting raised. Then analyse the code before that.

Read only

former_member206650
Active Participant
0 Likes
2,410

hi wilson,

even if you are not getting with standard smartform,then there might be error in the steps which you filled the data can you also check the customizing...

Read only

krishna_k19
Contributor
0 Likes
2,410

Hi Wilson,

    Can you elaborate the issue.

How you are taking print out and whether you assigned to NACE or what can you please elaborate it.

Regards,

Krishna

Read only

0 Likes
2,410

Hi,

The issue is in the flexible real estate module. There is an error while trying to generate a sales based settlement form. A settlement is done and it is this settlement that generates the documents. After that a form, the sales based settlement form, is generated showing the settlement documents.

It is the process of generating the sales based settlement form that is generating the error. The error says no documents found yet the documents are present, as per the functional consultant. So the problem boils down to the reason behind the smartform error.

Hope my explanation is sound, if not please ask for clarification.

Read only

0 Likes
2,410

There are no assignments in NACE only in SPRO.

Read only

0 Likes
2,410

Hi,

Is the smartform and driver program assigned in NACE ?

If yes then debug the driver program and find the exact point of error. Analyse the logic of the part of code and you will know the issue.

Regards,

Ashish

Read only

0 Likes
2,410

Hello Wilson,

It seems that there isn't a document to print, thus not going through your Smartform.

For some documents in RE-FX, the output needs to be created first before it can be printed.

Have you tried printing another form? I can't make out which form you tried to print, but look for another contract.

Best regards,

Zhou

Read only

0 Likes
2,410

Hello Zhou,

Apologies for my late response. I am trying to print the sales based settlement form, tcode recpa570. The other forms such as the invoice print okay, the problem lies with this specific one.

Read only

0 Likes
2,410

More info, from the functional consultant.

On correspondence transaction for sales based form (RECPA570) , the form is still not being generated, despite having generated the documents in settlement process ( RESRSE). The error is no documents can be determined.