Sales changes report modification

Hi Gurus
I have created this report for sales document and it is working fine in ALV , I want to make this report to change from ALV to a Printable format and the Header Note and Internal note are displaying very length, I want this to be in display in readable format for the management.
Is there any way to modify this report please
Thanks in advanced
report z_order_changes no standard page heading
                          line-size 132.
type-pools:
  slis.                     " ALV types
tables:
  cdhdr,                    " Change documents: Header
  cdpos,                    " Change documents: Items
  vbak,                     " Sales order: Header
  vbap.                     " Sales order: Items
types:
  begin of ty_cdhdr,
    objectclas like cdhdr-objectclas,     " Object class
    objectid   like cdhdr-objectid,       " Object value
    changenr   like cdhdr-changenr,       " Document change number
    username   like cdhdr-username,       " Changed by
    udate      like cdhdr-udate,          " Changed on
    utime      like cdhdr-utime,          " Changed at
    tcode      like cdhdr-tcode,          " Transaction code
  end of ty_cdhdr,
  ty_it_cdhdr type ty_cdhdr occurs 0,
  begin of ty_cdpos,
    objectclas like cdpos-objectclas,     " Object class
    objectid   like cdpos-objectid,       " Object value
    changenr   like cdpos-changenr,       " Document change number
    tabname    like cdpos-tabname,        " Table name
    tabkey     like cdpos-tabkey,         " Table key
    fname      like cdpos-fname,          " Field name
    chngind    like cdpos-chngind,        " Change indicator
    value_new  like cdpos-value_new,      " New value of field
    value_old  like cdpos-value_old,      " Old value of field
  end of ty_cdpos,
  ty_it_cdpos type ty_cdpos occurs 0,
  begin of ty_dd03l,
    tabname   like dd03l-tabname,
    fieldname like dd03l-fieldname,
    as4local  like dd03l-as4local,
    as4vers   like dd03l-as4vers,
    rollname  like dd03l-rollname,
  end of ty_dd03l,
  ty_it_dd03l type ty_dd03l occurs 0,
  begin of ty_dd04t,
    rollname   like dd04t-rollname,
    ddlanguage like dd04t-ddlanguage,
    as4local   like dd04t-as4local,
    as4vers    like dd04t-as4vers,
    scrtext_l  like dd04t-scrtext_l,
  end of ty_dd04t,
  ty_it_dd04t type ty_dd04t occurs 0,
  begin of ty_kna1,
    kunnr like kna1-kunnr,                 " Customer number
    name1 like kna1-name1,                 " Customer name
  end of ty_kna1,
  ty_it_kna1 type ty_kna1 occurs 0,
  ty_text(500) type c,
  ty_lines type tline,
  ty_it_lines type ty_lines occurs 0,
  begin of ty_merged,
    vbeln     like vbak-vbeln,            " Sales order number
    erdat     like vbak-erdat,            " Created on
    auart     like vbak-auart,            " Order type
    faksk     like vbak-faksk,            " Billing block in SD document
    netwr     like vbak-netwr,            " Net value
    waerk     like vbak-waerk,            " Currency
    vkorg     like vbak-vkorg,            " Sales organisation
    vtweg     like vbak-vtweg,            " Distribution channel
    vkbur     like vbak-vkbur,            " Sales office
    fkara     like vbak-fkara,            " Proposed billing type
    kunnr     like vbak-kunnr,            " Sold-to party
    xblnr     like vbak-xblnr,            " Reference
    fbuda     like vbkd-fbuda,            " Date services rendered
    username  like cdhdr-username,        " Changed by
    udate     like cdhdr-udate,           " Changed on
    utime     like cdhdr-utime,           " Changed at
    tcode     like cdhdr-tcode,           " Transaction code
    tabname   like cdpos-tabname,         " Table name
    tabkey    like cdpos-tabkey,          " Table key
    fname     like cdpos-fname,           " Field name
    chngind   like cdpos-chngind,         " Change indicator
    value_new like cdpos-value_new,       " New value of field
    value_old like cdpos-value_old,       " Old value of field
    scrtext_l like dd04t-scrtext_l,       " Description of field
    intnote   type ty_text,               " Internal note
    hdrnote   type ty_text,               " Header note
    name1     like adrc-name1,            " Sold-to party name
  end of ty_merged,
  ty_it_merged type ty_merged occurs 0,
  begin of ty_vbak,
    vbeln    like vbak-vbeln,             " Sales order number
    erdat    like vbak-erdat,             " Created on
    auart    like vbak-auart,             " Order type
    faksk    like vbak-faksk,             " Billing block in SD document
    netwr    like vbak-netwr,             " Net value
    waerk    like vbak-waerk,             " Currency
    vkorg    like vbak-vkorg,             " Sales organisation
    vtweg    like vbak-vtweg,             " Distribution channel
    vkbur    like vbak-vkbur,             " Sales office
    fkara    like vbak-fkara,             " Proposed billing type
    kunnr    like vbak-kunnr,             " Sold-to party
    xblnr    like vbak-xblnr,             " Reference
    objectid like cdhdr-objectid,         " Change document object
  end of ty_vbak,
  ty_it_vbak type ty_vbak occurs 0,
  begin of ty_vbkd,
    vbeln like vbkd-vbeln,                " Sales order number
    posnr like vbkd-posnr,                " Sales order item
    fbuda like vbkd-fbuda,                " Date services rendered
  end of ty_vbkd,
  ty_it_vbkd type ty_vbkd occurs 0.
Internal tables
data:
Internal table to store change document header details from CDHDR
  it_cdhdr    type ty_it_cdhdr,
Internal table to store change document details from CDPOS
  it_cdpos    type ty_it_cdpos,
Internal table to store field catalog for report function
  it_fieldcat type slis_t_fieldcat_alv,
Internal table to store customer details from KNA1
  it_kna1     type ty_it_kna1,
Internal table to store merged data for report output
  it_merged   type ty_it_merged,
Internal table to store sales order header details from VBAK
  it_vbak     type ty_it_vbak,
Internal table to store sales order business data from VBKD
  it_vbkd     type ty_it_vbkd.
Work areas
data:
  wa_vbak  type ty_vbak.
Structures
data:
Display variant structures
  st_tvariant  like disvariant,
  st_variant   like disvariant.
Constants
constants:
  co_as4local_a           like dd03l-as4local     " Active version
                          value 'A',
  co_objectclas_verkbeleg like cdhdr-objectclas
                          value 'VERKBELEG',
  co_posnr_initial        like vbkd-posnr         " Initial item number
                          value is initial,
  co_save_u               type c                  " User display variant
                          value 'U',              " saving allowed.
  co_trvog_0              like vbak-trvog         " Sales order
                          value '0'.
Variables
data:
  va_exit                 type c,                 " ALV display
  va_tabix                like sy-tabix.
Selection screen definition
selection-screen: begin of block b1 with frame title text-001.
select-options:
  s_vbeln  for vbak-vbeln,            " Sales order number
  s_erdat  for vbak-erdat,            " Created on
  s_auart  for vbak-auart,            " Order type
  s_vkorg  for vbak-vkorg,            " Sales organisation
  s_vtweg  for vbak-vtweg,            " Distribution channel
  s_vkbur  for vbak-vkbur,            " Sales office
  s_kunnr  for vbak-kunnr,            " Sold-to party
  s_usrnme for cdhdr-username,        " Changed by
  s_udate  for cdhdr-udate.           " Changed on
selection-screen: end of block b1,
                  begin of block b2 with frame title text-002.
parameters:
  p_varint like disvariant-variant.   " Display variant.
selection-screen: end of block b2.
Initialization
initialization.
Load display variant.
  if not p_varint is initial.
    move st_variant to st_tvariant.
    move p_varint to st_tvariant-variant.
    call function 'REUSE_ALV_VARIANT_EXISTENCE'
         exporting
              i_save     = co_save_u
         changing
              cs_variant = st_tvariant.
    st_variant = st_tvariant.
  else.
    clear st_variant.
    st_variant-report = sy-repid.
  endif.
at selection-screen on value-request for p_varint.
Provide display variant list for this program.
  call function 'REUSE_ALV_VARIANT_F4'
       exporting
            is_variant = st_variant
            i_save     = co_save_u
       importing
            e_exit     = va_exit
            es_variant = st_tvariant
       exceptions
            not_found  = 2.
  if sy-subrc eq 2.
    message id sy-msgid type 'S'
            number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  else.
    if va_exit eq space.
      st_variant = st_tvariant.
      p_varint = st_tvariant-variant.
    endif.
  endif.
At selection screen
at selection-screen.
Load display variant.
  if not p_varint is initial.
    move st_variant to st_tvariant.
    move p_varint to st_tvariant-variant.
    call function 'REUSE_ALV_VARIANT_EXISTENCE'
         exporting
              i_save     = co_save_u
         changing
              cs_variant = st_tvariant.
    st_variant = st_tvariant.
  else.
    clear st_variant.
    st_variant-report = sy-repid.
  endif.
Start of selection
start-of-selection.
Extract order details from VBAK
  select vbeln erdat auart faksk netwr waerk vkorg vtweg vkbur fkara
         kunnr xblnr
         from  vbak
         into  table it_vbak
         where vbeln in s_vbeln
         and   erdat in s_erdat
         and   auart in s_auart
         and   vkorg in s_vkorg
         and   vtweg in s_vtweg
         and   vkbur in s_vkbur
         and   kunnr in s_kunnr
         and   trvog eq co_trvog_0.
  if sy-subrc ne 0.
  No data found for selection
    message s001(zgen).
    exit.
  endif.
  loop at it_vbak into wa_vbak.
    va_tabix = sy-tabix.
    wa_vbak-objectid = wa_vbak-vbeln.
    modify it_vbak from wa_vbak
                   index va_tabix
                   transporting objectid.
  endloop.
Extract change document header details from CDHDR
  select objectclas objectid changenr username udate utime tcode
         from  cdhdr
         into  table it_cdhdr
         for   all entries in it_vbak
         where objectclas eq co_objectclas_verkbeleg
         and   objectid   eq it_vbak-objectid
         and   username   in s_usrnme
         and   udate      in s_udate.
  if sy-subrc eq 0.
  Extract change document details from CDPOS
    select objectclas objectid changenr tabname tabkey fname chngind
           value_new value_old
           from  cdpos
           into  table it_cdpos
           for   all entries in it_cdhdr
           where objectclas eq it_cdhdr-objectclas
           and   objectid   eq it_cdhdr-objectid
           and   changenr   eq it_cdhdr-changenr.
  endif.
Extract sales order business data from VBKD
  select vbeln posnr fbuda
         from  vbkd
         into  table it_vbkd
         for   all entries in it_vbak
         where vbeln eq it_vbak-vbeln
         and   posnr eq co_posnr_initial.
Extract customer details from KNA1
  select kunnr name1
         from  kna1
         into  table it_kna1
         for   all entries in it_vbak
         where kunnr eq it_vbak-kunnr.
Merge data for report output
  perform merge_data tables it_cdhdr
                            it_cdpos
                            it_kna1
                            it_merged
                            it_vbak
                            it_vbkd.
  if it_merged[] is initial.
  No data found for selection
    message s001(zgen).
    exit.
  endif.
Release memory no longer required.
  free: it_cdhdr,
        it_cdpos,
        it_kna1,
        it_vbak,
        it_vbkd.
Build field catalog for call to report function
  perform build_field_catalog tables it_fieldcat.
Output report.
  perform output_report tables it_fieldcat
                               it_merged.
*&      Form  merge_data
      text
form merge_data  tables   pa_it_cdhdr  type ty_it_cdhdr
                          pa_it_cdpos  type ty_it_cdpos
                          pa_it_kna1   type ty_it_kna1
                          pa_it_merged type ty_it_merged
                          pa_it_vbak   type ty_it_vbak
                          pa_it_vbkd   type ty_it_vbkd.
Local internal tables
data:
  lit_dd03l type ty_it_dd03l,
  lit_dd04t type ty_it_dd04t.
Local work areas
data:
  lwa_cdhdr  type ty_cdhdr,
  lwa_cdpos  type ty_cdpos,
  lwa_dd03l  type ty_dd03l,
  lwa_dd04t  type ty_dd04t,
  lwa_kna1   type ty_kna1,
  lwa_merged type ty_merged,
  lwa_vbak   type ty_vbak,
  lwa_vbkd   type ty_vbkd.
Local variables
data:
  lva_dd03l_tabix like sy-tabix,
  lva_dd04t_tabix like sy-tabix.
  sort pa_it_cdhdr by objectid changenr.
  sort pa_it_cdpos by objectid changenr tabname tabkey fname.
  sort pa_it_kna1  by kunnr.
  sort pa_it_vbak  by vbeln.
  sort pa_it_vbkd  by vbeln.
  loop at pa_it_vbak into lwa_vbak.
    clear lwa_merged.
  Assign sales order fields to reporting work area
    lwa_merged-vbeln = lwa_vbak-vbeln.
    lwa_merged-erdat = lwa_vbak-erdat.
    lwa_merged-auart = lwa_vbak-auart.
    lwa_merged-faksk = lwa_vbak-faksk.
    lwa_merged-netwr = lwa_vbak-netwr.
    lwa_merged-waerk = lwa_vbak-waerk.
    lwa_merged-vkorg = lwa_vbak-vkorg.
    lwa_merged-vtweg = lwa_vbak-vtweg.
    lwa_merged-vkbur = lwa_vbak-vkbur.
    lwa_merged-fkara = lwa_vbak-fkara.
    lwa_merged-kunnr = lwa_vbak-kunnr.
    lwa_merged-xblnr = lwa_vbak-xblnr.
  Get name of sold-to party from PA_IT_KNA1
    clear lwa_kna1.
    read table pa_it_kna1 into lwa_kna1
                          with key kunnr = lwa_vbak-kunnr
                          binary search.
    lwa_merged-name1 = lwa_kna1-name1.
  Get business data from PA_IT_VBKD.
    clear lwa_vbkd.
    read table pa_it_vbkd into lwa_vbkd
                          with key vbeln = lwa_vbak-vbeln
                          binary search.
    lwa_merged-fbuda = lwa_vbkd-fbuda.
  Get internal note text for sales order
    perform read_text using '0002'
                            '1'
                            lwa_merged-vbeln
                            'VBBK'
                            lwa_merged-intnote.
  Get header note 1 text for sales order
    perform read_text using 'Z002'
                            '1'
                            lwa_merged-vbeln
                            'VBBK'
                            lwa_merged-hdrnote.
  Determine if change documents exist for sales order.
    clear lwa_cdhdr.
    read table pa_it_cdhdr into lwa_cdhdr
                           with key objectid = lwa_vbak-objectid.
    if sy-subrc ne 0.
      continue.
    endif.
    loop at pa_it_cdhdr into lwa_cdhdr
                        from sy-tabix.
      lwa_merged-username = lwa_cdhdr-username.
      lwa_merged-udate    = lwa_cdhdr-udate.
      lwa_merged-utime    = lwa_cdhdr-utime.
      lwa_merged-tcode    = lwa_cdhdr-tcode.
      clear lwa_cdpos.
      read table pa_it_cdpos into lwa_cdpos
                             with key objectid = lwa_cdhdr-objectid
                                      changenr = lwa_cdhdr-changenr
                             binary search.
      loop at pa_it_cdpos into lwa_cdpos
                          from sy-tabix.
        lwa_merged-tabname   = lwa_cdpos-tabname.
        lwa_merged-tabkey    = lwa_cdpos-tabkey.
        lwa_merged-fname     = lwa_cdpos-fname.
        lwa_merged-chngind   = lwa_cdpos-chngind.
        lwa_merged-value_new = lwa_cdpos-value_new.
        lwa_merged-value_old = lwa_cdpos-value_old.
      Get description for field - determine date element
        clear lwa_dd03l.
        read table lit_dd03l into lwa_dd03l
                             with key tabname   = lwa_cdpos-tabname
                                      fieldname = lwa_cdpos-fname
                             binary search.
        lva_dd03l_tabix = sy-tabix.
        if sy-subrc ne 0.
          select single tabname fieldname as4local as4vers rollname
                 from   dd03l
                 into   lwa_dd03l
                 where  tabname   eq lwa_cdpos-tabname
                 and    fieldname eq lwa_cdpos-fname
                 and    as4local  eq co_as4local_a.
          if sy-subrc eq 0.
            insert lwa_dd03l into lit_dd03l
                             index lva_dd03l_tabix.
          endif.
        endif.
      If data element was found, get description
        if not lwa_dd03l is initial.
          clear lwa_dd04t.
          read table lit_dd04t into lwa_dd04t
                               with key rollname   = lwa_dd03l-rollname
                                        ddlanguage = sy-langu
                               binary search.
          lva_dd04t_tabix = sy-tabix.
          if sy-subrc ne 0.
            select single rollname ddlanguage as4local as4vers scrtext_l
                   from  dd04t
                   into  lwa_dd04t
                   where rollname   eq lwa_dd03l-rollname
                   and   ddlanguage eq sy-langu.
            if sy-subrc eq 0.
              insert lwa_dd04t into lit_dd04t
                               index lva_dd04t_tabix.
            else.
              lwa_dd04t-scrtext_l = 'Description for field not found'.
            endif.
          endif.
        endif.
        lwa_merged-scrtext_l = lwa_dd04t-scrtext_l.
        append lwa_merged to pa_it_merged.
        at end of changenr.
        Only process field changes for this change document.
          exit.
        endat.
      endloop.
      at end of objectid.
      Initialise work area so we know change document for order has
      been processed.
        clear lwa_merged.
      Only process change documents for this sales order.
        exit.
      endat.
    endloop.
  endloop.
endform.                    " merge_data
*&      Form  build_field_catalog
      text
form build_field_catalog tables pa_it_fieldcat type slis_t_fieldcat_alv.
data:
Local variable
  lva_col_pos   type slis_fieldcat_alv-col_pos,
Local structure
  st_fieldcat   type slis_fieldcat_alv.
  lva_col_pos = 0.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VBELN'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'VBELN'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'ERDAT'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'ERDAT'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos..
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'AUART'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'AUART'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'FAKSK'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'FAKSK'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'NETWR'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'NETWR'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'WAERK'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'WAERK'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos..
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VKORG'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'VKORG'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VTWEG'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'VTWEG'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VKBUR'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'VKBUR'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'FKARA'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'FKARA'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'KUNNR'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'KUNNR'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'XBLNR'.
  st_fieldcat-ref_tabname   = 'VBAK'.
  st_fieldcat-ref_fieldname = 'XBLNR'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'FBUDA'.
  st_fieldcat-ref_tabname   = 'VBKD'.
  st_fieldcat-ref_fieldname = 'FBUDA'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'USERNAME'.
  st_fieldcat-ref_tabname   = 'CDHDR'.
  st_fieldcat-ref_fieldname = 'USERNAME'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'UDATE'.
  st_fieldcat-ref_tabname   = 'CDHDR'.
  st_fieldcat-ref_fieldname = 'UDATE'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'UTIME'.
  st_fieldcat-ref_tabname   = 'CDHDR'.
  st_fieldcat-ref_fieldname = 'UTIME'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'TCODE'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'TCODE'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'TABNAME'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'TABNAME'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'TABKEY'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'TABKEY'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'FNAME'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'FNAME'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'CHNGIND'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'CHNGIND'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VALUE_NEW'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'VALUE_NEW'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'VALUE_OLD'.
  st_fieldcat-ref_tabname   = 'CDPOS'.
  st_fieldcat-ref_fieldname = 'VALUE_OLD'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'SCRTEXT_L'.
  st_fieldcat-ref_tabname   = 'DD04T'.
  st_fieldcat-ref_fieldname = 'SCRTEXT_L'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'INTNOTE'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  st_fieldcat-seltext_s     = 'Int Note'.
  st_fieldcat-seltext_m     = 'Internal Note'.
  st_fieldcat-seltext_l     = 'Internal Note'.
  st_fieldcat-ddictxt       = 'L'.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'HDRNOTE'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  st_fieldcat-seltext_s     = 'Hdr Note'.
  st_fieldcat-seltext_m     = 'Header Note'.
  st_fieldcat-seltext_l     = 'Header Note'.
  st_fieldcat-ddictxt       = 'L'.
  append st_fieldcat to pa_it_fieldcat.
  clear st_fieldcat.
  add 1 to lva_col_pos.
  st_fieldcat-tabname       = 'PA_IT_MERGED'.
  st_fieldcat-fieldname     = 'NAME1'.
  st_fieldcat-ref_tabname   = 'KNA1'.
  st_fieldcat-ref_fieldname = 'NAME1'.
  st_fieldcat-row_pos       = '1'.
  st_fieldcat-col_pos       = lva_col_pos.
  append st_fieldcat to pa_it_fieldcat.
endform.                    " build_field_catalog
*&      Form  output_report
      text
form output_report tables pa_it_fieldcat type slis_t_fieldcat_alv
                          pa_it_merged   type ty_it_merged.
Local variables
data:
  lva_formname type slis_formname,
  lva_repid    like sy-repid.
  lva_repid = sy-repid.
  lva_formname = 'ALV_USER_COMMAND'.
  call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
      i_callback_program = lva_repid
      i_callback_user_command = lva_formname
      i_save             = 'A'
      is_variant         = st_variant
      it_fieldcat        = pa_it_fieldcat[]
    tables
      t_outtab           = pa_it_merged
    exceptions
      program_error      = 1
      others             = 2.
endform.                    " output_report
*&      Form  alv_user_command
      text
form alv_user_command using pa_ucomm    like sy-ucomm
                            pa_selfield type slis_selfield.
Local work areas
data:
  lwa_merged type ty_merged.
  clear lwa_merged.
  read table it_merged into lwa_merged
                       index pa_selfield-tabindex.
  case pa_selfield-fieldname.
    when 'VBELN'.
    Sales order number
      set parameter id 'AUN' field lwa_merged-vbeln.
      call transaction 'VA03' and skip first screen.
    when 'KUNNR'.
    Customer number
      set parameter id 'KUN' field lwa_merged-kunnr.
      set parameter id 'VKO' field space.
      set parameter id 'VTW' field space.
      set parameter id 'SPA' field space.
      call transaction 'XD03' and skip first screen.
  endcase.
endform.                    " alv_user_command
*&      Form  read_text
      text
form read_text  using    pa_id
                         pa_inline_count
                         pa_name
                         pa_object
                         pa_text.
Local internal tables
data:
  lit_inlines type ty_it_lines,
  lit_lines   type ty_it_lines.
Local work areas
data:
  lwa_lines   type ty_lines.
Local variables
data:
  lva_tdname    like thead-tdname.
  refresh: lit_inlines,
           lit_lines.
  lva_tdname = pa_name.
  call function 'READ_TEXT_INLINE'
    exporting
      id                    = pa_id
      inline_count          = pa_inline_count
      language              = sy-langu
      name                  = lva_tdname
      object                = pa_object
    tables
      inlines               = lit_inlines
      lines                 = lit_lines
    exceptions
      id                    = 1
      language              = 2
      name                  = 3
      not_found             = 4
      object                = 5
      reference_check       = 6
      others                = 7.
  loop at lit_lines into lwa_lines.
    concatenate pa_text
                lwa_lines-tdline
                into pa_text separated by space.
  endloop.
endform.                    " read_text

Hi George!
In general this question is very complex. In Retail it's a whole module and handled by a program with more than 20 000 lines of coding - not just selecting some conditions with a starting date range.
Do you have conditions on several levels? E.g. customer specific and on sales organization - what should happen, if a customer specific condition ends?
Regards,
Christian

Similar Messages

  • Sales document report for all open documents

    hi i need the code for sales document report for all open documents is sd
    ...      can anyone help me out.
                                     thanks in advance

    Try transaction VA05. In that choose "Open Orders" along with other selection criteria.
    If you want the Open sales order qty in output and its not displayed, do the following.
    Sales -> System modification -> create new fields ( without condition technique) -> New fields for lists.
    You can change V05TZZMO and structure VBMTVZ from there or use SE38 / SE11.
    For both you'll need an object registration in OSS.
    Hope this helps.
    Thanks,
    Balaji

  • Sales Analysis report results are being affected (or eliminated) by SQL

    When running Sales Analysis by Item (Item Tab), the client keys in item 15454*
    in the From and To Field and selects the first and last Item Codes listed
    in the result set. The first item code is The results of the Sales Analysis report includes items from 15454-048E-1-41.3 through 15454E-XC-10G.
    The result set stops at itemcode 15454-EIA-SMB-B84 despite that fact that there
    are many items with sales with Item Codes higher than the 15454-EIA-SMB-B84.
    The SAP support rep highlighted that the application is ignoring the dash in it's filtering priority even thought the item lookup is accounting for the dash.  The response is that this is the behavior of SQL server.
    It is true that SQL does ignore dashes and possibly other special characters in sorting nvarchar fields.  However, it is important that the lookup (to select a range of items) and the result set remain consistant in the application regardless of the database/datatype. 
    With no ability to customize (or fix) the report from the field, we are requesting this a a design change.  We recommend testing with all other special characters as to ensure that the report is actually producing accurate results.

    Hi Peter.......
    Welcome to SAP Forum....
    You can try this report which gives you result of Sales Order regardless of Current Status...
    Select * From ORDR T0 Inner Join RDR1 T1 on T0.DocEntry=T1.DocEntry
    Put the desired field in place of * which ever you want in report......
    Regards,
    Rahul

  • Credit Block released Sales order report

    Hi Experts,
    My client is given few sales orders (around 4)no and requesting us, to prepare the credit block released sales orders report (include released person user ID).
    *.No change logs is existing for all sales order and deliveries.
    For above requirement I am using CDHDR table data but I am not getting credit block released sales order report.
    Below fields I am using in CDHDR Table.
    Change doc.Object (objectclas) : VERKBELEG
    Document No (CHANGENR): Sales order no XXXXXXX
    Transaction no (TCODE) : VKM1,VKM2,VKM3
    Date(UDATE) : 25.09.2011 to 09.11.2011
    Experts, Can you please help me out for this.
    Thanking you!!!!
    Regards,
    Vijaykumar Kola
    *.I'm already aware of this is a new development.

    Try this, simple report... Here we check the new value of credit  status field VBUK-CMGST and if it is 'D' we know that someone used VKM* transaction to release the document. Also you need to format the sales order number with leading zeros so it occupies all 10 digits and pass it to CDHDR-OBJECTID field (and not CHANGENR field). In the below code I am using select option for sales order number, so I know it will be formatted with leading zeros and so select on CDHDR will be successful.
    *& Report  ZTV_TEST
    REPORT  ztv_test.
    TABLES: vbak, cdhdr.
    SELECT-OPTIONS: s_saldoc FOR vbak-vbeln OBLIGATORY,
                    s_udate FOR cdhdr-udate.
    RANGES: r_objid FOR cdhdr-objectclas.
    DATA: ls_cdhdr TYPE cdhdr,
          ls_cdpos TYPE cdpos.
    IF NOT s_saldoc IS INITIAL.
      LOOP AT s_saldoc.
        MOVE-CORRESPONDING s_saldoc TO r_objid.
        CONDENSE: r_objid-high, r_objid-low.
        APPEND r_objid.
      ENDLOOP.
    ENDIF.
    CHECK NOT r_objid[] IS INITIAL.
    SELECT *
      INTO ls_cdhdr
      FROM cdhdr
            WHERE objectclas = 'VERKBELEG' AND
                  objectid IN r_objid AND
                  udate IN s_udate AND
                  tcode LIKE 'VKM%'.
      SELECT SINGLE *
        INTO ls_cdpos
        FROM cdpos
          WHERE objectclas = ls_cdhdr-objectclas AND
                objectid = ls_cdhdr-objectid AND
                changenr = ls_cdhdr-changenr AND
                tabname = 'VBUK' AND
                fname = 'CMGST' AND
                value_new = 'D'.
      IF sy-subrc = 0.
        WRITE:/ ls_cdhdr-objectid(10), ls_cdhdr-username,
                ls_cdhdr-udate, ls_cdhdr-utime.
      ENDIF.
    ENDSELECT.

  • Error when running customize sales acknowledgement report

    Hello-
    I've tried to customize the Sales Acknowledgement Report. The customize program is working in one instance but when i move it to a different instance, the program would completed with error:
    EMR Order Management: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXONT_OEXOEACK module: EMR Sales Order Acknowledgement
    Current system time is 31-OCT-2012 13:25:48
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_SOB_ID='228'
    P_ORG_ID='2486'
    P_ITEM_FLEX_CODE='MSTK'
    P_PRINT_DESCRIPTION='D'
    P_BOOKED_STATUS='Y'
    P_ORDER_NUM_LOW='100001776'
    P_ORDER_NUM_HIGH='100001776'
    P_ORDER_CATEGORY='SALES'
    P_LINE_CATEGORY='ALL'
    p_open_orders='Y'
    P_SHOW_HDR_ATTACH='N'
    P_SHOW_BODY_ATTACH='N'
    P_SHOW_FTR_ATTACH='N'
    -- Start of Reports Command --
    ar60runb
    P_CONC_REQUEST_ID=11078969
    P_SOB_ID='228'
    P_ORG_ID='2486'
    P_ITEM_FLEX_CODE='MSTK'
    P_PRINT_DESCRIPTION='D'
    P_BOOKED_STATUS='Y'
    P_ORDER_NUM_LOW='100001776'
    P_ORDER_NUM_HIGH='100001776'
    P_ORDER_CATEGORY='SALES'
    P_LINE_CATEGORY='ALL'
    p_open_orders='Y'
    P_SHOW_HDR_ATTACH='N'
    P_SHOW_BODY_ATTACH='N'
    P_SHOW_FTR_ATTACH='N'
    report=/mariap1ap/mariap1appl/XXONT/11.5.0/reports/US/XXONT_OEXOEACK.rdf
    batch=yes
    destype=file
    desname=/mariap1ap/mariap1comn/admin/out/mariap1_usmtniaderpdb12/o11078969.out
    desformat=XML
    -- End of Reports Command --
    Request language is :
    AMERICAN
    Request territory is :
    AMERICA
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is set to:
    /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Enabling XML_REPORTS_ENVIRONMENT based environment switching
    The Character-Set of the System is:
    UTF8
    XML_REPORTS_XENVIRONMENT is :
    /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Previous NLS_LANG Environment Variable was :
    American_America.UTF8
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Start of log messages from FND_FILE
    ENTERING OE_SYS_PARAMETERS.VALUE
    Going to get the value for MASTER_ORGANIZATION_ID
    ENTERING OE_SYS_PARAMETERS_PVT.VALUE
    org_id has changed so delete the cache and reset the globals
    PARAMETER VALUE from the DB when org_id has changed : 2488
    End of log messages from FND_FILE
    Reset original NLS_LANG in environment as :
    American_America.UTF8
    Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11078969.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 31-OCT-2012 13:26:31
    I found similar issues but i think the solution differs per module. Can someone please help me with this?
    Thank you in advance

    Hello-
    I've tried to customize the Sales Acknowledgement Report. The customize program is working in one instance but when i move it to a different instance, the program would completed with error:
    EMR Order Management: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXONT_OEXOEACK module: EMR Sales Order Acknowledgement
    Current system time is 31-OCT-2012 13:25:48
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_SOB_ID='228'
    P_ORG_ID='2486'
    P_ITEM_FLEX_CODE='MSTK'
    P_PRINT_DESCRIPTION='D'
    P_BOOKED_STATUS='Y'
    P_ORDER_NUM_LOW='100001776'
    P_ORDER_NUM_HIGH='100001776'
    P_ORDER_CATEGORY='SALES'
    P_LINE_CATEGORY='ALL'
    p_open_orders='Y'
    P_SHOW_HDR_ATTACH='N'
    P_SHOW_BODY_ATTACH='N'
    P_SHOW_FTR_ATTACH='N'
    -- Start of Reports Command --
    ar60runb
    P_CONC_REQUEST_ID=11078969
    P_SOB_ID='228'
    P_ORG_ID='2486'
    P_ITEM_FLEX_CODE='MSTK'
    P_PRINT_DESCRIPTION='D'
    P_BOOKED_STATUS='Y'
    P_ORDER_NUM_LOW='100001776'
    P_ORDER_NUM_HIGH='100001776'
    P_ORDER_CATEGORY='SALES'
    P_LINE_CATEGORY='ALL'
    p_open_orders='Y'
    P_SHOW_HDR_ATTACH='N'
    P_SHOW_BODY_ATTACH='N'
    P_SHOW_FTR_ATTACH='N'
    report=/mariap1ap/mariap1appl/XXONT/11.5.0/reports/US/XXONT_OEXOEACK.rdf
    batch=yes
    destype=file
    desname=/mariap1ap/mariap1comn/admin/out/mariap1_usmtniaderpdb12/o11078969.out
    desformat=XML
    -- End of Reports Command --
    Request language is :
    AMERICAN
    Request territory is :
    AMERICA
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is set to:
    /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Enabling XML_REPORTS_ENVIRONMENT based environment switching
    The Character-Set of the System is:
    UTF8
    XML_REPORTS_XENVIRONMENT is :
    /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /mariap1ap/mariap1ora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Previous NLS_LANG Environment Variable was :
    American_America.UTF8
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Start of log messages from FND_FILE
    ENTERING OE_SYS_PARAMETERS.VALUE
    Going to get the value for MASTER_ORGANIZATION_ID
    ENTERING OE_SYS_PARAMETERS_PVT.VALUE
    org_id has changed so delete the cache and reset the globals
    PARAMETER VALUE from the DB when org_id has changed : 2488
    End of log messages from FND_FILE
    Reset original NLS_LANG in environment as :
    American_America.UTF8
    Program was terminated by signal 11
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11078969.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 31-OCT-2012 13:26:31
    I found similar issues but i think the solution differs per module. Can someone please help me with this?
    Thank you in advance

  • Regarding Sales Order Report in SD

    Hii
    I want to create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details.
    Any inputs would be appreciated
    Regards,
    Guru

    Hello Guru,
    Please use basic SD transactions VA01,VA02,VA03(Create/change/display Sales order).
    Here, places the mouse cursor on any of the fields and hit F1.
    You will be given Technical help info (Table name ,field name,screen name)
    For example in VA03  when we hit F1 on Sales order number input help field, we get the following information.
    Table name VBAK
    Field: VBELN
    Data element: VBELN_VA
    Also as mentioned in the previous threads, please go through the tables VBAK,VBAP,VBFA,VBRP for the information required.
    Please mark as answered if my suggestion helped in resolving your problem.
    Regards,
    Himanshu Limaye

  • Need help in copying Invoice date to lower level item in Sales order report

    Hello Experts,
    I am debugging into one Sales order report.I need little bit help.The report is displaying Invoice Date for
    Sales order Billing documents for Higher item in Bill of Material Structures.But as per user requirement,
    I am supposed to show the Invoice date for lower level items also.The field for Higher level item is 'UEPOS'.
    I want to copy the Invoice date for Higher level item to lower level item. Can you please guide me in the logic?
    Thanking you in anticipation.
    Best Regards,
    Harish

    Hi BreakPoint,
    Thanks for the information.
    I have applied the same way but it is showing only lower line items now.
    Invoice dates for Higher level items are not there.
    I am pasting the code here which I have applied.
    Then you can give me more guidence.
    This is to be done only for 'ZREP' sales orders.
    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is not INITIAL.
                          read table t_final into w_final_ZREP with key vbeln = w_vbak-vbeln
                                                                        posnr = w_vbak-uepos.
                             w_final-erdat_i = w_final_ZREP-erdat_i.
                             else.
                    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is INITIAL.
                      w_final-erdat_i = w_invdate.
                    endif.
                    endif.
    Can you please sugest me changes here?
    Best Regards,
    Harish
    Edited by: joshihaa on Jul 13, 2010 6:22 PM

  • DSO Analysis (Days Sales Outstanding) report

    Hey All,
    How do I configure or activate DSO (Days Sales Outstanding) Report?
    If I go to transaction S_ALR_87012167. I get " No Evaluation Exist."
    In the DSO calculation, by default it takes 30 days in a period, Can I change the no of days in the period for the DSO calculation?
    Please help me start this report.
    Thank you.
    Sincerely,
    Rohan
    Edited by: Rohan Shah on Oct 30, 2008 6:52 PM

    In order to run this report, you must have the Financial Information System configured.  Then run transaction F.29 to create the evaluation.  F.30 will then display the evaluations.

  • Sales Analysis Report - Items -- blank result

    Hi,
    I'm testing a setup and running the sales analysis report. It works for the Customer version but I get no results when running on Items.
    I'm on SBO 2007A SP01 PL07. There are open and closed invoices for inventory items; no credit memos have been posted. All Item type invoices.
    When I run by Customer, I get the correct data - open and closed invoices for that customer.
    When I run by Items, I get no results. The date range is the same for both reports.
    When I run the purchase analysis on Items, I get data for the same items I am trying to see in the sales analysis.
    Any ideas what could be causing this?
    Thank you,
    Heather

    HI Gordon,
    I left the default settings: 
    - Annual Report, Invoices, Individual Display, No Totals
    - Posting Date:  whole fiscal year
    - Main selection:  left blank/default (group = all, no properties)
    I have double/triple/quadruple-check even the Secondary SElection to make sure there's nothing there.
    I have also run it on Due Date instead of Posting Date, still no results (if run on Items).
    As I mentioned, the selection criteria is what I want but for some reason that one version, Items, does not work. The other 2 tabs work with the same selection.
    Heather

  • Open sales orders report

    Hi,
         Does anyone know of any open sales orders report ? VA05 ? Table join between VBAP-VBAK ?
    Thanks

    Hello,
    Does anyone know of any open sales orders report ? VA05 ? Table join between VBAP-VBAK ?
    If your basic requirement is find out the open Sales Order then you can look out for the below standard report:
    VA05/VA05N
    If your requirement involves some values to be included then kindly urge you to go for SQVI technique involving tables like VBAK,VBAP,VBUK and other Sales table based on requirement.
    Regards,
    Sarthak

  • Open Sales Order Report

    Hello..
    my client wants to have the open sales Order report in following format :
    ======================================================================================================
    Customer Name | Item 1 code  | Item 2 code  | Item 3 code  |  Item 4 code  |  Item 5 code  |  Item 6 code  | Item 7 code  |
    =======================================================================================================
    Jack Inc.......................987.................865.....................654.................543.......................739..................543...................987
    Colt Inc.......................237.................213.....................799..................321.......................875...................187...................122
    IOUU LLC...................127.................535.....................654..................777.......................211...................345...................777
    =====================================================================================================
    .................................1351..............1613...................2107.................1641.....................1825.................1075..................1886
    =====================================================================================================
    pls help me to create sql query for the above
    rekha
    Edited by: Rekhatiwari on Dec 16, 2010 10:46 AM
    Edited by: Rekhatiwari on Dec 16, 2010 10:47 AM

    Hi,
    Try this:
    SELECT T0.CardName,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%2\]') Item1,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%3\]') Item2,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%4\]') Item3,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%5\]') Item4,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%6\]') Item5,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%7\]') Item6,
    (Select SUM(isnull(T1.quantity,0)) from RDR1 T1 WHERE T1.DocEntry = T0.DocEntry AND T1.ItemCode = '[%8\]') Item7
    FROM ORDR T0
    WHERE T0.docdate between [%0\] and [%1\]
    That might be the only way close to your requirement.
    Thanks,
    Gordon

  • PURCHASE & SALE SUMMARY REPORT

    hi....
    i want T-codes for getting PURCHASE & SALE SUMMARY REPORT ALONG WITH VENDOR & CUSTOMER WISE ALSO.
    Thanks & Regards
    Rekha Sharma

    hi...
    by these t.code i not found any result pls do needful.
    i want vendorwise/customerswise purchase/sale summry. It should show Purchase/Sale Qty. & amount.
    Thanks & Regards
    Rekha sharma

  • Sales Analysis Report service warehouse wise

    Dear Experts,
    I've configured 4 service warehouses to an item  in SAP B1 8.8 PL:16.  And now I want to see sales analysis report of that particular item against each service warehouse. But from the Sales Analysis or purchase analysis report I can't able to see service warehouse wise sales quantity & amount.
    N.B.-Those items are created as Sales & Expense item only, no inventory.
    Plz help.
    Subrata

    Hi Subrata,
    in this case you need a customized report trough Query or through Crystal Report.
    regards,
    Fidel

  • How To Add a new column for ZPR0 price in open sales order report ??

    HI,
    my requirement is To Add a new column for ZPR0 price in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    k

  • To Add a new column for ZPR0 prce in open sales order report

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

    HI,
    my requirement is To Add a new column for ZPR0 prce in open sales order report if the order/scheduling agreement is a cross-company code transaction l(company code of order/scheduling agreement <> company code of delivering plant), price = ZPR0 price as at estimated GI date

Maybe you are looking for