cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error in SmartForm

Former Member
0 Kudos

I am having a problem with an error message in a SmartForm. I have tracked the error down to the following function call:

  CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'
       EXPORTING  HEADER           = %HEADER
                  DOCSTRUC         = %DOCSTRUC
                  STARTPAGE        = CONTROL_PARAMETERS-STARTPAGE
                  ARCHIV_INDEX_TAB = %ARCTAB
                  MAIL_APPL_OBJECT = MAIL_APPL_OBJ
       IMPORTING  RESULT           = %RESULT_PD
       EXCEPTIONS OTHERS           = 1.
  IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.

It is returning with a value, in sy-subrc, of 1. This function call is after an included text is displayed. I have the checkbox "No error if no text exists" checked so I am not sure why I am getting an error. The error message is as follows:

Field ULINE does not exist in form.

I am not using ULINE at all in the form (as the error message states) but I don't understand why/where it is looking for ULINE.

Regards,

Davis

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I found the problem. In the standard text there is a ULINE so I am going to have to redo the standard texts.

Regards,

Davis

Former Member
0 Kudos

Thanks Aaron for the solution ...

former_member255529
Discoverer
0 Kudos

Hello Aaron,

I have a query similar to your original post but don't know exactly how to proceed.

When i am trying to issue Delivery output for T code VL02N after selecting Output type e.g. 'ZABC'

and then selecting print preview, it gives following error.Please see the screen shot :

I have checked the driver program as well as smart form thoroughly , wa_name has not been declared any where.

I tracked down the place of error and it coming from FM 'SSFCOMP_PROCESS_DOCUMENT'


CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'

        EXPORTING  HEADER            = %HEADER

                   DOCSTRUC                   = %DOCSTRUC

                   STARTPAGE                  = CONTROL_PARAMETERS-STARTPAGE

                   ARCHIV_INDEX_TAB      = %ARCTAB

                   MAIL_APPL_OBJECT      = MAIL_APPL_OBJ

        IMPORTING  RESULT                = %RESULT_PD

        EXCEPTIONS OTHERS              = 1.

   IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.

   DOCUMENT_OUTPUT_INFO = %RESULT_PD.


SY-SUBRC becomes 1, consequently it raises that error using subroutine %RAISE.

Dont know how to track down the error, please let me know the solution to eliminate this.


Best Regards.

Saurabh Singh


Former Member
0 Kudos

I can only imagine that WA_NAME exists somewhere in the form but it was not declared.

former_member255529
Discoverer
0 Kudos

The exact issue was with so10 text maintainence.

In one of the text there was description containing &WA_NAME& but nowhere in the smartform as well as in the driver program it was mentioned.

It is working fine after deleting the text description from that SO10 text.

Former Member
0 Kudos

I tracked the error down to the code below. The error only happens when the select is encountered:

CASE vbdkl-vkorg.
  WHEN '0010' OR '0011' OR '0020' OR '0030' OR '0040' OR '0060' OR '0065'.
        select single * from tvko into w_tvko
         where vkorg = vbdkl-vkorg.
       w_include = w_tvko-txnam_kop.
  WHEN '0021'.
    w_include = 'zadrs_hdr_ver_weatherbond'.
  WHEN '0012'.
    PERFORM get_bzirk IN PROGRAM zrvaddn01_forms
    USING vbdkl-kunnr
    vbdkl-vkorg
    CHANGING w_bzirk.
    IF w_bzirk = 'CARLSH'.
*      w_include = 'tvko-txnam_kop'.
       select single * from tvko into w_tvko
         where vkorg = vbdkl-vkorg.
       w_include = w_tvko-txnam_kop.
    ELSE.
      w_include = 'NAME1'.
    ENDIF.
  WHEN '0050'.
    PERFORM get_bzirk IN PROGRAM zrvaddn01_forms
    USING vbdkl-kunnr
    vbdkl-vkorg
    CHANGING w_bzirk.
    if w_bzirk = 'CCWSH'.
*      w_include = 'tvko-txnam_kop'.
       select single * from tvko into w_tvko
         where vkorg = vbdkl-vkorg.
       w_include = w_tvko-txnam_kop.
    ELSE.
      w_include = 'NAME1'.
    ENDIF.
  WHEN OTHERS.
        select single * from tvko into w_tvko
         where vkorg = vbdkl-vkorg.
       w_include = w_tvko-txnam_kop.
ENDCASE.
TRANSLATE w_include TO UPPER CASE.

It doesn't matter what select, as long as any select is processed, the form errors out.

Regards,

Davis

Former Member
0 Kudos

are you using any currency field or qty field in your layout ? the strcutre does not have Ref field in Data dictionary .

I am sure this is the problem.

Former Member
0 Kudos

No, no quantity or currency fields are being used. I just imported it to Test and, strangely enough, it works in test without any errors. However, I need to get it to work in Dev to avoid hundreds of transports. I think I will export the smartform out of test and import it into dev to see if that fixes the problem.

EDIT: I just found an instance where it errors out in Test too.

Regards,

Davis

Message was edited by:

Davis