Smart Forms - problem

Hello All,
  I have created a new smartform from scratch. I am reading in a structure that contains all my data. I just want to read the values and write out the new document.
In the form interface i have Itab1 type my-structure(name). Then in global definitions i have Itab2 type my-structure(name). then in my loop i have Itab1 into Itab2.
i get the error msg Itab1 is neither a table of defined as an internal table.
I then went into Global definitions - type and added statement types: itab1 like zprice_agreement.
I still get the error.
Does anyone have any suggestion.. need this ASAP, thanks Scott

Hi,
I think the problem is not in smart form. its in the declaration of internal table.
Check out the sample code.
report ztest no standard page heading.                
data: begin of itab occurs 0,                         
    field1(6) type c,                                 
    end of itab.                                                                               
start-of-selection.                                   
*data: itab1 like itab.                               
data : itab1 like itab occurs 0 with header line.     
loop at itab1.                                        
endloop.                                                                               
If you uncomment the line in the code, it gives same error which you have specified.
Regards,
Sailaja.

Similar Messages

  • 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,

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

  • Smart Forms : problem with Float Variable

    Hi  Expert,
       I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
    I have to remove the exponent and display value like 80.
    I have tried wa_qamv-sollwert(E10.4).. but it not working.
    Can U suggest me some solution.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 27, 2010 12:19 PM

    Hi,
    Please follow the steps.
    1. In your smart form create a variable w_val ,, type,, associate type -->  CHAR10
    2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
    3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
    CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
      EXPORTING
        iv_menge       = i_tab-qamv
      IMPORTING
        EV_MENGE       = w_val.
    4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check..   It will work.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM

  • Smart form problem when printing header in table

    Hi Friends,
    I am facing some problem in smartform. In my smartform there is a table - where I should print "Header" at each start of line items and also at page break. So, I checked both the check boxes in Header as "Start of table" and "Page break".
    Now the problem is in main window - it is printing Header and line items are coming. After finished Again the header is coming and line items are coming. In some cases - What is happenning is: If the first page ends at the header only - Header is getting printed in the first page and the page ends here. In the next page also "Header is appearing because i checked page break". So, it is appearing twice.
    Could someone please guide me on this issue.
    Regards,
    Hari

    Hi,
    At any case the two headers will not be displayed if you select the both "start of table" and "at page break.". Please check whether there is another widow in the form from where the header is displaying.
    Thanks ,
    Abhijit

  • Smart form problem

    I want to display some data of main window  only on the last page. how can i do that one?
    if not possible, please tell me how a window with data can be possible  only on  last page?

    Hi manish,
          Open one condition tab and give Field name as SFSY-PAGE and comparision value as SFSY-FORMPAGES.
    OR
    if u know the last page check the ONLY ON PAGE CONDITION and select the page.
    Regards,
    Ragu

  • 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.

  • 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

  • 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

  • A strange problem in smart form?

    Hi,
       I met a strange problem in my smart form. When I click "Check" button in each window of each page, system said "Window (my window name) does not fit onto page(height)". Even I create a new page and a new window in it, it still said this error when I click "Check" button in the new window.
       I have tried to enlarge or reduce the window's size, but this error still occured. But I can activate the form correctly. And there is a syntax error in the generated program:
       FORM %EV2.
        LOOP AT INTO .
        CALL FUNCTION 'SSFCOMP_TABLE_ROW_BEGIN'
        EXPORTING I_LINE_TYPE = 'LINE2'
      You can see there's an error in loop statement.
      Could you tell me the reason and how to solve it?
      Thanks a lot!

    hi
    good
    as you have maneioned in your error  you have said that you have created your own window,but the check box as you mentioned which check box that it it is output options tab check box or in the condition tab check box.
    in the general attribute select the secondary window from the dropdown box and output options tab select the page size as you need .
    i hope you will get some output .
    thanks
    mrutyun

  • Sorting problem in smart form

    Hi,
    Good day guys
    Ive dev the smart form for workshop invoice..  everything fine but they need sort the stracture one which is LBBIL_IT_GEN.
    so ive created the custome stracture ZLBBIL_IT_GEN and added the numaric field at end of the strc.
    move-corresponding gs_it_gen to ZLBBIL_IT_GEN1.
    lv_num = lv_num + 001.
    ZLBBIL_IT_GEN1-MTART = GV_MTART.
    ZLBBIL_IT_GEN1-num = lv_num.
    sort ZLBBIL_IT_GEN1 by num.
    Move-corresponding ZLBBIL_IT_GEN1 to gs_it_gen.
    I think, it wont be work out. bcoz stracture doent hold the data..... how to over come the problem.. sorting is very imp for fun guys..
    regards
    chandu

    Hi,
    Actually ive a condtion.. if the material type [mtart] is "yser" .. in the material column should be blank.. the the material type is zrsa. then it needs to print materail and description.
    Material              Description
                                 xyz
                                  abc
                                  laptop
    123                        abc
                                  compu
    456                         pen
    678                        book
    if see the  the  5 th item get the blank ..so there is prob.. first needs to gets the all blanks then print  one who having the mateiral and description.
    but its prints right way.. bcoz its comes based on material type.. but need to sort this....
    how to do it..plz let me know
    thanks
    chandu.P

  • Smart form o/p problem

    Hi experts,
    I copied one smart form and did some modifications in that form and this form
    included in the same program.The form is syntacically correct and it is activated.
    When execute the program the o/p is not displaying.There are no errors in the program or in form.
    What is the problem.

    Hi,
    Debug the driver program and put brk point on ssf_function_module _name and give the new smartform name when it comes to this point,so it will take this form and generate the output.
    Regards,
    Amruta
    Edited by: amruta1 on Feb 26, 2010 8:30 AM
    Edited by: amruta1 on Feb 26, 2010 8:32 AM

Maybe you are looking for

  • Batch creation through ME21N, ME22N and MSC1N

    Hi All, Please note we are already using EXIT_SAPLV01Z_001, EXIT_SAPLV01Z_002, EXIT_SAPLV01Z_003, EXIT_SAPLCLFM_002, EXIT_SAPLV01Z_012, EXIT_SAPLV01Z_014 for Batch creation based on different logics for Material type, Plant and PO doc type and curren

  • Stock replenishment report

    Hi All, If executed at a company code level, Is there any report that gives details about: Stock on hand per plant and on order quantity and Historical sales quantity per material? Regards, SS

  • BI-Permissions based on 1:n characteristic

    Hi experts, I've got the following scenario: I've to process CRM-records in the BW-System. The CRM-permission-model allows to permit all users which are assigned to a document (opportunity) via partner-roles. In other words: If DocID 12345 has n user

  • Emails in my inbox disappear periodically

    Can anyone tell me how to prevent my emails from disappearing from my inbox on my iphone?  its a work phone so not sure if its the phone, AT&T service, or my work server. 

  • BH-503 + Mac OS X 10.6 Snow Leopard (re)connection...

    I have recently purchased a Nokia BH-503 and I am having issues when using it with my mac ( Mac OS X 10.6 Snow Leopard [10.6.2]). The device pairs successfully, but when trying to connect, usually the first attempt either fails, or I get sound with a