Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Smartforms - too good to be true????

Hi,

this sounded too good to be true and can't find anything on the web in relation to it so Iam asking the experts.....

I am working on a 4.7 project and using SAPScript and I have been asked to see if we can do it in smartforms instead. The suggestion to me was:

"there is a site with standard forms, where you can download a Smartform".

I can't imagine this being the case. Could someone confirm it one way or the other?

We are working on copies of F110_IN_AVIS and F110_PRENUM_CHCK.

Thanks.

Former Member replied

Kroc,

I'm sorry, but im not able to help you with teh FI specific question.

But changing the print program is not that hard.

If you are going down that path:

You typiocally need to function calls;

- 'SSF_FUNCTION_MODULE_NAME' to determine the smartform functionmodule using the smartform name

- then call that Fm using teh import/export paramateres defined in teh Smartform

You copy the default print program first and alter it where the sapscript is actually called. here's an example of the Fm's used. This example uses a perform for every smartforms. these pforms can be set in customizing,

FORM call_doc_2_2_voorinsp .
  DATA: l_fm_name            TYPE rs38l_fnam.
  DATA: l_formname           TYPE tdsfname.


  " get data !! (part of standard printprog
  PERFORM data_import.                 
  PERFORM read_view_text_tables.       
  PERFORM get_partner_address.

  " determine smartform function module for delivery note
  l_formname = 'Z_2_2_VOORINSPECTIE'.   "name of Smartforms
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING  formname           = l_formname
*                 variant            = ' '
*                 direct_call        = ' '
       IMPORTING  fm_name            = l_fm_name
       EXCEPTIONS no_form            = 1
                  no_function_module = 2
                  OTHERS             = 3.
  IF sy-subrc <> 0.
*   error handling
  ENDIF.


  "call the smartform
  "in the smartforms you have set the import / export parameters
  CALL FUNCTION l_fm_name
    EXPORTING
      i_viqmel  = iviqmel
      i_riwo1   = riwo1
      i_riwo00  = riwo00
      i_rqm00   = rqm00
    TABLES
      i_iviqmfe = iviqmfe
      i_iviqmma = iviqmma
      i_iviqmsm = iviqmsm
      i_iviqmur = iviqmur.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

ENDFORM.                    " call_doc_2_2

Regards,

Joris

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question