How to write print program for smartforms

Hi all
I need to develop new smartform and its print program.
But Im not experience in writing print program for smartform.
Ive gone through the simple print program sample that use only one table as input and one table for output.
But my smartforms require few tables for input and output.
How should I define the Data?
Can anyone guide me on how to write it.
Thanks & Regards
az

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.
Reward points...

Similar Messages

  • How find out print program for smartform?

    i know smart form name but i want printprogram name for that.how to find?pls help me.

    Hi
    There's no method.
    If you're speaking about a smartforms for logistics module (SD,MM), you can you the transaction NACE (or table TNAPR) in order to findout which program is assigned to that smartforms.
    U can also try to find out all programs using the fm SSF_FUNCTION_MODULE_NAME and get only the program where the string containing the name of your smartform.
    Max

  • To find print program for smartforms.

    pls tell me how to find print programs for smartforms.pls tell me with all steps.clearly.i tried with tanpr table but unable to find

    hi,
    Please take a look at the NACE transaction where all the output conditions will be configured. Drill down into you specific application and you should be able to find the print program as well as the smart form name.
    Steps..
    Use NACE and follow procedure as follows
    1)Choose Application from list(eg PO)
    2)Click OP type
    3)Chose one OP type from Right pane.
    4)Click on processing routines
    and you got it
    regards,
    keerthi

  • How to know print program for SAP Script

    Hi friends,
    how to know print program for SAP Script form name ?

    Hi ,
      You can use the following code changes in the layout & see..
    You have to create a program Z_BC460_EX4_HF for that..
    /:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF
    /:  USING &CUST&
    /:  CHANGING &NAME&
    /:ENDPERFORM.
    Dear &NAME&
    The ABAP routine could be defined as follows:
    IMPORTANT: The structure itcsy must be used for the parameters.
    REPORT Z_HENRIKF_SCRIPT_FORM .
      tables scustom.
      form get_name tables in_tab structure itcsy
                           out_tab structure itcsy.
      read table in_tab index 1.
      select single * from scustom
        where id = in_tab-value.
      if sy-subrc = 0.
        read table out_tab index 1.
        move scustom-name to out_tab-value.
        modify out_tab index sy-tabix.
      else.
        read table out_tab index 1.
        move 'No name' to out_tab-value.
        modify out_tab index sy-tabix.
      endif.
    You could also fill the ouput parameter table this way
       READ TABLE out_par WITH KEY 'NAME1'.
       out_par-value = l_name1.
       MODIFY out_par INDEX sy-tabix.
    endform.

  • Can any one please tell me how to write labview program for data logging in electric motor bike.

    Can any one please tell me how to write labview program for data logging in electric motor bike. I am going to use CompactRIO for getting wide range of data from various sensors in bike. I need to write labview program for data logging of temperature, voltage and speed of the bike. Can any one help me?

    Yes, we can.   
    I think the best place for you to start for this is the NI Developer Zone.  I recommend beginning with these tutorials I found by searching on "data log rio".  There were more than just these few that might be relevant to your project but I'll leave that for you to decide.
    NI Compact RIO Setup and Services ->  http://zone.ni.com/devzone/cda/tut/p/id/11394
    Getting Started with CompactRIO - Logging Data to Disk  ->  http://zone.ni.com/devzone/cda/tut/p/id/11198
    Getting Started with CompactRIO - Performing Basic Control ->  http://zone.ni.com/devzone/cda/tut/p/id/11197
    These will probably give you links to more topics/tutorials/examples that can help you design and implement your target system.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • Need Print Program for Smartform /SAPSLL/SF_GL_EPL for Export Packing list

    Hello Friends,
                         I need a print program for Smartform /SAPSLL/SF_GL_EPL for Export Packing list. Please reply ASAP.
    Thanks,
    Ziad.

    Hi Sowjanya,
                         I am using FUEP o/p type for Export Packing list for Billing . I Copied SAPscript SD_EXPORT_FUEP form and the  print program for this is same RVADAUS1. Can we use the same print program for Smartform  /SAPSLL/SF_GL_EPL?
    Thanks,
    Ziad

  • How to write driver programming in smartforms

    hi Floks
    <i>how to write driver programmig and how many types of driver programs available to trigger smartforms what are they . how to call the url in smartforms ?
    help me  out  .thanking you ,</i>
    with regards,
    suresh

    Hi
    Try to get the Function module name from the smart form
    how to find Driver program for a smartform
    and now goto SE38 and create a progarm for calling the smartform
    smartform driver program
    Regards
    Kathirve

  • Using standard PO Printing Program for Smartforms

    Hi Experts,
    I am some hiccups coding my print program for a PO Smartform that am currently working on.The requirement was to use the standard print program to trigger my Smartform PO. I have read alot of threads on this, but am still clueless.
    Some says to comment out the functions like "OPEN_FORM" ,"WRITE_FORM" and having your block of codes inside the "NEU_" routine.
    But I noticed, there are even some conditions and logic checking before the "write_form" is called and sometimes the table entries are also cleared. In this kind of situation, how should I be passing the table data to the Smartform function module?By copying the contents to an internal table? And there are many include programs which currently the standard program has, should I be using all that too?
    Appreciate your input and advice on this.
    Thanks very much.

    Hi Neesha,
    Can you check this once
    [Migrating Forms|http://help.sap.com/saphelp_nw04/helpdata/en/9d/9599386185c064e10000009b38f8cf/content.htm]
    Regards,
    Madhu.
    Edited by: madhurao123 on Dec 21, 2011 9:18 AM

  • How to get source programe for smartform

    hi
    i want to know source programe for smartform.
    thanks .

    hi,
    1. Go to the smartforms transaction.
    2. Chose from menu Environment->Function Module.
    3. Note the name of the fm.
    4. Go to se37.
    5. Place the cursor on the Fm name and do a where-used-list.
    6. You will find the programs which use that fm.
    or you can find it in NACE transaction
    or in the table tnapr.
    Rgds
    Reshma

  • How to find z or standard print program for smartform

    Hi all,
    I know the smartform name from this I want find print program used whether it is z or standard program.
    Thanks in advance,
    Regards,
    Harshada

    Hi,
    1. If you know the output type then you can check the Print program name in configuration.
    You can use tcode 'NACE' and select the your functional area then click on outout types.
    Choose your output type and click on 'Processing routines'.
    It will show you the print program attached to your smartform.
    2. You can directly go to table TNAPR, give your smartform name and execute. It will give you print program attached to that smartform.
    Thanks,
    Archana

  • Generating print program for smartform

    Hiii   friends can u plz help me in getting the solution.Here I m giving the details about the requirement.
    1) we have to create a report which consists of alv grid.
    2) Next we have create a smart form & generate print prog for it.
    3) In reports we are placing 2 push buttons i.e (1) print (2) print preview. If we press print button then it should call the form.
    plz help in doing this thank you.
    Moderator message : Spec/requirements dumping is not allowed, show the work you have already done. Thread locked.
    Edited by: Vinod Kumar on Oct 18, 2011 10:44 AM

    CONTROL-preview = ' '.
    CONTROL-no_open = 'X'.
    CONTROL-no_close = 'X'.
    CONTROL-no_dialog = 'X'.
    CONTROL-device = 'PRINTER'.
    OUTPUT_OPTIONS-TDDEST = tdest.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    OUTPUT_OPTIONS-tdimmed = 'X'.
    OUTPUT_OPTIONS-tdnewid = 'X'.   use this filed
    OUTPUT_OPTIONS-tddataset = 'XYZ'.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
    output_options = output_options
    control_parameters = CONTROL
    user_settings = ' '
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.

  • How to find print program for particular smartform

    also tell me if there is any standard smart form for SRM PO
    name of the form .
    thnks

    hi
    all the po related programs and forms are available in the table TNAPR( ere u can check the form or prg acc to the output type of the application, which you can find by seeing in NACE).
    Most of the forms are available with /SMB40*, SEQUENCE u try for this one.
    U can get all the required information relavant to new froms and programs available by giving /SMB40*, IN FORM NAME and press f4. then u can get all the forms available.

  • Print program for the smartform for selecting the output type (email/fax)

    Hi All,
    Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
    can any body please let me know how  to put the condition for selecting the desired  output type ?
    Thanks in advance
    Rahul

    Hi
    It is not the output type that has to be changed
    it is the MEDIUM which you have to change and configure
    for printout medium is 1
    for FAX medium is 2
    for MAIL it is 7.
    so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
    Reward points for useful Answers
    Regards
    Anji

  • How to find Driver program for a smartform

    Dear Friends,
    I'm new to smartforms. Can any of you tell me how to find the Driver prog for a smartform.
    Many thanks in advance.
    Thanks & regards,
    Raghuveer K.

    If the application uses message control to print the smartform, then chekc in TNAPR, TNAPR-PGNAM is program name and TNAPR-SFORM is smartform.
    If you are trying to look for SAP standard program for SAP smartform, get the development class/Package name of the smartform from general attributes, and look for the best matching program name in the dev class in SE80.
    That's one way to find.
    Do a where used list on fm SSF_FUNCTION_MODULE_NAME, and search for the smartform name in the resulting programs. if you are lucky, you can find it quickly.
    There's no defined process to fine print program for a smartform.
    Regards
    Sridhar

  • Standard print program for fi invoice smartform printing

    Hi friend,
    Is there any standard print program available for printing FI related invoice .
    I want print program for printing smartforms.
    I want to know any method for searching the standard print program for printing smartform in Fi module.
    Thanks & Regards,
    Sathish

    Hi,
    FI related Forms will be configure in SPRO.
    Goto SPRO and FI related applivcation.
    There you will find the related forms and programs.

Maybe you are looking for

  • [JS CS3] Need an array of paragraphs when more than one story

    Hello, If I have a document with only one story the following line returns an array of all the paragraphs. I can then iterate through the array to my hearts conent. var paraRef = app.activeDocument.stories.everyItem().paragraphs; However, if there is

  • FI Field Status Group

    Hi, I am working on a BDC Program for posting of FI documents. The documents would have one Vendor Line and Multiple G/L line. Now now for different G/L lines there can be different G/L accounts and hence there can be different Field Status Group. My

  • Customer Master System of Record: CRM or ECC

    We are implementing a net new CRM and ECC Order-to-Cash project. We are trying to decide what should be the system of record for the customer master, CRM or ECC. Some of the requirements: - Pricing will be maintained in ECC - We want to have customer

  • Photo library occupy big storage

    this is not the issue related to iTunes! in the storage usage, there are four items for the Photos&Camera: Photo library (2.1GB), synced from iTunes Library (0.8kb), My photo stream (181mb), Shared Photo Stream(20.4MB). I can not figure out what the

  • Vcore question! (Is it a bug ?( )

    hi: I have a vcore problem. my mobo is MS6330 K7Turbo2 my cpu is athlon xp 1700+ palomino idle cpu temp is ±55 C full load is ±63 C I have checked that my cpu has a default 1.75 vcore from AMD internet site. But even though I have NOT overclocked my