About Smartforms dynamic obj

Hello,
I want to develop one form for tax payment. Now i want to develop one form, and i want to get dynamically one object according to my requirement into my Smartform.So how can i develop this kind of smart forms. And how to develop one object for a smart forms which can be get into smartforms dynamically according to my requirement.
Thank you

If you are trying to vary the number of columns, this may not be possible. You may have fixed number of columns and change the contents (and heading) of the same in a pre-determined manner.

Similar Messages

  • I want  to know about smartforms

    hi experts tell me
    i want to know about smartforms
    anybody have material pls send me
    thanks in advance

    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
          Transaction code SMARTFORMS
          Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
          First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
          Here, you can specify your title and page numbering
          &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
          Main windows -> TABLE -> DATA
          In the Loop section, tick Internal table and fill in
          ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. 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
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g.  HD_GEN for printing header details,
            IT_GEN  for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    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
    Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming
                        http://sapr3.tripod.com
    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.
    also refer
    http://www.erpgenie.com/abap/smartforms_detail.htm
    http://www.sap-basis-abap.com/abphy.htm
    <b>http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://www.ionutz.ro/sap/sapabap01.htm[very imp links]</b>
    http://www.sap-basis-abap.com/sapsf001.htm
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Ask a question about smartform

    Hi expert,
         I have a question about smartform . Now I am doing a task about Purchase Order,
    when I create a new Purchase Order in Transaction ME21N , before I saved , I click the button to preview how it looks .
    as everyone knows , during that time , there is no Purchase Order created . So in the header text - > Price types , I write something in
    the text . I know the data , I can get it from table STXH , then use the function 'READ_TEXT'  to check if there is data in it according to
    TDNAME (in this case the tdname is purchase order ), but I didn't save it , so there is no purchase order , how can I get the data .
    I only want to get the data in type 'EKKO' , not 'EKPO'.
    kind regards
    Nick

    Hi...
    use this code..
    data : variable type c.
    first concatenate ekko-name ekpo-ebelp into one variable.
    and take one text element and give the name is variable
    ok...
    follow this steps..
    i think this is help full for u...
    thxs & regards,
    rahul

  • Que about smartform::::

    Good Noon to my all ABAP Gurus And Gurumaiyas....
    Here once again i came here to give some silly questions ( may be for u...)
    " Could anyone tell me basics about smartforms executions i mean how does it execute??? How can i use two pages in smartforms??? What is need of loop in smart form??? and why, when and how can i use it??? "
    I know basics about smartforms and i have also implemeneted it.... but i m not much aware of it.....i would be thankful to u if u take out 15 mins from ur busy schedule....
    Waiting for ur reply.....
    Warm Regards,
    Nirav Parekh

    Hi,
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procidure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. 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
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    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
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    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.
    check this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/a5/de6838abce021ae10000009b38f842/content.htm
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
    check this linkls------>
    https://www.sdn.sap.com/irj/sdn/collaboration
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    reward if useful
    regards,
    ANJI

  • Smartforms-Dynamic Change of Font Size in main window

    Hi Friends,
       How shall I be able to change dynamically the font size in main window of smartform. If the records are more in main window then the layout comes in 2 pages but if less in 1 page. So I want to decrease the font if the records are more to assign it in 1 page.
    Eg : I can print only 10 lines in 1 page of main window, but if the records exceed 10 lines it is going to next page, so I want to shrink the font size to maintain the layout in 1 page.
    Thanks & Regards,
    Somen
    Edited by: Das_SAP on Jun 23, 2009 7:59 AM

    Hi,
    SmartForms does not offer the option to set some characteristics at runtime. You must work with conditions in your form.
    First find out how many records you have in your table
    DESCRIBE TABLE mytable RECORDS sy-tfill.
    You create 2 texts nodes with the text to be output and assign the font and font size to them. Obviouly, one node will have a big font size and the other one a normal font size but both contain the same information and same variables.
    You can now work with an alternative. If the condition (there are many records for a secondpage) is true, assign text node with normal font size to option TRUE and the other text node to FALSE.
    Optionally, every text node has folder CONDITIONS, where you can say
    SY-TFILL >   10 lines  <-- for text node with normal font size
    SY-TFILL <= 10 lines  <-- for text node with big font size

  • SmartForms Dynamic Columns

    Hi, Can I in a SmartForms Report add dynamic columns?. It is this possible???
    Similarly as they grow in row I can grow in columns my report.
    Thank u.

    If you are trying to vary the number of columns, this may not be possible. You may have fixed number of columns and change the contents (and heading) of the same in a pre-determined manner.

  • Smartform Dynamic Ppage Format

    Hi All,
    I need answers to the following questions.
    1.I have a smartform for which the page format is Letter, while printing the form depending on some conditions I want to print the form on A4 paper.How can I dynamically change the Page Format, i have developed the layout such that when I take a printout, the default is letter when i change the spool attributes in sp01 to A4 it print correctly on A4, however i would like to change the page format dynamically and through my program, is there any way to change the spool attributes through the smartform driver program.
    2. When pages in the smartform exceed 10 then instead of 10 of 10 it is displaying the page numbers as 10 of *.
    Please help me with these issues.
    Thanks & regards,
    Vanita M.

    For point 1, yes you need to create 2 Smartforms for handling different page sizes.
    This code is working fine for me.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&
    Regards,
    Naimesh Patel

  • Information about Smartform

    Hi All,
    We are presently working with SRM 4.0 with extended classic scenario .
    I want to know the following things about PO output smartforms.
    1)Regarding PO output smartform :  in u2018smartformsu2019 transciation system is showing many  smartforms for PO output, In this regard , I want to know, which smartform system is calling when we click on PO print preview.
    2)Where we can see that which smart form is linked to PO preview button ?
    3)How to switchover to external de-bugging and how to debug smart form ?
    Thanks in advance
    Sachin.
    Edited by: sachin patil on Feb 12, 2009 12:45 PM

    Hi Sachin,
    Please check the following documentation in IMG settings:
    Supplier Relationship Management --> SRM Server --> Cross application basic settings --> set output actiona and output format --> define actions for document output.
    Also see the implementation for the BAdI: BBP_OUTPUT_CHANGE_SF
    Thanks,
    Pradeep
    Edited by: Pradeep Purushottam on Feb 12, 2009 5:24 PM

  • About Smartforms and watermarks

    Hi, i'm trying to put a watermark in a smartform until here i have no problem, but all starts when there's any variable over the watermark then u can't see the picture, but that change if the variable if is a static text, then u can se both, anybody knows why or how can i solve that?
    Thanks for the attention.
    Luis

    hi Luis,
    as i understood you want to print a image in the back ground of the data you r printing. if iam not wrong... fallow this way.. i did it this way.
    in the PAGE1--> i have created a Graphic window, then alligned it same location of the main window(because data printing starts from there.)
    then in the Main window-->as usual i have inserted the table. its working fine with both static and dynamic text.
    in you r case.. the problem cluld be the color u have selected for the table line type...even though u haven't did it once check in the  <b>double click on TABLE>TABLE tab>in Shading -->color BLACK and saturation 0%.</b>
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • Smartform dynamic cell coloring

    Hello guys
    I'd like to ask you a question regarding this issue (I'm not really an expert in Smartform development)
    The question is the following: Is there any way to dynamically set a table cell's color?
    Rigth now I have an ALV populated with data, and depending on some fields' values, I'm setting the cell's color dynamically at runtime (This is really easy using 00 ALV), but now I've been told to do the same in a smartform.
    I've been doing some digging , but so far i couldn't figure out how to do it; actually, I don't even know if it is possible.
    Thanks in advance.
    Regards boborolos.

    Hi,
    smartforms is used for printable forms and not for graphics. You can design your table and assign colors to columns/lines but this is done manually and static; if you need to do it dynamically, then smartforms is not the tool to use (and I think Adobe Forms has the same problem).
    You should try something else, like Crystal Reports or some other tool.

  • Smartforms dynamic image.

    Dynamic image size every time change while print . some time it go up some time it go down.

    Hi,
    I am using a technique as downloading/arcchiving smartform in PDF files. User execute a report ex. delivery note he will enter Delivery note no. which will fetch the pdf doc which consists both logo as well as barcode. you can try this as create a hyper link in your program refer to your smartform PDF directory.
    Please specify issue related to smartform or report
    May the above will help.

  • SMARTFORM DYNAMIC WINDOW

    HI ALL,
    >>> Is it possible to create Dynamic window in SMARTFORM?
    >>> How it is possible? ( Window may be set as per TEXT size )
    Thanks With Regards

    22

  • Best iso for a7s mechanical shutter? what about the dynamic range in stills from s-log2 video?

    for s-log2 video the best iso apparently is 3200.(or higher)
    if i shoot stills using the mechanical shutter, what iso gives the best dynamic range?
    how about if i use s-log 2 silent shutter while exposing still photos,
    or if i use s-log2 video, capture a frame, and output using an LUT,
    how does the dynamic range in those scenarios compare to that of a still photo?
    how can i get a sony supply an LUT for s-log2 video?
    thanks,
    chris

    Note that AutoCad is not an avanced software, it only uses one cpu thread (so if you have a fast solo processor that's all AutoCad makes use of) but the cpus mentioned above are the fastest cpus per single core. I don't know about the Premiere Pro i.e. what this program does in the regard of utilizing all cores and threads, but AutoCad for sure does not. So an AutoCad machine only needs a fast CPU, good memory and a graphics card that AutoCad knows how to make use of in 3D (if you are using AutoCad for 3D) but AutoCad is definitely not the program to consider for use in 3D modeling. AutoCad is still vector based program (and probably will continue to be in future, since there will always be some need for vector based design software) but Autodesk does have software that is not vector based like Inventor.

  • Smartforms Dynamic Text option (Change standard texts dyanamically)

    Hi,
    My requirement is to change standard texts dynamically in the smartform. i.e. Standard texts names are stored in a custom table, based on condition I have to print different standard texts.
    Thanks in Advance.

    You can use the variable as the name of your text name.
    Create a program lines to populate the variable. Use this variable as the text name. Like:
    &W_TEXT_NAME&
    Regards
    Naimesh Patel

  • Smartform dynamically add pages

    Hi everybody,
    I have a smartform regarding a company.For each company i have several locations and for each location i have a table with some informations that need to be displayed.
    My problem is that i will never know how many locations a company will have,only until runtime when i read some tables.My problem is that i have to display  the informations for a location on a different page,so that i have to dynamically add pages in the smartform depending on the number of locations,which will be always different.
    Does anybody know how i can do this?
    thanx

    Hi,
    you have to add an extra page in which the data is printed you want.
    You have to print this in the MAIN window.
    In the MAIN window build in a loop (by loop or TABLE).
    Do this at the end of MAIN window.
    Inside this loop is the first thing a COMMAND (flow logic)
    In this COMMAND your call your next page.
    After that print and fill your variables.
    succes.
    Gr., Frank

Maybe you are looking for