cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms - too good to be true????

aidan_mulcahy
Active Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kroc,

I've not heard of a site to download smartforms.

However it is possible to migrate SAPScript to Smartform quite easily

Just see the transaction SMARTFORMS ->menu item tools -> migration

I suggest you give that a try.

Greetings,

Joris Bots

aidan_mulcahy
Active Participant
0 Kudos

Joris,

thanks for the reply.

I know about the migration utility but what is the benefit of going to Smartforms when there is a SAPScript there already? From what I have read, the related print program would also have to be copied and modified, which doesn't sound trivial?

The area I am working on is FI Remittance Advice. Everything is pretty standard except that an email is to be sent with the information. Is it possible that it might be easier to send the mail via Smartforms than SAPScript?

And, just had a thought now, the forms are assigned to the Company Code in trans FBZP and that looks like SAPScript forms are the only option. Is there a way around that?

Thanks.

Former Member
0 Kudos

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

Former Member
0 Kudos

hi kroc

follow these links.. there are somany discussion on the same issue

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=script%20to%20mail&cat=sdn_all

Former Member
0 Kudos

Kroc,

also, if it is possible to send email in Smartform it should aslo be possible to send it with Sap Script.

here a good example of sending sapscript with email

or try this document:

[url=https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e]https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e[/url]

Answers (1)

Answers (1)

aidan_mulcahy
Active Participant
0 Kudos

thanks all.

I can take it from there.

Kroc.