This website is not affiliated with, sponsored by, or approved by SAP AG.


Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog


Postby Guest » Wed Oct 23, 2002 6:56 am

I have created a smart form
How to pass data to main window of this?
It is urgent.

Postby David Knittle » Wed Oct 23, 2002 7:47 am

Look int he SAP help system. This is the best place to answer such basic smartform questions.

In general though, once you create the smartform, you must generate it. this creates a function module, including import parameters to handle the data you are passing in. in your program, you declare similar data, call the funciton module, and pass it the data.

A couple of quick notes:
1. to determine the funciton module name created, select environment-> function module name.
2. this name is client and system dependant. when you transport the SF, the name may/will change. for this reason, we use an SAP procedure to get the internal name, given the external name, as follows:
Code: Select all
    if sf_label(1) <> '/'.    " need to resolve by name
      move sf_label to externalname.
      call function 'SSF_FUNCTION_MODULE_NAME'
                formname           = externalname
                fm_name            = internalname
                no_form            = 1
                no_function_module = 2
                others             = 3.
      if sy-subrc <> 0.
        ribsmessage 'i427' spc spc spc spc.
      move internalname to sf_label.
David Knittle
Dematic Corp
David Knittle
Posts: 145
Joined: Mon Oct 21, 2002 6:54 am
Location: Grand Rapids, MI

Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 3 guests

This website is not affiliated with, sponsored by, or approved by SAP AG.