Table in SMARTFORM interface

Hi experts,
I'm facing this problem and really hope you'll be able to help me !
I'm trying to add an internal  table to my smartform interface in order to import datas from the calling program.
The structure of this table is defined in the calling program and not in the DDIC so SAP don't accept the type.
I tried to declare the type of my table under "Global Definition=>Types"  :
types  : begin of ty_cmde ,
            bstnk like vbak-vbeln,
            poids like lips-brgew,
            unite like lips-gewei,
            end of ty_cmde.
...but it is still incorrect. Do i have to declare my Type in the DDIC ?
Regards,
--Yohann
Edited by: Yohann Camp on Aug 10, 2010 11:01 AM

Hi..
Please create a structure similar to the one used in the calling program. Now using this structure create a table type.
Use this table type to declare the internal table in the FORM INTERFACE-> TABLES. You can use the structure to declare the work area for this internal table in Global Definitions.
Additionally, it would be better to use the same table type and structure to declare your internal table and work area in your calling program as well in order to avoid any kind of inconsistency.
Regards,
Karthik
Edited by: Karthik S on Aug 10, 2010 2:48 PM

Similar Messages

  • Can't we pass custom defined internal table in SMARTFORM Interface

    Hi,
         I have a scenario, that my internal table from the program is is not dictionary type, but combination of some fields. Can't I directly pass this table to my smartform.
    Thank U 4 Ur time.
    Cheers,
    Sam

    hi,
    We can not pass the Internal tables to a Smartforms, you need to create the Structure and give the Structure in the Smartform, and declare the the internal table of that structure type and pass it
    Regards
    Sudheer

  • Problem with smartform interface

    Hi guys,
    I want to put a strucuture in my import and tables in smartform interface using my own type,,, but it gives me an error that the type is not pre-defined...
    whta should I do?
    I have this type:
    TYPES: BEGIN OF t_likp,
             vbeln LIKE likp-vbeln,           
             lfdat LIKE likp-lfdat,        
           END OF t_likp.
    I want to declare in import in interface...
    wa_likp type t_likp... is it possible?
    thanks a lot!

    Hi Mark,
    You can only use for declaring variable in the import parameter are those data type are existing in database dictionary eventhough you declare it by your own type .
    BTW, are you a filipino?hehehe...
    james

  • Tables in form interface in Smartforms

    Hi
        Generally for creating Tables in Form Interface in smartform , We have to create a Zstructure Or ZTable Type in SE11 and then we refer this structure in form interface. My requirement is how can we create Tables In Form Interface in smartforms
    without creating Zstructure In se11. Can you please tell me is it possible , If possible then how can i do it.
    Thanks & Regards
    Girdhari

    Hi friend,
    If you have a driver program and you need to pass data from the driver program to the smartform then during Form interface declaration you need to specify a global parameter. Which you will be creating using SE11.
    With out creating a global structure or global table type we cannot declare it. If you have all the logic with in the smartform then you can declare the table type or structure with in the form then declare it.
    But once if data comes from outside then we should go for global.
    So i hope you will be clear and got the answer for your question.
    Thanks,
    Sri Hari
    Edited by: srihari.kumar on Feb 8, 2012 12:06 PM

  • Declaring an internal table in smartform

    hi,
       can anyone tell how to declare   internal table in smartform.
       the internal table contains fields from 2 or more data dictionary tables(eg.kna1 
       and adrc). after this from the print program(internal table containing data in print
       program) internal table should be passed to the smartform.
    thanks.

    hi laxya,
    if u want to pass the data from internal table in print program to Smartform.. there is only way.. that is using form interface..
    1. goto se11, create a structure same as the itab in the print program.ex. <b>z_itab</b>
    2. create line type... se11>select radio button-DATA type><b>z_it_itab</b> >press create>then select>TABLE Type> then entrer some text--> in the line type Field in giveth Str name u have created in STEP 1. activate it.
    3. got SMARTFORMS-> form inteface>tables tabe--> give some name ex <b>IT_tab type z_it_itab</b>.
    then acivate it.. then in the driver progam pass this table data.
    Exapmpel
    CALL FUNCTION fp_v_fm_name
        EXPORTING
          archive_index      = toa_dara
          archive_parameters = arc_params
          control_parameters = fp_st_control_parameters
          user_settings      = space
          output_options     = fp_st_output_options
          wa_vbdkr           = fp_st_vbdkr
        IMPORTING
          job_output_info    = l_it_ssfcrescl
          job_output_options = l_it_ssfcresop
        TABLES
    <b>      IT_tab  = z_it_itab (or table in driver program)</b>
      EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Another way is cteate a type in Globaldifination-->types tab..
    ex:
    types: begin of ty_itab,
       matnr type matnr,
       meins type meins
       vrkme  type vrkme,
    end of ty_itab,
    ty_it_itab type standard table of ty_itab.
    then GLOBAL DIFINATION>GLOBAL DATA TAB>IT)ITAB TYPE TY_IT_ITAB.
    BUT In this u can't pass the data from the print Program.. if u want to populate data in to this table... u have to write the Select query in the GLOBAL DIFINATIONS-->INITILIZATIONS TAB.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

  • PASSING INTERNAL TABLE IN SMARTFORM

    HI' I M NEW TO SMARTFORMS, MY PROBLEM IS =THAT
    I'VE CREATED A NEW TYPE(SAY TY_BKPF) IN THE DRIVER PROGRAM.
    THEN I'VE DECLARED AN INTERNAL TABLE OF THIS TYPE.
    TO PASS THIS INTERNAL TABLE INTO MY SMARTFORM I'VE PASSED THE INTERNAL TABLE'S NAME INTO THE FUNCTION MODULE UNDER THE TABLES PARAMETER.
    BUT I'M NOT ABLE TO UNDERSTAND AS TO WHAT TYPE SHOULD I GIVE IT IN THE FORM INTERFACE IN THE TABLES TAB.
    PLZ HELP.

    Define table in smartforms
    Global settings :
    Form interface
    Variable name    Type assignment   Reference type
    ITAB1               TYPE                  Table Structure
    Global definitions
    Variable name    Type assignment   Reference type
    ITAB2               TYPE                  Table Structure
    Also have a look at below sample code. It will give you idea abt the same.
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
            INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
       MOVE-CORRESPONDING MKPF TO INT_MKPF.
       APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        FM_NAME                  = FM_NAME
      EXCEPTIONS
        NO_FORM                  = 1
        NO_FUNCTION_MODULE       = 2
        OTHERS                   = 3.
    if sy-subrc <> 0.
       WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        GS_MKPF                    = INT_MKPF
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
       MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Have a look at below link for more help on smart forms.
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Use internal table in Smartform

    Hi All,
    I want to use the internal table in program in smartform.
    For that i have declare that table in TABLES attribute of the function module and trying to declare that table in form interface in smartform.I have created one stucture in data dictionary of same type for the associated type of that table.But it showing me error that only table types can be used as reference type for a table parameter.
    Can anybody give me the solution or atleast tell me what is problem?
    Thanks.

    Hi,
    First you define an internal table in your Driver program and populate the same with the data and put it in the Export parameters.
    Then, in your Smartform, in the Form interface parameter's declarations, specify the name which you gave in the Driver program ( the Left hand side name in the interface list of the Function Module ) and specify it as type of the internal table you have used in the Driver program.
    Please define in the same way as mentioned and let me know how it worked for you or still any issues on this.
    Thanks,
    Vishnu.

  • How to Define Internal Table in Smartform

    Hello,
    I have some problem on define Internal Table in Smartform
    I define a Temp_IT_Gen Type LBBIL_IT_GEN in Global Definiations
    but i find that it is not available for me to append data into it,
    the error message is Temp_IT_Gen is not a Internal Table - the Occurs n Specification is missing
    so how can i solve it?
    i want to use the internal table in the hold program.
    Thanks a lot in advance.

    Hi,
    First U define the Table type in 'TYPES' tab of Global Definitions and then assing that table type to Internal table in 'Global Data' tab.
    Eg:
    define the Table Type like below in TYPES tab.
    TYPES:BEGIN OF ty_TEMP.
            INCLUDE STRUCTURE XXXXXXX.
    TYPES:END OF ty_TEMP.
    TYPES: g_t_temp TYPE STANDARD TABLE OF ty_TEMP .
    Now, define the Internal table in Global Data tab like below:
    Variable Name    Type assignment    Associated Type
    G_T_ITEM_1       TYPE                    G_T_TEMP
    NOTE: whatever U define in Global Definitions can be used only in SMARTFORM, if u want to use it in Program U must define in Form Interface.
    Hope it helps!!
    Rgds,
    Pavan

  • How to Create a Table in SmartForms...?

    Hi,
      I want to create a table in smartforms. can u tell me the procedure....?

    You can create a table type in the abap dictionary and then use it as type for the table in the global interface of the smartform.

  • How to Import customized internal table to smartform from Print Program

    Hi Gurus,
    I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
    With regards,
    S.Saravanan

    There is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
    Regards,
    Raymond

  • Send smartform to multiple users using std. smartform interface

    Hello All,
    Below is the requirement : -
    While doing an external send against the custom output type in transaction VF02, smartform is automatically send to the appropriate email address as pdf attachment. This email address can be sold to party/bill to party etc and it is controlled using configuration.
    Now the prb is, using such configuration we can send email to single email id only. I need to send the email to multiple users using the standard smartform interface ONLY i.e by using the parameter MAIL_RECEPIENT in the std. smartform interface.
    I have alredy evaluated the below workarounds for the above solution, but we need to implement the above functionality using standard smartform interface only.
    1) Convert the smartform OTF data to PDF format data and then send the PDF attachment via email to multiple recipients using the standard FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    2) Loop at the recipients table and within the loop pass different recipient to the interface parameter MAIL_RECIPIENT of smartform. Hence in this case smartform will be called within the loop which can cause performance issues incase of multiple recipients. Also the mail will be sent individually to every recipient.
    3) I have already checked by passing the distribution list the parameter MAIL_RECEIPIENT but it does not work.
    Looking forward for your responses.
    Regards,
    R.Doshi

    Hi
    Check if SAP Note 1260015 - Sending mail to multiple recipients is useful for your requirements.
    Regards
    Eduardo

  • E-Recruitment BSP pages/SmartForms interface

    I've activated a Customer Include field for hrp5121. (Job Postings).  The BSP page methods have been modified to display this new field.
    I've copied SmartForm HRRCF_DATA_SUMMARY_POSTING and in my Z version, my new field is available in table POST_INFO_WT and has been added to the body of the form.  I've also updated table T77RCF_UI_PARAM to use my Z version form.
    From the BSP page "Job Posting for Requisition" (HRRCF_POST_MNT), I can click the posting link to view the SmartForm, but my new field has no value.
    What method(s) needs to be modified to get my field value from hrp5121 into the SmartForm interface?

    Hi,
    when reading your question i asked the following question: what do you expect to achieve by integrating fuctionality which is meant to be called by an external candidate (someone sitting 1000 miles away from your company at home) into your corporate portal? The external candidate has no access to the portal, so why add them? He has to call the applications directly via links sended to him or through links on you career web side.
    Technically you might face the problem that all applications for external candidates use the web user for authorization that means they use the ALIAS not the user for logging in, that's why you should always set your user name as ALIAS in SU01 for testing purposes on your development system, This makes life much easier during rollout.
    Kind Regards
    Roman

  • Issue in display format of a internal table in SMARTFORM

    I m printing an internal table in smartform.when a particular field exceeds the coloumn's length.the rest of the texts come down to the next line.It can be shown in the below example.i m printing "+ text to be printed" in that particular coloumn.
    Because of the size of the coloumn in table ,"ed." comes down as shown.
    +  text to be print
    ed.
    I dont want ed to come directly down '+'.I want it to start from where 't' of 'text'
    starts in the above line.
    Notice that the requirement is to print "ed"  after '4' spaces.
    Please suggest what i need to do to get the desired result...
    Regards
    Rudra

    Unfortunately there is no such way.

  • Issue in display format of internal table in smartform

    I m printing an internal table in smartform.when a particular field exceeds the coloumn's length.the rest of the texts come down to the next line.It can be shown in the below example.i m printing "+ text to be printed" in that particular coloumn.
    Because of the size of the coloumn in table ,"ed." comes down as shown.
    <b>+ text to be print
    ed. </b>
    its coming by default.
    I want it like  <b>+ text to be print
    ed</b>
    I dont want ed to come directly down '+'.I want it to start from where 't' of 'text'
    starts in the above line.
    Notice that the requirement is to print "ed" after '2' spaces.And we can not use the string length concept bcoz not of characters after which the line comes down is not fixed.May be some change of setting in smartform will do the trick.
    Please suggest what i need to do to get the desired result...
    Regards
    Rudra

    Unfortunately there is no such way.

  • While selecting Frame for Table in Smartform

    hi
      While i am selecting Frame for Table in Smartform , it displaying very Bold frame.
    wat is the reason,
    guide me

    hi,
    do this steps,
    ->first in the shading of the table select white color
    ->provide the saturation as 100
    ->select the pattern and select any one of the pattern
    ->and then check the output
    you will get the required do this in the same fashion i explained
    Thanks,
    Nethaji.

Maybe you are looking for

  • Please not another ABAP vs. Java-Thread, BUT ...

    Hi, folks! I already had several inspiring discussions about the need for 2 different languages within one Enterprise System, but right now I' d like to take a more personal approach to this matter. I' m working within SAP business for about 3 years

  • IDOC status is changed to '03' in the weekends.

    Hi, The IDOC'S which remains in 30 status for the whole week is being picked by some autosys job and changed to '03' status.I want to  know the program which changes this IDOC.I have checked the change time of the idoc and checked with the jobs which

  • Problem in Mail with iMac i5 OSX Lion

    When i create a new email in Mail and select underline everything works well but when i try to deselect underline it wont do that, could somebody advice me on this problem, i have a iMac i5 with OSX Lion

  • Opposite of getNumericValue

    Im building a simple encryption program using unicode for a class and am using turning a character into unicode then using a specific pattern changing the unicode to then replace the old characters to new characters. i know how to convert characters

  • Is there any software for iTunes that allows the user to adjust tint, color and hue?

    I would like to view my videos with the ability to fine tune color (hue, tint and color) for playback,  Any one know a easy quick fix?