[SMARTFORMS] Table interface is not seen in generated function module

(I am using SAP ECC 6.0)
I have created a test smartform which prints the contents of the sflight table.
In the Tables tab of the Form Interface page, I have defined a table i_data of type FLIGHTTAB. In the Global Data tab of the Global Definitions page, I have defined a row variable wa_data (Type Assignment: LIKE;  Associated Type: LINE OF i_data). The form activates but when I test it, I encounter a SYNTAX_ERROR.
Here is a fragment of the message:
The following syntax error occurred in program "/1BCDWB/SAPLSF00000007 " in
include "/1BCDWB/LSF00000007TOP " in
line 68:
"Field "I_DATA" is unknown. It is neither in one of the specified table"
"s nor defined by a "DATA" statement. ."
Here is a fragment of the error location (see the TABLES part of the CALL FUNCTION):
   82 IF DESTI IS INITIAL.
   83 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
   84 ENDIF.
   85 DEBUG = SPACE.
   86 GET RUN TIME FIELD TIME1.
@@@ CALL FUNCTION '/1BCDWB/SF00000007'
   88 EXPORTING
   89 ARCHIVE_INDEX = %_IARCHIVE_INDEX
   90 ARCHIVE_INDEX_TAB = %_IARCHIVE_INDEX_TAB
   91 ARCHIVE_PARAMETERS = %_IARCHIVE_PARAMETERS
   92 CONTROL_PARAMETERS = %_ICONTROL_PARAMETERS
   93 MAIL_APPL_OBJ = %_IMAIL_APPL_OBJ
   94 MAIL_RECIPIENT = %_IMAIL_RECIPIENT
   95 MAIL_SENDER = %_IMAIL_SENDER
   96 OUTPUT_OPTIONS = %_IOUTPUT_OPTIONS
   97 USER_SETTINGS = %_IUSER_SETTINGS
   98 IMPORTING
   99 DOCUMENT_OUTPUT_INFO = %_ODOCUMENT_OUTPUT_INFO
  100 JOB_OUTPUT_INFO = %_OJOB_OUTPUT_INFO
  101 JOB_OUTPUT_OPTIONS = %_OJOB_OUTPUT_OPTIONS
  102 TABLES
  103 I_DATA = %_OI_DATA
  104 EXCEPTIONS
  105 FORMATTING_ERROR = 001
  106 INTERNAL_ERROR = 002
Does this mean I cannot use the TABLES part of the interface?
In addition, can you tell me more about the visibility of data between the Form Interface and Global Definitions? Are the data in the Form Interface globally visible inside the smartform? In the Form Interface, can I use a type defined in the TYPES tab of the Global Definitions page?

HI,
Form Interface what ever the Import or Export or Table Parameters u pass It should be defined in ur Driver Program with same Type.
  Say I_DATA TYPE MARA      In Form Interface
  In Driver Program T_DATA TYPE TABLE OF  MARA.
The Global Definition Fields are used within the Smartform .
Form Interface is where U interface ur Smartform and ur Driver Program.
Suppose U have defined ur own Internal Table in Driver Program, then u need to define ur own Types in the Types tab in the Global Definitions.
Whatever the parameters that u pass to the Form Interface those are to be passed while calling the FM SSF_FUNCTION_MODULE_NAME.
Regards,
Vijaya Lakshmi.T

Similar Messages

  • Call Function not Generating Function Module for Smartform

    Hi Gurus,
    We have a work copy print program use to print deliveries (smartforms). This program works fine in Production but right now we are doing some testing and I found out that when we run this program in QUALITY environtment, it shortdumps with error saying "Function Module Not Found"
    Basically when it gets to the Function Module "SSF_FUNCTION_MODULE_NAME", it could not generate any function module for the form it Sy-Subrc = 2 Exception meaning NO_FUNCTION_MODULE.
    The problem is this only happens in our QUALITY environment.I compare the function module in the 2 systems, there was not diff as this is a Standard SAP module. I passed diff smartforms we have in QUALITY through the FM and it will not generating any FM for any of them. So this is not an error from the smartforms, bcos all the same smartforms generates FM in Prod.
    So what I did next is to Debug the FM "SSF_FUNCTION_MODULE_NAME" in the 2 systems to see where the diff is coming from. I noticed 2 views that the FM is using, they are STXFADM and D010SINF . So on the Production system, STXFADM-LASTDATE and D010SINF-UDAT fields are the same value, so it generates the FM. On the QUALITY systems, the values are different hence it skips the code to generate the FM.
    Thanks Guys.
    Points will greatly be awarded for this.

    Please guys, help me look into this, I really need a solution fast.
    Thanks

  • Smartforms table border lines not printing (URGENT)

    HI,
    I am trying to print samrtform table border lines on Epson dot matrix printer, in print preview it showing table borders as thick black lines, while printing it not printing lines. It is printing data correctly. Can any one suggest the soution, it is very urgent.
    Regards,
    MAHESH
    Edited by: MAHESH FADNAVIS on Apr 7, 2008 11:53 AM

    Can you try to print in a different printer, if the error persists then the problem is in the smartform, otherwise raise a note to SAP regarding this. I think that there is problem is with the page format in which u are taking the printout.
    OR
    Can you check if you have selected the framed border in the table border select pattern.
    Hope That Helps
    Anirban M.

  • Fetch data from table(ET_) which is exporting parameter of function module

    Hi,
    I m new to ABAP programming.
    I have to develop a smartform that has to be filled in with fields from few tables.
    These tables have the naming convention ET_<XXX> (i.e. exporting parameter of function module).
    I m not able to directly view its contents in se11 or use select query for it.
    I have a report program which i can execute to view these parameter names.
    Now, how do i fetch data from these parameters/tables and pass it from my driver program to smartform??
    Someone pls guide me...
    Thank You.

    Hi,
    I have done that using Field-Symbols.
    Thanks,
    Preetha

  • Workbook not refreshing dynamically through Function Module.

    We have a workbook with multiple queries having common variable set.
    we are trying to execute workbook from program, using the function module RSAH_LAUNCH_EXCEL. Also we are trying to assign variable values manually.
    through the program, the workbook is getting executed but if i change the variable values inside the program manually, workbook is not getting refreshed. can someone help us.
    the below is the code
    REPORT  ztest.
    DATA: v_workbookid TYPE rsrwbindex-workbookid,
          v_subrc TYPE sy-subrc,
          ls_var TYPE rrx_var,
          lt_var TYPE STANDARD TABLE OF rrx_var.
    v_workbookid = 'D0C1TB5M99SDPACEG070AFU88'.
    ls_var-vnam = 'ZTEST_EXPORT'.
    ls_var-vartyp = '1'.
    ls_var-vparsel = 'P'.
    ls_var-sign = 'I'.
    ls_var-opt  = 'EQ'.
    ls_var-low  = '10008891'.
    ls_var-iobjnm = '0BPARTNER'.
    APPEND ls_var TO lt_var.
    CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
        EXPORTING
         i_genuniid                       = lv_genuniid
          i_workbookid                     = v_workbookid
          i_objvers                        = 'A'
         i_hide_sapgui                    = 'X'
    IMPORTING
        e_subrc =           v_subrc
        TABLES
          i_t_var                          = lt_var.
    Thanks

    Did you create your function module without problems...assigned the Z* function group? activate the function module? i assume that you copy the function module code and the variables definition on TOP include of RSAX_BIW_GET_DATA_SIMPLE
    Regards
    Message was edited by:
            Oscar Díaz

  • Types Does not Exist Error in Function Module creation

    Hi Guys
    I am trying to replicate the functionality of the below program using a function module. However when I enter the following in the changing tab of the fn mod, I get  error TYPE IT_VBRP does not exist.
    Parameter name p_it_vbrp like it_vbrp
    <removed by moderator>
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve readable formatting.
    Edited by: Thomas Zloch on Sep 11, 2011 3:55 PM

    Hi
    The reference type of a parameter of the interace of function module has to be defined in dictionary, if you need to use a particular type, you need to create an your own custom type pool or try to looking for a type defined like yours,
    For example if you need a table based on vbrp, you can use the table type TAB_VBRP
    Max

  • Create Web Service Option not available for BAPI Functional Module

    Hello Experts
    I am trying to create a web service from a standard BAPI functional module referring following document
    http://help.sap.com/saphelp_nw04/Helpdata/EN/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm
    I am facing the same issue as mentioned in this thread (But for me answer is not OK)
    Web Service Creation
    When I click the FLIGHT Business Object and navigate to the Tools tab, I cannot see Create Web Service option.
    Also when I try to start the web service wizard from (SE37 -> BAPI_FLIGHT_GETLIST) Utilities Menu, after specifying all the details, after clicking Finish, I get an error "Access Refused"
    I verified the authorization to current user and gave him all the authorization required viz. (SAP_BC_WEBSERVICE_ADMIN, SAP_BC_WEBSERVICE_ADMIN_BIZ, SAP_BC_WEBSERVICE_CONSUMER etc) all 7 of them.
    My system is ECC 6.0 700 Release
    Thanks
    Paresh

    Hello,
    For creating Web service definition, you have to be a registered developer. In SAP Service Market place, you will get developer access key. This should be entered in DEVACCESS table by creating any development object.
    Thanks,
    Venu

  • Table type in import parameter in rfc function module

    Hi we don't have the table type in our system which exist in the other system which is the import parameter of the rfc function module.so how can we pass the parameter. shell we create the same table type in our system also.it is a table type for a deep structure.

    Hello,
    I donot have access to CRM box I cannot view the FM. You can verify with the CRM counterpart what exactly is the TYPE for param DATA.
    Else you can define a generic internal table (TYPE TABLE) & try calling the FM.
    BR,
    Suhas

  • Modify table data and import to same bapi function module

    Hai friends,
    I have a requirement on bapi , such that after executing the bapi function module data comes on tables and again  i need enter  weight in weight column field in the same table data and pass the same table in the same bapi function module .
    plz sujjest.
    with reagards,
    prasad.

    Can  u explain in details,
    means which bapi r u using? where  u will enter weight? etc.

  • FAT32 Partitions on GUID Partition Table External Drive Not Seen in Vista

    I have an interesting predicament. I have repartitioned my external hard drive to have 5 partitions: 2 HFS+ and 3 FAT32. The external drive has a GUID Partition Table. The drive was formatted and partitioned using Disk Utility.
    When I boot into Windows Vista using Boot Camp, Vista will ONLY mount the first Windows compatible partition. For example, if I have two partitions disk2s2 and disk2s3 (both FAT32), Vista only mounts disk2s2.
    The described partition setup worked well with Master Boot Record, minus the bug with Time Machine choking every so often.
    Any ideas on how I can get Vista to recognize these partitions?

    Hi Karl87,
    according to the german computer magazine c't there is a limitation/flaw in the Master Boot Record (MBR:
    Only the first four partitions are shown in the MBR and since one of these entrys is taken by the needed hidden EFI-partition and the next two entrys are taken by the OSX partition, there is only one of your three FAT partitions shown.
    This limitation to four partition entries is quite old.
    See here for further informations: http://en.wikipedia.org/wiki/Masterbootrecord
    To my knowledge there is no solution for this.
    Regards
    Stefan

  • TestStand 4.0 Operator Interface Changes Not Seen

    Hi guys,
    Ive worked with TestStand before, but now im trying to modify the operator interface (located C:\Program Files\National Instruments\TestStand 4.0\UserInterfaces\NI\Simple\LabVIEW).  Well, i try to modify the VI in the project, but i cant see my changes when i run the VI.  Ive tried building the executable and see that hte executable does get rebuilt, but none of my changes show up. 
    Also, how does the "entrypoint 1" button get renamed to something else when the VI actually runs?
    thanks
    jeff

    Looking at the help, it appears that the TestStand button only uses the system color unless it is in toolbar mode. If you want to use a LabVIEW button instead, you can implement the button action by calling <SequenceFileViewMgr>.GetCommand(...).Execute().
    This thread might help you determine when to dim or enable the button: http://forums.ni.com/ni/board/message?board.id=330&message.id=15720
    Here is the button help:
    BackColor Property
    Syntax
    Button.BackColor
    Data Type
    Color
    Purpose
    Specifies the background color for the Button control.
    Remarks
    When you set Style to ButtonStyle_ToolBar, this setting applies to the face and border of the button. When you set Style to ButtonStyle_Standard, the button face adheres to the system settings, and this setting affects only the border of the button.
    See Also
    ButtonStyles
    ForeColor
    Style

  • Error generating Function Module 'TEXT_CONVERT_XLS_TO_SAP'

    Hi All,
    When i am executing the FM 'TEXT_CONVERT_XLS_TO_SAP' i am getting the error Error generating the test frame.
    Can you please tell me how to execute the FM.
    Thanks & Regards,
    Vivek Agarwal

    Hello...
                   Iam sending a sample code.
                   Hope it will helps U how to deal with FM :  TEXT_CONVERT_XLS_TO_SAP.
    TYPE-POOLS : TRUXS.
    TYPES : BEGIN OF TY_TAB,
             F1(10) TYPE C,
             F2(10) TYPE C,
             F3(10) TYPE C,
            END OF TY_TAB.
    DATA : WA_TAB TYPE TY_TAB,
           LT_TAB LIKE STANDARD TABLE OF WA_TAB.
    DATA : I_TAB_RAW_DATA TYPE TRUXS_T_TEXT_DATA.
    DATA : FNAM TYPE IBIPPARMS-PATH.
    PARAMETER : P_FNAM TYPE RLGRAP-FILENAME.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAM.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
       FILE_NAME           = FNAM
    P_FNAM = FNAM.
    START-OF-SELECTION.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
      EXPORTING
        I_TAB_RAW_DATA             = I_TAB_RAW_DATA
        I_FILENAME                 = FNAM
      TABLES
        I_TAB_CONVERTED_DATA       = LT_TAB.
    LOOP AT LT_TAB INTO WA_TAB.
    WRITE :/ WA_TAB-F1, WA_TAB-F2.
    ENDLOOP.
    But my suggestion is why cant you use FM : ALSM_EXCEL_TO_INTERNAL_TABLE
    instead of TEXT_CONVERT_XLS_TO_SAP.
    The performance can be improved much by ALSM... FM.
    Thanks and Regards
    Sekhar.C

  • Function modules are not seen in TADIR table ?

    hi,
    I am not able to see function modules in TADIR table? could you please tell me in which table FM names are there ?
    FUGR fucntion group names are there
    FUNC entries are not there
    I also checked for report names(include names) of the fucntion modules in the main program of FG
    thanks
    b

    Hi,
    check the following tables :
    TSTC
    TSTC_LOG
    TSTC_SM
    TSTCA
    TSTCA_C
    TSTCCLAS
    TSTCIACS
    TSTCP
    TSTCT
    For reports -TSTC_SRT
    Regards.

  • Functional module name of smartform

    Hi,
    I have created a smartform and generated it.
    what will be the name of the Functional module?
    how to use it in abap
    Thanks,
    Mounika.

    hi,
    Use
    You trigger form printing by calling as few as two function modules. The first module uses the name of the form to determine the name of the generated function module. Then you call this module.
    The name of the generated function module is unique only within one system. Therefore, you must always call that function module first that uses the form name to determine the current name of the generated module.
    Prerequisites
    You defined the form interface in your form and activated the form.
    Procedure
    In the Form Builder call the function Environment ® Name of the function module and use STRG-Y and STRG-C to copy its name.
    In the application program define a variable of type RS38L_FNAM for the name of the generated function module:
    data fm_name type RS38L_FNAM .
    You can call the Smart Form in other parts of the application program as well. However, in that case you must make sure that the system can access the data to be passed from that location. We recommend to encapsulate the data retrieval in a function module as well.
    If desired, you can call the function module SSF_FIELD_LIST . It returns a list of the form parameters actually used in the form. You can use this information to limit data selection, if necessary.
    Call function module SSF_FUNCTION_MODULE_NAME . It returns the name of the generated function module:
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME             = '
    ENDIF.
    If the form is not active, SSF_FUNCTION_MODULE_NAME triggers the exception NO_FORM . There are two cases in which the function module generates an active version by itself:
    After a transport into another system
    After you changed the form interface of a previously activated form
    Call the generated function module. To do this, use the Insert Statement function for CALL FUNCTION in the ABAP Editor and use the name you copied in step 1 (to avoid having to copy all interface parameters manually). Then replace the function module name with the variable fm_name defined in step 2.
    CALL FUNCTION fm_name
      EXPORTING
      ARCHIVE_INDEX =
      ARCHIVE_PARAMETERS =
      CONTROL_PARAMETERS =
      MAIL_APPL_OBJ =
      MAIL_RECIPIENT =
      MAIL_SENDER =
      OUTPUT_OPTIONS =
      USER_SETTINGS = 'X'
        G_CARRID =
    IMPORTING
      DOCUMENT_OUTPUT_INFO =
      JOB_OUTPUT_INFO =
      JOB_OUTPUT_OPTIONS =
      TABLES
        GT_SBOOK =
    ENDIF.
    In this example, three variables and an internal table are passed. The parameters G_CARRID , G_CONNID , G_FLDATA , and GT_SBOOK have been defined before in the form interface.
    In the interface, pass all data you want to transfer to the form.
    Result
    The generated function module processes the form logic defined in the Smart Form. Its output is sent to spool processing.
    As long as you do not change the form interface, you can make any changes to the form. When you activate it again, the system generates the current version of the form as soon as you call the function module. Only if you change the form interface, you must adapt the interface in the application program.
    plzz reward if this information is usefull to u....
    plzz dont forget to reward

  • Function module in crystal reports using tables as input

    We had a function module created with a few import parameters. We successfully linked it in crystal and were able to retrieve the data.
    To accommodate the requirement of being able to pick multiple values for some of the parameters, the import parameters were changed to tables. When testing in ECC, we are able to retrieve the data using the function module.
    However, when we're using the same approach as before in crystal reports, we are not able to retrieve the data.
    Is it possible in crystal to pass the input parameters to tables ?
    Any ideas what I might be doing wrong?
    Thanks,
    Mat

    Hi John,
    The solution is very simple. 
    You create a function module in ECC (t-code SE37) that will receive you input parameters, process them, and export a table with your results.
    In the function module you define an input parameter using a CHAR120 data type (ex. PERNR).
    In the function module source code you add logic to split the input parameter
    [SPLIT i_PERNR AT ',' INTO TABLE itab_PERNRS.]
    You then create a crystal report against your function module.
    In your crystal report you create a parameter using type "string" (ex. I_PERNR).
    When you execute the crystal report, you input a comma delimited string in the parameter.
    [00001234,00005678,00009123]
    The function module will receive the string of values, split the string to an internal table, and process accordingly.
    I still have no solution for the 120 character restriction in the CR->ECC interface.  In the meantime, I get around this by creating multiple parameters (PERNR1, PERNR2, PERNR3, etc.). 
    Each parameter is set up to pass a string of 120 characters to ECC.
    The function module is set up to concatenate the parameters before splitting.
    [CONCATENATE PERNR1 PERNR2 PERNR3 into I_PERNR]
    Hope this helps.

Maybe you are looking for