Problem with subtotals on Smartform. SRM 5.0

Hello,
Iam facing one serious problem with one smartform on SRM 5.0.
Using the automatic "calculation" of one table in main window i have set the subtotal calculation. This calculation is not working because the form is getting always the item from the next page on pagebreack moment...
How could i control this bug from sap?

The reason for this is the the systematic of the form interpreter on how to check if a page break has been done.
Items and other stuff get printed in MAIN window.
So e.G. you have 4 items while 3 fit on one page. so he prints 3 items, all is fine, no page break detected so he continues with MAIN window printing.
Now he prints item 4 and WHILE printing it he detects that there is not enough space on the page to print it. Page break gets triggered, but item 4 has already been in process and so values of item 4 are added.
I never ran into this problem with the auto subtotal calculation of smartforms and i really wonder that this makes problems in Standard as well.
I suspect you can find a SAP-note on this subject, since this is the standard having issues, and i guess they are solved by now.

Similar Messages

  • Problems with PO creation in SRM in Plan Driven Scenario

    Hi experts,
    I have a problem with creation of PO from SC in SRM 5.0 (Extended Classic) in Plan Driven Scenario:
    We transfer PM order from FI/LO (ECC 5.0) to SRM (the Extended Classic is activated).
    SC (External req) is being approved
    After approval there is a status on each SC position: "Item in transfer", after a long time status is being changed to "Error in transmition".
    PO is not created and I don't know why. Any ideas?
    Regards
    RafaD

    Hi RafaD,
    Check for the shopping cart status message in <b>BBP_PD</b>.
    Also check the status in application monitor using <b>RZ20</b> then you will get a better picture about the problem.
    Check the settings in the SPRO > IMG > SRM > SRM Server > Cross Application basic settings > Define objects in Back end systems.
    Also check the following SAP notes which will help you in sorting out the problem :
    <b>Note 757625 - Incorrect Status I1112->analysis report</b>
    <b>Note 1040878 - Cannot transfer shopping carts with status I1112</b>
    <b>Note 631513 - Shopping cart in status 'Erroneous transfer' without alert</b>
    <b>Note 1003350 - Follow-on doc BE PO not created for SC</b>
    Based on the error details you get through BBP_PD & RZ20, you can apply any of the relevant SAP notes mentioned above.
    Hope this will solve your problem.
    Let me know the outcome.
    Rgds,
    Teja

  • Problem with printing in SMARTFORM

    Hello,
    I have a problem with a printout. I wrote form in SMARTFORM.
    There is a HP LJ2420 printer in our local network. This printer is my local printer (LP1) and it is defined in SAP (for example S005). When I print this form on LP1 printout is ok. If  I print this form on S005 the same printer prints black belts.
    When I save this printout in .pdf or .html file , there are no black belts.
    Regards
    Ela

    This is related to printer settings. Nothinh to doas far as coding is concerned. Just check the printer settings in SPAD transaction. You can contact your basis team  or your superior.
    Regards,
    Nageswar

  • Problem with Print of Smartforms

    Hi Experts,
    I am facing problem with the Smartforms related to purchase order and Request for Quotation.
    when i see the print preview of these two forms the preview was coming correctly. But when i give the print the data in the footer  was Truncted. I changed thepage from Letter to A4. Even then also i am facing the issue.
    So can any one tell me where would be th problem.
    Thanks & Regards,
    Ramana

    Dear Ramana,
    there is no big issue in this just you have to
    check the window at footer in which window(output option )
    tick must be there at lines with
    and always draw boxes and shading.
    tamplet paramets must match to the window.
    do this if still problem is there keep in touch
    and send me the error of output.
    pls keep in touch.
    REWARDS expected.
    vivek srivastava

  • Problem with external punchout in SRM Server 713

    Hello,
    We upgrade from SRM_SERVER 701 SP 04 to SRM_SERVER 713 SP 02, now we have a problem with external catalog, we did not change anything in standard call structure, however now when the user access to external catalog, select a product and "checkout", SRM returns to shopping cart screen without products and no message are register in log in transaction code SLG1.
    Our parameters in structure are:
    10                     https://xxxxxxxxx                          URL
    20 VIEW_ID          NAME                            Fixed value
    30 VIEW_PASSWD     XXXXXX               Fixed value
    40 USER_ID          SY-UNAME                   SAP field
    50 BRANDING      search5                     Fixed value
    60 LANGUAGE      ES                           Fixed value
    70 COUNTRY      MX                             Fixed value
    75 EASYORDER 1                          Fixed value
    80 target _top                                  Fixed value
    85 ~caller      CTLG                              Fixed value
    90 OCI_VERSION     4.0                     Fixed value
    91 FILTER                                      Fixed value
    92 OPI_VERSION 1.0                     Fixed value
    100 HOOK_URL                             return URL
    110 returntarget      _top                       Fixed value
    we made some test with parameter BYPASS_INB_HANDLER, set as 'X' but this not solve our issue.
    We have an implementation in badi BBP_CATALOG_TRANSFER to map product category, even if I set an external breakpoint in this implementation, system does not pass through it, also we test with this implementation inactive and behavior is the same, nothing transfer to shopping cart
    Does anyone know what's missing?
    Thanks in advance.
    Best regards,
    José Luis D.

    Hello Jason,
    Thank you for your answer, but as I told, If I set an external breakpoint it does not stop for debugging, so I can't see table as you recomended. This process (debugging) is familiar to me, in last version I can do it.
    Any suggestion?
    Thanks in advance, best regards
    José Luis D

  • Problem with Purchase Order Smartform

    Hi All,
    I have a problem with SRM PO form.
    I have 2 PO Layouts 1 is for NA(North America) and 2 is for UK. In config the NA PO is configured for all mediums(Print, Mail And FAX).
    Using the BADI 'BBP_OUTPUT_CHANGE' I am overwriting config form (NA) with UK form. IF I preview the form in portal I can able to see the UK form for UK purchase orders. If I try to send a mail I am still getting the old form i.e NA form which is assigned in Config as an attachment in mail.
    Is anybody got the same issue? Please help me to sort out this issue..
    Thanks,
    Usman.

    Hi Sanjeev,
    Thanks for answere. Conditional triggering in SPRO is not useful, We have tried this option also.
    I am not doing first preview and next sendinq the mail. Doing only one action at atime.
    The BADI which u mentioned is not there(bbp_output_change_sf). I am using this BADI 'bbp_output_change'.
    Thanks,
    Usman Sued
    Edited by: Usman Syed on Mar 13, 2009 8:40 AM
    Edited by: Usman Syed on Mar 13, 2009 8:40 AM

  • Problem With Converting PO Smartform into PDF

    Hi All,
    I am trying to email the Smartform PO. I developed the program after reading several discuusions and blogs in forum. The PO is successfully created in PDF format and stored in the local directory. When i tried to view the pdf the PO is creatd twice in the PDF. I mean the original pdf is of 3 pages with PO and terms and conditons. But in the pdf which was created it has 6 pages. I am unable to understand why it has 2 copies of same PO.
    When i tried to email the pdf as attachement the email is delivered successfully. But when i tried to view the pdf its given an error that "the file is corrupted (For example the attachemnt is not coded properly)or the fle type is not supported. Even in the attachment also i have the two files one is of pdf another is also of the .pdf but the image is showing as Unknown file format.
    Any suggestions to resolve these issues.
    Thanks

    My code is as follows:
    FORM print_form .
    *Calling FM to retrieve the function module associated with the Smartform
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME                 = 'ZMMS_MEDRUCK_LS'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       FM_NAME                  = v_form_name
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    control_parameters-langu = sy-langu.
      control_parameters-no_dialog = 'X'.
      control_parameters-getotf    = 'X'.
    Excuting the FM associated with the SmartForm by input required internal tables
    CALL FUNCTION v_form_name
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         = control_parameters
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
        OUTPUT_OPTIONS             = output_options
      USER_SETTINGS              = 'X'
        IS_NAST                    = it_nast
        IS_PEKKO                   = it_pekko
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            = output_data
       JOB_OUTPUT_OPTIONS         =
      TABLES
        IT_EKPO                    = it_ekpo
        IT_EKET                    = it_eket
        IS_EKKO                    = it_ekko
        IT_DRAW                    = it_draw
        IT_BUYER                   = it_buyer
    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.
    tab_otf_final[] = output_data-otfdata[].
    **removing the initial and final markers from the OTF data*********
    DELETE output_data-otfdata WHERE tdprintcom = '//'.
    searching for the end-of-page in OTF table************
    DATA : my_tabix TYPE sy-tabix.
    READ TABLE tab_otf_final WITH KEY tdprintcom = 'EP'.
    my_tabix = sy-tabix + 1.
    appending the modified OTF table to the final OTF table****
    INSERT LINES OF output_data-otfdata INTO tab_otf_final INDEX my_tabix.
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
          FORMAT                      = 'PDF'
        MAX_LINEWIDTH               = 132
        ARCHIVE_INDEX               = ' '
        COPYNUMBER                  = 0
        ASCII_BIDI_VIS2LOG          = ' '
        PDF_DELETE_OTFTAB           = ' '
    IMPORTING
          bin_filesize                = bin_filesize
        TABLES
          OTF                         = tab_otf_final
          LINES                       = lt_lines
      EXCEPTIONS
        ERR_MAX_LINEWIDTH           = 1
        ERR_FORMAT                  = 2
        ERR_CONV_NOT_POSSIBLE       = 3
        ERR_BAD_OTF                 = 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.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        BIN_FILESIZE                    = bin_filesize
        FILENAME                        = 'D:TEST.PDF'
        FILETYPE                        = 'BIN'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_EOL                       = ABAP_TRUE
    IMPORTING
        FILELENGTH                      = file_size
      TABLES
        DATA_TAB                        = lt_lines
      FIELDNAMES                      =
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED           = 8
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at LT_LINES INTO wa_lines.
    translate wa_LINES using '~'.
    concatenate WA_BUFFER wa_LINES into WA_BUFFER.
    endloop.
    translate WA_BUFFER using '~'.
    do.
    I_RECORD = WA_BUFFER.
    append I_RECORD.
    shift WA_BUFFER left by 255 places.
    if WA_BUFFER is initial.
    exit.
    endif.
    enddo.
    Attachment
    refresh:
    I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    clear WA_OBJHEAD.
    I_OBJBIN[] = I_RECORD[].
    APPEND I_RECORD.
    Create Message Body Title and Description****************
    I_OBJTXT = 'test with pdf-Attachment!'.
    append I_OBJTXT.
    describe table I_OBJTXT lines V_LINES_TXT.
    read table I_OBJTXT index V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text*****************************
    clear I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    append I_OBJPACK.
    Attachment (pdf-Attachment)*************
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 1.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smartform'.
    concatenate I_OBJPACK-OBJ_NAME I_OBJPACK-DOC_TYPE into I_OBJPACK-OBJ_DESCR separated by '.'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    append I_OBJPACK.
    Länge des Attachment ermitteln
    clear I_RECLIST.
    I_RECLIST-RECEIVER = '[email protected]'.
    I_RECLIST-REC_TYPE = 'U'.
    I_RECLIST-EXPRESS = 'X'.
    data: TAB_LINES like SY-TABIX.
    describe table I_OBJBIN lines TAB_LINES.
    append I_RECLIST.
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    exporting
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    tables
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    exceptions
    TOO_MANY_RECEIVERS = 1
    DOCUMENT_NOT_SENT = 2
    DOCUMENT_TYPE_NOT_EXIST = 3
    OPERATION_NO_AUTHORIZATION = 4
    PARAMETER_ERROR = 5
    X_ERROR = 6
    ENQUEUE_ERROR = 7
    others = 8.
    if SY-SUBRC <> 0.
    write:/ 'Error When Sending the File', SY-SUBRC.
    else.
    write:/ 'Mail sent'.
    endif.
    ENDFORM.                    " print_form

  • Problem with a basic SMARTFORM behaviour

    Hi Experts,
    I'am modifying a smartform in order to change some behaviour.
    I've never created any smartforms, so, as you can imagine, my knowledge it's very poor.
    My problem is the following:
    I need to show the operation number of a quotation but I can't do it.
    In my smartform I defined the following:
    Form Interface
      Import Tab
         Parameter Name    Type Assignment    Associated Type
         ORDERADM_H        TYPE               CRMT_OUTPUT_ORDERADM_H_COM
    Then, I create a text and drag&drop my      &ORDERADM_H-OBJECT_ID& variable from the Import Interface folder.
    The values is not showing when I execute it.
    Is this the correct way to display this typical value?
    Do I need some code in order to load the value and display it?
    I thought that this is an standard funcionality
    Could anyone please help me? Maybe some step-by-step schema could help me.
    Thanks in advance.

    Hi Javier,
    I would need few more details in order to help you.
    What smartform are you using ? Is it a quotation/order confirmation - copied from standard form CRM_ORDER_CONFIRMATION_01 ?
    If it is custom smartform then you would need to read the data either in the method (attached to your action profile) or in the smartform to get the data. Just by adding an import parameter will not get you the data if it has not been passed by the calling method or function.
    Regards,
    Chandrika

  • Problem with barcode in SmartForms

    Hi masters...
    First all, I have read all posts where u talk about it..
    1) in se73, I have created a new barcode, called 'CODE93'... obviusly for code 9/3...
    2) in the SMARTSTYLES I have created the style 'ISU_COD93'... with the pragraph P1, and Character Format 'C1' choosing my bar code bar 'CODE93'.
    3) in the SmartForms, wrote in the style 'ISU_COD93'.. and in the text... <C1> 1234567 </> ... but doesn't work...
                   <C1> 1234567 </C1> the same...
    when i Preview the form... it shows..... <C1> 1234567 </> or the other...
    somebody has any idea?????
    thx a lot..
    regards... I will give the points to the correct answer

    I have solved it....
    it was something very stupid....
    if I write the text with the WORD editor.. it doesn't work... but if I put the old editor, and write the SAME thing it is working
    thx.
    Edited by: Guillermo Stortoni on Mar 26, 2008 7:43 PM

  • Problem with ITS service in SRM

    Hi,
    When we transfer the bp from BBPMAININT service, we are getting the following error.
    Error when processing your request
    What has happened?
    The URL http://srmdev.indosat.co.id:8000/sap/bc/gui/sap/its/bbpmainint/ was not called due to an error.
    Note
    The following error text was processed in the system ISD : Subscreen not found
    The error occurred on the application server srmdev_ISD_00 and in the work process 1 .
    The termination type was: ABORT_MESSAGE_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program BBP_VENDOR_CREATE
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system ISD in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server srmdev_ISD_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server srmdev_ISD_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 200 -u: MNGR_MRKT -l: E -s: ISD -i: srmdev_ISD_00 -w: 1 -d: 20070511 -t: 123323 -v: ABORT_MESSAGE_STATE -e: Subscreen not found
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    The workprocess 1 trace file is as below:
    W      *** ERROR => diag: Unable to find a subscreen named `_top 2@100' [w3xxsemg.cpp 2106]
    W      *** ERROR => diag: Could not process target, rc=0xffffffd8 [w3xxsemg.cpp 1369]
    W      *** ERROR => plugin: XKrnHandleResponse failed rc= -40 [itspxkrn.cpp 764]
    W      *** ERROR => plugin: ItspXKrn_HandleResponse failed. 0xc0000000d4ae40c0 rc: 0 [itspxkrn.cpp 389]
    W    *** ERROR => ipl_ConvertOut failed rc = 1, send icf error page [itsplxx.c    1551]
    M    ***LOG W01=>  [itsplxx.c    1552]
    W    *** ERROR => ipl_ConvertOut returns 1(ITSPE_FAILURE) [itsplxx.c    1554]
    W    *** ERROR => Raise Last error:[40 from: w3xxsemg.cpp:2107] [itsplxx.c    1228]
    W    *** ERROR => RaiseError(sapdext) ITS_P:40 [w3xxsemg.cpp 2107]
    M  ***LOG R68=> ThIRollBack, roll back () [thxxhead.c   13155]
    W
    W Fri May 11 12:35:38 2007
    W      *** WARNING => diag: SemgSyncTransaction: Resync required [w3xxsemg.cpp 3131]
    A
    A Fri May 11 12:36:03 2007
    A  generated report SAPLBBP_BD_DRIVER_46A                    with fingerprint 75C5284EB681FCEA7CD5A56163D98C60  625063
    Can anyone please help.
    Thanks and Regards,
    Sailesh K

    Hi Edgar,
    I have republished all the services. Still we are facing the problem. Actully this is a standard bsp delivered by sap and we have not done any changes to it.
    Can you suggest me, why this is happening..
    Thanks and Regards,
    Sailesh K

  • Problem with alv subtotals

    i have problem with subtotals display in AVL
    actually my code is
    FORM fill_field_catalog_table USING  f d  t s I.
      DATA t_fld TYPE slis_fieldcat_alv.
      STATICS pos LIKE sy-index VALUE 0.
      pos = pos + 1.
      CLEAR t_fld.
      MOVE 1 TO   t_fld-row_pos.
      MOVE pos TO t_fld-col_pos.
      MOVE f TO   t_fld-fieldname.
      MOVE d TO   t_fld-seltext_m.
      MOVE t TO   t_fld-tabname.
      MOVE s TO   t_fld-do_sum.
      MOVE I TO   t_fld-NO_OUT.
      if not t_fld-NO_OUT is initial.      "based on a condition i am appendding the fieldcatlog
       APPEND t_fld TO it_fieldcat.
      endif.
    if i remove "if not t_fld-NO_OUT is initial."  this condition and append the fieldcat....
    subtotals is getting dispalyed.
    if i insert this code subtotals is not getting displayed...
    can any body help me out in this fashion...
    any input are required please fell free to contact me.
    madan

    Hi Madan,
    NO_OUT value range is 'SPACE' and 'X'
    check if u have gone wrong there
    SPACE is not same as INITIAL.
    Also go through the following piece of code..
    Execute it, u will understand it. At places comments will help u to understand better.
    *& Report  ZRAJ_SUBTOTAL_ALV
    REPORT  ZRAJ_SUBTOTAL_ALV.
    TYPE-POOLS: SLIS.
    DATA: G_REPID LIKE SY-REPID,
          GT_SORT TYPE SLIS_T_SORTINFO_ALV,
          GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
          GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
          FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
          COL_POS TYPE I.
    DATA: BEGIN OF ITAB,
      FIELD1(5) TYPE C,
      FIELD2(5) TYPE C,
      FIELD3(5) TYPE P DECIMALS 2,
          END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
            INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
            INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    INITIALIZATION.
      G_REPID = SY-REPID.
    START-OF-SELECTION.
    * TEST DATA
      MOVE 'TEST1' TO ITAB1-FIELD1.
      MOVE 'TEST1' TO ITAB1-FIELD2.
      MOVE '10.00' TO ITAB1-FIELD3.
      APPEND ITAB1.
      MOVE 'TEST2' TO ITAB1-FIELD1.
      MOVE 'TEST2' TO ITAB1-FIELD2.
      MOVE '20.00' TO ITAB1-FIELD3.
      APPEND ITAB1.
      DO 50 TIMES.
        APPEND ITAB1.
      ENDDO.
    END-OF-SELECTION.
      PERFORM BUILD_CATALOG.
      PERFORM ALV_DISPLAY.
    *&      Form  build_catalog
    *       text
    FORM BUILD_CATALOG.
      DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
      CLEAR FIELDCAT_IN.
      FIELDCAT_LN-FIELDNAME = 'FIELD1'.
      FIELDCAT_LN-TABNAME = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT = 'X'. "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
      FIELDCAT_LN-KEY = ' '. "SUBTOTAL KEY
      FIELDCAT_LN-NO_OUT = ' '.
      FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
      APPEND FIELDCAT_LN TO GT_FIELDCAT.
      CLEAR FIELDCAT_IN.
      FIELDCAT_LN-FIELDNAME = 'FIELD2'.
      FIELDCAT_LN-TABNAME = 'ITAB1'.
      FIELDCAT_LN-NO_OUT = 'X'.
      FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
      APPEND FIELDCAT_LN TO GT_FIELDCAT.
      CLEAR FIELDCAT_IN.
      FIELDCAT_LN-FIELDNAME = 'FIELD3'.
      FIELDCAT_LN-TABNAME = 'ITAB1'.
      FIELDCAT_LN-NO_OUT = ' '.
      FIELDCAT_LN-DO_SUM = 'X'. "SUM UPON DISPLAY
      APPEND FIELDCAT_LN TO GT_FIELDCAT.
    * DATA SORTING AND SUBTOTAL
      DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
      CLEAR GS_SORT.
      GS_SORT-FIELDNAME = 'FIELD1'.
      GS_SORT-SPOS = 1.
      GS_SORT-UP = 'X'.
      GS_SORT-SUBTOT = 'X'. "This is an important statement
      APPEND GS_SORT TO GT_SORT.
      CLEAR GS_SORT.
      GS_SORT-FIELDNAME = 'FIELD2'.
      GS_SORT-SPOS = 2.
      GS_SORT-UP = 'X'.
    *GS_SORT-SUBTOT = 'X'. "Note: This should be commented
      APPEND GS_SORT TO GT_SORT.
    ENDFORM.                    "build_catalog
    *&      Form  alv_display
    *       text
    FORM ALV_DISPLAY.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
    * I_INTERFACE_CHECK = ' '
    * I_BYPASSING_BUFFER =
    * I_BUFFER_ACTIVE = ' '
      I_CALLBACK_PROGRAM = G_REPID
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
      I_STRUCTURE_NAME = 'ITAB1'
      IS_LAYOUT = GS_LAYOUT
      IT_FIELDCAT = GT_FIELDCAT[]
    * IT_EXCLUDING =
    * IT_SPECIAL_GROUPS =
      IT_SORT = GT_SORT[]
    * IT_FILTER =
    * IS_SEL_HIDE =
    * I_DEFAULT = 'X'
    * I_SAVE = ' '
    * IS_VARIANT =
    *  IT_EVENTS =
    * IT_EVENT_EXIT =
    *  IS_PRINT =
    * IS_REPREP_ID =
    * I_SCREEN_START_COLUMN = 0
    * I_SCREEN_START_LINE = 0
    * I_SCREEN_END_COLUMN = 0
    * I_SCREEN_END_LINE = 0
    * IMPORTING
    * E_EXIT_CAUSED_BY_CALLER =
    * ES_EXIT_CAUSED_BY_USER =
      TABLES
      T_OUTTAB = ITAB1
      EXCEPTIONS
      PROGRAM_ERROR = 1
      OTHERS = 2.
    ENDFORM.                    "alv_display
    hope this will solve your problem
    Regards Rajan.

  • Fonts problem with Smartforms...

    Hi Gurus,
    I have a problem with fonts in smartforms.
    My smartforms fonts are working fine in testing server but not working fine in development server. We work like after development we transport the object to stage (Testing) & then to production. I see the last modifications done were 1 st may 2008 but in development the last changes are shown 7th July 2008. So what I think is the object is not completely transported to testing server? What could be the other reason please let me know ASAP.
    Thanks,
    Hemal

    Hi Hema,
    May be the reason that your smartsyle is not activated .Jus check whether the smartstyle is activated and transported properly.
    Regards,
    Sravanthi

  • Problem with table line (footer)  in smartform

    Hey guys and gals !!!
             I have got this problem with the footer line in my smartform.I have checked the <i>no pagebreak</i> option for this line but still some contents are getting truncated instead of being shown totally on one page.
    The line has two cells.The first cell has 4 text nodes and the second cell has 1 text node.
    I am able to see just the text from the 1st text nodes while the others are getting truncated.
    Please suggest a solution.Your help will be greatly appreciated.
    Kind regards,
    Greenidge Gonsalves
    SAP Technical Consultant

    Hello,
    The problem is not clearly explained.
    However, I assume that you have a footer which is NOT a part of MAIN Window and a table has been defined and only the contents of the First TEXT node is getting printed while others are getting truncated.
    If my understanding is right,
    1. It is getting truncated because the text is more than the size of the window that has been defined.
    2. I suggest you, if the contents (size) of the footer varies from output to output, then better to shift the footer to the MAIN Window so that you will see the complete text.
    I hope this helps you.
    Regards, Murugesh AS

  • Smartform: Formatting Problem with QUAN-Field

    I want to print a smartform and get exception 1 (formatting error). With function SSF_READ_ERRORS I get an error table. There is on entry: errnumber = 020011, msgid = SSFCOMPOSER, msgty = E, msgno = 601, msgv1 = wa_outtab-menge.
    It seems to be a formatting problem with field WA_OUTTAB-MENGE. But in the structure this field is referenced correctly.
    Does anybody know a solution?

    I solve this kind of problem in my SmartForm.
    Try this:
    Go to "Global Definitions" Node, then "Current/Quant.Fields" tab and set these values:
    Field Name:      WA_OUTTAB-MENGE
    Reference Field: WA_OUTTAB-MEINS
    Data Type:       QUAN
    Best Regards,
    Eduardo Ribeiro.

  • Problem with layout smartform

    Hello all,
    I have a problem with the layout of smartform.
    My smartform is composed of a window (main).
    Within the main window, there is a loop where they are
    printed a series of tables which are associated with a frame.
    When the smartform printed on the next page, it is incapable to
    to manage the frames in their entirety.
    Thanks.

    Hi,
    my smartform is composed as follows:
    Page 1
      Main
         Loop
            Table 1
            Table 2
            Table n
    Each table consists of a frame.
    The problem is that when the smartform go to the next page, I can not handle frames.
    Part of frame is displayed on the first page, the other party to the second page.
    I tried to put the flag protection page on the tables, but the frame has not been successful.
    I hope someone help me.
    Regards,
    Maurizio.

Maybe you are looking for

  • DELETE when using a JOIN - How does this work?

    I need to perform a DELETE but must join 2 tables to get the correct rows. I only want to delete data from one table. Unfortunately, neither table has a primary key. Is there an easy way to do this and be certain of the results? (I've inherited this

  • IOS 8.1 Weather App/Notification Center

    I'm currently using iOS 8.1 on my iPhone 5c and since i have upgraded i have noticed that, randomly, the native weather app looses its detailed information. Sometimes i can view the details (sunrise, sunset, chance of rain, humidity, etc..) other tim

  • File Copy to Clipboard includes path - how to avoid

    I'm writing an Automator action that does several actions to whatever file in the Finder is selected (or right-clicked). The first action in the Automator action is Copy To Clipboard. This works, however, it copies the entire absolute path of the fil

  • Anyone familiar with Flash Presentations?

    Hi. I continue to have problems playing movieclips on certain slides of a Flash Presentation. If anyone has *reasonable* experience with Flash presentations please let me know. You might be familiar with the problem, or have suggestions. Thanks in ad

  • Rename PDF file upon submission

    Is there a way to append the senders name or an instance name to the PDF filename upon email submission? Right now, I haven't figured out how to flatten the form upon submission so I'm going to post the form online as it is... The recipient will rece