Doubt in smartforms

hi all
i need to declare an internal table in the smartforms( but not in tables of form interfaces) ...... where i can declare an internal table and how ....
thanks in advance
sharath

HI,
you can declare using path
GLOBAL DEFINATIONS-->INITILIZATION tab
there you can declare you internal tables.
Regards,

Similar Messages

  • One doubt in smartforms

    Hi Group
    I have one doubt in smartforms. I have following requirement.
    I want to print 14 labels on one A4 size page using smartforms. Can somebody please tell me how to go about it.
    Please reply ASAP as it is a bit urgent requirement.
    Thanks & Regards
    Deepti

    hi Deepti,
    Check out the thread
    Re: LABEL Printing in SMART FORMS
    Re: Goods Receipt Label
    Regards,
    Richa

  • Doubt in smartform table control

    hi,
      in my smartform i want to display the table control, i got that normal table control, but i want to change the table control format, that means in write side in the tabs column no need of calculation i need event tab, how to make that?
    Thanks and regards,
    Gowri.

    Hi Gowri,
    You cannt display Table control in smartform output. As it is reporting tool. Not Dialog Module.
    In data tab of table control you can have events.
    Reward if useful.

  • Doubt in Smartforms Table

    Hi Experts,
    In Smartform I am having a table in which data is coming at runtime more than a page  and have to sum the column fields and to display at the end of the table.At the bottom of every page the table column lines look unfinished..How to put a line at the bottom of the table for every page.
    thanks,
    Yoganand.G

    Hi,
    Declare the table window in a TEMPLATE. Now declare the new line type which you would like to print at the end of the table on every page. So place this window below the table. Also put a condition like, when table window is displayed with some data, then print this line type, otherwise neglect it.
    Regards,
    Santhosh.

  • Doubt in Smartforms - how to display multiple  sale document no. in s

    Hi guru's,
            I need sample code like print program and Smartform download  for multiple 'Vbeln' sale order document no.
    Please help me
    Rewards for helpful sample code.
    Regards,
    Rajiv Christopher.

    You can use the next query:
    Select o.DocNum
    From DLN1 d
    Join ORDR o On o.DocEntry=d.BaseEntry and d.Linenum=0
    Where d.DocEntry=$(INV1.BaseEntry)
    (You should replace the ')' with '']' and the '(' with  '[')
    But this is usable only when the user derives the invoice from one delivery and the delivery from one order.

  • DOUBTS IN SMARTFORMS

    1.
    CAN ANY ONE TELL ME HOW TO USE COPIES WINDOW ACTUALY WHERE DO U PLACE THIS WINDOW IN SMARTFORMS.
    2.
    IAM NOT ABLE TO DISPLAY
    MULTIPLE DATA IN SECONDARY WINDOW
    WHY THIS IS NOT POSSIBLE.
    3.
    HOW TO SEND AND RECIEVE MAIL IN SMARTFORMS
    IS THERE ANY CODING FOR THIS PLZZ TELL ME.

    Hi Harsh,
    Check below link for copies window in Smartforms
    http://www.****************/Tutorials/Smartforms/Copies/Window.htm
    Best Regards,
    Brijesh

  • Doubts in smartforms plz provide smartform notes imp topics

    hi experts
    i am new to smartforms some interviews they are asking about smartforms could plz tell me imp topics in smart forms and send good notes to create smartforms from scrach, some imp faq's.
    my mailid is [email protected]

    hi Prasanna,
    SmartForms : some links
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sap-img.com/smartforms/smart-002.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm

  • Hi Doubt in Smartforms

    1.In smartform when i execute the driver program , printpreview window is coming asking u to give LP01,LOCL....etc , how to Deactivate that window .

    Hi,
    This sample code is an example of calling the smartform without dialog.Kindly reward points by clikcing the star on the left of reply,if it helps.
    *& Report  ZZZ_JAYTEST1                                                *
    REPORT  zzz_jaytest1 NO STANDARD PAGE HEADING MESSAGE-ID zhrt.
    Variable Declaration
    DATA : v_form_name TYPE rs38l_fnam,
           itab TYPE STANDARD TABLE OF pa0001,
           w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl.
    SELECT * FROM pa0001 INTO TABLE itab UP TO 5 ROWS.
    SORT itab BY pernr.
    DELETE ADJACENT DUPLICATES FROM itab COMPARING pernr.
    DATA: control TYPE ssfctrlop,
    control_parameters TYPE ssfctrlop,
    output_options type SSFCOMPOP.
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
       USER_SETTINGS            = ' '
       OUTPUT_OPTIONS           = output_options
       CONTROL_PARAMETERS       = control
    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.
    output_options-tddest = 'LOCL'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-BCS_LANGU = SY-LANGU.
    CALL FUNCTION '/1BCDWB/SF00000066'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
       USER_SETTINGS              = ' '
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            = w_return
      JOB_OUTPUT_OPTIONS         =
      TABLES
        itab                       = itab
    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.
    CALL FUNCTION 'SSF_CLOSE'.

  • Doubt in smartforms and script

    normally when we want to activate previous versions of report
    we get form version management and we can activate previous
    versions but how can be we activate previous versions of smartforms and script.please help.

    Hi Krishna,
    Please check the below threads,
    Version management  in  smartforms ?
    Re: Version Management in smartforms
    how can we revort the smartform previous version
    Best Regards.

  • Doubts in Smartform

    Hi all,
           I have a requirement in which i have to print some of the fields in the o/p of a report. let me explain in detail.
    Let there is a report zemployee. The selection screen consists of spme fields like name, addr, etc. Let a period be there in the sel. screen....like.....
    Period:     From_________    To__________
    After entering the values some output will come. Let us assume as name, addr, marks,percentage etc.
    Now my requirement is... I should write a report for a smartform whose sel.screen has the name and year. This report should call zemployee. If I give 2007 as year in smartform report, then it should run zemployee with period...from 01.01.2007 to 31.12.2007. And i need to print the smartform with only 3 flds of zemployee o/p, say name, marks and percentage.
    I have created the texts, templates...the entire smartform is created. Now I have to write the report for that smartform which has to call zemployee and fulfills the entire requirement. I haven't even filled Global definitions in smartform. As I am new to smartforms, please help me out by explaining in detail. Thanks a lot.
    Regards,
    Seenu

    hi
      as i  understand from what u written, is u want to give year in select options and want data for whole year .
       like if you give 2007 to  2008
    then data from 01.01.2007 to 31.12.2008 should come ?
    it is better to call DRIVER PRG. then REPORT when u call script or smartforms by a prg.
    fo ur problem try this :
    take LOW and HIGH value of select option and change them like
        v1 =  sel_opt-LOW + ' 01 ' + ' 01 ' .
    if sel_opt-HIGH is not initial.
        v2 =  sel_opt-HIGH + ' 12 ' + '  31 ' .
    else.
       v2 =  sel_opt-LOW + ' 12 ' + '  31 ' .
    endif.
    then make ur select query based on these twi variable ,
    this may help.
    reward if helpful.

  • Doubt in smartform

    hi,
    In smartform how do we get 3 invoice forms at a time one form for each page..i have chosen invoice number in driver program ..I am getting only first invoice form ...wat should i do in smartform...
    Thanks in advance.
    Kavitha

    Hi Kavitha,
      can you tell me ur problem more in detail??
      wether smae form should be printed with different text thrice,
      or threee different forms, for that u will have to use select-options and in that you can give invoice no range.
    Regards,
    Bharat.

  • Regarding smartform page wise total.

    hi
    guru's
    i  am having doubt on smartform
    i want to   caluclate  sum of qunatities in pagewise
    Regards
    Anand

    Hello Anand ,
           Really good Question.
    As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window  like......
         In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
    I haven't done this yet , quite sure it will help you.
    Regards
    Swati namdeo

  • Change Address in SmartForms

    Hai,
    i have a doubt in smartforms   'if u want to change the address in smartforms what can i do? is there any event or not.
    plz tell me.
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

    hi reddy,
    It seems like you are using an address node, and not a free-form text node with explicit address fields, which was the way things used to be done in SAPscript. This is good. The key strength in address nodes is the standardized way they rely upon address numbers and a few other key pieces of information to format addresses properly and consistently. However, a minor negative is that we lose some of the fine-tuned control available to us with explicit address formatting from SAPscript (e.g. deliberately suppressing certain lines).
    Here is a simple test to simulate how a vendor address will look on output:
    Go to vendor display (transaction FK03)
    Select a vendor
    Click on the address option under 'General data' and press enter
    On the next screen, click the 'print preview' icon
    The address which appears should resemble the one you see on your Smart Form output. From here you can click on the 'change parameters' icon to tweak the settings. One of these settings, maximum number of lines, is something which you have control over in your Smart Form's address node. Perhaps reducing this number will squeeze out the blank lines you currently see. Once you determine the proper value, update it within your form's address node. If the address appears fine in vendor display, but not on your form, double-check the address node to see if something else might be wrong with it (e.g. sending country).
    regards
    karthik
    <REMOVED BY MODERATOR>
    Incidentally, the 'print preview' and 'change parameters' icons are available for other address types in SAP as well. They provide a quick diagnostic to determine if addresses are printing correctly on a form
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 6:10 PM

  • Dump error in smartforms

    HI Experts,
    I have one doubts in smartforms, i m using two SELECT SINGLE statement first SELECT SINGLE is working properly, i m getting employee name but second SELECT SINGLE is provide dump error,
    i m providing below my se38 code for ur help. Plz help me as soon as possible.
    TABLES: PERNR, PA0000, PA0001, PA0006.
    *INFOTYPES: 0000, 0001, 0006.
    DATA: V_FORMNAME TYPE TDSFNAME VALUE 'ZWARN_LETTER',
          v_fmname type rs38l_fnam.
    SELECTION-SCREEN BEGIN OF BLOCK SAN WITH FRAME TITLE Title.
    PARAMETERS: EMPNO TYPE PA0000-PERNR OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK SAN.
    DATA: ENAME LIKE PA0001-ENAME,         " EMPLOYEE NAME.
          STRAS LIKE PA0006-STRAS,
          ORT01 LIKE PA0006-ORT01,
          ORT02 LIKE PA0006-ORT02,
          PSTLZ LIKE PA0006-PSTLZ,
          LOCAT LIKE PA0006-LOCAT.
    DATA: BEGIN OF ITAB OCCURS 0,
          ENAME LIKE PA0001-ENAME,         " EMPLOYEE NAME.
          STRAS LIKE PA0006-STRAS,
          ORT01 LIKE PA0006-ORT01,
          ORT02 LIKE PA0006-ORT02,
          PSTLZ LIKE PA0006-PSTLZ,
          LOCAT LIKE PA0006-LOCAT.
    DATA: END OF ITAB.
    *SELECT SINGLE PERNR INTO ITAB-EMPNO FROM PA0000 WHERE PERNR = EMPNO.
    SELECT SINGLE ENAME INTO ITAB-ENAME FROM PA0001 WHERE PERNR = EMPNO.
       SELECT SINGLE STRAS FROM PA0006 INTO (ITAB-STRAS) WHERE PERNR = EMPNO .
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                = v_formname
    IMPORTING
       FM_NAME                  = v_fmname
    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 V_FMNAME
         EXPORTING
              ENAME = ITAB-ENAME.
              STRAS = ITAB-STRAS.
            ORT01 = ITAB-ORT01.
            ORT02 = ITAB-ORT02.
            PSTLZ = ITAB-PSTLZ.
            LOCAT = ITAB-LOCAT.
    Regards,
    Swapnika

    HI,
    In FM
    CALL FUNCTION V_FMNAME
    EXPORTING
    ENAME = ITAB-ENAME.
    STRAS = ITAB-STRAS.
    ORT01 = ITAB-ORT01.
    ORT02 = ITAB-ORT02.
    PSTLZ = ITAB-PSTLZ.
    LOCAT = ITAB-LOCAT.
    Here ITAB is the Internal table. So we can't directly pass internal table values.
    Try like this,
    just change the declarations.
    data : itab-ename type table value,
             itab-stras type table value.
    Select statements.
    call FM

  • Date Formating in smartforms

    Hi,
    Guys i have a doubt in smartforms.i.e .i want to change the format of date within smartform not in print program.
    I am getting dates trrough internal table in 9 character long .i want to change the date 16 character.i.e. 20 December 2005 like this.
    In table structure 9 character only.so,i want to format date like this.
    Inside smartforms where to write code for call FM and formatting and all?
    If i call FM inside smartforms it'll work? .that means where i have to call and format? Please help me..
    Regards,
    Nandha..

    HI,
    you can write the code as you want in the Smartform,
    Just create <b>Program lines</b> then call the Function module, so you input will be 9 character field and the output will be 16 Character field.
    In the Program lines window, just give Input Parameter is 9 character field and the output parameter is 16 Character field, so this 16 Character field will be available for you in the Smartform, so you can use this and Print this anywhere
    Hope you got it..
    Regards
    Sudheer

Maybe you are looking for

  • DBCA can not use ASM for database storage due to following reason: Could no

    Hi I've a recently installed RAC11gR2(11.2.0.3) on HP-UX I installed Grid Infrastructure with grid user: Node1: # id grid uid=1100(grid) gid=1000(oinstall) groups=1031(dba),1021(asmdba) Node2: # id grid uid=1100(grid) gid=1000(oinstall) groups=1031(d

  • Can't print pdf's

    I have a MacBook Pro (OS 10.7.5) abd Adobe Acrobat X Pro (version 10.1.6).  I cannot get pdf's to print: the image displays black in the printer preview.  My printer is an HP Officejet 6500.  How can I find what is wrong (with my settings perhaps) so

  • WebStart not recognizing installed jre

    I have problem with WebStart - I'm not able to run ANYTHING with my installed jres. I have two JREs installed. One is 1.4.0rc, second 1.4.1beta1. Yes, I know that both of them are not final releases, but there should be a way to run webstart app even

  • Can I use my Iphone 5 at my GOLF VI

    I have the problem that i cant use my iphone 5 at my car (GOLF VI) - i always have a media-in -> usb cable/adapter (VW - Orginal) - and try to take the iphone lightning -> usb adapter to connect. but i got a message on my radio: "Media-In: Device not

  • CPU usage spikes while viewing webpage with java script

    Can anyone tell me if it is normal for cpu use to spike up to 90% when I view a webpage that's using javascript? It is a scrolling news headline using java script 1.2 in the webpage. Thanks