Change the invoice amount

Dear experts
      i have a customer invoice its amount is 18000.and posted also
*my question
i want to change the 18000 to 20000 .is it possible.
      i don't want to reverse this truncation
Thanks in Advance
  Ajeesh.s

Hello,
Once the document got posted you can't change the ammount of that document. if you want to re-post the document with different ammount best optioon would be reverse the this document by posting a document with the equal  ammount with nagative value and then post you new document with correct ammount.
you can post document using either t-code FB01.
Regards,
Mangal Modi

Similar Messages

  • Change the PO amount to PO value

    HI ABAP expert,
    Sorry because i'm not expert in ABAP. I got this ABAP program for Open PO in SDN,
    can anyone help me to change the
    > PO Amount change to PO Value
    > GR/SE Amount Change to GR Value
    > IR AMount Change to IR Value
    > Outstanding change to Value Outstanding
    report zaprropo message-id zm no standard page heading line-size 212
                                                           line-count 65.
    TABLES------------------------------------------------------------*
    tables:
          ekko,                            " Purchasing Document Header
          ekpo,                            " Purchasing Document Item
          ekbe,                            " History of PurchasingDocument
          essr.                            " Service Entry Sheet HeaderData
    DATA--------------------------------------------------------------*
    data  : begin of it_ekko occurs 0,
             ebeln like ekko-ebeln,
             ernam like ekko-ernam,
             ekgrp like ekko-ekgrp,
             bedat like ekko-bedat,
           end of it_ekko.
    data  : begin of it_ekbe_gr occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_gr.
    data  : begin of it_ekbe_ir occurs 0,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
             bewtp LIKE ekbe-bewtp,
              dmbtr like ekbe-dmbtr,
            end of it_ekbe_ir.
    data  : begin of it_output occurs 0,
              ekgrp like ekko-ekgrp,
              ebeln like ekko-ebeln,
              ebelp like ekpo-ebelp,
              ernam like ekko-ernam,
              afnam like ekpo-afnam,
              bedat like ekko-bedat,
              txz01 like ekpo-txz01,
             bewtp LIKE ekbe-bewtp,
              netwr like ekpo-netwr,
              dmbtr like ekbe-dmbtr,
              iramt like ekbe-dmbtr,
              outst like ekpo-netwr,
              eindt like eket-eindt,
             effwr LIKE ekpo-effwr,
            end of it_output.
    data  :  begin of it_title occurs 0,
               h11(5),
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10),
             end of it_title.
    data : flength.
    data : s_no type i value 1.
    ---- Added by Gopi
    Internal table for PO / WO Delivery Date
    data : begin of it_eket occurs 0,
             ebeln like eket-ebeln,
             ebelp like eket-ebelp,
             eindt like eket-eindt,
           end of it_eket.
    selections
    selection-screen : skip.
    selection-screen : begin of block block1 with frame title text-001.
    parameters : s_bukrs like ekko-bukrs.
    select-options :  s_ebeln for ekko-ebeln,
                      s_bedat for ekko-bedat,
                      s_ekgrp for ekko-ekgrp.
                     s_hdg   for ekko-ekgrp.
    selection-screen : end of block block1.
    selection-screen begin of block btch with frame title text-003.
    parameters: excel as checkbox,
                file(128) type c.
    selection-screen end of block btch.
    selection-screen begin of block block2 with frame title text-002.
    parameters: asat as checkbox,
                p_date like sy-datum.
    selection-screen end of block block2.
    --AT SELECTION-SCREEN--
    at selection-screen.
    at selection-screen on value-request for file.
      perform get_file_name using file.
    main program code**************************************************
    start-of-selection.
      it_title-h11 = 'S.No'.
      it_title-h0  = 'Group'.
      it_title-h1  = 'PO Number'.
      it_title-h2  = 'PO Item'.
      it_title-h3  = 'PO Creator'.
      it_title-h4  = 'Requisitor'.
      it_title-h5  = 'PO Date'.
      it_title-h6  = 'PO Short Text'.
      it_title-h7  = 'PO Amount'.
      it_title-h8  = 'GR/SE Amount'.
      it_title-h9  = 'IR Amount'.
      it_title-h10 = 'Outstanding'.
      it_title-h12 = 'Del. Date'.
      append it_title.
      perform extract_po_details_new.                           "20070814
      perform extract_po_history_new.                           "20070814
      perform calculate_outstanding_new.                        "20070814
    end-of-selection.
      perform display_report.
      if excel = 'X'.
        perform download.
      endif.
    ---- Added by Gopi
    top-of-page.
      perform page_heading.
    display_report ****************************
    form display_report.
    it_title-h11 = 'S.No'.
    it_title-h0  = 'Group'.
    it_title-h1  = 'PO Number'.
    it_title-h2  = 'PO Item'.
    it_title-h3  = 'PO Creator'.
    it_title-h4  = 'Requisitor'.
    it_title-h5  = 'PO Date'.
    it_title-h6  = 'PO Short Text'.
    it_title-h7  = 'PO Amount'.
    it_title-h8  = 'GR/SE Amount'.
    it_title-h9  = 'IR Amount'.
    it_title-h10 = 'Outstanding'.
    it_title-h12 = 'Del Date'.
    APPEND it_title.
    WRITE : / 'Outstanding PO Listing Report'.
    ULINE.
    FORMAT COLOR COL_HEADING.
    WRITE : /1   it_title-h11,
              7   it_title-h0,
              14  it_title-h1,
              29  it_title-h2,
              38  it_title-h3,
              53  it_title-h4,
              68  it_title-h5,
              79  it_title-h6,
              122 it_title-h7,
              142 it_title-h8,
              162 it_title-h9,
              182 it_title-h10,
              202 it_title-h12.
    FORMAT COLOR OFF.
    ULINE.
    If Output table is not empty
      if not it_output[] is initial.
        loop at it_output.
          on change of it_output-ebeln.
            uline.
            write : /1(5)  s_no, 6 sy-vline,
                     7  it_output-ekgrp,
                    14  it_output-ebeln,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
            s_no = s_no + 1.
          else.
            write :/6 sy-vline,
                    29  it_output-ebelp,
                    38  it_output-ernam,
                    53  it_output-afnam,
                    68  it_output-bedat,
                    79  it_output-txz01,
                    122 it_output-netwr,
                    142 it_output-dmbtr,
                    162 it_output-iramt,
                    182 it_output-outst,
                    202 it_output-eindt.
          endon.
         WRITE :/6 sy-vline.
          clear : it_output.
        endloop.
      else.
    If Output table is empty
        format color 5 intensified on.
       write : / 'No outstanding report generated for the purchasing group'
                  ,s_ekgrp-low, 'to', s_ekgrp-high,'for the period'
                  ,s_bedat-low, 'to', s_bedat-high.
        format color off.
      endif.
    endform.
    download*********************************
    form download.
      data: begin of it_download_header occurs 1,
               h0(5),
               h1(13),
               h2(7),
               h3(15),
               h4(15),
               h5(10),
               h6(40),
               h7(20),
               h8(20),
               h9(20),
               h10(20),
               h12(10).
      data: end of it_download_header.
      it_download_header-h0  = 'Group'.
      it_download_header-h1  = 'PO Number'.
      it_download_header-h2  = 'PO Item'.
      it_download_header-h3  = 'PO Creator'.
      it_download_header-h4  = 'Requisitor'.
      it_download_header-h5  = 'PO Date'.
      it_download_header-h6  = 'PO Short Text'.
      it_download_header-h7  = 'PO Amount'.
      it_download_header-h8  = 'GR/SE Amount'.
      it_download_header-h9  = 'IR Amount'.
      it_download_header-h10 = 'Outstanding'.
      it_download_header-h12 = 'Del. Date'.
      append it_download_header.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
           importing
                filelength          = flength
           tables
                data_tab            = it_download_header
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      call function 'WS_DOWNLOAD'
           exporting
                codepage            = 'IBM'
                filename            = file
                filetype            = 'DAT'
                mode                = 'A'
           importing
                filelength          = flength
           tables
                data_tab            = it_output
           exceptions
                file_open_error     = 1
                file_write_error    = 2
                invalid_filesize    = 3
                invalid_table_width = 4
                invalid_type        = 5.
      if sy-subrc ne 0.
        message e999 with 'error downloading file :' file.
      endif.
    endform.
    *&      Form  get_file_name
          text
         -->P_P_FNAME  text
    form get_file_name using    p_fname.
      call function 'WS_FILENAME_GET'
           exporting
                def_filename     = p_fname
                mask             = ',.,..'
                mode             = 'S'
           importing
                filename         = p_fname
           exceptions
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                others           = 5.
    endform.                    " get_file_name
    *&      Form  page_heading
          text
    -->  p1        text
    <--  p2        text
    form page_heading.
    it_title-h11 = 'S.No'.
    it_title-h0  = 'Group'.
    it_title-h1  = 'PO Number'.
    it_title-h2  = 'PO Item'.
    it_title-h3  = 'PO Creator'.
    it_title-h4  = 'Requisitor'.
    it_title-h5  = 'PO Date'.
    it_title-h6  = 'PO Short Text'.
    it_title-h7  = 'PO Amount'.
    it_title-h8  = 'GR/SE Amount'.
    it_title-h9  = 'IR Amount'.
    it_title-h10 = 'Outstanding'.
    it_title-h12 = 'Del. Date'.
    APPEND it_title.
      write : / 'Outstanding PO Listing Report'.
      uline.
      format color col_heading.
      write : /1   it_title-h11,
           7   it_title-h0,
           14  it_title-h1,
           29  it_title-h2,
           38  it_title-h3,
           53  it_title-h4,
           68  it_title-h5,
           79  it_title-h6,
           122 it_title-h7,
           142 it_title-h8,
           162 it_title-h9,
           182 it_title-h10,
           202 it_title-h12.
      format color off.
      uline.
    endform.                    " page_heading
    *&      Form  EXTRACT_PO_DETAILS_NEW
          text
    -->  p1        text
    <--  p2        text
    form extract_po_details_new.
      data: begin of it_po occurs 0,
        ebeln like ekko-ebeln,
        ebelp like ekpo-ebelp,
        ernam like ekko-ernam,
        ekgrp like ekko-ekgrp,
        bedat like ekko-bedat,
        txz01 like ekpo-txz01,
        netwr like ekpo-netwr,
        afnam like ekpo-afnam,
        effwr like ekpo-effwr.
      data: end of it_po.
      refresh it_output.
      if not p_date is initial.
        select aebeln bebelp aernam aekgrp abedat btxz01 b~netwr
           bafnam beffwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on bebeln = aebeln
        where a~bukrs = s_bukrs  and
            a~aedat le p_date  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      else.
        select aebeln bebelp aernam aekgrp abedat btxz01 b~netwr
           bafnam beffwr
        into corresponding fields of table it_po
        from ekpo as b inner join ekko as a
        on bebeln = aebeln
        where a~bukrs = s_bukrs  and
            a~ebeln in s_ebeln and
            a~bedat in s_bedat and
            a~ekgrp in s_ekgrp and
            a~frgke ne 'E'     and
            b~loekz not in ('L', 'S', 'X').
      endif.
      sort it_po by ebeln ebelp.
      delete adjacent duplicates from it_po.
      delete it_po where ekgrp eq 'HDB' and ebelp eq 10.    "20070814
      delete it_po where ebeln+0(1) eq '6'.
      loop at it_po.
        move-corresponding it_po to it_output.
        append it_output.
        clear it_output.
      endloop.
      refresh it_po.
      free it_po.
    endform.                    " EXTRACT_PO_DETAILS_NEW
    *&      Form  EXTRACT_PO_HISTORY_NEW
          text
    -->  p1        text
    <--  p2        text
    form extract_po_history_new.
      data: begin of it_ekbe occurs 2000,
              ebeln like ekbe-ebeln,
              ebelp like ekbe-ebelp,
              bewtp like ekbe-bewtp,
              shkzg like ekbe-shkzg,
              dmbtr like ekbe-dmbtr.
      data: end of it_ekbe.
      check not it_output[] is initial.
      select * into corresponding fields of table it_ekbe
        from ekbe for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp and
              bewtp in ('E', 'N', 'Q', 'R', 'X').
      loop at it_ekbe.
        if it_ekbe-bewtp = 'E'.          "GET GR AMT
          move it_ekbe-ebeln to it_ekbe_gr-ebeln.
          move it_ekbe-ebelp to it_ekbe_gr-ebelp.
          move it_ekbe-bewtp to it_ekbe_gr-bewtp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_gr-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_gr.
        else.                              "GET IR AMT
       ELSEIF IT_EKBE-BEWTP = 'N' OR     "GET IR AMT
              IT_EKBE-BEWTP = 'Q' OR
              IT_EKBE-BEWTP = 'R' OR
              IT_EKBE-BEWTP = 'X'.
          move it_ekbe-ebeln to it_ekbe_ir-ebeln.
          move it_ekbe-ebelp to it_ekbe_ir-ebelp.
          if it_ekbe-shkzg = 'H'.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr * ( -1 ).
          else.
            it_ekbe_ir-dmbtr = it_ekbe-dmbtr.
          endif.
          collect it_ekbe_ir.
        endif.
      endloop.
      refresh it_ekbe.
      free it_ekbe.
    endform.                    " EXTRACT_PO_HISTORY_NEW
    *&      Form  CALCULATE_OUTSTANDING_NEW
          text
    -->  p1        text
    <--  p2        text
    form calculate_outstanding_new.
    DATA: BEGIN OF IT_EKET OCCURS 10000,
             EBELN LIKE EKET-EBELN,
             EBELP LIKE EKET-EBELP,
             EINDT LIKE EKET-EINDT.
    DATA: END OF IT_EKET.
      sort: it_ekbe_gr, it_ekbe_ir.
      sort it_output by ebeln ebelp.
      loop at it_output.
        read table it_ekbe_gr with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_gr-dmbtr to it_output-dmbtr.
        endif.
        read table it_ekbe_ir with key ebeln = it_output-ebeln
                                       ebelp = it_output-ebelp.
        if sy-subrc = 0.
          move it_ekbe_ir-dmbtr to it_output-iramt.
        endif.
        if it_output-iramt gt it_output-netwr.
          delete it_output. " where iramt gt it_output-netwr.
          clear : it_output.
          continue.
        endif.
        if it_output-ekgrp eq 'HDB'.
          if it_output-netwr = it_output-iramt.
            delete it_output.
            clear it_output.
          else.
            it_output-outst = it_output-netwr - it_output-iramt.
            modify it_output.
          endif.
        else.
          if it_output-netwr = it_output-dmbtr.
            if it_output-dmbtr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          else.
            if it_output-netwr = it_output-iramt.
              delete it_output.
              clear it_output.
            else.
              it_output-outst = it_output-netwr - it_output-iramt.
              modify it_output.
            endif.
          endif.
        endif.
      endloop.
      sort it_output by ebeln ebelp.
      check not it_output[] is initial.
      select * into corresponding fields of table it_eket
        from eket for all entries in it_output
        where ebeln = it_output-ebeln and
              ebelp = it_output-ebelp.
      sort it_eket by ebeln ebelp.
      loop at it_output.
        read table it_eket with key ebeln = it_output-ebeln
                                    ebelp = it_output-ebelp.
        if sy-subrc = 0.
          it_output-eindt = it_eket-eindt.
        else.
          clear it_output-eindt.
        endif.
        modify it_output.
      endloop.
      sort it_output by ekgrp ebeln ebelp.
    endform.                    " CALCULATE_OUTSTANDING_NEW

    report zaprropo message-id zm no standard page heading line-size 212
    line-count 65.
    TABLES------------------------------------------------------------*
    tables:
    ekko, " Purchasing Document Header
    ekpo, " Purchasing Document Item
    ekbe, " History of PurchasingDocument
    essr. " Service Entry Sheet HeaderData
    DATA--------------------------------------------------------------*
    data : begin of it_ekko occurs 0,
    ebeln like ekko-ebeln,
    ernam like ekko-ernam,
    ekgrp like ekko-ekgrp,
    bedat like ekko-bedat,
    end of it_ekko.
    data : begin of it_ekbe_gr occurs 0,
    ebeln like ekbe-ebeln,
    ebelp like ekbe-ebelp,
    bewtp like ekbe-bewtp,
    dmbtr like ekbe-dmbtr,
    end of it_ekbe_gr.
    data : begin of it_ekbe_ir occurs 0,
    ebeln like ekbe-ebeln,
    ebelp like ekbe-ebelp,
    bewtp LIKE ekbe-bewtp,
    dmbtr like ekbe-dmbtr,
    end of it_ekbe_ir.
    data : begin of it_output occurs 0,
    ekgrp like ekko-ekgrp,
    ebeln like ekko-ebeln,
    ebelp like ekpo-ebelp,
    ernam like ekko-ernam,
    afnam like ekpo-afnam,
    bedat like ekko-bedat,
    txz01 like ekpo-txz01,
    bewtp LIKE ekbe-bewtp,
    netwr like ekpo-netwr,
    dmbtr like ekbe-dmbtr,
    iramt like ekbe-dmbtr,
    outst like ekpo-netwr,
    eindt like eket-eindt,
    effwr LIKE ekpo-effwr,
    end of it_output.
    data : begin of it_title occurs 0,
    h11(5),
    h0(5),
    h1(13),
    h2(7),
    h3(15),
    h4(15),
    h5(10),
    h6(40),
    h7(20),
    h8(20),
    h9(20),
    h10(20),
    h12(10),
    end of it_title.
    data : flength.
    data : s_no type i value 1.
    ---- Added by Gopi
    Internal table for PO / WO Delivery Date
    data : begin of it_eket occurs 0,
    ebeln like eket-ebeln,
    ebelp like eket-ebelp,
    eindt like eket-eindt,
    end of it_eket.
    selections
    selection-screen : skip.
    selection-screen : begin of block block1 with frame title text-001.
    parameters : s_bukrs like ekko-bukrs.
    select-options : s_ebeln for ekko-ebeln,
    s_bedat for ekko-bedat,
    s_ekgrp for ekko-ekgrp.
    s_hdg for ekko-ekgrp.
    selection-screen : end of block block1.
    selection-screen begin of block btch with frame title text-003.
    parameters: excel as checkbox,
    file(128) type c.
    selection-screen end of block btch.
    selection-screen begin of block block2 with frame title text-002.
    parameters: asat as checkbox,
    p_date like sy-datum.
    selection-screen end of block block2.
    --AT SELECTION-SCREEN--
    at selection-screen.
    at selection-screen on value-request for file.
    perform get_file_name using file.
    main program code**************************************************
    start-of-selection.
    it_title-h11 = 'S.No'.
    it_title-h0 = 'Group'.
    it_title-h1 = 'PO Number'.
    it_title-h2 = 'PO Item'.
    it_title-h3 = 'PO Creator'.
    it_title-h4 = 'Requisitor'.
    it_title-h5 = 'PO Date'.
    it_title-h6 = 'PO Short Text'.
    it_title-h7 = 'PO value'.
    it_title-h8 = 'GR/SE Amount'.
    it_title-h9 = 'IR value'.
    it_title-h10 = 'value Outstanding'.
    it_title-h12 = 'Del. Date'.
    append it_title.
    perform extract_po_details_new. "20070814
    perform extract_po_history_new. "20070814
    perform calculate_outstanding_new. "20070814
    end-of-selection.
    perform display_report.
    if excel = 'X'.
    perform download.
    endif.
    ---- Added by Gopi
    top-of-page.
    perform page_heading.
    display_report ****************************
    form display_report.
    it_title-h11 = 'S.No'.
    it_title-h0 = 'Group'.
    it_title-h1 = 'PO Number'.
    it_title-h2 = 'PO Item'.
    it_title-h3 = 'PO Creator'.
    it_title-h4 = 'Requisitor'.
    it_title-h5 = 'PO Date'.
    it_title-h6 = 'PO Short Text'.
    it_title-h7 = 'PO value'.
    it_title-h8 = 'GR value'.
    it_title-h9 = 'IR Amount'.
    it_title-h10 = 'Outstanding'.
    it_title-h12 = 'Del Date'.
    APPEND it_title.
    WRITE : / 'Outstanding PO Listing Report'.
    ULINE.
    FORMAT COLOR COL_HEADING.
    WRITE : /1 it_title-h11,
    7 it_title-h0,
    14 it_title-h1,
    29 it_title-h2,
    38 it_title-h3,
    53 it_title-h4,
    68 it_title-h5,
    79 it_title-h6,
    122 it_title-h7,
    142 it_title-h8,
    162 it_title-h9,
    182 it_title-h10,
    202 it_title-h12.
    FORMAT COLOR OFF.
    ULINE.
    If Output table is not empty
    if not it_output[] is initial.
    loop at it_output.
    on change of it_output-ebeln.
    uline.
    write : /1(5) s_no, 6 sy-vline,
    7 it_output-ekgrp,
    14 it_output-ebeln,
    29 it_output-ebelp,
    38 it_output-ernam,
    53 it_output-afnam,
    68 it_output-bedat,
    79 it_output-txz01,
    122 it_output-netwr,
    142 it_output-dmbtr,
    162 it_output-iramt,
    182 it_output-outst,
    202 it_output-eindt.
    s_no = s_no + 1.
    else.
    write :/6 sy-vline,
    29 it_output-ebelp,
    38 it_output-ernam,
    53 it_output-afnam,
    68 it_output-bedat,
    79 it_output-txz01,
    122 it_output-netwr,
    142 it_output-dmbtr,
    162 it_output-iramt,
    182 it_output-outst,
    202 it_output-eindt.
    endon.
    WRITE :/6 sy-vline.
    clear : it_output.
    endloop.
    else.
    If Output table is empty
    format color 5 intensified on.
    write : / 'No outstanding report generated for the purchasing group'
    ,s_ekgrp-low, 'to', s_ekgrp-high,'for the period'
    ,s_bedat-low, 'to', s_bedat-high.
    format color off.
    endif.
    endform.
    download*********************************
    form download.
    data: begin of it_download_header occurs 1,
    h0(5),
    h1(13),
    h2(7),
    h3(15),
    h4(15),
    h5(10),
    h6(40),
    h7(20),
    h8(20),
    h9(20),
    h10(20),
    h12(10).
    data: end of it_download_header.
    it_download_header-h0 = 'Group'.
    it_download_header-h1 = 'PO Number'.
    it_download_header-h2 = 'PO Item'.
    it_download_header-h3 = 'PO Creator'.
    it_download_header-h4 = 'Requisitor'.
    it_download_header-h5 = 'PO Date'.
    it_download_header-h6 = 'PO Short Text'.
    it_download_header-h7 = 'PO Amount'.
    it_download_header-h8 = 'GR value'.
    it_download_header-h9 = 'IR value'.
    it_download_header-h10 = ' value Outstanding'.
    it_download_header-h12 = 'Del. Date'.
    append it_download_header.
    call function 'WS_DOWNLOAD'
    exporting
    codepage = 'IBM'
    filename = file
    filetype = 'DAT'
    importing
    filelength = flength
    tables
    data_tab = it_download_header
    exceptions
    file_open_error = 1
    file_write_error = 2
    invalid_filesize = 3
    invalid_table_width = 4
    invalid_type = 5.
    call function 'WS_DOWNLOAD'
    exporting
    codepage = 'IBM'
    filename = file
    filetype = 'DAT'
    mode = 'A'
    importing
    filelength = flength
    tables
    data_tab = it_output
    exceptions
    file_open_error = 1
    file_write_error = 2
    invalid_filesize = 3
    invalid_table_width = 4
    invalid_type = 5.
    if sy-subrc ne 0.
    message e999 with 'error downloading file :' file.
    endif.
    endform.
    *& Form get_file_name
    text
    -->P_P_FNAME text
    form get_file_name using p_fname.
    call function 'WS_FILENAME_GET'
    exporting
    def_filename = p_fname
    mask = ',.,..'
    mode = 'S'
    importing
    filename = p_fname
    exceptions
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    others = 5.
    endform. " get_file_name
    *& Form page_heading
    text
    --> p1 text
    <-- p2 text
    form page_heading.
    it_title-h11 = 'S.No'.
    it_title-h0 = 'Group'.
    it_title-h1 = 'PO Number'.
    it_title-h2 = 'PO Item'.
    it_title-h3 = 'PO Creator'.
    it_title-h4 = 'Requisitor'.
    it_title-h5 = 'PO Date'.
    it_title-h6 = 'PO Short Text'.
    it_title-h7 = 'PO Amount'.
    it_title-h8 = 'GR value '.
    it_title-h9 = 'IR value'.
    it_title-h10 = 'value Outstanding'.
    it_title-h12 = 'Del. Date'.
    APPEND it_title.
    write : / 'Outstanding PO Listing Report'.
    uline.
    format color col_heading.
    write : /1 it_title-h11,
    7 it_title-h0,
    14 it_title-h1,
    29 it_title-h2,
    38 it_title-h3,
    53 it_title-h4,
    68 it_title-h5,
    79 it_title-h6,
    122 it_title-h7,
    142 it_title-h8,
    162 it_title-h9,
    182 it_title-h10,
    202 it_title-h12.
    format color off.
    uline.
    endform. " page_heading
    *& Form EXTRACT_PO_DETAILS_NEW
    text
    --> p1 text
    <-- p2 text
    form extract_po_details_new.
    data: begin of it_po occurs 0,
    ebeln like ekko-ebeln,
    ebelp like ekpo-ebelp,
    ernam like ekko-ernam,
    ekgrp like ekko-ekgrp,
    bedat like ekko-bedat,
    txz01 like ekpo-txz01,
    netwr like ekpo-netwr,
    afnam like ekpo-afnam,
    effwr like ekpo-effwr.
    data: end of it_po.
    refresh it_output.
    if not p_date is initial.
    select aebeln bebelp aernam aekgrp abedat btxz01 b~netwr
    bafnam beffwr
    into corresponding fields of table it_po
    from ekpo as b inner join ekko as a
    on bebeln = aebeln
    where a~bukrs = s_bukrs and
    a~aedat le p_date and
    a~ebeln in s_ebeln and
    a~bedat in s_bedat and
    a~ekgrp in s_ekgrp and
    a~frgke ne 'E' and
    b~loekz not in ('L', 'S', 'X').
    else.
    select aebeln bebelp aernam aekgrp abedat btxz01 b~netwr
    bafnam beffwr
    into corresponding fields of table it_po
    from ekpo as b inner join ekko as a
    on bebeln = aebeln
    where a~bukrs = s_bukrs and
    a~ebeln in s_ebeln and
    a~bedat in s_bedat and
    a~ekgrp in s_ekgrp and
    a~frgke ne 'E' and
    b~loekz not in ('L', 'S', 'X').
    endif.
    sort it_po by ebeln ebelp.
    delete adjacent duplicates from it_po.
    delete it_po where ekgrp eq 'HDB' and ebelp eq 10. "20070814
    delete it_po where ebeln+0(1) eq '6'.
    loop at it_po.
    move-corresponding it_po to it_output.
    append it_output.
    clear it_output.
    endloop.
    refresh it_po.
    free it_po.
    endform. " EXTRACT_PO_DETAILS_NEW
    *& Form EXTRACT_PO_HISTORY_NEW
    text
    --> p1 text
    <-- p2 text
    form extract_po_history_new.
    data: begin of it_ekbe occurs 2000,
    ebeln like ekbe-ebeln,
    ebelp like ekbe-ebelp,
    bewtp like ekbe-bewtp,
    shkzg like ekbe-shkzg,
    dmbtr like ekbe-dmbtr.
    data: end of it_ekbe.
    check not it_output[] is initial.
    select * into corresponding fields of table it_ekbe
    from ekbe for all entries in it_output
    where ebeln = it_output-ebeln and
    ebelp = it_output-ebelp and
    bewtp in ('E', 'N', 'Q', 'R', 'X').
    loop at it_ekbe.
    if it_ekbe-bewtp = 'E'. "GET GR AMT
    move it_ekbe-ebeln to it_ekbe_gr-ebeln.
    move it_ekbe-ebelp to it_ekbe_gr-ebelp.
    move it_ekbe-bewtp to it_ekbe_gr-bewtp.
    if it_ekbe-shkzg = 'H'.
    it_ekbe_gr-dmbtr = it_ekbe-dmbtr * ( -1 ).
    else.
    it_ekbe_gr-dmbtr = it_ekbe-dmbtr.
    endif.
    collect it_ekbe_gr.
    else. "GET IR AMT
    ELSEIF IT_EKBE-BEWTP = 'N' OR "GET IR AMT
    IT_EKBE-BEWTP = 'Q' OR
    IT_EKBE-BEWTP = 'R' OR
    IT_EKBE-BEWTP = 'X'.
    move it_ekbe-ebeln to it_ekbe_ir-ebeln.
    move it_ekbe-ebelp to it_ekbe_ir-ebelp.
    if it_ekbe-shkzg = 'H'.
    it_ekbe_ir-dmbtr = it_ekbe-dmbtr * ( -1 ).
    else.
    it_ekbe_ir-dmbtr = it_ekbe-dmbtr.
    endif.
    collect it_ekbe_ir.
    endif.
    endloop.
    refresh it_ekbe.
    free it_ekbe.
    endform. " EXTRACT_PO_HISTORY_NEW
    *& Form CALCULATE_OUTSTANDING_NEW
    text
    --> p1 text
    <-- p2 text
    form calculate_outstanding_new.
    DATA: BEGIN OF IT_EKET OCCURS 10000,
    EBELN LIKE EKET-EBELN,
    EBELP LIKE EKET-EBELP,
    EINDT LIKE EKET-EINDT.
    DATA: END OF IT_EKET.
    sort: it_ekbe_gr, it_ekbe_ir.
    sort it_output by ebeln ebelp.
    loop at it_output.
    read table it_ekbe_gr with key ebeln = it_output-ebeln
    ebelp = it_output-ebelp.
    if sy-subrc = 0.
    move it_ekbe_gr-dmbtr to it_output-dmbtr.
    endif.
    read table it_ekbe_ir with key ebeln = it_output-ebeln
    ebelp = it_output-ebelp.
    if sy-subrc = 0.
    move it_ekbe_ir-dmbtr to it_output-iramt.
    endif.
    if it_output-iramt gt it_output-netwr.
    delete it_output. " where iramt gt it_output-netwr.
    clear : it_output.
    continue.
    endif.
    if it_output-ekgrp eq 'HDB'.
    if it_output-netwr = it_output-iramt.
    delete it_output.
    clear it_output.
    else.
    it_output-outst = it_output-netwr - it_output-iramt.
    modify it_output.
    endif.
    else.
    if it_output-netwr = it_output-dmbtr.
    if it_output-dmbtr = it_output-iramt.
    delete it_output.
    clear it_output.
    else.
    it_output-outst = it_output-netwr - it_output-iramt.
    modify it_output.
    endif.
    else.
    if it_output-netwr = it_output-iramt.
    delete it_output.
    clear it_output.
    else.
    it_output-outst = it_output-netwr - it_output-iramt.
    modify it_output.
    endif.
    endif.
    endif.
    endloop.
    sort it_output by ebeln ebelp.
    check not it_output[] is initial.
    select * into corresponding fields of table it_eket
    from eket for all entries in it_output
    where ebeln = it_output-ebeln and
    ebelp = it_output-ebelp.
    sort it_eket by ebeln ebelp.
    loop at it_output.
    read table it_eket with key ebeln = it_output-ebeln
    ebelp = it_output-ebelp.
    if sy-subrc = 0.
    it_output-eindt = it_eket-eindt.
    else.
    clear it_output-eindt.
    endif.
    modify it_output.
    endloop.
    sort it_output by ekgrp ebeln ebelp.
    endform. " CALCULATE_OUTSTANDING_NEW

  • The amount of down payment must be less than the invoice amount

    Hi all,
    Our customers are using SAP 2007-PL15 and SAP 2007-PL41.
    When we want to create a down payment for a sales order, and we want to pay the entire amount of the sales order, including tax, we have to put an amount inthe TOTAL field of the Down Payment window since by default, the down payment amount is the total of the invoice before applying tax.  The DPM is
    higher than 100% (strange but I think it's normal since the down payment is not planned to take the tax in consideration).
    Then, we create an incoming payment for this down payment. It's ok.
    Then, we create an invoice based on the sales order we have paid with the down payment. It's impossible to use the down payment for the invoice... why that ? We receive the error 'The amount of down payment must be less than the invoice amount'. This causes big headaches to our customers !!
    Could you explain us what to do please ?
    thanks,
    Luce

    I'm very sorry, I have a similar question in dealing with AP Down Payment Request Linked to AP Invoice,  my case like this:
    1. I created 3 AP DPRs,their amount are each 100,000 RMB(for example, their document number are 10,11,12). then do the outgoing payment fully paided.
    2. I created a AP Invoice with the amount 150,000 RMB(for example, this AR Invoice document number is 5). I use the buttom"Total Down Payment",and selecet AP DRP No.10 and 11. When I click the buttom"Add",an error shows:
    The amount of down payment must be less than the invoice amount
    and I don't know how to continue.....
    Many Thanks
    Kam
    (PS:My English is poor,forgive me please. Shall I Speak in Chinese? then I can describe this question more clearly.)

  • Can I change the pressure amount of a brush line –drawn by mouse pen- after I drew it?

    Hey everybody,
    I am using illustrator for doing some calligraphy and I am not really experienced with this program. I am using a mouse pen with pressure to draw/write calligraphies. My question is, can I change the pressure amount after I drew lines using brush tool. Let’s say I drew a line, it is good but still not satisfactory. I just want to do a little change in pressure amount in some segments –not all the line- on line. Does illustrator give me this option?
    Thank you very much!

    Kind of possible with Width tool(shift+w).
    MOEASK wrote:
    Why this is a plugin on illustrator? it should come with the prgram, is not the illustrator master of vector graphic programs!?!
    It happens in every adobe product.

  • Change the Invoice accounting document type RV to some other

    Dear Friends,
    I need to change the Invoice accounting document type RV to some other, how can I accomplish this
    Kind Regards
    Ravi

    You want to change the doucment type after you have posted the document, you can do so, by following config
    IMG . Financial aaccounting > Financial aaccounting basic setting > Document > Rules for changing document > Document change rules document header.
    If you are posting through FB60, you can go to EDITING OPTION once you are in FB60 screen. And under Document type option, select Entry with short name
    Thanks
    ROn

  • How could I change the Invoice date automatically in MIRO?

    Of course, I can change it manually. But the user want to calculate the due date in their own way---we have a special way to calculate the due date. So, I am looking for User-exit where I can write ABAP codes to recalculate the invoice date and cover the default invoice date, so the system can get the right due date by calculate the invoice date in the standard way.
    Did anyone have any experience in change the invoice date??Pls tell me. THKS!

    You can use the badi MRM_HEADER_DEFAULT.
    (See in transaction SE18)

  • RE: To change the invoice approver in the PO

    Hi All,
    If you want to change the invoice approver in the PO it is possible to change it by putting a e-mail address direct in - the search field with the field glass is not working. It brings no values if you put a name in
    Thanks
    Madhav

    if ur po is processed then it is not possible
    if it is not processed for gr then just delete the existing material and give new entry of material in same po
    regards
    kunal
    award if helpful

  • Indirect evaluation, 2 change the default amount against a wagetype in IT8

    Hi Experts,
    After providing the paysccale str in IT0008 the default wagetype for stipend is coming along with its amount (in change mode ) but when i am chnaging the amount and trying to save it the amount regains that default value. My requirement is I should be able to change the default amount comimg and then save it.
    How it is possible.
    Regards,
    Tomesh

    Hi,
    Go to table V_T511 for the wagetype. Tick the Rewritable field. This will allow your INVAL to be chnages in IT0008
    Regards,
    Devojit

  • Majority of the Invoice amount is VAT amount

    Hi,
    Could anybody please tell me how do I enter a FB60 invoice in which the invoice value is say 10000 and the VAT amount is 9000 and the expense is 1000.
    Since I have to enter a VAT code the system does not accept the tax amount to be greater than the tax base.
    How could I achieve that?
    Thanks
    Vandana

    Hello,
    I have the same problem.
    I created a tax code with a fake percentage, and even by seizing directly the VAT Amount, this error message (which cannot be disable in IMG) appears :
    "The tax amount must not be greater than the tax base"
    The message ID is : FF747.
    My supplier told me this control is related to the account type (tax category in FS00) and connot be disable, even with a new VAT code. As the posting is automatically created by an ABAP program, I cannot tick the box "Determine tax base". The ABAP program cannot be changed. Is there any solution to avoid this checking ?
    If anybody has an idea about this, I'll be glad to hear it...
    Regards.
    Florent Perrinelle
    Edited by: Florent Perrinelle on Aug 18, 2009 11:15 AM

  • Message change for invoice amount against Purchase order

    Hi Experts ,
    In MIRO , While invoice posting against a purchase order , when enter is pressed after supplying posting date amount
    Purchase order no and line item no , a message appears : downpayments against vendor xxx exists giving total amount against the vendor indicated in purchase order .
    Can message be changed and amount against that particular purchase order only be displayed instead of against vendor , because same vendor can have multiple purchase order by using any enhancement .
    Thanks
    SA

    Hi SA ,
    i think u are getting this from from ur User Exits only , trace this message based on the message No.
    in standard MIRO u wont get this kind of messages.
    regards
    Prabhu

  • HT1657 Where do I find rented movies on the iPad?  It is not in downloads.  I received an email with the invoice amount so I have been charged for it, I just cannot find it on the iPad.

    Where do I find rented movies on the iPad?

    If you can't find the movie you downloaded on your iPad, iPhone or iPod Touch, check inside your Videos App

  • Invoice Amount Change

    Dear All,
              Is it possible to change the Invoice Amount after making the Commercial Invoice and Excise Invoice.
    Thanks
    Saro

    Hi,
    You cannot change the invoice amount once you have posted the Comm invoice nad excise invoice which reverse the accounting enteries
    You need to cancel the excise invoice ( J1iin) and cancel the billing document ( vf11).
    Now create a new billing document with correct price and post excise invoice.
    Regards,
    Krishna O

  • Change in Invoice for condition amount.

    Hello Gurus,
    Actually I have a query where I want to make changes in the Invoice amount. I have maintain the contract and with respective of that contract I got due invoices of equal amount by the periodic billing. But now the case is that I want to raise the invoice amount without making changes in the contract value. So can I make changes in the invoice amount by adding a condition into the invoice condition directly or can I change the previous condition amount in invoice only?
    If we can make this changes please tell me how can we do it? Or else please suggest me the solution for above scenario.
    Thanks in advance,
    Sanju

    Hi Sanju
    Welcome!
    Q1: can I make changes in the invoice amount by adding a condition into the invoice condition directly or
    A: Adding a new condition type to your invoice will be an overhead for you as it's one change. Also it will require amendment to you invoice pricing procedure as well.
    Q2: can I change the previous condition amount in invoice only?
    If this is only one time change, this is better idea.
    Please revert if require more help.

  • How to change the amount of Vendor Line Item in FB60

    Hi all,
    I want to post the invoice in SAP with FB60. The journal is as follow:
    Dr. Expense    1000 USD
    Dr. VAT-Input    100 USD
          Cr. Account Payable     1100 USD
    But the problem, the amount of Account payable is 1000 USD. Because I want to fill the amount in vendor line item (FB60) with the original expense (1000 USD).
    I want to ask, there is any configuration in SAP to change the amount in vendor line item which it could be the same with amount of the original expense.
    If you ever have same problems, plase share with me
    Thanks,
    John

    Hi,
    Thanks for your reply. The result of posting invoice that I want is as follow:
    Dr. Expense    1000 USD
    Dr. Vat - Input    100 USD
    Cr. Account Payable   1100 USD
    When posting invoices in FB60, there is a filed "amount vendor line item" at the top. Usually the field is filled with amount vendor 1100 USD, but I want to fill it with the expense amount (1000 USD). Which can be show the account payable 1100 USD.
    Is there any configuration to change the field "amount vendor line item" ?
    Thanks,

  • Change to planned amount on invoice

    All,
    We have a situation where the invoice change history indicates someone changed the "planned amount" on an invoice.   Can anyone tell me where the planned amount is on an invoice and how someone can change this value?
    It is related to a consignment settlement if that makes a difference.
    Thanks
    Sandra

    In this specific example the user changed the payment term from one defined to provide a discount if paid in X days to one that did not have a discount.   When the payment terms was changed to one that did not provide a discount, the system generated the "planned amount" as the amount we would have paid with the discount. 
    Regards,
    Sandra

Maybe you are looking for

  • Froze and wont go past apple logo

    ok my sister got her ipod mini from her friend last july, and it has worked fine until like a couple days ago and she just got like 500 new songs, and now whenever she trys to turn it on, it doesnt go past the apple logo, and i tried reseting it for

  • Emac Crashes With Any Application.  Please Help?

    Can anyone please help? I have had an Emac computer for years now.  I hardly ever use it, but it has a lot of my old video files and documents on it.  I mainly work with my macbook pro.  Until recently, my Emac has been working fine, but I tried to u

  • Disable rating service for anonymous user

    Hi, I'm trying to set permissions for anonymous users so they couldn't do anything else except displaying the documents in KM I want to disable their access to other services allowed for other users (e.g.. Subscription, Feedback, Discussion, Rating e

  • Process flow: validation error: VLD-10010

    OWB 10.2 process flow: I simply put a mapping in a process flow between the START and END activity and want to validate it. But I get the error: "VLD-10010: MAP_TEMP_POS's bound object null of type null?? has been deleted." The mapping itself is alre

  • Generation of xml with the XSD

    Hi, I want to generate an XML file by reading the CSV and XSD files. Please help me in this regard. Thanx kris