REGARDING LOGO

hi ,
     i want to replace the existing logo with new one for my customised script please let me know the procedure.
i stored the the logo on desktop and changed it to tiff file format whe i executed the rstxldmc.i t is telling uploading the file
and also there is a message
Uploading TIFF Files to SAPscript Texts                                        1                                                                               
Load File                                                                       
C:\Documents and Settings\sivak\Desktop\FRC New Logo_3.TIF                      
The file contains     23,016  bytes                                            
This is a TIFF file with INTEL byte order                                       
First IFD offset:                                   22,830                     
Reading IFD from offset     22,830  Number of Tags         15                  
ImageWidth:                                            516                     
ImageLength:                                           248                     
BitsPerSample levels:                                    3                     
BitsPerSample - level 1:                                 8                     
BitsPerSample - level 2:                                 8                     
BitsPerSample - level 3:                                 8                     
Compression:                                             5                     
Photometric Interpretation:                              2                     
Number of StripOffsets:                                 36                     
SamplesPerPixel:                                         3                     
RowsPerStrip:                                            7                     
Number of StripByteCounts:                              36                     
XResolution:                                            96  /          1       
YResolution:                                            96  /          1       
ResolutionUnit:                                          2                     
TIFF format error: No baseline TIFF 6.0 file                                    
please guide

Hi,
You can follow below procedure..
1. The logo should be of Bitmap Image.
2. Goto SE78-> Graphics-> Import.
Give filename as the location where your logo is present.
In save as:
Name - your desired name for the logo
Description - description of your logo
type- either Black& White or Color according to ur Requirement.
In print attributes
Check both Reserve high automatically and compression and press ENTER.
After that Transport this Bitmap image.
And in Form u can directly use the name of the Logo with which u have saved it.
Regards,
Vachana

Similar Messages

  • Regarding logo in alv

    Hi Everyone,
    I want to print a logo in the alv grid display.
    I have used the "reuse_alv_commentary_write" fm.
    The logo is also displaying at the right top corner.
    But I want to get it printed at the left top corner.
    please give me a solution. this is urgent
    With Thanks and Best Regards
    V.Ravishankar

    Hi Ravi,
           You can do that. Try like this,
       Concatenate the Logo name with ASCII values of the Spaces following it(LOGO NAME) and put it in an Field which you are going to pass to that function Module <b>reuse_alv_commentary_write[\b]. ASCII Value for Space can be entered as ALT+255. place around five to 10 spaces and then try it must work i hope.
    Thanks and Regards,
    Prashanth

  • Regarding Logo in Script

    Hi Abapers,
       Now i am doing a sapscript.In that script i uploaded one logo.That logo is appeared in spool request but not coming in actuval(paper) print out.Can you please give me the proper solution for this one.I uploaded that logo in tiff file formate.
    Thanks & Regards,
    Bujji.

    Hi,
    Check the window size that image is fitted or not.
    Check your include statement.
    If not do it again.create GRAPHIC window and include logo again.
    UP ur logo through SE78 into ur graphic window.
    make sure that ur image must be saved in .bmp or .tiff
    thats all.
    Thanks.
    If this helps u reward with points.

  • Urgent help needed pls regarding LOGO

    hello friends this is sudhakar . i really need help
    pls urgent
    i wrote scjp 5.0 certification in august and cleared succesfully
    i got all certificates but for logo i have to send the mail which cost me around 620/- rupess to them. but,
    can u any one tell how can v say to sun pupil tat i got all my cetificaties and i need the logo for my resume
    i heard we can do with online in www.sun.com only so can u help me out pls it is urgent.....

    http://www.sun.com/training/certification/faq/index.html#logos
    This part should be relevant to you -
    All customers that reside outside US and Canada: Once you have successfully passed one of our Java platform exams, a certification kit will be mailed to you that includes a Sun Logo Agreement. Please sign the agreement and mail it back to the address supplied. Depending from which country you mail the agreement, it may take up to month for you to receive the logo. We are currently working to provide an online logo for our International customers.
    This means you send the mail to them or wait for them to go online (which might mean months).

  • Question regarding logo inserted into form

    When I tested my form, the logo inserted at the top did not display.  How do I correct?

    Hi,
    Can you please send me a link to your form, either by email ([email protected]) or as a private forum message, so we can take a look?
    Thanks,
    Todd

  • How to put header and how to insert logo in this report

    HI
    I want  a header and logo in this report.how to do this in ALV report.Also why we have to put the          sy-repid.Plz tell me in this report where i have to do all this.Plz show me in detail.
    REPORT  ZREPORT_ALV .
    TYPE-POOLS : slis.
    tables:vbak,vbap.
    *DATA:  report_id LIKE sy-repid.
    DATA: I_LAYOUT TYPE SLIS_LAYOUT_ALV.
    data: ivariant(1) type c,
          itvariant like disvariant,
          w_variant like disvariant.
    initialization.
    *REPORT_ID = SY-REPID.
    PERFORM F1000_LAYOUT_INIT. "using I_LAYOUT.
    ivariant = 'A'.
    itvariant = w_variant.
    select-options:so_vbeln for vbap-vbeln.
    data:itab like vbak occurs 0 with header line.
    data:itab1 like vbap occurs 0 with header line.
    start-of-selection.
    select * from vbak into table itab where vbeln in so_vbeln.
    if not itab[] is initial.
    select * from vbap into table itab1
    for all entries in itab
    where vbeln = itab-vbeln.
    endif.
    data:ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat1  TYPE slis_t_fieldcat_alv.
    ****For alv display
    IF NOT itab1[] IS INITIAL.
       DEFINE ls_fieldcat.
       add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname    = &1.
        ls_fieldcat-outputlen    = &2.
        ls_fieldcat-seltext_l    = &3.
         ls_fieldcat-emphasize  = &4.
        append ls_fieldcat to lt_fieldcat1.
        clear ls_fieldcat.
      END-OF-DEFINITION.
        ls_fieldcat 'VBELN'           '10'     'Sales Order Number'.
       ls_fieldcat 'POSNR'           '6'        'SO Item'.
        ls_fieldcat 'MATNR'           '13'      'Material No'.
    m_fieldcat1 'NETWR'           '13'        'Amount'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = 'wf_report'
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
    I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
       IS_LAYOUT                         =  I_LAYOUT
       IT_FIELDCAT                       =  lt_fieldcat1
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =   ITVARIANT
      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
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          =  itab1
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
       I_SAVE              = ivariant
      CHANGING
       CS_VARIANT          = itvariant
    EXCEPTIONS
      WRONG_INPUT         = 1
      NOT_FOUND           = 2
      PROGRAM_ERROR       = 3
      OTHERS              = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM F1000_LAYOUT_INIT. "USING I_LAYOUT TYPE SLIS_LAYOUT_ALV.
    *CLEAR I_LAYOUT.
    i_layout-colwidth_optimize = 'X'.
    I_LAYOUT-key_hotspot = u2018Xu2019.
    I_LAYOUT-hotspot_fieldname =  MATNR.
    ENDFORM.

    hi,,,,
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = sy-repid >>>>>>>>>>>>> your report name.
    regarding logo and header,,,,
    first store the logo in T-code OAOR, then call that in your report.......
    data: heading        TYPE slis_t_listheader,
          wa_header      TYPE slis_listheader,
         events         TYPE slis_t_event.
    * To display TOP_OF_PAGE.
    FORM top_of_page.
      DATA : text(40),txtdt(40).
      CLEAR l_string.
      l_string = 'JCB India Limited'(hd2).
      wa_header-typ  = 'H'.
      wa_header-info = l_string.
      APPEND wa_header TO heading.                              " index 1.
      CLEAR l_string.
      WRITE :'Number of records:' TO text,dbcnt TO text+20 LEFT-JUSTIFIED.
      wa_header-typ  = 'S'.
      wa_header-info = text.
      APPEND wa_header TO heading.
      CLEAR l_string.
      wa_header-typ  = 'S'.
      WRITE : 'Report Run Date  :' TO txtdt,sy-datum TO txtdt+20 DD/MM/YY.
      WRITE sy-datum TO dat DD/MM/YY.
      wa_header-info = txtdt.
      APPEND wa_header TO heading.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          i_logo             = 'ENJOYSAP_LOGO'
          it_list_commentary = heading.
      CLEAR heading.
    ENDFORM.                    "top_of_page
    to execute top-of-page you have to create events.
    for ex......
    FORM create_event USING p_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = p_events.
      READ TABLE p_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE formname_top_of_page TO ls_event-form.
        APPEND ls_event TO p_events.
      ENDIF.
    ENDFORM.                    " create_event

  • Smart forms background logo

    Hi
    Please clarify me regarding smart forms background logo. I'm trying to migrate sap script into smart forms, for the background logo in smart form is it required to write ABAP code, please let me know?
    2) Is it possible for background pictures in script? Is there any document regarding logo/pictures in sap script or smartforms? is there standard forms like purchase order etc., in smart forms? Please correct me If i'm wrong...
    Regards
    sree reddy

    Hi
    Background LOGOS are possible only in smartforms not in Scripts
    see the logo printing for Scripts and Smartforms and the important smartforms and scripts with their programs
                   SAP SCRIPT
    To create a logo in SAP printouts just do the following
    1. Save a Logo using Imaging, Paint shop Pro or Corel Draw as Tiff file.
    2. Run  program RSTXLDMC and enter the following parameters
       Enter file name                     C:\COMPLOGO.TIF
       UOM                           CM
        Line width for text                132
        Text name                     ZHEX-MACRO-COMPLOGO
        Text ID                          ST
        Text language = E
        Number of Tiff gray levels (2,4,9) 2
    3.  Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally in the text element, mention
            /: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
    Please note that if object name is not indicated as 'ZHEX...’ the logo may not be printed!
    You will not be able to see the logo in a test print. The same will be printed in actual printout.
                          SMARTFORM
    1)     In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and   position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) Use  TCode SE78 to upload new pictures and logos.
    look at Thread Dynamic Graph in smartforms
    Refer the links also -
    Re: Dinamic Graph in smartforms
    How to get file perperties in Unix server
    SD
    SALES ORDER/ENQUIRY/QUOTATION
    Output type         : BA00
    ScriptForm Name     : RVORDER01
    Driver Program Name : RVADOR01
    smartform name
    DELIVERY NOTE
    Output type         : LD00
    ScriptForm Name     : RVDELNOTE
    Driver Program Name : RVADDN01
    smartform name      : LE_SHP_DELNOTE
    Smartform Driver Pgm: RLE_DELNOTE
    INVOICE
    Output type         : RD00
    ScriptForm Name     : RVINVOICE01
    Driver Program Name : RVADIN01
    smartform name      : LB_BIL_INVOICE
    Smartform Driver Pgm: RLB_INVOICE
    MM
    PUCHASE ORDER/RFQ/CONTRACT
    Output type         : NEU
    ScriptForm Name     : MEDRUCK
    Driver Program Name : SAPMF06P
    smartform name      : /SMB40/MMPO_L
    smartform driver program: /SMB40/FM06P
    GOODS RECEIPT
    Output type         : WE01
    ScriptForm Name     : WESCHEINVERS1
    smartform name      : /SMB40/MMGR1_A
    smartform driver program: /SMB40/M07DR
    GOODS ISSUE
    Output type         : WA01
    ScriptForm Name     : WA_SCHEINVERS1
    smartform name      : /SMB40/MMGI1_A
    smartform driver program: /SMB40/M07DR
    FI Forms
    Account Statement   : F140_ACC_STAT_01
    Cheque Printing     : F110_PRENUM_CHEK
    Balance Confirmation: F130_confirm_01
    Dunning Form:         F150_DUNN_01
    check the link below it provides steps to convert sap scripts to smartforms
    http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
    SMARTFORMS -Driver Program
    PO: /SMB40/FM06P
    SO: /SMB40/RVADOR01
    GR: /SMB40/M07DR
    Reward if useful
    regards
    Anji

  • How to export an ALV to Excel with its Header and Logo?

    Hi guys,
    I need to download to excel an ALV to excel. I already know how to download the ALV part, with its propertys, fonts, colors, etc. But I don't have a clue about how to download the header and the logo.
    Any suggestion?.
    Regards,
    Eric

    Hi Eric,
    Please check this link for sample code regarding LOGO to Excel
    How to Download ALV Output LOGO to Excel ?
    For Header to Excel check this link
    Export header of alv-oo into excel
    Hope this would help you.
    Good luck
    Narin

  • How to download logo and heading in excel sheet.

    Hi ,
    can any one tell me how i will download the logo in the excel sheet by using program.
    Regards,
    Priti shrivastava

    Hope you are comfortable with inserting header in to excel sheet.
    Regarding Logo see the below code snippet:-
    TABLES:
      sflight.
    * header data................................
    DATA :
      header1 LIKE gxxlt_p-text VALUE 'Suresh',
      header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    * Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA END   OF t_sflight.
    * Internal table for holding the horizontal key.
    DATA BEGIN OF  t_hkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_h.
    DATA END   OF t_hkey .
    * Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_v.
    DATA END   OF t_vkey .
    * Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
            INCLUDE STRUCTURE gxxlt_o.
    DATA END   OF t_online.
    * Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
            INCLUDE STRUCTURE gxxlt_p.
    DATA END   OF t_print.
    * Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
            INCLUDE STRUCTURE gxxlt_s.
    DATA END   OF t_sema.
    * Retreiving data from sflight.
    SELECT * FROM sflight
             INTO TABLE t_sflight.
    * Text which will be displayed online is declared here....
    t_online-line_no    = '1'.
    t_online-info_name  = 'Created by'.
    t_online-info_value = 'SURESH KUMAR PARVATHANENI'.
    APPEND t_online.
    * Text which will be printed out..........................
    t_print-hf     = 'H'.
    t_print-lcr    = 'L'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the header'.
    APPEND t_print.
    t_print-hf     = 'F'.
    t_print-lcr    = 'C'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the footer'.
    APPEND t_print.
    * Defining the vertical key columns.......
    t_vkey-col_no   = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no   = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no   = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no   = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    * Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    * populating the SEMA data..........................
    t_sema-col_no  = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
      EXPORTING
    *   DATA_ENDING_AT          = 54
    *   DATA_STARTING_AT        = 5
       filename                = 'TESTFILE'
       header_1                = header1
       header_2                = header2
       no_dialog               = 'X'
       no_start                = ' '
        n_att_cols              = 6
        n_hrz_keys              = 1
        n_vrt_keys              = 4
       sema_type               = 'X'
    *   SO_TITLE                = ' '
      TABLES
        data                    = t_sflight
        hkey                    = t_hkey
        online_text             = t_online
        print_text              = t_print
        sema                    = t_sema
        vkey                    = t_vkey
    EXCEPTIONS
       cancelled_by_user       = 1
       data_too_big            = 2
       dim_mismatch_data       = 3
       dim_mismatch_sema       = 4
       dim_mismatch_vkey       = 5
       error_in_hkey           = 6
       error_in_sema           = 7
       file_open_error         = 8
       file_write_error        = 9
       inv_data_range          = 10
       inv_winsys              = 11
       inv_xxl                 = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

  • Creating a vector from a jpeg logo

    Hi All,
    I have a project where I have a hand-drawn and scanned logo as a jpeg that I need to convert into something that I can put different backgrounds behind and also use like a watermark to put on photos that I have taken. Should I make it a vector? What would be the best thing to do? Any advice is greatly appreciated!

    That’s fairly bad regarding vectorization.
    And if one considers the old-time recommendations regarding logos with regard to scale- and reproduce-ability it seems far from ideal – but that naturally need not trump aesthetic considerations.
    I think I can make out a red, black, white and four different grays.
    Additionally there are small, thin elements.
    So recreating it in Illustrator would probably be a quite time-intensive task.
    If it’s not intended for print but only for watermarking I would recommend to start with the full resolution version and
    • use the green channel as a Selection
    • apply that as a Layer Mask on the Layer
    • edit the Layer Mask with Curves or Levels to make all relevant portions white and black respectively
    • cleanup (stray pixels)
    • view the result against black, white and intermediate backgrounds – very probably the edges will be fairly bad
    • use Filter > Other > Minimum as a Smart Filter with an inverted and slightly expanded Selection based on the Layer’s Mask
    • manually correct the remaining edge problems (by painting over them on a Clipping Masked Layer set to Blending Mode Darken)

  • SAP script

    this is my code..
    m converting script output to pdf and sending as attachment... my pdf conatains LOGO.. when i received the mail,text is coming properly but LOGO is not getting printed properly..
    pls suggest any solution to this...
    thanking u in advance...
    *& Report ZZGBTEST_PDF
    REPORT ZZGBTEST_PDF.
    TABLES: PA0105.
    DATA: LF_FM_NAME TYPE RS38L_FNAM.
    DATA: WA_CTRLOP TYPE SSFCTRLOP,
    WA_OUTOPT TYPE SSFCOMPOP,
    WA_STXH LIKE STXH.
    DATA: T_OTFDATA TYPE SSFCRESCL,
    T_PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE,
    T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.
    DATA : T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    W_FILESIZE TYPE I,
    W_BIN_FILESIZE TYPE I.
    *OBJECTS TO SEND MAIL.
    DATA : I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLIX OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    W_OBJHEAD TYPE SOLI_TAB,
    W_DOC_CHNG TYPE SODOCCHGI1,
    W_BUFFER TYPe STRING. "TO CONVERT FROM 132 TO 255.
    DATA : V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    SELECTION-SCREEN BEGIN OF BLOCK SCR WITH FRAME TITLE TEXT-900.
    SELECT-OPTIONS: MAILTO FOR PA0105-USRID_LONG NO INTERVALS.
    PARAMETERS : WDATE LIKE SY-DATUM DEFAULT SY-DATUM,
    TESTRUN AS CHECKBOX .
    SELECTION-SCREEN END OF BLOCK SCR.
    DATA: DATAB TYPE TABLE OF ITCOO WITH HEADER LINE,
    PDFTAB TYPE TABLE OF TLINE WITH HEADER LINE,
    BINFILESIZE TYPE I.
    DATA: FNAME TYPE STRING,
    FPATH TYPE STRING,
    FULL_PATH TYPE STRING.
    DATA: STRUCT TYPE ITCPO.
    START-OF-SELECTION.
    WA_CTRLOP-GETOTF = 'X'.
    WA_CTRLOP-NO_DIALOG = 'X'.
    WA_OUTOPT-TDNOPREV = 'X'.
    STRUCT-TDDEST = 'LP01'.
    STRUCT-TDNOPREV = 'X'.
    STRUCT-TDGETOTF = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    DEVICE = 'PRINTER'
    DIALOG = SPACE
    FORM = 'ZGBTEST'
    LANGUAGE = SY-LANGU
    OPTIONS = STRUCT
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    CODEPAGE = 11
    OTHERS = 12
    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 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'MAIN'
    WINDOW = 'MAIN'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    CODEPAGE = 9
    OTHERS = 10
    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 'CLOSE_FORM'
    TABLES
    OTFDATA = DATAB[]
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SEND_ERROR = 3
    SPOOL_ERROR = 4
    CODEPAGE = 5
    OTHERS = 6
    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 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    IMPORTING
    BIN_FILESIZE = BINFILESIZE
    TABLES
    OTF = DATAB[]
    LINES = T_PDF_TAB[]
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 4
    OTHERS = 5
    IF SY-SUBRC EQ 0.
    MESSAGE 'SCRIPT SUCCESSFULLY CONVERT IN TO PDF' TYPE 'I'.
    ENDIF.
    LOOP AT T_PDF_TAB.
    REPLACING SPACE BY ~
    TRANSLATE T_PDF_TAB USING ' ~'.
    CONCATENATE W_BUFFER T_PDF_TAB INTO W_BUFFER.
    ENDLOOP.
    REPLACING ~ BY SPACE
    TRANSLATE W_BUFFER USING '~ '.
    DO.
    I_RECORD = W_BUFFER.
    APPENDING 255 CHARACTERS AS A RECORD
    APPEND I_RECORD.
    SHIFT W_BUFFER LEFT BY 255 PLACES.
    IF W_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    REFRESH : I_RECLIST, I_OBJTXT, I_OBJBIN, I_OBJPACK.
    CLEAR W_OBJHEAD.
    OBJECT WITH PDF.
    I_OBJBIN[] = I_RECORD[].
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    MAIL TEXT TO BE FILLED UP HERE
    SELECT SINGLE TDID TDSPRAS TDNAME TDOBJECT FROM STXH INTO
    CORRESPONDING FIELDS OF WA_STXH
    WHERE TDOBJECT ='TEXT' AND TDNAME = 'ZGBTEST'.
    IF SY-SUBRC = 0.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = WA_STXH-TDID
    LANGUAGE = WA_STXH-TDSPRAS
    NAME = WA_STXH-TDNAME
    OBJECT = WA_STXH-TDOBJECT
    TABLES
    LINES = T_LINE.
    LOOP AT T_LINE.
    I_OBJTXT = T_LINE-TDLINE.
    APPEND I_OBJTXT.
    ENDLOOP.
    ENDIF.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    DOCUMENT INFORMATION.
    W_DOC_CHNG-OBJ_NAME = 'FORM'.
    W_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    W_DOC_CHNG-SENSITIVTY = 'F'. "FUNCTIONAL OBJECT
    W_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    PACK TO MAIN BODY AS RAW.
    OBJ. TO BE TRANSPORTED NOT IN BINARY FORM
    CLEAR I_OBJPACK-TRANSF_BIN.
    START LINE OF OBJECT HEADER IN TRANSPORT PACKET
    I_OBJPACK-HEAD_START = 1.
    NUMBER OF LINES OF AN OBJECT HEADER IN OBJECT PACKET
    I_OBJPACK-HEAD_NUM = 0.
    START LINE OF OBJECT CONTENTS IN AN OBJECT PACKET
    I_OBJPACK-BODY_START = 1.
    NUMBER OF LINES OF THE OBJECT CONTENTS IN AN OBJECT PACKET
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    CODE FOR DOCUMENT CLASS
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    PACKING AS PDF.
    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 = 'FORM'.
    I_OBJPACK-OBJ_DESCR = 'temp.PDF'.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255.
    APPEND I_OBJPACK.
    DOCUMENT INFORMATION.
    CLEAR I_RECLIST.
    CLEAR I_RECLIST[].
    E-MAIL RECEIVERS.
    LOOP AT MAILTO.
    I_RECLIST-RECEIVER = MAILTO-LOW.
    I_RECLIST-EXPRESS = 'X'.
    I_RECLIST-REC_TYPE = 'U'. "INTERNET ADDRESS
    APPEND I_RECLIST.
    ENDLOOP.
    SENDING MAIL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = W_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = W_OBJHEAD
    CONTENTS_HEX = 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 :/ 'MAIL SENT SUCCESSFULLY...'.
    ENDIF.

    Hi Sagar,
    The piece of code pointed out is required to Transfer the 132-long strings to 255-long strings.
    So please uncomment that code. It is required.
    Regarding logo not displayed properly in PDF, please pass the spool number to program RSTXPDF4 & check whether it is coming properly.
    Also check whether the logo is displayed in spool properly through transaction SP01.
    Best regards,
    Prashant

  • How to get header in the ALV report

    Hi
    I want to print header in the ALV report.But i am not getting that.Plz see my program it is getting error and also not printing header.If there is any error means plz give me the solution.In this program there is an error.
    REPORT  ZREPORT_ALV .
    TYPE-POOLS : slis.
    tables:vbak,vbap.
    DATA:  report_id LIKE sy-repid.
    DATA: I_LAYOUT TYPE SLIS_LAYOUT_ALV.
    data: heading        TYPE slis_t_listheader,
          wa_header      TYPE slis_listheader,
         events         TYPE slis_t_event.
    data: l_string type c.
    data: ivariant(1) type c,
          itvariant like disvariant,
          w_variant like disvariant.
    initialization.
    REPORT_ID = SY-REPID.
    PERFORM pgm. "F1000_LAYOUT_INIT. "using I_LAYOUT.
    ivariant = 'A'.
    *PERFORM init.
    itvariant = w_variant.
    select-options:so_vbeln for vbap-vbeln.
    data:itab like vbak occurs 0 with header line.
    data:itab1 like vbap occurs 0 with header line.
    start-of-selection.
    select * from vbak into table itab where vbeln in so_vbeln.
    if not itab[] is initial.
    select * from vbap into table itab1
    for all entries in itab
    where vbeln = itab-vbeln.
    endif.
    data:ls_fieldcat TYPE slis_fieldcat_alv,
    lt_fieldcat1  TYPE slis_t_fieldcat_alv.
    ****For alv display
    IF NOT itab1[] IS INITIAL.
       DEFINE ls_fieldcat.
       add 1 to ls_fieldcat-col_pos.
        ls_fieldcat-fieldname    = &1.
        ls_fieldcat-outputlen    = &2.
        ls_fieldcat-seltext_l    = &3.
         ls_fieldcat-emphasize  = &4.
        append ls_fieldcat to lt_fieldcat1.
        clear ls_fieldcat.
      END-OF-DEFINITION.
        ls_fieldcat 'VBELN'           '10'     'Sales Order Number'.
       ls_fieldcat 'POSNR'           '6'        'SO Item'.
        ls_fieldcat 'MATNR'           '13'      'Material No'.
    m_fieldcat1 'NETWR'           '13'        'Amount'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = sy-repid
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
    I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
       IS_LAYOUT                         =  I_LAYOUT
       IT_FIELDCAT                       =  lt_fieldcat1
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =   ITVARIANT
      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
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          =  itab1
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endif.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
       I_SAVE              = ivariant
      CHANGING
       CS_VARIANT          = itvariant
    EXCEPTIONS
      WRONG_INPUT         = 1
      NOT_FOUND           = 2
      PROGRAM_ERROR       = 3
      OTHERS              = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM  pgm. "F1000_LAYOUT_INIT. "USING I_LAYOUT TYPE SLIS_LAYOUT_ALV.
    CLEAR I_LAYOUT.
    i_layout-colwidth_optimize = 'X'.
    I_LAYOUT-key_hotspot = u2018Xu2019.
    I_LAYOUT-hotspot_fieldname =  MATNR.
    ENDFORM.
    *regarding logo and header,,,,
    *first store the logo in T-code OAOR, then call that in your report.....
    *data: heading        TYPE slis_t_listheader,
         wa_header      TYPE slis_listheader,
        events         TYPE slis_t_event.
    To display TOP_OF_PAGE.
    FORM top_of_page.
      DATA : text(40),txtdt(40).
      CLEAR l_string.
      l_string = 'JCB India Limited'(hd2).
      wa_header-typ  = 'H'.
      wa_header-info = l_string.
      APPEND wa_header TO heading.                              " index 1.
      CLEAR l_string.
      WRITE :'Number of records:' TO text,'dbcnt' TO text+20 LEFT-JUSTIFIED.
      wa_header-typ  = 'S'.
      wa_header-info = text.
      APPEND wa_header TO heading.
    CLEAR l_string.
    wa_header-typ  = 'S'.
    WRITE : 'Report Run Date  :' TO txtdt,sy-datum TO txtdt+20 DD/MM/YY.
    WRITE sy-datum TO dat DD/MM/YY.
    wa_header-info = txtdt.
    APPEND wa_header TO heading.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
         i_logo             = 'ENJOYSAP_LOGO'
          it_list_commentary = heading.
      CLEAR heading.
    ENDFORM.                    "top_of_page
    *to execute top-of-page you have to create events.
    *for ex......
    FORM create_event USING p_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = p_events.
      READ TABLE p_events WITH KEY name = slis_ev_top_of_page
                             INTO ls_event.
      IF sy-subrc = 0.
        MOVE formname_top_of_page TO ls_event-form.
        APPEND ls_event TO p_events.
      ENDIF.
    ENDFORM.                    " create_event

    Hi,
       Find below code for your question, you may get some idea,,
    *& Report  ZACTIONGRIDPRACTICE
    REPORT  ZACTIONGRIDPRACTICE.
    *data declarations.....
    TYPE-POOLS SLIS.
    TABLES : T529T ,PA0000.
    data : gd_repid type  sy-repid.
    DATA : LD_COLOR(10) TYPE N.
    DATA : GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV.
    Data:  is_fieldcat TYPE slis_fieldcat_alv.
    DATA : GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA : GD_DATUM TYPE DATUM.
    DATA : BEGIN OF WA_TABLE,
                    MASSN TYPE T529T-MASSN,
                    MNTXT TYPE T529T-MNTXT,
                    userg type userg,
                    TOTAL TYPE I ,
                    begda type begda,
                    endda type endda,
                    april type i,
                    SLNO TYPE I,
                      LINE_COLOR(4) TYPE C,
                    END OF WA_TABLE,
                    IT_TABLE LIKE TABLE OF WA_TABLE.
    data : april type i.
    DATA : TEMP TYPE C.
    data :    LT_PA0000 TYPE TABLE OF PA0000,
              LT_PA0000_T typE TABLE OF PA0000 with header line.
    DATA : IT_FCAT TYPE SLIS_T_FIELDCAT_ALV,
            WA_FCAT LIKE LINE OF IT_FCAT.
    DATA : IT_EVENTS TYPE SLIS_T_EVENT,
            WA_EVENTS LIKE LINE OF IT_EVENTS.
            wa_events-form = 'HEADER'.
    WA_EVENTS-NAME = 'TOP_OF_PAGE'.
    APPEND WA_EVENTS TO IT_EVENTS.
    PERFORM HEADER.
    DATA : SLNO TYPE I.
    DATA : lv_output      TYPE  dats.
    CALL FUNCTION 'ZHR_RE_BE_CALC_START_DATE'
      EXPORTING
        id_daberi   = sy-datum
      IMPORTING
        ed_date_cor = lv_output.
    select-options...
    selection-screen BEGIN OF BLOCK B WITH FRAME TITLE TEXT-003.
    select-options : s_date for sy-datum OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B.
    lv_output = sy-datum - 27.
    INITIALIZATION.
    S_DATE-LOW = lv_output.
    S_DATE-HIGH = SY-DATUM.
    S_DATE-SIGN = 'I'.
    S_DATE-OPTION = 'BT'.
    APPEND s_date.
    *AT SELECTION-SCREEN ON S_DATE.
    *SELECT MASSN INTO TABLE IT_TABLE FROM PA0000 WHERE BEGDA IN S_DATE.
    *SELECT STATEMENTS....
    start-of-selection.
      SELECT   t529t~MASSN t529t~MNTXT  INTO TABLE IT_table  FROM T529T where SPRSL EQ 'E' and t529t~massn in ('10','13','16','20','28','30','45','01','03') .
    DATUM IN S_DATE.
    PERFORM LAYOUT.
      loop at it_table into wa_table.
    LD_COLOR = 2.
      LD_COLOR = LD_COLOR + 1.
    if LD_COLOR = 8.
    LD_COLOR = 1.
    endif.
    concatenate 'C' '1' '11'  into wa_table-LINE_COLOR . "='C410'.
    modify it_table from wa_table.
    endloop.
      LOOP AT IT_TABLE INTO WA_TABLE." = 'C410'.
    select massn from pa0000 into table lt_pa0000 where begda in s_date and  massn = wa_table-massn.
    *write : / sy-dbcnt.  gt s_date-low and endda lt s_date-high
    *DESCRIBE TABLE LT_PA0000_t LINES LV_LINES.
    move sy-dbcnt to wa_table-total.
    READ TABLE lt_pa0000 INTO LT_PA0000_T WITH KEY MASSN = wa_TABLE-MASSN BINARY SEARCH.
    DESCRIBE TABLE LT_PA0000_t LINES LV_LINES.
    MOVE  LV_LINES to  wa_TABLE-TOTAL.
      MODIFY IT_TABLE FROM WA_TABLE.
    MOVE SY-TABIX TO WA_TABLE-SLNO.
      MODIFY IT_TABLE FROM WA_TABLE.
    REFRESH : LT_PA0000_t.
    CLEAR : LV_LINES.
      ENDLOOP.
    loop at it_table into wa_table.
    SELECT MASSN FROM PA0000 INTO TABLE lt_pa0000 where begda between '01.02.2008' and '20.02.2008'.
    MOVE SY-DBCNT TO   WA_TABLE-APRIL.
    MODIFY IT_TABLE FROM WA_TABLE.
    *endloop.
    *PERFORM STATEMENTS...
    PERFORM FCAT USING '1' 'MASSN' 'ACTIONCODE'.
    PERFORM FCAT USING '2' 'MNTXT' 'ACTION TYPE'.
    PERFORM fcat USING '3' 'TOTAL' 'TOTAL'.
    DEFINE m_fieldcat.
        is_fieldcat-fieldname = &1.
        is_fieldcat-hotspot = &2.
        is_fieldcat-seltext_m = &3.
        is_fieldcat-col_pos = &4.
        is_fieldcat-outputlen = &5.
        is_fieldcat-hotspot = &6.
        append is_fieldcat to it_fcat.
        clear is_fieldcat.
      END-OF-DEFINITION.
       m_fieldcat 'SLNO' '' Text-012 '1' '17'  ''.
      m_fieldcat 'MASSN' '' Text-010 '2' '40'  ''.
      m_fieldcat 'MNTXT'  ''  Text-009  '3' '50' ''  .
      m_fieldcat 'TOTAL'  ''  Text-011  '4' '10' 'X'.
      m_fieldcat 'april'  ''  Text-013  '5' '10' 'X'.
    *FOR DISPLAYING THE RECORDS...
    gd_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = gd_repid
      IS_LAYOUT = GD_LAYOUT
      I_CALLBACK_USER_COMMAND           = ' '
       I_GRID_TITLE                      = 'REPORT'
       IS_LAYOUT                         = gd_LAYOUT
       IT_FIELDCAT                       = IT_FCAT
       I_SAVE                            = 'X'
       IT_EVENTS                         = IT_EVENTS
      TABLES
        T_OUTTAB                          = IT_TABLE.
    **&      Form  FCAT
    *FORM FCAT  USING   FP_COL_POS
                     FP_FIELDNAME
                     FP_SELTEXT_M.
    WA_FCAT-COL_POS = FP_COL_POS.
    WA_FCAT-FIELDNAME = FP_FIELDNAME.
    wa_fcat-seltext_m = fp_seltext_m.
    APPEND WA_FCAT TO IT_FCAT.
    ENDFORM.
    *&      Form  HEADER
          text
    -->  p1        text
    <--  p2        text
    form header .
      DATA : IT_HEADER TYPE SLIS_T_LISTHEADER,
            WA_HEADER LIKE LINE OF it_header.
      WA_HEADER-TYP = 'H'.
      WA_HEADER-INFO = 'ACTION TYPE REPORT'.
      APPEND WA_HEADER TO IT_HEADER.
      wa_header-typ  = 'S'.
      wa_header-key = Text-022.
      CONCATENATE  s_date-low+6(2) '.'
                   s_date-low+4(2) '.'
                   s_date-low(4)
                   temp
                   '.     TO      .'
                   s_date-high+6(2) '.'
                   s_date-high+4(2) '.'
                   s_date-high(4)
                   INTO wa_header-info SEPARATED BY space.
      APPEND wa_header TO it_header.
      CLEAR wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          IT_LIST_COMMENTARY = IT_HEADER
          I_LOGO             = 'HRRU_51050061'.
    *select single bstkd into CORRESPONDING FIELDS OF gt_vbkd
    *from vbkd where vbeln = rt_outtab-vgbel
    *and posnr = '000000'.
    *rt_outtab-bstkd = gt_vbkd-bstkd.
    ENDFORM.                    " HEADER
    *&      Form  LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM LAYOUT .
    GD_LAYOUT-NO_INPUT = ''.
    gd_layout-colwidth_optimize = ''.
    gd_layout-totals_text = 'TOTALS'(201).
    gd_layout-info_fieldname =      'LINE_COLOR'.
    ENDFORM.                    " LAYOUT

  • How to export an alv report directly to crystal report?

    hi gurus,
    we are looking for the possible ways of integrating alv and crystal report.
    we want to keep the abap reports , because of the logical database and the selection screen, and
    use alv to present the result data, if users want to tailor the layout we want to switch to crystal report directly from sapgui.
    is that possible ?
    thanks and best regards.
    zj

    Hi Eric,
    Please check this link for sample code regarding LOGO to Excel
    How to Download ALV Output LOGO to Excel ?
    For Header to Excel check this link
    Export header of alv-oo into excel
    Hope this would help you.
    Good luck
    Narin

  • How can I do this flare in Illustrator?

    Need to recreate a logo which I think it was originally done in Photoshop, but I prefer the sharp edged vectors of Illustrator for the main part of the logo.
    Please ignore all the greeny blue pink rubbish. What I want to recreate is the white flare with several long white rays shooting out.
    I have tried using the flare tool in Illustrator (for the first time in my life) without much success, especially unsuccessful with removing the colour. Searching for flare tool in Illustrator forum did not bring up any results.
    Thanks for any help.

    So I should do this in Photoshop, or will the rastered flare still cause problems? Should I tell the client that the raster effect will not work when printed. At the moment, its just for business cards and for use on the Internet.
    James,
    You call this a "logo." The rampant overuse of this word (especially by beginners and amateurs--and no, I'm not saying you are either) is one of my pet peeves.
    A proper logo is the cornerstone identity graphic of a commercial entity or product. It serves as the pristine "master" for all occurrances of the entity's mark. It is therefore built with exacting care, accuracy, and technical efficiency. It is also built to technically accommodate as many repro environments as possible to ensure consistent integrity to the design and reproduction quality. Its use is strictly controlled by its owner.
    That's what separates proper logo design from amateurish, sloppily-built "wannabe" graphics and makes it recognizable among the deafening garbage-filled roar of the marketplace. A proper logo is key to a business's success.
    That's why proper logo designs (among other things) consist entirely of fully-optimized vector line art whenever possible. They contain no application-specific "live tricks" that create substandard repro problems, or which cause the client delays and anguish in the across-the-board media and reproduction environments in which they are surely to be needed. They usually also avoid any use of halftone-dependent effects like fuzzy shadows and contone grads. A logo needs to be built to repro standards for everything from newsprint ads to glossy brochures; from web page to television ads, from vehicle wraps to polo-shirt embroidery; from storefront signage to engraving on a writing pen--and much more.
    So that said...
    No, I would not do this in Photoshop, unless there something in the design that just must be done as a raster image. And as explained above, that requirement is to be avoided whenever possible even at the sacrifice of the designer's infactuation with a raster effect. If a designer doesn't know how to attractively suggest the complex with elegant simplicity--well, then the designer is not a logo designer; that's what logo design is all about.
    For me to recommend and demonstrate exactly how I would build the identity mark you have described would require answers to questions which, frankly, you should have been considering long before the day before deadline, such as:
    How do you intend that specular highlight graphic to interact with whatever backgrounds it may need to occur on? For example, you mention only print (business cards) and monitor (internet). That doesn't tell me much. Will the business cards just show the graphic and text on the white stock? If so, what's supposed to happen with those portions of the white flare that spill over onto the white background?  That design is going to be pretty limiting if it always requires a non-white background, unless you make the non-white background part of the graphic itself.
    Not having any details, I would just offer these general guidelines regarding logo design:
    Forget any pet effects. A highlight star itself is not going to impress anyone. There's nothing distinctive about it, or any other such effect, no matter how you decide to render it. Whatever you come up with thinking that way will not be anything the jaded viewing audience hasn't already seen a million times before.
    Think only about the message. Boil it down to its essence. Then come up with a distinctive and attractive way to convey that essence with as much elegant simplicity as you can.
    Force yourself to be ruthlessly objective with yourself. No matter how much you "like" something toss it out if it is superfluous to the message. Ask yourself: "Why am I having to resort to a flare sparkle [or drop shadow, or grad, or...) in this attempt to come up with what should be a distinctive identity mark?"
    Think of all the household-word logos you can, which you would instantly recognize anywhere. Then ask yourself: "How many of these employ any gratuitous, overused effect (sparkle, drop shadow, etc.) as an element of the logo proper? Dell? Pepsi? Adobe? Toyota? AutoZone? Prudential?
    I know; I know...You're deadline is tomorrow and you just want to know how to draw a sparkle. Answer the questions regarding background treatment. Also ask yourself: "How can I suggest the essence of "sparkle" or "reflection flare" with hard-edged line-art shapes?"
    JET

  • Need advice on a proof printer

    Hello. So glad I found this site!
    I'm currently a print graphic designer and starting a home based business integrating my print design knowledge with newly acquired web design skills to offer a complete package.
    I am working on an HP computer, as I cannot afford the Mac I want now. I have all of the Adobe software for PC already, but need advice for a printer.
    The machines I work on now are like $18k - 25k color lasers, and clearly that is not in my budget. I'm a little lost as to what to look for in a printer that can handle color proofs of my artwork. I create a lot of raster images in PS, but logo design is one of my focuses, so vector output is essential. I almost always create outlines of fonts for the final press ready file, so I'm not so worried about fonts, but color matching is important.
    I've been reading about Postscript and PCL, but am still very confused.  I'm also a little confused as to what a rip does or if I need one.  We use one at my shop, and I know how to use it, but it lives on the server and was explained that it was only necessary for networking the printers.
    I am planning to outsource all of my final printing, but I need a printer for proofing. I've been looking at inkjets for affordability reasons, but now I'm not sure if I need a color laser.
    Help!!

    Dear VectorGirly,  I currently have an OKI Postscript c9800 printer. I use postscript printers because I calibrate and use color profiles to get the closest colour match to the outsourced commercial print that I can. I know this is more than you budgeted for, but it really depends what you end up focusing on. (ie web or print). I focus more on print, hence my printer has to proof postscript correctly for me. I am PC based but my files print to both PC and Mac platforms.
    Regarding logos and colors ... firstly, my monitor is calibrated with a Pantone Huey. I use matching color profiles in all my design programs: Indesign, Illustrator, Photoshop. My print PDFs include the color profiles. When I email or post proofs of logos or corporate stationery to clients I make sure they understand that colors will look different on various monitors because they are not calibrated for print and are RGB or color prism based rather than CMYK for print. Even if you choose a Pantone color, unless everything is calibrated and with color profiles, it's unlikely that you will get the same color on your screen, let alone on the client's screen. And if the client is wanting a color that looks good on their screen, it's even harder. I always recommend they look at the proof colours on various screens including friends so they can understand how it changes according to monitors.
    Regarding PCL and Postscript: When I purchased my OKI (and my former Fuji Xerox pscript), I sent an existing print PDF (that had gone to commercial print previously) to the head office and asked them to do printouts of all the printers I was interested in. All the printers based as PCL were very inaccurate color. The two with postscript took my PDF and printed correctly and were very close to the final printed output. As I am pedantic on colour (colour in Australian spelling), I had to choose the high end postcript laser. Having said that, I am also very interested in the Fuji Xerox Phaser 8500 which is postscript and solid ink (great for the environment and people with allergies and low running costs - much better than laser) - but I need the A3 and banner printing option and they haven't made one for that size yet. I am hoping the new release may offer a bigger size paper. I have a very high allergy level and have to have the window open and a mask on when changing toners and printing, hence my interest in the solid ink for the future.
    I always download my fonts through the print PDF to the printer - I never use printer inbuilt fonts. This is so I know that WYSIWYG (what you see is what you get) when I print commercially as they also download/use the embedded PDF fonts.
    Also, somewhere down the line you may find yourself forced to choose between focusing on web and print.
    I recommend you choose what you love best.

Maybe you are looking for

  • How do I use my new ipod on itunes instead of my mini.

    I just bought a 30gb ipod video today. I had an mini. How do I switch which ipod im using on itunes? Thanks emachines   Windows XP   4gb ipod mini, 30gb ipod video itunes 6.0

  • Where Can I Get an Older Version of iTunes?

    iTunes 10.6.1 has frozen and stopped functioning on a perfectly-maintained Windows XP machine. Where can I download the two versions previous to 10.6.1? Thank you.

  • Password for Airport Wireless Network

    I have a wireless connection with a third party router (dlink). I also have an AE that I use solely to run itunes through my stereo system. I DO NOT use the AE to connect to the internet. I'm not concerned about a password for the AE, but I want to p

  • Problems with ViewSonic LCD displays?

    I have a ViewSonic VP2030b 21.5" LCD monitor hooked up to my G4 DA. The monitor works OK with these two exceptions: 1. "About This Mac" info on Displays consistently says "No display detected". 2. I frequently have to restart the G4 several times to

  • Special Ledger Posting

    Dear All, Is there a report / way/ means to find out if a document has been posted to a special ledger or not. Regards, Asokan