Skip to Content

SMARTFORMS: how to change Form interface structure/table

Hi,

I am new to SMARTFORMS, I have a quick question regardign form interface section under global setting of SmartForms.

Can I change the contents of a structure from interface section?

I tried to change the content in Initialization tab under Global definition, but I am getting a run time error that I cannot change the content of the structure.

kindly see the attached snapit.

smartforms.jpg (209.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

13 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 06, 2013 at 08:39 AM

    Hi Sand Buddies,

    If you are trying to change an import parameter structure then SAP will throw a run time error. But if the import parameter has 'PASS VALUE' check box ticked, then you will be able to modify the structure.

    Reason behind this: PASS VALUE check will copy the import parameter values in to the structure name and hence you will be able to change it where as if you are directly trying to modify the structure ,then you are trying to modify at the reference  of structure which is not allowed.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 05, 2013 at 06:19 PM

    Hi,

    Try using the pass value option.

    Regards.

    Eitan.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2013 at 03:34 AM

    Hi,

    The form interface tab of global settings in smartform, deals with the interface with the driver program.

    Import and Tables tab in global settings receives values for variables, structures and tables from driver program. As this is the interface with driver program, you cannot change the structure of the same. Assign the interface parameter to some locally declared variables in the smartform and change the content of those locally declared variables.

    Regards,

    Shahanaz.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2013 at 07:57 AM

    Hi Sand Buddies,

    As @Heber Fabiano has pointerd out, please check to see if you are trying to change an IMPORTING PARAMETER. If you have mentioned the structure name in the interface, it means that it is an importing parameter to the smart form, and therefore cannot be changed.

    Only EXPORTING parameters value can be changed (as in changed and returned back to the print program).

    As @Eitan Rosenberg has suggested, Tick the "Pass By Value" option to perform the same.

    Regrards,

    George Abraham

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2013 at 05:40 PM

    Check if you're trying to change an Import parameter of the form interface.

    I can't test it right now, but I'm guess you can only change the values of Export and Table interface parameters.

    The Import parameters should be handled in the caller program.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 05, 2013 at 05:57 PM

    Hi,

    If you create local structure in a smart form, interface will not recognize that structure.


    For more, I think this thread will help you:

    http://scn.sap.com/thread/3408367

    Hope this helps.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 06, 2013 at 12:02 AM

    Hi,

    yes you are able to change the structures, if you are in possession of an access key. (standard structures/ copie of standard form)

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 06, 2013 at 03:33 AM

    Hello Sand Buddies.    

         I am able to change my internal table passed from driver program to smartform via interface.

         Why can't you change the contents in the driver program itself?

        

    Regards.


    A.jpg (33.1 kB)
    B.jpg (37.5 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • Sep 06, 2013 at 06:37 AM

    internal table which you pass from driven program you can declare as follow:

    **FORM INTERFACE IMPORT TAB : in import tabe you can assign you  internal table for example

                                                                 (itab1 like vbrk (itab1 from driven table)

    **FORM INTERFACE TABLE TAB : you can assing structure type for example

                                                             itab like ztable (ztable is structure)

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 06, 2013 at 06:50 AM

    Hi Sand,

    You Can change the Attributes of the smartform if its a custom one ( Z Copy of standard or your Created one ) otherwise u will need a access key for it.
    The catch is that u have to use global structure in interface
    Like IS_BIL_INVOICE    TYPE    LBBIL_INVOICE  , here LLBIL_INVOICE is a global structure.
    Also u have to make changes in the calling program also to handle the addition u have made in smartform interface.

    Hope this Helps

    Thanks and Regards
    Arpit Gupta

    Add comment
    10|10000 characters needed characters exceeded