Problem in designing tag in smart forms

HI gurs,
       i want to design tag for pp module with some fields like
profile no, order qty, sales order no, cut length etc.
i want to take print that tag with data.
for that i need to design in module pool or smart form or both.
In my knowledge,
i design tag in smart form,
write print program in se38,
then throw call function SSF_FUNCTION_MODULE_NAME
i called that form in program.
but if  i called fm_name through pattern
1) i got error Function FM_NAME not found
2) in smart form ,
      form interface->import
        i declared itab type plaf
     window->template-> loop->
    i declared
           itab into itab
but error is
itab is neither specified under tables nor is it defined as an internal table
any one correct me.
Thanks & Regards,
vino.
Edited by: vino_abap on Feb 8, 2011 6:05 AM

Hi,
1. I think you should change the declare of ITAB from tab IMPORT to tab TABLES: ITAB LIKE PLAF.
2. After that generater your form after call SSF_FUNCTION_MODULE_NAME
DATA: l_fname     TYPE rs38l_fnam.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = 'FORM NAME'
    IMPORTING
      fm_name            = l_fname
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc <> 0.
    MESSAGE s999 WITH 'Cannot find form to print'(005).
    EXIT.
  ENDIF.
  CALL FUNCTION l_fname
    EXPORTING
*----- your input parameter
    TABLES
*------ your input table parameters
    EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 4
      OTHERS           = 5.
  IF sy-subrc EQ 4.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Above is just an example.
Regards,

Similar Messages

  • Problem in page break of smart forms

    Hi Gurus,
    I am using smart forms for printing on cheque.  What is the problem i am facing is i have three entries in my internal table which i am passing to the smart forms from my driver program. But In the output i am getting four print outs last one having the details of the previous one.
    My logic flows like this,
    I have used one loop for main window and have added the command for page break, and then I have read the values for the other windows. I have tried in many ways like counting the number of values in internal table and added that in command but its not working.
    Anybody please help me to fix the problem.
    Thanks in advance

    Hello friend,
    If you have a problem of getting one page printed in addition to the other pages then handle the situation as follows,
    Try to create a folder and handle this problem or create alternatives and put the page break commands inside it so that you can handle the situation by giving condition in the alternatives.
    If your problem still exists please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Problem with currency  field in smart form

    hi
    friends ..
    i had problem with currency field in smartform iam printing 5 currecny
    fields after the main window .But not getting printed on right way gets printed down from the given mesaurement and i get lot of gap betwen the
    each fields for ex.
    33,260.00
    120.00
    0.00
    0.00
    0.00
    i thought the the problem is with space .so iwanted to condense it but cannot as it is currency field so move into character fields .but the user want out put in currency format like 22,60.20 if i  get the value in char variable i get 2260.20 which i dont want .
    so pls help me how to condense or shift left and print the currency field on right place.
    regards
    answers will be rewarded points.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Problem with output ype  In SMART FORMS

    HI,
    I am working smartforms.
    I have taken a standard copy of existing smartform and made necessary modifications.
    This FORM is INVOICE DOCUMENT.
    I Configured this using NACE Transaction Code .
    While I am creating Billing Document in VF01.
    I am not unable to create invoices.
    It is throwing an error message as ADDRESS key NOT defined
    Suppose if i am changing the form with Standard form then i am able to Create invoices
    Please give me inputs on this.
    Thanks in advance.
    Rohit.

    Hi
    In the smartform,do u have an address node?? If there is one, please check it is working fine..and hwo are u displaying addresses in the smartform?
    Regards,
    Vishwa.

  • Problem in printing Border in Smart Form in DMP printer

    Hi ,
    Im facing the same issue in my Smartform . When the user prints through ALV it prints the border ,
    But if we use the same printer for Smartform it does not print the borders in Dot Matrix .
    I did increase the width from 15 TW to 30 TW but even then the Table Border is not printing .
    Can someone please help me with the same

    Hi Juhi,
    I believe, Dot Matrix printer is for pre-printed Docs, so except charaters in the form, nothing will be printed, where as in case of laser printer, A4 paper is nt a pre-printed format.
    I think this might be the case in ur issue.
    Sujatha

  • Problem in Print preview of smart forms in different servers.

    Print preview is different in different systems(development and Quality) for the same smartform, though everything is same.
    both are seen on print preview of locl printer, and I have checked the settings of locl in spad also and this also has no difference, there is absolutely no difference in smartform ,style paragraph format or character format.
    Can anyone please let me know what could be the problem.
    Help is appreciated.

    Hi,
    check this link it might solve ur problem.
    Re: Smartforms Print Preview Problem
    it might be the same issue which u r facing with..
    Regards,
    Sana.
    reward poitns if found helpful..

  • Output error in smart forms

    I am facing a typical problem in rendering output from smart forms to pdf.
    The program was working fine before , now after some patch application the output is not comming , it shows
    " A Drawing Error Occured"
    Regards

    Hi,
    Thanks for the reply , but what i observerd is that when i reduce the graphic size the program works fine  .
    One more question i wanted to ask you, is there any specific size restriction for bitmap files that we use on the smartforms.
    Regards
    Sam

  • New smart form picking enjoy purchase order /SAPDII/SPP_ORDER

    Hi Experts,
    Ours is a new implementation project.
    Requirement is to design a new smart form for purchase order.
    The print program for the purchase order is loaded.
    When I go for print preview the print program is calling the enjoy PO and not my form.
    I checked in the transaction NACE
    PRINT PROGRAM : Z_SMBZA_ZA_FM06P
    FORM ROUTINE :ENTRY_NEU
    FORM : -
    PDF/SMARTFORM : Z_MMPO_ZA
    My print program has 2 includes
    INCLUDE Z_SMBA0_AA_FM06TOP.
    INCLUDE Z_SMBA0_AA_FM06PE02.
    Every thing is working fine except with the following piece of code
    IF NOT tnapr-sform IS INITIAL.
        lf_formname = tnapr-sform.
      ELSE.
        MESSAGE e001(ssfcomposer).
      ENDIF.
    Here I am getting tnapr-form as /SAPDII/SPP_ORDER and not Z_MMPO_ZA
    If I change the field to Z_MMPO_ZA in debugging it works fine and I am getting the output of my form.
    In the table TNAPR the field SFORM  shows Z_MMPO_ZA
    In the table NAST the field PFLD3 shows /SAPDII/SPP_ORDER
    Can some one help me how to make the program by default read my form and not /SAPDII/SPP_ORDER
    Thanks
    Joshi

    Hi,
    IF NOT tnapr-sform IS INITIAL.
    lf_formname = tnapr-sform.
    ELSE.
    MESSAGE e001(ssfcomposer).
    ENDIF.
    In debugging check what is value in TNAPR-KSCHL and confirm whether this is the desired output for PO printing.
    Also check in PO Header --> Messages, what is the output type configured there. If it is not the desired output type, try adding your desired output type there and chek the print preview.
    Also confirm the NACE settings are correct for your Output Type used wihile taking the PO printout.
    Thanks & Regards,
    Harish

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • Send Smart Forms within emails (html) Problems with format

    Dear all,
    the ABAP report SF_XSF_DEMO1 is a demo report which converts a certain smart form into HTML and then sends it as an email in html format.
    Sending the email is possible without any problems but I am wondering about the email format.
    <a href="http://www.imgbox.de/show/img/e4QvgzsS4L.jpg" title="Bilder hochladen">This screenshot shows how the email looks like.</a>
    I am not happy with the email layout as the Smart Form "SF_XSF_DEMO1" is designed in a different way.
    What do I have to adapt within the report in order to send an email that really looks like the Smart Form? Or is it a customizing issue?
    (I would like to avoid having to send the Smart Form as PDF attachment...)
    Thanks for you help!
    Kristian Kindler

    Hi Kristian,
    When ever you send a smartform output as an HTML email, the system generates automatic style sheets which are not supported in many email clients such as Outlook 2007, hence you will face a formatting issue. We faced the same issue and had do it it like this:
    Build a BSP page similar to the output which you want to send as an email. Now you can use the BSP URL to send the html email using cl_bcs class.
    I have documented this in my article below-
    http://divulgesap.com/blog.php?p=NDA=
    Hope it helps.
    Regards,
    Ravikiran

  • Problem in converting smart form into PDF

    HI Experts,
                      I am using a Function Module CONVERT_OTF for converting smart form into pdf file for send it to with attachment.
    But i got a error when i am using that FM.
    Runtime Errors         CONVT_NO_NUMBER
    unable to interpret *292 as a no.
    Is that because my file size too large about 13 pages of PDF?
    and when i run it for other smart forms which have 2 or 3 pages of PDF, its working perfectly.
    can anyone tell what is problem with that FM?
    Thanks
    Shakun

    Hi,
    I had the similar issue and after analysis I have that this is the issue by not passing the IMPORTING parameter of the Function Module "BIN_FILESIZE". Please try to pass some variable to this paramter and then this will be completely rectified.
    DATA ; v_filesize     TYPE i.
    *--Convert OTF data to PDF data
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = v_filesize
        TABLES
          otf                   = it_otfdata
          lines                 = it_pdfdata
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
    Please verify whether this reolves the problem for you.
    Regards,
    SRinivas

  • Problem in output type determantion in smart forms

    Hi all,
    I have one problem in smart forms mentioned below:
    In this program RVADOR01 i hav used RVORDER01 for displaying the output in the output type determination(print preview) for a particular quotation no.
    In VA23 for a particular quotation I clicked on preview button and i got d output for smart form(RVORDER01).
    Can u plz tell me where i can find that in which part of d program(RVADOR01) is d QUOTATION NO called.
    so that i dont want to hard code the quotation no in the program.
    Thanks
    Regards
    SANJAY CHOBDAR

    not really helping you on the issue, but some things here need clarification i sense.
    Outputtype determination has actually NOTHING to do with print preview.
    In output type determination the output types for the actual document get determined via output schema which is assigned to either documenttype or itemtype.
    RVADOR01 is the SAP-standard (SAP-SCRIPT) driver program for offers/orders.
    RVORDER01 is the SAP-standard SAP-SCRIPT form for offers/orders.

  • Smart forms Print preview problem

    Hi
    Experts,
    I am working in CRM2007. I am creating number of different type Smart forms for our client requirement. All Smart Forms working fine in WEB GUI. In Web GUI there have two buttons; one is print buttons and another one is Print Preview buttons.  When we press print buttons it is directly go to printer for printing service order or service invoice or sales order or sales invoice whatever user is selected. Means working fine print buttons. And in case when we press print preview button it is open selected forms in PDF format; it is also work fine in our desire. But problem is here PDF format front size; which is very small. And after looking the PDF format if we select for print out of this PDF form; the print out orientation is Landscape and front size is very small. Now my question to all of experts u2026u2026u2026.How I change PDF front size and orientation? u2026u2026u2026u2026u2026u2026any type of BSP Enhancement or functional setting is required? Please Experts help meu2026u2026u2026u2026u2026u2026u2026u2026..
    Regards
    Tarapada  D.

    please CRM Experts give me some answer!!!!!!!!!!!!!!!

  • Problem while sending fax through a SAP Smart Form

    Hi,
    I am trying to send fax through a smartform but it is not working, please see the details below.
    I am calling the Function Module "SSF_FUNCTION_MODULE_NAME" in a PAI event.  After storing the FM name "/1BCDWB/SF00000029"in a local variable "ls_frm_name", I am using that for printing the Form and at the same time to fax out the same by passing the following export parameters.
    control_parameters type ssfctrlop with values
      la_ssfctrlop_struc-device      = 'TELEFAX'.
      la_ssfctrlop_struc-no_dialog   = 'X'.
      la_ssfctrlop_struc-langu       = ls_supplier_info-spras.
    output_options type ssfcompop with values
      ls_ssffaxop_struc-tdteleland   = ls_supplier_info-land1.
      ls_ssffaxop_struc-tdtelenum    = lfa1-telfx.
      ls_ssffaxop_struc-tdfaxuser    = syst-uname.
      ls_ssffaxop_struc-tdnoprint    = 'X'.
    along with "fax_details  = ls_zap1_fax_details" declared as interface parameters to the Smart Form.
    But the Function Module is throwing following exception and not sending any Fax.
    SY-MSGID-->OL
    SY-MSGNO-->356
    SY-MSGV1-->NOAUTHORITYCHECK
    Do I need to pass any other values to the FM, I felt that this is not an authorization problem after debugging.
    Can any one please help me in handling this exception and send the fax,
    Thanks,
    Srinivas.
    Edited by: Venkata Srinivas Inavilli on May 20, 2008 2:40 PM

    may it be that in those cases where it doesnt work, that you got no fax number?
    Since it works soemtimes, it seems there are no errors, but rather in some cases some important info is missing, fax number may be one of thsoe important info in a FAX scenario.

  • Problems in sap script/smart forms

    what are the major problems will come in real time about smart form and sap script?

    Hi there.
    Question 1:
    Use font MICR_C for MICR CMC-7 or MICR_E for MICR E-13B
    http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm
    Question 2:
    /: SET DATE MASK = 'DDMMYYYY'
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 3:
    /E BOX_ELEMENT
    /: POSITION WINDOW                       
    /: POSITION YORIGIN &Y& LN 
    /: SIZE HEIGHT &HEIGHT& LN    
    /: BOX FRAME 10 TW
    /: BOX XPOS  '0.0' CM  WIDTH 0 TW FRAME 10 TW
    Question 4:
    &symbol(C)&
    http://help.sap.com/saphelp_nw04/helpdata/en/d1/8034d4454211d189710000e8322d00/frameset.htm
    Question 5:
    See SAP Note 129581.
    Best regards.
    Valter Oliveira.
    Edited by: Valter Oliveira on May 30, 2008 4:42 PM

Maybe you are looking for

  • Problem With Business(phonebook) Widget

    Just received my mbp. I used set up assistant to transfer everything from my powerbook. Everything went smoothly and I (so far) have none of the problems commonly reported here. However the one issue I found is that the Apple installed business or ph

  • How do you add a video on i-pod after you set it to manual

    How do you add a video on i-pod after you set it to manual and not erase a ton of stuff in the process? Thanks

  • Cluster errors on 1 node of a RAC

    Hello All, I Installed Oracle RAC 11.2.0.1.0, on Oracle Enterprise Linux 5.5 32 bit. the installation and the database creation went fine and no error were generated. My RAC is 2 nodes (RAC1 and RAC2). On RAC1 the instance is up and working but not o

  • RFC function call from VB Script

    I have an RFC enabled function that I need to call from VBScript.  I was working through this issue as a BAPI call but after research and RFC not initialized error messages over and over I am coming to think that the issue is not how I was doing it b

  • SXMS_ASYNC_EXEC (ICM_HTTP_CONNECTION_FAILED)

    Hi! I am trying to replicate Vendors from EBP to SUS and have faced with the following issue. In XI I can see that message has status "restart automatically" and the following error occures: in functional module SXMS_ASYNC_EXEC CLIENT_RECEIVE_FAILED