Passing structure to smart forms

Hi experts,
Can we pass more than one structure  to smart form .  If it is possible pls let me know the procedure...
Thanks.

you can pass any number of structure in smartform defined as importing parameter in function module.
But you have to define that struture of similar type  in se11.
then write in form interface like:;
itab1 like ziitab1.
where zitab1 structure which is similar type to itab1 defined using se11.

Similar Messages

  • LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms

    Hi...
    Can u please help me out in my query regading how the data passes to
    LBBIL_INVOICE. Billing Data: Transfer Structure to Smart Forms.
    I have an smartform which runs through VF01/VF02/ VF03 while pressing the print preview button.
    But if i try to run it directly from driver program, no data wil be displayed. Now i have the requirement to detach from VF03.. and make it to run directly from my driver program.
    what shall i have to do to achieve this. Should i have to take all the internal tables saparately or else can i use LBBIL_invoice structure itself.
    If i can use that structure itself, how to make the data flow into it.  Pls help me.
    In my codeing these includes were there. is there anything related , is the data passes because of these includes
    INCLUDE rlb_invoice_data_declare.
    definition of forms
    INCLUDE rlb_invoice_form01.
    INCLUDE rlb_print_forms.
    Pls clarify my dobut...
    Thanks in advance,
    Hema

    1. These are normal structure
    2. you can use anywhere but they designed for forms currently.
    3. Yes ,it works like it will look at NAST Table -> nast table will connect the TNAPR Table -> tnapr will have smart form print program.
        so smart form program calls smartform and it will show output
    4. you can create your own structure and use them into anywhere like report program or forms..
    5. you can see example simple form name SF_EXAMPLE_01 ,program name is SF_EXAMPLE_01 ,you can design your own form and print program.
    Thanks
    Seshu

  • Passing data to smart forms...

    Hi,
    I am learning smartforms and so far have done the following.
    1. Using transaction smartforms, created a Ztestsmartform with one page named "coverpage". the page contains two window elements named, vendorname and faxnum. saved and activated the form.
    2. wrote a zprogram to retrieve data from tables and pass on to the form. I have created an internal table to hold the data. i am  not clear on how to pass that data to my form ?? should i loop the itab and call the function "SSF_FUNCTION_MODULE_NAME" ?? how to pass my itab data then ??
    please explain !!
    whats the purpose of calling function FM_NAME ??
    i took the function module code from a sample available on the net.
    thanks
    REPORT  ZPROGFORSMARTFORMS.
    TABLES: LFA1, LFB1.
    DATA: BEGIN OF VENDOR_DATA OCCURS 0,
          VENDORNAME LIKE LFB1-LIFNR,
          FAXNUM LIKE LFA1-TELFX,
          END OF VENDOR_DATA.
    DATA: VENDOR_LIST LIKE VENDOR_DATA OCCURS 0 WITH HEADER LINE.
    SELECT ALIFNR BTELFX INTO TABLE VENDOR_LIST FROM LFB1 AS A INNER JOIN LFA1 AS B ON ALIFNR = BLIFNR.
    LOOP AT VENDOR_LIST.
    ENDLOOP.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZTESTSMARTFORM'
      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.

    Hi Sha,
    1) As client dependency is one of the drawback in the scripts, we use smart forms.
    2) When you run a Smartform it gives you a function module, using tha you can run the smart form from your driver program by calling it in the same.
    3) You give the smartform name and the function module name in the SSF_FUNCTION_MODULE_NAME.
    4) While calling the function module in the driver program, first run the smart form and call it using PATTERN, then you change the Call function name as the below example.
    5) You can pass the tables to the table parameters which will come from the function module.
    Please see the below Driver program of a smartform.
    report  zsree_temp_smart                        .
    data: it_sree type standard table of zsree_marc.
    data: x_sree1 type zsree_temp.
    parameters: p_matnr type mara-matnr.
    start-of-selection.
      perform select_data.
    end-of-selection.
      perform smart_form.
    *&      Form  SELECT_DATA
          text
    form select_data .
      select single
             matnr
             ersda
             ernam
             mtart
       from  mara
       into  x_sree1 where matnr = p_matnr.
      if x_sree1 is not initial.
        select matnr
               werks
               pstat
               lvorm
         from  marc
         into  table it_sree
         where matnr = x_sree1-matnr.
      endif.
    endform.                    " SELECT_DATA
    *&      Form  SMART_FORM
          text
    form smart_form .
      data: l_p_form type tdsfname.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = 'ZSREE_TEMP'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        importing
          fm_name                  = l_p_form
       exceptions
         no_form                  = 1
         no_function_module       = 2
         others                   = 3.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
      call function l_p_form
        exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          x_sree                     = x_sree1
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        tables
          it_zsree                   = it_sree
    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.
    endform.                    " SMART_FORM
    Please do not forget to give rewards if it can help you better.
    Thanks,
    Sreekanth

  • To pass data to smart forms

    i want to print a form which is developed in webdynpro fo rjava,here adobe is not working.So what iam trying is to use smart forms ,But  is it  possible to display that smartforms in portal...?
    or is there any other way to print the details which are in the webdynpro application.
    This is very urgent for me pls reply to me.
    Surely i'll give points,,,,,
    Warm regards
    shanto aloor

    Hi ,
    U can display a Smart form in portal.
    In RFC Export add a field of type Binary and populate smart form into that binary field.
    In Webdynpro view after Executing the RFC
    byte[] pdfContent =
    wdContext.current<output_node>.get<BinaryExport>();
    IWDCachedWebResource pdfResource = WDWebResource.getWebResource(pdfContent,WDWebResourceType.PDF);
              try
             /* PdfUrl is of type String */          wdContext.currentContextElement.setPdfUrl(pdfResource.getURL());
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);     
    Thanks,
    Sunitha

  • How to create custom structure in smart forms & use them in interface

    hi experts....
    can anyone tell me how to use  custom structure in
    form interface (parameters) without creating any structure
    in the dictionary.

    Hi Shrama,
    If you want to use the structure in interface. You have to create structure in dictionary.
    if you create in form or in report ..they won't recongnize the local structures.
    Thanks,
    Sunil

  • Passing control in Smart forms

    Hi! Gurus,
    As i was working with EKKO and EKPO and displaying amount for each order.
    I wanted to display total amont due for all the open POs on page 1.
    hw can i pass control from page 3 to page 1.
    Regards,
    Digvijay

    Hi Digvijay,
    There will be actual no need to pass the control from page 3 to 1.
    As u need to display the total due amount,write the logic for the same in the driver program or in the smartform and take that amount into a variable ana pass that variable to the smartform.
    Once this is done you can put that variable on Page 1 so that the amount will be printed.
    Hope it helps you.If any queries you can get back.
    Thanks,
    Rashmi.

  • Smart form Passing DMBTR Value

    Hi,
    I have aproblem that while passing DMBTR value using structure to Smart Forms it is creating a DUMP as not fragmented.
    1. first it is giving error as reference field is not matching with the forms.
        when we change the structure.
    2. It is creating a dump while passing the value to forms and giving the message as not fragmented.
    Waiting for your help.
    Thanks and Regards.

    Are the data elements in the Print program / driver program for the DMBTR same as the data element of the parameter of the smart form.
    If NOT, make sure both of them are referring to the same data element.
    That should fix the issue.
    A work around could be to fetch that particular data inside the smart form using the program lines.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Declaration for smart form importing structure

    Hi to all experts,
    I have to create a structure for smart form to declare it in the smart form interface (importing ) .The structure should be of the type below. I tried but getting type mismatch dump ....please help
    DATA: BEGIN OF ZISEG OCCURS 20.
            INCLUDE STRUCTURE ISEG.
    DATA: BTEXT LIKE T064B-BTEXT.          
    DATA: GIDAT LIKE IKPF-GIDAT.          
    DATA: MAKTX LIKE MAKT-MAKTX.        
    DATA: STEXT LIKE T064T-STEXT.        
    DATA: NAME1 LIKE T001W-NAME1.
    DATA: END OF ZISEG.

    Hi Abdul,
    sorry my answer was incomplete.You need to declare two structures,one for u r data retrival(including other 4 fields) and other for the smartform(same as DDIC structure).After retrieving you need to transfer the data from one table to other.
    Hope u got what Iam trying to say,if not PLZ rewert back.
    Thanks & Regards,
    Rock.

  • Problem in page break of smart forms

    Hi Gurus,
    I am using smart forms for printing on cheque.  What is the problem i am facing is i have three entries in my internal table which i am passing to the smart forms from my driver program. But In the output i am getting four print outs last one having the details of the previous one.
    My logic flows like this,
    I have used one loop for main window and have added the command for page break, and then I have read the values for the other windows. I have tried in many ways like counting the number of values in internal table and added that in command but its not working.
    Anybody please help me to fix the problem.
    Thanks in advance

    Hello friend,
    If you have a problem of getting one page printed in addition to the other pages then handle the situation as follows,
    Try to create a folder and handle this problem or create alternatives and put the page break commands inside it so that you can handle the situation by giving condition in the alternatives.
    If your problem still exists please revert back to me i will help you.
    Thanks,
    Sri Hari

  • How to Pass the Internal table of a report to Smart Form

    Hi Experts,
    I have one report in which from selection screen i am getting the values from the users, and upon that values i am filling data in to the internal table.
    Now i want to pass that internal table data to the smart form
    and print that data in the smart form.
    So could you pls give me some pseudo code or any steps to achieve it.
    Thanks & Regards,
    DS

    Hi DS,
    First of all you need to create a SF and then need to call the FM generated by the FM in your report.
    In the SF in the form interface>tables tab>mention the name of the table and its type structure.
    Pls note that a new structure has to be created as the same type of your internal table which holds the data.
    And the import and export parameters as just the same as in a FM.
    Now after you create and activate your SF a FM will be generated (wen u execute your SF you will be taken to this SE37 screen with the name of FM so no probs..)
    You can call this FM in your report. Hope this helps.
    Ex:
    say itab has your final data, and you also want to export a variable var1 to the SF.
    after your normal report operations end, call the FM and pass on these data.
    say your FM name is FM1.
    call function FM1
    exporting
    var1 = var1
    tables
    itab1 = itab1.
    pls note that in the SF also i gave the same names, it is not mandatory to give the same names.
    and as you want to print a table in the smartforms, you need to create a table in the smart forms and then display the data which is quite simple.
    Hope this helps...
    if you need any further explanations, pls revert...
    Regards,
    Narendra.
    Reward points if helpful!!!

  • Passing SELECT-OPTIONS to smart forms

    hi ,
       how can we pass select options from a program to a smart form.
    Regards
    Arun

    Hi,
    Just try to append the valid values in select options  to internal table from report.
    Then pass that internal table(ofcourse, you need to create user-defined struture if needed in SE11) from report to smart forms.
    Rgds,
    J.Jayanthi

  • Passing printer name to smart form

    Hi,
    How to pass more than four characters printer name to smart form function  module name. Please  help me. I will give points.
    Thanks.

    Hi,
        Thanks for your reply but there I can pass maximum four character printer name but my case printer name contains 12 characters. If I pass 12 characters printer name it is considering first four characters and it is displaying printer name is not found. So please tell me how to pass more than four characters printer name.
    Thanks.

  • HELP-i want to print price details in SMART FORMS-urgent

    hi friends,
        I want to print price details of sales order in every page of my <b>smart forms</b> using FM <b>RV_PRICE_PRINT_ITEM</b> .
    Can anyone help me how to use that function and how to pass value to the parameter
    all your answers are appreciatable .
    thanks in advance
    shan
    Message was edited by: Shan

    hi santhosh ,
      this is how my program look ,but i dnt know how values can be pass to this internal table as the table TKOMV and
    TKOMVD in FM are of structure type .
      DATA: IT_KOMV LIKE TABLE OF KOMV,
      WA_KOMV LIKE LINE OF IT_KOMV.
    DATA: IT_KOMVD LIKE TABLE OF KOMVD,
    WA_KOMVD LIKE LINE OF IT_KOMVD.
    select *
    into table IT_KOMVD
    from komvd up to 10 rows.
    CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
      EXPORTING
        COMM_HEAD_I       = WA_KOMV
        COMM_ITEM_I       = WA_KOMVD
      LANGUAGE          = ' '
    IMPORTING
      COMM_HEAD_E       =
      COMM_ITEM_E       =
      TABLES
        TKOMV             = IT_KOMV
        TKOMVD            =  IT_KOMVD .
    LOOP AT IT_KOMV INTO WA_KOMV.
    WRITE: / 'TAX' , WA_KOMV-TXJLV.
    "WRITE: / WA_KOMV-matnr.
    ENDLOOP.
    LOOP AT IT_KOMVD INTO WA_KOMVD.
    WRITE: / 'DISCOUNT' , WA_KOMVD-NRMNG.
    WRITE: / 'KNTYP', WA_KOMVD-KNTYP.
    ENDLOOP.
    pls help in this issue.
      thanks ,
      shan(SAP beginner)

  • Creating a Purchase Order Smart Form (Form Interface)

    After reading up on all the posts about making a PO smart form I know this:
    - An SAP script "medruck" is the current output
    - A smartform exists for PO's named "/SMB40/MMPO_L" or "/SMB40/MMPO_A"
    - You need to install an update to get those smartforms if you are using ECC 6.0
    So my dilemma is that the SAP administrator is on vacation for a week, so I can't install the update to our system.  I'm trying to just create it from scratch using the medruck SAP script as a reference, but I am a little confused.
    Basically all I need to know is what form interface parameters do I pass in?  Meaning how do I find out what structures and tables are imported into the function module when print preview is called from t-code ME22N?  Can you please provide proper syntax for form interface solution or instructions on how to determine imported variables into the smartform?

    Hi
    If the smartform purchase order is not available in your system
    means you can download the form IDES and you can upload the form in ur ecc 6.0 system.we faced a similar kind of problem in our system and we did as i said.
    Once you uploaded the things you can easily view the form interface and rest of the things related to smartforms.
    Thanks and Regards
    Arun Joseph

  • Problem with deep structure in Adobe Forms

    Hi ,
    I am converting smartform into adobe forms. While converting the program code in the code initialization of the smart forms also get transformed to adobe forms the problem is my internal table is of type deep structure while passing it through the tables parameter i am getting error in adobe forms .But while passing the internal table through import parameter its not giving error.The same code works fine with smartforms. I dont know why its not taking the structure of internal table in adobe forms properly .It happens only for deep strucure formal normal tables it works fine in table parameters .If any one has come across this scenario please share your ideas.
    Best Regards,
    Sreeram

    If I were you, I would never do this through any program. The only secure, reliable way is to rewrite everything by your own hands. Even if we could argue, your way works as well (and could be faster at the beginning), at the firt moment you will be asked to perform any tiny change in this "imported" thing, you will cry your eyes out (and understand why it is the only useful way to rewrite everything manually).
    regards Otto

Maybe you are looking for

  • IPOD originally formatted for Windows...Now I have a IMAC

    My IPOD color 30gb was originally formatted and worked on a PC. I now own a IMAC and have transfered the music over. The music plays fine on the IMAC in ITunes, it down loads to the IPOD, but no sound comes from the IPOD. Do I need to reformat the IP

  • Airport 6.3.1 - Unexpected error connecting to Airport Express

    I have an Airport Extreme (A1408) base station. I am trying to add an Airport Express (A1392) to my network using Airport Utility 6.3.1 (631.4) with Mac OS/X 10.8.4 (12E 55) running on an iMac. The Airport Utility can find the Express, but returns "A

  • Detailo of credit mem0

    Hi,   I have a credit memo..and it is now cleared. But 4 days back it was not cleard. When I went in icon of hat, it says posting on 3/6 and the id of the person I would like know whether the ID here shows of the person who made the payments on 3/6 a

  • Program for mass update of position description

    Hi Gurus, Just want to confirm if there is an existing standard program that will mass update the description of the positions in PO13? Thanks.

  • IDSM-2 load sharing across two chassis

    We are currently putting together a solution that I have come in halfway through just after some assistance in regards to setting up the IDS. We have 2 * 6509 chassis, 2 * IDSM-2 modules. Scenario 1 - Both IDSM-2 Modules in primary chassis, can load