How to use standard Smart forms

hi All,
Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE
Thanks,
Nitin

Hi,
first u copy the standrad smartform to z and then modify it,
SOME STANDARD SMARTFORMS
SF_EXAMPLE_01,
SF_EXAMPLE_02,
SF_EXAMPLE_03,
LB_BILL_INVOICE,
ENETR SMARTFORMS TCODE
PRESS F4 HERE U FIND ALL STANDARD SMARTFORMS
OR
U GO TO TRANSACTION CODE NACE
SAMPLE PROGRAM FOR SMARTFORM,
. 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.
Thanks&Regards,
Phani
POINTS HELPFUL

Similar Messages

  • How to use standard pdf forms for HR

    Hi
    We just upgraded our system from 4.6C to ECC6.0. We just did technical upgrade. IF we want to use SAP provided pdf forms for any HR applications like w-2's or something else.. what do  we need.. Can we use them with out ADS ? and without a Java server?
    Thanks

    Hello,
    you need a Java server and need ADS configured. To do this is not easy for me as a application developer, but it is easy for the basis guys. Ask one to make this ready for you. Esitmated time is like 3-5 days. ADS is free for printing (replaces SAPscripts and Smartforms by Adobe forms).
    For HR forms I recommend create your custom ones, because you can develop it very quickly and it will meet any specific requirements of your business. This way you will spare much time and psychic sanity searching and changing SAP HR standard (my 2 yrs experience).
    Have a nice day, Otto
    p.s.: If you have further interest in Adobe, move your questions to Adobe forms forum under NetWeaver.

  • Where the standard smart forms stored in sap

    hi
    this is kishore kumar
    i am new to smart forms
    please tell me any body
    in which table table standard smart froms r stored
    for example scripts r stored in  TNAPR TABLES
    so in which table smart forms r stored
    please tell me
    or how to use standard smart forms.
    thanks in advance

    Hi Kishore,
    Smartforms stores in table STXFADM
    Procedure to find where smartforms storeS:
    Run Tcode: SMARTFORMS
    Press F1 on smartform text box .
    Click on technical information icon. You can find table name as SSFSCREEN.
    Double click on SSFSCREEN, Which is a structure.
    In this you can find first field as FNAME(form name).
    Go to entry help/check tab .you can see check table for field FNAME as STXFADM.
    Double click on STXFADM . it takes you into table STXFADM.(this is the table actual table where you can find smartforms).
    click on content icon  where you can different smart forms.
    Regards,
    Jaipal Reddy.k

  • Am using a standard smart form and a corresponding program.

    hi
    i  am using a standard smart form and a corresponding program. i did evry possible thing but it is not executing..where could be the error.?
    can any1 suggest

    Hi,
    Dude..!
    you told that you created form and corresponding print program also....!
    but you didn't mentioned what it is..! in the sense to which module..!
    are you changing any standard form or what..! be clear while raising issue..! so that you can get your issue cleared..
    and you have to assign your form and corresponding print program in NACE transaction for the given output type.
    Thanks & regards,
    Sasi Kanth.

  • How to know which Smart-Form is being used for Purchase Order print output

    Hi Gurus ,
    How to find which Smart-Form and and methods/program being used for Purchase Order print output in SRM  ?
    In ECC we have tcode NACE where we can check all the details.Is there something similar in SRM ?
    Please help.
    Regards,
    Saurav

    There is no similar transaction in SRM for your purpose. Usually if the customers customize the smartforms, they would choose to use their own form by implementing BADI BBP_OUTPUT_CHANGE_SF. Take a look into your system and see if this BADI is implemented. If so, debug it (by pressing "Print Preview" for a PO for example) and find out what form it is using. Or, if the BADI is not implemented, by default, the system uses form BBP_PO.

  • Standard smart forms

    hi All,
    Pls give me the details that how to use system defined smart forms and how to copy and change standard smart forms in SAP 4.7EE
    Thanks,
    Nitin

    Standard SmartForms
    Smartforms for Invoice--LB_BIL_INVOICE
    Delivery Note--LE_SHP_DELNOTE
    Check these threads.
    smartforms

  • How to use standard texts in smartforms

    Hi Friends,
          How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
    thanks in advance,
    regards,
    sharma.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • Sap standard smart form fol BOL is LE_SHP_DELNOTE

    Hi,
    Is this the Sap standard smart form for Bill of lading is LE_SHP_DELNOTE for shipment.
    Nor do i need to migrate the existing sapscript form to smartform?
    thanxs in advance.

    Hi,
    In SAPScript, you can use SHIPMENT_DOC.
    In SmartForms, you can use LE_SHP_DELNOTE.
    Thanks,
    Ramakrishna

  • Using & in SMART FORMS

    Hi All,
    I am reading a text ( Header text) from PO using Read_text FM, and if the text contains any & symbol my form prints it as <(> & <)>, how to rectify this error ?
    user need to use & in text, so we can't avoid using it in the header text .
    Please guide me to rectify this error.
    Thanks in Advance.
    Regards,
    Joseph

    I am facing problem due to & only, the user enters & in Header text, but smart form prints it as <(> & <)>, now i am replacing all occurences of & with 'and' to solve the problem , but i want to know , whether we can use & in smart forms or not?
    Can special characters like & < > use in smart forms or not ?
    Kindly reply.
    Thanks & Regards,
    Joseph.

  • How to debug the smart forms

    Hi All,
    Can any body guide me how to debug the smart forms.
    Thanks & Regards,
    Satish.

    Hi,
    The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.
    Procedure:
    Open the smartform we want to debug.
    Goto Environment -> Function module name.
    Open the function module in SE37. From the menu GOTO -> main program. Open the last include.
    This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.
    Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.
    Put a breakpoint at any point you want.
    If we issue any doc which triggers this form, when the control reaches the break point it will stop.
    Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.
    So, always put a session break point in the related function module.
    We can use SFTRACE transaction to know the sequence of the control flow.
    If you want to break at each and every text that is printed on the output form put the break points in the forms.
    1. %write_text  to break at text element.
    2. %WRITE_TEXT_MODULE  to break at text module.
    3. %WRITE_INCLUDE_TEXT  to break at include text.
    Please put a break point at the first sy-subrc check.
    If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.
    Its easy to understand the sequence of the printing if we put a breakpoint as stated above.
    Regards,
    Satish.

  • Replacing Standard SMART FORMS

    Hello,
    Firstly, how do we find the smart form associated with a transaction (service order, activity etc.) Secondly, I want to replace the standard Smart Form for printing of Service Orders and Case Management with a custom Z smartform, anyone has any idea on how do we do this ?
    Answers would be rewarded,
    Regards,
    Jacob.

    Jacob,
    Smartforms would be associated with the transactions via Actions.
    i.e.
    In spro, find out your transaction type and in its details find the action profile assigned to it. Once you get the action profile come back to spro and see the actions assigned to it. In one ofthe actions, you will find the smartform attached.
    This is the link. If you wish to change this standard to your z smartform, you need to make the change here in the action profile (in the action assigned to the action profile that would fire the print)
    Please note that when you change it to a Z smartform, unless you generate the smartform (in t.code SMARTFORMS) it wont reflect in the transactions.
    In other words, you need to activate and generate your z smartform before assigning it to the actions in the action profile.
    Let us know if you have any concerns.
    Julius

  • How to use bfile in forms

    Hi,
    I'm using webutil for viewing files(doc,pdf,txt).These files are stored in FTP server.
    But my requirement is i have to link that files with BFILE. means those file paths store in bfile. how to use bfile in forms.

    1. \forms\server\formsweb.cfg
    archive_jini=frmall_jinit.jar,FormsProperties.jar
    2. regedit
    HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
    C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
    C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
    C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
    C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
    C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
    C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
    C:\DevSuiteHome_1\forms\java\FormsProperties.jar;
    3. Untuk Jdev.. include..Libraries [THE WAY I AM CREATING A BEAN..NO NEED TO READ THIS]
    ORacle Forms
    C:\DevSuiteHome_1\jdev\lib\ext\frmjdev_pjc.jar

  • How to use alerts in Form Portlet

    Hi I m new to portal..
    Plz suggest me how to use alerts in Form Portlet...
    If possible give me some sample code...

    I think I already answered this question in the main Portal forum.
    Mick.

  • How to use standard function keys as custom keys

    how to use standard function keys as custom keys.
    i have encountered that problem while developing a screen, there i'm supposed to use standard function key F2 ( which actually meant for choose) for clearing the screen fields where the cursor is present and f1 for saving data that entered in screen fields, etc...
    kindly help me out.

    Hi ,
    Solution to use SAP reserve function keys F1 .. F4 (mostly this requirement comes up for RF screens) can be acheived by assigning your new Function code using the Menu path Utilities --> F key Consistency in the Menu Painter (SE41) . Once you assign your cutom function code to the standard Fn keys the only remaining step is to make sure that you set a curson on any of the field on sceen by using the Key Word "SET CURSOR" .
    If you dont use the key word SET CURSOR in the PBO of the screen then you might not see any response for F4.
    Thanks

  • How to use standard SAP stylesheets in WAD

    Hello ,
    I created a new Web template.
    Assigned a data provider, inserted a table.
    In order to view i include a Analaysis box in one of the cell of Table.
    Now i need to change the colours of result rows.
    How to use Standard Stylesheets provided by SAP.
    Where this stylesheets will be located
    Under which properties.
    How to use those.
    How to edit those and save as we wanted.
    An y step by step documents, please send it to [email protected]
    I want to include Information button in Template, so when executing if user click this button he/she should know,
    What are provided variables and if they chosen some specific variable restriction to see the result,
    Also by default this information should get print.
    In standard sap portal, this button is located on upper right corner.
    Please advise.

    Thanks Rusty,
    Thats exactly right,
    I included a naviagtion block and it worked well
    But while printing the query on Web template, It only prints the data that is coming in Analysis block.
    Similarly while running the query thru BEX to Portal,
    Navigation block is on left, but while printing it prints exactly every data in Information tab.
    Information is the button located on upper right corner.
    If you click, it will give you information such as , which restrictions u did, which extra filters you added everything.
    And while printing it prints this information too.
    I want to do the same designing for my custom Web template.
    How can i do that.
    I already added navigation block, so it will be easy for users to drag and drop Chars and KFs in rows and columns as well as filter if they needed.
    I hope you are trying to understand.
    Also for using stylesheets can you suggest.
    So that i can make changes to row and columns.
    I am unable to locate stylesheet in any of the properties.

Maybe you are looking for