Output required in following format " Sold-to: Address: GRIMES, IA 50111"

Hi
Sold-to: Address: GRIMES, IA 50111
need help how to join 3 field information in one row
city, region and pin.
i am using
Perform add_to_extract Using label_sold_address2 it_data-ort01.
I need to add the following fields to sold_address2 - " it_data-regio it_data-pstlz.
FORM add_to_extract  USING    p_label
                                                p_value.
  CLEAR it_extract.
  it_extract-label = p_label.
  it_extract-value = p_value. "
  APPEND it_extract.
  CLEAR it_extract.
ENDFORM.          
can someone suggest a way to add it.

use
data : v_address(40).
concatenate 'Sold-to: Address:' it_data-city ',' it_data-regio it_data-pstlz into v_address.
write v_address.
Thanks
Mahesh

Similar Messages

  • Output Required in this format

    Hi,
    with the below data
    WITH t1 AS
         (SELECT 100 ID, 'Employee' emptype, 'Sun' NAME
            FROM DUAL
          UNION
          SELECT 100 ID, 'Employee' emptype, 'Gun'
            FROM DUAL
          UNION
          SELECT 100 ID, 'MANAGER' emptype, 'RUN'
            FROM DUAL
          UNION
          SELECT 100 ID, 'MANAGER' emptype, 'FUN'
            FROM DUAL)
    SELECT   ID, emptype,LISTAGG(NAME,',') WITHIN GROUP (ORDER BY EMPTYPE) NAMES
    FROM     t1
    GROUP BY ID, emptypeso My output will be
    ID EMPTYPE NAMES
    100 MANAGER FUN,RUN
    100 EMPLOYEE Gun,SunBut I want output as
    100 EMPLOYEE:Gun,Sun||MANAGER:FUN,RUNCan any one please help me in proceeding further,
    Many Thanks,

    WITH t1 AS
         (SELECT 100 ID, 'Employee' emptype, 'Sun' NAME
            FROM DUAL
          UNION
          SELECT 100 ID, 'Employee' emptype, 'Gun'
            FROM DUAL
          UNION
          SELECT 100 ID, 'MANAGER' emptype, 'RUN'
            FROM DUAL
          UNION
          SELECT 100 ID, 'MANAGER' emptype, 'FUN'
            FROM DUAL)
    select id, listagg(emptype||':'||names,'||') within group (order by id) names from
    SELECT   ID, emptype,LISTAGG(NAME,',') WITHIN GROUP (ORDER BY EMPTYPE) NAMES
    FROM     t1
    GROUP BY ID, emptype
    group by id
    SQL> /
            ID NAMES
           100 Employee:Gun,Sun||MANAGER:FUN,RUN

  • PDF output not retaining same formatting as done in RTF

    Hi All,
    I have created a RTF template and need to show the output in PDF. Now in the RTF, as per the requirements, I am not enclosing my form fields in any table or inside any tabular cells. So I have to display the output something like this
    Name : Peter
    Age : 30 years
    Address : New Jersy
    Dept : Accounts
    but after placing the form fields in their right places, when I see the output in PDF, the formatting is lost and values are NOT displayed at their desired places as set in the RTF template. So I get the PDF output something like this
    Name : Peter
    Age:
    30 years
    Address :
    New Jersy
    Dept :
    Accounts
    Is there a method to fix the form fields so that they don't move and i get the output in the same way as I have designed in the RTF template.
    Any help on this would be much appreciated.
    Thanks,
    Ronny

    Ronny,
    There is the concept of CONTEXT COMMANDS:
    http://docs.oracle.com/cd/E12844_01/doc/bip.1013/e12187/T421739T481157.htm#con_freeform
    It may help to get what you want along with the example from the XML Publisher blog:
    http://blogs.oracle.com/xmlpublisher/entry/inline_grouping
    regards
    Jorge

  • Is it possible to see the Drill down output in the expanded format by default in SSRS reports?

    Hi Guys,
    I have created a drill down report. If i preview my report , by default i can see the out put in the aggregated level and i have to drill  it to down levels if i want. My requirement is i want to see the data in the leaf level by default means report
    should be displayed in the expanded format to the leaf level, if i want i can drill up the report later. 
    Is this possible in SSRS? Can some one help me out on this?
    Thanks in advance.
    Regards,
    kiran

    Hi ,
    Thanks for the reply. but if i follow this steps i can see the output in the expanded format but + and - symbols will be interchanged. That means if i drill up i have (-) before the column name and if i drill down it will be (+). 
    For this to work you need to set properties initial appearance of toggle image
    see this example
    http://www.mssqltips.com/sqlservertip/1329/drill-down-techniques-in-ssrs-with-the-visibility-property/
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • ALV output converted into PDF format and send that PDF to user through mail

    Hi Experts,
    I have report earlier its output was in alv grid.
    Now i want that ALV output converted into PDF format.And that PDF output send to user through mail.
    Can u please tell how to do?
    My code is here(output is displaying in ALV grid).
    INCLUDE <icon>.
    TYPE-POOLS: slis, kkblo.
    TABLES : zmsd_freight_hdr, zmsd_freight_det, zmsd_blinfo, zmsd_diheader.
    TABLES : lfa1.
    DATA : t_hdr   LIKE   zmsd_freight_hdr   OCCURS 0 WITH HEADER LINE,
           T_DET   LIKE   ZMSD_FREIGHT_DET   OCCURS 0 WITH HEADER LINE,
           t_bl    LIKE   zmsd_blinfo        OCCURS 0 WITH HEADER LINE,
           t_di    LIKE   zmsd_diheader      OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_det OCCURS 0.
            INCLUDE STRUCTURE zmsd_freight_det.
    DATA    type(30).
    DATA: END OF t_det.
    DATA: v_target2(30),
          v_zsammg LIKE t_det-zsammg,
          v_gsttotal LIKE t_det-zamount.
    DATA : BEGIN OF t_data OCCURS 0,
             zsammg       LIKE  zmsd_freight_hdr-zsammg,
             zdidbl       LIKE  zmsd_freight_hdr-zdidbl,
             zvkorg       LIKE  zmsd_freight_hdr-zvkorg,
             zinvno       LIKE  zmsd_freight_hdr-zinvno,
             zttlamt      LIKE  zmsd_freight_hdr-zttlamt,
             zstatus      LIKE  zmsd_freight_hdr-zstatus,
             ztype        LIKE  zmsd_freight_hdr-ztype,
             zconfirm     LIKE  zmsd_freight_hdr-zconfirm,
             zconfirmdate LIKE  zmsd_freight_hdr-zconfirmdate,
             erdat        LIKE  zmsd_freight_hdr-erdat,
             ernam        LIKE  zmsd_freight_hdr-ernam,
             erzet        LIKE  zmsd_freight_hdr-erzet,
             aedat(10),
             aenam        LIKE  zmsd_freight_hdr-aenam,
             aezet        LIKE  zmsd_freight_hdr-aezet,
             zline        LIKE  zmsd_freight_det-zline,
             zfptype      LIKE  zmsd_freight_det-zfptype,
             zchrcode     LIKE  zmsd_freight_det-zchrcode,
             zcurcode     LIKE  zmsd_freight_det-zcurcode,
             zqty         LIKE  zmsd_freight_det-zqty,
             zuom         LIKE  zmsd_freight_det-zuom,
             zrate        LIKE  zmsd_freight_det-zrate,
             zamount      LIKE  zmsd_freight_det-zamount,
             zexrate      LIKE  zmsd_freight_det-zexrate,
           zccode       LIKE  zmsd_blinfo-zccode,      "MADK991565
             zccode       like  ZMSD_FREIGHT_HDR-zfcode, "MADK991565
             zbldate(10),
             zbl          LIKE  zmsd_blinfo-zbl,
             type(3),
             waerk        LIKE  zmsd_freight_det-zcurcode,
             zamountl     LIKE  zmsd_freight_det-zamount,
           END OF t_data.
    DATA : w_layout      TYPE   slis_layout_alv,
           w_catalog     TYPE   slis_fieldcat_alv,
           t_catalog     TYPE   slis_t_fieldcat_alv,
           w_sort        TYPE   slis_sortinfo_alv,
           t_sort        TYPE   slis_t_sortinfo_alv.
    DATA   V_ZINVNO    like   T_HDR-ZINVNO.                   "MADK991565
    DATA : v_count  TYPE  i.
    SELECTION-SCREEN BEGIN OF BLOCK a0 WITH FRAME TITLE text-001.
    PARAMETERS     :  p_zvkorg LIKE zmsd_freight_hdr-zvkorg  OBLIGATORY .
    SELECT-OPTIONS :  s_zdidbl FOR  zmsd_freight_hdr-zdidbl             ,
                      s_zccode FOR  lfa1-lifnr                          ,
                      s_status FOR  zmsd_freight_hdr-zstatus            ,
                      s_ztype  FOR  zmsd_freight_hdr-ztype              ,
                      s_erdat  FOR  zmsd_freight_hdr-erdat              ,
                      s_ernam  FOR  zmsd_freight_hdr-ernam              ,
                      s_zconfd FOR  zmsd_freight_hdr-zconfirmdate       .
    PARAMETERS     :  p_zconf  AS   CHECKBOX                            .
    SELECTION-SCREEN END OF BLOCK a0.
    SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-002.
    PARAMETERS     :  p_hdr    RADIOBUTTON GROUP rad DEFAULT 'X'        ,
                      p_det    RADIOBUTTON GROUP rad                    .
    SELECTION-SCREEN END OF BLOCK a1.
    INITIALIZATION.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM process.
      PERFORM display.
    END-OF-SELECTION.
      PERFORM fm_get_num_pages.
    AT USER-COMMAND.
    AT LINE-SELECTION.
    TOP-OF-PAGE.
      PERFORM fm_top_of_page USING '7010' sy-title space.
    FORM get_data.
      SELECT   *
        FROM   zmsd_freight_hdr
        INTO   TABLE t_hdr
       WHERE   zvkorg        EQ  p_zvkorg
         AND   zdidbl        IN  s_zdidbl
         AND   zstatus       IN  s_status
         AND   ztype         IN  s_ztype
         AND   erdat         IN  s_erdat
         AND   ernam         IN  s_ernam
         AND   zconfirmdate  IN  s_zconfd
         AND   ZFCODE        IN  S_ZCCODE.                      "MADK991565
      IF p_zconf = 'X'.
        DELETE t_hdr WHERE zconfirm NE 'C'.
      ENDIF.
      CHECK NOT t_hdr[] IS INITIAL.
      SELECT   *
        FROM   zmsd_blinfo
        INTO   TABLE t_bl
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_bl BY zsammg.
      SELECT   *
        FROM   zmsd_diheader
        INTO   TABLE t_di
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg = t_hdr-zsammg.
      SORT t_di BY zsammg.
    IF P_DET = 'X'. "MADK933361
      SELECT   *
        FROM   zmsd_freight_det
        INTO   TABLE t_det
         FOR   ALL ENTRIES IN t_hdr
       WHERE   zsammg  =  t_hdr-zsammg
       AND ZINVNO =  T_HDR-ZINVNO .                           "MADK991565
    SORT t_det BY zsammg zline.                            "MADK991565
       SORT T_DET BY ZSAMMG ZINVNO ZLINE.                     "MADK991565
    ENDIF. "MADK933361
    ENDFORM.
    FORM process.
      REFRESH t_data.
      CLEAR v_gsttotal.                                         "MADK933361
      LOOP AT t_hdr.
    Start of MADK933361
        CLEAR: v_target2.
        v_zsammg = t_hdr-zsammg.
        V_ZINVNO = T_HDR-ZINVNO.                                "MADK991565
       AT NEW zsammg.                                         "MADK991565
         AT NEW ZINVNO.                                         "MADK991565
          PERFORM get_gst_value.
        ENDAT.
    End of MADK933361
        PERFORM move_header.
        CHECK t_data-zccode IN s_zccode.
        IF p_det = 'X'.
    CSF Project Changes Starts   DEV34    MADK985782
        LOOP AT T_DET WHERE ZSAMMG = T_HDR-ZSAMMG..
          LOOP AT t_det WHERE zsammg = t_hdr-zsammg AND
                              zinvno = t_hdr-zinvno.
    CSF Project Changes Ends     DEV34    MADK985782
            PERFORM move_header.
            CHECK t_data-zccode IN s_zccode.
            MOVE-CORRESPONDING t_det TO t_data.
            t_data-zamountl = t_data-zamount * t_data-zexrate.
            APPEND t_data.
            CLEAR t_data.
          ENDLOOP.
        ELSE.
          APPEND t_data.
          CLEAR t_data.
        ENDIF.
        AT END OF zsammg.
          CLEAR v_gsttotal.
        ENDAT.
    *Start of changes for  IS090901289-PIA MADK991565
        AT END OF ZINVNO.
          CLEAR V_GSTTOTAL.
        ENDAT.
    *End of changes for  IS090901289-PIA MADK991565
      ENDLOOP.
    ENDFORM.
    FORM move_header.
      MOVE-CORRESPONDING t_hdr TO t_data.
      t_data-zttlamt = t_data-zttlamt + v_gsttotal.             "MADK933361
      t_data-waerk = 'SGD'.
      IF NOT t_hdr-aedat IS INITIAL.
        WRITE: t_hdr-aedat TO t_data-aedat.
      ELSE.
        CLEAR : t_data-aedat.
      ENDIF.
      READ TABLE t_bl WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
      IF sy-subrc EQ 0.
      t_data-zccode  = t_bl-zccode.   "MADK991565
        T_DATA-ZCCODE = T_HDR-ZFCODE.   "MADK991565     
        IF NOT t_bl-zbldate IS INITIAL.
          WRITE: t_bl-zbldate TO t_data-zbldate.
        ENDIF.
        t_data-zbl     = t_bl-zbl.
        t_data-type    = 'DBL'.
      ELSE.
        READ TABLE t_di WITH KEY zsammg = t_hdr-zsammg BINARY SEARCH.
        IF sy-subrc EQ 0.
        t_data-zccode  = t_di-zdiforcode.     "MADK991565
          T_DATA-ZCCODE = T_HDR-ZFCODE.         "MADK991565
          t_data-type    = 'DI'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM display.
      IF t_data[] IS INITIAL.
        MESSAGE s398(00) WITH 'No Data Selected'.
        EXIT.
      ENDIF.
      DATA : l_repid LIKE sy-repid.
      l_repid = sy-repid.
      REFRESH t_catalog.
      CLEAR   t_catalog.
      w_layout-cell_merge = 'X'.
      PERFORM map_fields.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = l_repid
                i_callback_user_command = 'ALV_USER_COMMAND'
                is_layout               = w_layout
                it_fieldcat             = t_catalog[]
                i_grid_title            = sy-title
                i_save                  = 'A'
                it_sort                 = t_sort[]
           TABLES
                t_outtab                = t_data
           EXCEPTIONS
                program_error           = 1
                OTHERS                  = 2.
      IF sy-subrc <> 0.
      ENDIF.
    ENDFORM.
    FORM map_fields.
    Sort Order
      CLEAR v_count.
      PERFORM sf USING 'ZDIDBL'   'X'  'X'.
    Fields to be displayed
      CLEAR v_count.
      IF p_hdr = 'X'.
        PERFORM af USING :
       DESCRIPTION       FIELD        LEN   RTABLE             RFIELD
        'DI/DBL         ' 'ZDIDBL'     '14' '                ' '        ',
        'Type           ' 'TYPE'       '04' '                ' '        ',
        'Forwarder Code ' 'ZCCODE'     '14' '                ' '        ',
        'BL Number      ' 'ZBL'        '14' '                ' '        ',
        'BL Date        ' 'ZBLDATE'    '10' '                ' '        ',
        'Invoice Number ' 'ZINVNO'     '15' '                ' '        ',
        'Extraction     ' 'ZSTATUS'    '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type   ' 'ZTYPE'      '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation   ' 'ZCONFIRM'   '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date   ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount   ' 'ZTTLAMT'    '18' '                ' '        ',
        'Created On     ' 'ERDAT'      '10' '                ' '        ',
        'Created By     ' 'ERNAM'      '10' '                ' '        ',
        'Changed On     ' 'AEDAT'      '10' '                ' '        ',
        'Changed By     ' 'AENAM'      '10' '                ' '        '.
      ELSE.
        PERFORM af USING :
       DESCRIPTION         FIELD     LEN   RTABLE             RFIELD
        'DI/DBL           ' 'ZDIDBL'   '14' '                ' '        ',
        'Type             ' 'TYPE'     '04' '                ' '        ',
        'Forwarder Code   ' 'ZCCODE'   '14' '                ' '        ',
        'BL Number        ' 'ZBL'      '14' '                ' '        ',
        'BL Date          ' 'ZBLDATE'  '10' '                ' '        ',
        'Invoice Number   ' 'ZINVNO'   '15' '                ' '        ',
        'Extraction       ' 'ZSTATUS'  '05' 'ZMSD_FREIGHT_HDR' 'ZSTATUS ',
        'Freight Type     ' 'ZTYPE'    '05' 'ZMSD_FREIGHT_HDR' 'ZTYPE   ',
        'Confirmation     ' 'ZCONFIRM' '05' 'ZMSD_FREIGHT_HDR' 'ZCONFIRM',
        'Confirm Date     ' 'ZCONFIRMDATE' '10' 'ZMSD_FREIGHT_HDR'
    'ZCONFIRMDATE',
        'Total Amount     ' 'ZTTLAMT'  '18' '                ' '        ',
        'Freight Payment  ' 'ZFPTYPE'  '14' '                ' '        ',
        'Charge Code      ' 'ZCHRCODE' '10' '                ' '        ',
        'Currency         ' 'ZCURCODE' '08' '                ' '        ',
        'Quantity         ' 'ZQTY'     '13' '                ' '        ',
        'UoM              ' 'ZUOM'     '04' '                ' '        ',
        'Rate             ' 'ZRATE'    '15' '                ' '        ',
        'Amt(Foreign Curr)' 'ZAMOUNT'  '16' '                ' '        ',
        'Exchange Rate    ' 'ZEXRATE'  '13' '                ' '        ',
        'Amt(Local Curr)  ' 'ZAMOUNTL' '16' '                ' '        ',
        'Created On       ' 'ERDAT'    '10' '                ' '        ',
        'Created By       ' 'ERNAM'    '10' '                ' '        ',
        'Changed On       ' 'AEDAT'    '10' '                ' '        ',
        'Changed By       ' 'AENAM'    '10' '                ' '        '.
      ENDIF.
    ENDFORM.
    FORM af USING text
                  field
                  len
                  table
                  reffield.
      v_count = v_count + 1.
      w_catalog-col_pos       = v_count.
      w_catalog-fieldname     = field.
      w_catalog-ref_tabname   = table.
      w_catalog-ref_fieldname = reffield.
      w_catalog-seltext_s     = text.
      w_catalog-seltext_m     = text.
      w_catalog-seltext_l     = text.
      w_catalog-outputlen     = len.
      IF field = 'ZTTLAMT' OR field = 'ZAMOUNTL'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'WAERK'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
    IF FIELD = 'ZRATE' OR FIELD = 'ZAMOUNT'.
      IF field = 'ZAMOUNT'.
        w_catalog-no_zero     = 'X'.
        w_catalog-cfieldname  = 'ZCURCODE'.
        w_catalog-datatype    = 'CURR'.
      ENDIF.
      IF field = 'ZQTY' OR field = 'ZRATE'.
        w_catalog-no_zero     = 'X'.
        w_catalog-datatype  =  'DEC'.
      ENDIF.
      APPEND w_catalog TO t_catalog.
      CLEAR  w_catalog.
    ENDFORM.
    FORM sf    USING   fieldname  sortup  group.
      v_count = v_count + 1.
      CLEAR w_sort.
      w_sort-fieldname = fieldname.
      w_sort-spos      = v_count.
      w_sort-up        = sortup.
      w_sort-group     = group.
      APPEND w_sort TO t_sort.
    ENDFORM.
    FORM alv_user_command USING  in_ucomm    LIKE sy-ucomm
                                 in_selfield TYPE slis_selfield.
      DATA: lfs_data LIKE t_data.
      IF in_ucomm = '&IC1'.
        READ TABLE t_data INDEX in_selfield-tabindex INTO lfs_data.
        CHECK NOT lfs_data-zdidbl IS INITIAL.
        IF lfs_data-type = 'DBL'.
          DATA: l_zdbl LIKE zmsd_diheader-zdinum.
          l_zdbl = in_selfield-value.
          EXPORT l_zdbl TO MEMORY ID 'VBL'.
          CALL TRANSACTION 'ZMSD_BL01'.
        ENDIF.
        IF lfs_data-type = 'DI'.
          DATA: v_dinum LIKE zmsd_diheader-zdinum.
          v_dinum = in_selfield-value.
          EXPORT v_dinum TO MEMORY ID 'VDI'.
          CALL TRANSACTION 'ZMSD_DI01'.
        ENDIF.
      ENDIF.
    ENDFORM.
    FORM get_gst_value.
      LOOP AT t_det WHERE zsammg = v_zsammg
         AND ZINVNO = V_ZINVNO.                              "MADK991565
        CHECK t_data-zccode IN s_zccode.
        t_det-zamount  = t_det-zamount * t_det-zexrate.
        SELECT SINGLE  y0mmtarget2
                INTO   v_target2
                FROM   y0mmipstranslate
                WHERE  y0mmdatatype = '70' AND
                       y0mmsource = t_det-zchrcode.
        SELECT SINGLE y0mmtarget1
               INTO   t_det-type
               FROM   y0mmipstranslate
               WHERE  y0mmdatatype = '76' AND
                      y0mmsource = v_target2.
        IF t_det-type NE '3Z'.
          v_gsttotal    = v_gsttotal +
                               ( t_det-zamount * 5 / 100 ).
        ENDIF.
      ENDLOOP.
    Regards,
    Raj.

    Hello,
    Following is the procedure to convert alv output to spool and then it to PDF Format.
    After we display the ALV, we can check whether it is running in the background using system field u2018sy-batchu2018. Then,we call an function module named u2018GET_JOB_RUNTIME_INFOu2019 to get the current job information. Then go to spool request table tbtcp to get the spool id.
    Get current job details
      CALL FUNCTION u2018GET_JOB_RUNTIME_INFOu2019
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                               AND jobcount = gd_jobcount
                               AND stepcount = gd_stepcount
                               AND listident <> u20180000000000u2032
                               ORDER BY   jobname
                                                   jobcount
                                                   stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
    Finally, we can call function module u2018CONVERT_ABAPSPOOLJOB_2_PDFu2018 to convert spool reqeust(which is stored in OTF format) to PDF format. Then we can call either function module u2018SO_DOCUMENT_SEND_API1u2032 or SAP BCS (Business Communication Service) to send the pdf as an email attachment.
    CALL FUNCTION u2018CONVERT_ABAPSPOOLJOB_2_PDFu2019
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount = gd_bytecount
           TABLES
                pdf = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
    Regards,
    Sayali
    Edited by: Sayali Paradkar on Apr 20, 2010 12:51 PM

  • Printing ABAP List(Report output - SE38) in A3 format

    I have a requirement to print the ABAP report in A3 page format. I am using LP01 printer and in in SPAD transcation I Changed the Tab "Output Attributes"
    Paper tray = "Paper tray 3" and Tab "Tray Info" Tray 3 = "DINA3"  still the report gets print in A4 page format.
    Even i tried by changing the lize size and line count...still .... it prints in A4 format only.
    Could you let me know what exactly I need to in order to print my report output in A3 Page format.
    Waiting for your reply.
    Thanks in Advance,
    Steevan

    Hi,
    Check this below link
    http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm
    Cheers!!
    VEnk@

  • ALV Grid to be run in background & to generate output file in Excel format

    I use  REUSE_ALV_GRID_DISPLAY in my program for the ALV output
    My Requirement is Program to be run in a background since it is getting timed out when executed in foreground and also to generate the output file in Excel format. And we are using 4.6 C version.
    how do i attain this?

    Hello,
    One alternate solution can be :
    Execute your report in background and then send the data to Spool .
    From this spool , you can download the data in excel file.
              SUBMIT xyz TO SAP-SPOOL
                 SPOOL PARAMETERS gt_print_parameters.
    Regards,
    Sandeep

  • Converting spool output to MS Word format

    Is there any way to convert the SAP Script output to MS word format (like how we convert it into PDF) ?
    Regards,
    Dinu

    Hi,
      Try with fm CONVERT_TEXT, you may go thro' the following link,
    http://help.sap.com/saphelp_erp2004/helpdata/en/d6/0dba8f494511d182b70000e829fbfe/frameset.htm
    Hope this helps,
    Rgds,

  • Spool output in Excel sheet format

    Hi,
    We have background job , which creates a spool output in Internet Explorer format. Customer needs this in Excel format.
    Wondering, if any authorizations to be changed for file type? or this is a set in program level?
    Thanks,
    Sam

    Yes....Currently the customer email address is added to "Spool list Recipient" in SM37. This way, spool output is sent to customer through email. Currently it is in HTML format.
    Thanks,
    Sam

  • How to get report with following format

    Hi
    For tax reporting purpose, our company has to get a report in the following format so that they can export it to excel file.
    Customer    -       Name   -    address  -   sales/purchases
    The last column is the one we get from fd10n by entering customer number.
    Please let me know the easiest way to obtain it.
    Thanks
    PrinceofLight

    HI,
    Please consult your technical team they can easily  prepare zreport for that particular fields.
    K.satish

  • Convert billing output to an ASCII format

    Dear Gurus,
    We have set up a new printer to convert billing output to an ASCII format.
    It's working fine except
    The formatting is not as we would expect, and we are missing some data.
    Can you please help me out what settings need to look out that can be changed.
    It would be a great help.
    Regards,
    Sandeep

    please go through the following two links this will provide u the necessary information
    http://help.sap.com/saphelp_45b/helpdata/en/d6/0dbadd494511d182b70000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/EN/d9/4a933c51ea11d189570000e829fbbd/content.htm
    Please do check the necessary settings mentioned in these links
    hope this will help u out

  • I want query in following format

    hi,
        i have on table 'test'..
    table :- test
                     name        salary
                    aaa,rdt            500
                    dddd, fgh          600
                    yyyyy,dfg        7000
    i want 'name' column data in following format..(I want data before ',')
            name
            aaa
            dddd
            yyyyy
    thanks,
    Ravindra Malwal

    Regular expressions can be quite heavy on the CPU processing, which is noticable if you're processing a lot of data.
    For such a simple requirement, you'd probably be better just using the standard string functions... e.g.
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'aaa,rdt' as name, 500 as salary from dual union all
      2             select 'dddd, fgh', 600 from dual union all
      3             select 'yyyyy,dfg', 7000 from dual union all
      4             select 'xxxx', 2500 from dual)
      5  --
      6  -- end of test data
      7  --
      8  select substr(name,1,instr(name||',',',')-1) as name
      9        ,salary
    10* from   t
    SQL> /
    NAME          SALARY
    aaa              500
    dddd             600
    yyyyy           7000
    xxxx            2500

  • Update Sold-to address

    Hello Friends,
    I have a small issue . I am using the function module SD_ORDER_CREATE to create a sales order .
    Now for the sold-to if I have a partner no it gets the correct address for the sold-to .
    If my ship-to and sold-to are MISC then the sold-to address defaults to the ship-to address.
    My requirement is to if both sold-to and ship-to are MISC then I need to put a unique address to sold-to and not the default ship-to .
    After creating the sales order using the above function module is there a way I can update my sold- to address immediately after the order is created.
    I did find this fm 'SD_SALESDOCUMENT_CHANGE'  . Is there a better way to do it OR how about BDC ?
    Please advise .
    Thanks,

    You can try FM : BAPI_SALESORDER_CHANGE
    If you need sample source code then do search like BAPI_SALESORDER_CHANGE in SDN Forum.
    Thanks
    Seshu

  • I am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    i am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?

    When you make a DNG that's like making another raw file, so you will need to convert the DNG file just like your original raw. Don't use the Save button in the raw converter. That's just a link to the DNG converter. Normally you would click Open instead and then save in the editor as a jpg or other image format of your choice.

  • Need Spool output file in Excel format

    Hi,
    We have background job , which creates a spool output in Internet Explorer format. Customer needs this in Excel format.
    Wondering, if any authorizations to be changed for file type? or this is a set in program level?
    Thanks,
    Sam

    Hi Sam,
                     This need to be fixed at the program level only,so you need an ABAPer to make the changes in out put. There is nothing to do with authorizations.
    Regards,
    Hari.
    PS: Award points if helpful.

Maybe you are looking for

  • Gettig "Record has been modified" error while opening a window

    Hi, I have a window 'A' and window 'B'. On click of a button from 'A' window 'B' is opened. There are 3 fields in the window 'B' and these 3 fields are the part of the query which gets executed in window 'A'. Now on click of the button I am executing

  • Black Screen with Cursor (Tried most solutions)

    To save your time and mine, I’ve tried all options in “press f8” and “recovery disk”. Over the past 3 days, I read almost all threads, videos, articles, and official MS help containing any mention of this problem. I also applied many commands, create

  • Error message for I-Tunes

    Every time I log in to I-Tunes I get the following message. iTunes has encountered a problem and needs to close. We are sorry for the inconvenience. I would like to uninstall and reinstall itunes, but we have three ipods on this computer, and I'm afr

  • What is the best way to transfer libraries from Aperture?

    Hi, Apologies for what must be an increasingly common question. I've searched the forum but all I could get were returns from early 2013 and previous. I am asking this question because the offered tool on this site has an appalling rating after 37 re

  • My iPhone has expired, but my iTunes says i'am up to date.

    How can i Update my iPhone? i Use iOS5 beta.