Smartforms for beginner

hello everyone,
i am new to SAP particularly SMARTFORMS. i am planning to create a simple letter which later i want to call in my abap program.
example:
TO:<b> variable_name</b>
      <b>variable_address</b>
(main body)
Dear <b>variable_name</b>,
blah blah blah... blah blah blah..
thank you,
mrm.
now, any suggestions/help/tip in declaring the variables in smartforms? i absolutely have no idea how. :(.
thanks for future responses.
Mark

Hi Mark,
   Go thru the link othere have given it would be make u learn lot abt smartforms.... For ur requirement  U need to have 2 things as every smartforms have..... a  Print program .... then ur smartforms for it.
Goto SE38 & create a print program.... as follows
DATA: v_fm_name TYPE rs38l_fnam,
           v_name  type text20,
           variable_address type text20.
v_name     = ' Mark Ronald Magat'.
v_address  = 'Address'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname           = < Ur smartform name within single quotes'
  IMPORTING
    fm_name            = v_fm_name
  EXCEPTIONS
    no_form            = 1
    no_function_module = 2
    OTHERS             = 3.
CALL FUNCTION '/1BCDWB/SF00000183'
  EXPORTING
     v_variablename                     = v_name
     v_address                            = v_address
IMPORTING
  DOCUMENT_OUTPUT_INFO       =
  JOB_OUTPUT_INFO            =
  JOB_OUTPUT_OPTIONS         =
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.
Now Go to smartforms....
In form Interface give :
  v_variablename   type  text20
  v_address           type  text20
Create a a text element in a window . now go to the text element and give
TO: & v_variablename &
        &v_addrerss&
Dear  & v_variablename & ,
  blah blah blah... blah blah blah..
Thank You
mrm.
Save check activate.... u are done.....
When u are clicking execute u find a function module being created take that name and paste it in SE38 program @ second call function... in the above code it is /1BCDWB/SF00000183'... but will change for each smartform.
Reward if u find it useful.
Arun T

Similar Messages

  • How to comment in smartform for text value in abap

    how to comment in smartform for text value in abap.
    i want to comment text value which is coming in output
    From drag and drop option i had dropped an item text in text window and now i dont want to delete it i just want to comment it so can any one help me in commenting the text value.
    Advance Thanks for your help

    hi
    open the text element in the smartform.
    on the left corner, we have text editor button.
    open that and change the editor (goto-->change editor)
    on the new line, give the format as comment line /*. and you can write the comments as required.
    such lines doesnt reflect in the output layout.
    thanks
    pavan

  • Standard Smartform for label printing for packages - pls advice

    Hi All,
    I need help in changing a print program ie Standard Smartform for label printing for packages ?
    Standard Driver program: SDPACKDR
    Please provide me with the detailed steps for editing the Std Smartform according to any requirement.
    Points will be rewarded promptly.
    Thanks.

    hi,
    1. The smartform name is SD_PACK_ETIK.
    2.Just copy the standard program into Zprogram and make chanes and assign in NACE with the form.
    3.But,in smartform lable printing is not possible.
    4.you can print barcodes.
    Regards,
    Kumar(Reward if helpful).

  • Error in customized smartform for goods recipt

    Hi experts
    I  have  created a customized smartform for goods recipt .
    I have used  form entry_we01 inside my zprogram and basically  fetching the material document no from  NAST-objky
    The problem is when i assign my program in TXN NACE
    it prevents the update of material document no MBLNR in the
    MSEG table .
    I get an express document as soon as I try to display the goods recipt stating " UPDATE HAS BEEN TERMINATED".
    and although material document has been generated it is not updated in the MSEG table.
    By the way this error does not happen when i use the standard driver program and standard form (SAPSCRIPT).
    Please suggest a solution

    Hi,
    Your problem may not be related with what you done in NACE.......Check for any other recent changes made in the System...

  • Smartform for sales tax summary report

    Hi all!
    Is there a smartform for the Austrian sales tax summary report available? I have not found any hints At the moment, we "just" use a SAP-SCRIPT printout. Thank's for your help!
    Regards
    MARTIN JAGERSBERGER

    Hi Arvind,
    Check /people/navneet.dhami/blog/2010/11/04/some-useful-sql-scripts link and modify the query as per your requirement.
    Thanks,
    Neetu

  • Printing smartform for multiple customers

    Hi Experts,
    can anybody send me the code for printing the smartform for multiple customers, i need print the customer data by pagewise means in selection screes if user enter multiple customers ,i need to print by each customer, if customer 1 is different from customer 2 need to start in new page .
    pls guide........
    thanks in advance.

    Hi,
    You can handle it in your form by checking the customer.
    Write code in your main window there you check the present customer with previous one. if not equal then trigger the next page
    Regards
    SHiva

  • Custom SmartForm for Purchase Order Printing

    Hi,
    I need a customized smartform for purchase order, which is called after the standard transaction ME9F.
    I adjusted "Conditions for Output Control" by using transaction NACE  ( Erased the name of the form MEDRUCK, Entered my customized smartform's name under smartform Form part and chose the type as smartform )
    However, I couldn't success to see my printview whereas I continued to see the printview of Medruck.
    I'd searched for the problem through here and the net,  I found some names of smartforms such as: /SMB40/MMPO_L  and /SMB40/MMPO_A and their driver programs like: /SMB40/FM06P . The package which consists of these elements was mentioned as " /SMB40/ "... but despite I downloaded it, my system still doesn't have the elements.
    So, how can I use my own purchase order smartform or if i need the forms mentioned,  in which best practice package i can find them?
    SAP ECC 6.0
    SAP_APPL 604
    SAP_BASIS 701
    Thanks in advance,

    Hi,
    If your SAP doesnt have a standard smartform for PO, it is quite complicated to use smarform rather than sapscript.
    I guess that you will need to modify the program SAPFM06P that calls the sapscript and make it call the smartform.
    I will take a few time to adapt the sapscript.
    Regards
    Miguel

  • Standard SMARTFORM  for Check Printing/ Payment Advice

    Hi All,
      I have one important question...
    Standard <b>Script</b> Check Print Program =  <b>RFFOUS_C</b>
    Standart Script Layout Name  = F110_PRENUM_CHCK
                                &  F110_D_AVIS
    We have to modify it as per client requirment.
        But I want to know the <b>Standard SMARTFORM & Standard Smartform driver Program for CHECH printing & payment advice ?????????????</b>
    Is there no Smartform for check printing or if exist then please guide me?????????????????

    hi umesh,
    1)anyone can help me,while extending idoc,i added one segment to idoc by extending debmas.that segment has two fields.while populating data to idoc,i am getting problem like VSV0001.exit is not allowing me to write the code.
    plz anyone can help me on this issue.if you did't understand this problem plz tell me how to extend the idoc.more concentration on while populating the data in to idoc.like which function module i have to use.in customer master idoc.debmas.i am new to this environment.plz help me.like complet work till completion of task.
    2)and my next assignment is in smartforms.plz let me know .i was created the screen.according to that screen.i have to make print program.plz tell me how to give the text elements.
    like we have given in scripts, page window and then F9 to give the text elements.and make the program.like that any one can tell me clearly.how to make the complete smartforms programs.
    plz this requirement is very very urgent,plz could you send it for my [email protected]
    advance thanks for your help.
    thansk&regards,
    radhiks.

  • Use ZBBP_PO smartform for PO printing in SUS

    Hi Gurus,
    Is it possible to use the SRM PO smartform for output in SUS?
    That is, if the vendor prints the PO form in SUS, is it possible to call the smartform ZBBP_PO instead of ZBBP_SUSPO?
    Would really appreciate any help.
    Regards,
    Kezia

    Hi,
    For SUS for any Output you can use the BADI BBP_SUS_DOWNLD_FILES for printing.
    Just check following help
    Use
    You can use this Business Add-in (BAdI) to specify file names and folders that differ from those used in the standard system for downloading documents. You can also specify the XSLT program the system uses for converting from XML to CSV, as well as the form the system uses for printing documents.
    Standard settings
    SAP does not deliver a standard implementation for this BAdI. If there is no active implementation, the system uses the following:
    • File name for:
    o Purchase order: PO_<purchase order number>
    o Confirmation: CONF_<Confirmation number>
    o Shipping notification: ASN_<shipping notification number>
    o Invoice: INV_<invoice number>
    • XSLT program for:
    o Purchase order: BBP_SUS_XML2CSV_ORDER
    o Confirmation: BBP_SUS_XML2CSV_CONF
    o Shipping notification: BBP_SUS_XML2CSV_ASN
    o Invoice: BBP_SUS_XML2CSV_INV
    • Output form for:
    o Purchase order: BBP_SUSPO
    o Confirmation: BBP_SUSCONF
    o Shipping notification: BBP_SUSASN
    o Invoice: BBP_SUSINV
    The BAdI provides the FILES_MODIFY method with the following parameters:
    Importing
    IV_OBJTYPE Document type (purchase order or invoice)
    IV_OBJID Document number
    Changing
    EV_XML_FNAME XML file name
    EV_CSV_FNAME CSV file name
    EV_PDF_FNAME PDF file name
    EV_REL_DIR relative folder
    EV_XSLT_PNAME XSLT program
    EV_SMARTFORM output form
    Activities
    If you want to use file names or forms that differ from the standard system, implement the BAdI and activate the implementation.
    Example
    include BBP_PD_CON_CL.
    CASE iv_objtype.
    Order
    WHEN c_suspo.
    ev_xslt_pname = 'YOUR_ENTRY'.
    ev_xml_fname = 'YOUR_ENTRY'.
    ASN
    WHEN c_susasn.
    ev_xslt_pname = 'YOUR_ENTRY'
    INVOICE
    WHEN c_susinv.
    ev_smartform = 'YOUR_ENTRY'.
    CONFIRMATION
    WHEN c_suscf.
    ev_xslt_pname = 'YOUR_ENTRY'.
    ENDCASE.
    See these related threads:
    Smartform for SUS PO
    Re: MODIFICATION IN OUT PUT (pdf) OF SUS PO
    You need to implement the above mentioned BADI to call another Form(other then the std ).
    BR,
    Deepti..

  • I have creatd smartform for vendor return invoice and i m using std zprog o

    i have creatd smartform for vendor return invoice and i m using std zprog of other client and corresponding prog.. when i run this program using  .....after creating transc in se93. is it not workin ..
    where should i check for error and i am not getting selection screen in se38 program which i am using with this smartform..
    can u tel me step wise....what is the procedure so i can run and execute and see my output..
    please
    regards.

    Hi,
    when you run program from SE38 are you able to see the selection screen and able to exucute with out error....
    And when you run the t-code which you created for your Z-prog whats the message its giving...
    Regards,
    Shankar.

  • Calling smartform for PO from ME22n

    Hi all,
    I had created a smartform for PO and print program for the same.
    My requirment is that I want to call the PO smartform from ME22n and all the details ie PO number,supplying plant,doc date, PO qty etc will be displayed on the smartform but I am not getting that.
    I had gone to Tcode NACE and in the processing routine of output type ie NEU I had entered the Form name and printprogram.But I am not aware of form routine whether I ve to write separate Form Routine for the driver program.
    Pls tell me the necessity of form routine here.
    Pls experts its an urgent requirement and help me out regarding the same.
    I will reward points for the same.
    With regards,
    Abir.

    The routine name is the the soubroutine in your print program.
    For eg in Script:
    If your print prog starts as
    FORM entry USING return_code us_screen.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing.
      IF retcode NE 0.
        return_code = 1.
      ELSE.
        return_code = 0.
      ENDIF.
    ENDFORM.
    Then "entry" will be the routine you are looking out for.
    Message was edited by: vinodh balasubramaniam

  • Need help in Developing the Smartform for Delivery notes

    I'm developing the smartform for tcode vl02n.
    My question is when writing the print program which is the best way :
    1) By making use of standard print program RLE_DELNOTE
    2) developing from scratch by declaring my own types and subroutines as per my requirement.

    Hi,
    Welcome to SDN.
    I would always recommend start with the standard print program.  Most requirements can be satisfied by working with a copy of the standard form called by the standard program.
    Regards,
    Nick

  • Standard driver programs,output type ,scripts,smartforms for SD reports

    hi experts,
                  Can any one list all the standard driver programs,output types ,scripts,smartforms for SD reports.
    mani

    Hi,
    Check this out
    NACE
    You can track the form and the print program used for that form
    The Tcode NACE is used to link the Standard SAP forms (SCRIPTFORM or SMARTFORM) or the customized form or the new form to its respective print programs. Also the output types, Form entry are linked with their forms and print programs. In short term, i can tell u that configuration or customization of forms to print programs, assigning output types, form entry to the forms are done using this Tcode.
    NACE is used to create output type while creating the output type you will mention forms, and driver program.
    that will be maintained in the table TNAPR.if you create the output type using NACE then it will be automatically visible in table NAST and TNAPR.
    so check in NAST, TNAPR table
    http://help.sap.com/saphelp_erp2005/helpdata/en/c8/1989fe43b111d1896f0000e8322d00/frameset.htm
    Condition records in NACE?
    and
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    and also
    NACE is used for message control customizing.
    Take a look at the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/198a1843b111d1896f0000e8322d00/frameset.htm
    If it helps reward with points..

  • Smartform For PO

    Hi All,
    I am working on a Smartform for the PO. We have a requirement to print the INFO RECORD PO TEXT on the form. I am able to print the hard coded texts on the form, but the problem comes when we have to print the standard texts on the form. I have written an INCLUDE statement for the Standard Text in the PO. When I write this statement as command no text is getting printed in the print preview of the form and when I write this statement as continuous text then I am getting the complete include statement in the print preview of the form.
    My required is to get the appropriate Standard Text on the Form.
    Please suggest some solution for this.
    Thanks & Regards,
    Ankur Sharma

    HI Ankur,
    If you want to avoid hard coding texts in forms, use include text or text module.
    First create your own text in tcode SO10.
    Second in the text node, choose the text type as Include Text and give the details of text what you have created in SO10 like Text name , Text ID, etc.
    IN print preview it will show the text.
    Reward Points if useful.
    Regards,
    Sarathy.

  • I need the names of standard smartform for FI module.

    i need the names of standard smartform for FI module or if possible if one can provide the smart form for FI - CML & FI - CFM module (new module introduced).

    Hi,
    SF_EXAMPLE_01 
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02 
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03 
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the  form is called for each customer and all form outputs are included in an output request
    Regards,
    Bhaskar

Maybe you are looking for

  • Safari audio streaming to ATV2 since update

    After the latest update, can we now audio stream Safari (Pandora) via Airplay to the AppleTV (and audio-system)? I read references to people doing so, but can find no hard info. Thanks

  • Printout of MIRO

    Is there any option for taking printout of invoice verification.....

  • PCo 2.1 and Proficy iFix using OPC DA

    I'm finding some interesting behavior when trying to access Proficy iFIX  HMI / SCADA with PCo 2.1 using OPC DA. PCo Version 2.1.0.55 iFIX version 5.1 SCADA OS: Windows XP Pro, SP3 MII Version 12.1.5 Build(99) What happens is that when I do a tag lis

  • Any one else struggling with 3G since doing an iOS 6 upgrade?

    Hi everyone, I have an iphone 4 on a Tesco contract (I'm in the UK).  Upgraded from iOS 5 to iOS 6 2 days ago through itunes on my mac.  All seemed to go well... Other than I cant use 3G. The 3G symbol is on the status bar next to my carriers name an

  • Illustrator CC, latest update, crashes immediately after start.

    I just downloaded Illustrator CC from the Adobe updater and every time I start it it goes to the splash screen, loads the help/tutorials page, then when I X out of there it freezes for a second then crashes. I'm on a 2012 macbook pro well speced runn