Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

smartform driver program error?

$
0
0

TABLES:vbrp.

*

TYPES:BEGIN OF ty_vbrp,

     VBELN TYPE VBELN_VF,

     POSNR TYPE POSNR_VF,

     SGTXT TYPE SGTXT,

     FKIMG TYPE FKIMG,

     END OF TY_VBRP.

 

 

data: wa_vbrp type ty_vbrp,

      it_vbrp type standard table of ty_vbrp,

       fm_name type rs38l_fnam.

 

 

selection-screen begin of block b1 with frame title text-001.

SELECT-OPTIONS:s_vbeln for vbrp-vbeln.

selection-screen end of block b1.

 

 

START-OF-SELECTION.

 

SELECT VBELN POSNR SGTXT FKIMG FROM vbrp into TABLE it_vbrp

   WHERE vbeln IN s_vbeln.

 

 

  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

     EXPORTING

       formname                 = 'ZSD_FORM'

*   VARIANT                  = ' '

*   DIRECT_CALL              = fname

    IMPORTING

      fm_name                  = fm_name

    EXCEPTIONS

      no_form                  = 1

      no_function_module       = 2

      OTHERS                   = 3

             .

   IF sy-subrc <> 0.

     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

   ENDIF.

 

 

 

CALL FUNCTION fm_name

   EXPORTING

*   ARCHIVE_INDEX              =

*   ARCHIVE_INDEX_TAB          =

*   ARCHIVE_PARAMETERS         =

*   CONTROL_PARAMETERS         =

*   MAIL_APPL_OBJ              =

*   MAIL_RECIPIENT             =

*   MAIL_SENDER                =

*   OUTPUT_OPTIONS             =

    USER_SETTINGS              = 'X'

*    s_vbeln                    =

* IMPORTING

*   DOCUMENT_OUTPUT_INFO       =

*   JOB_OUTPUT_INFO            =

*   JOB_OUTPUT_OPTIONS         =

* EXCEPTIONS

*   FORMATTING_ERROR           = 1

*   INTERNAL_ERROR             = 2

*   SEND_ERROR                 = 3

*   USER_CANCELED              = 4

*   OTHERS                     = 5

           .

IF sy-subrc <> 0.

* Implement suitable error handling here

ENDIF.

 

 

my error:

 

Short text

    Incorrect parameter with CALL FUNCTION.


Viewing all articles
Browse latest Browse all 8332

Trending Articles