F110 Open Items wont close up

While generating payment proposal i get all the lines registered in my system as open items... i have paid most of them but they still appear as open and i have to block them manually one by one...
this occurs in Tx code F110... is this a common trouble? or am i missing something here?

As Ashok says, you have to do payment run before checking an item is open or not.  To check whether an item is open or not, you have to go to FBL1n rather than FBL5n & click on open items & put todays date & run the repor to see all open items for that vendor.
Let us know what happens...
Award points if useful...
Thanks
Morgan

Similar Messages

  • Report to find open items and close items for given vendor

    Hi All,
    What are the steps needed to write a REPORT to find out
    open and close items for a given vendor.
    Which are the fields i'll have to take and what are the comparisons i'll have to make.
    I know,
    BSIK is for open Vendor &
    BSAK for closed Vendors..
    what are the conditions i'll have to check.
    Thanks in Advance..
    Pradeep Alex

    Hi Pradeep,
    This report I developed is definitely useful to you.
    *& Report  ZFI_PROV_IT_VENDOR
    REPORT  ZFI_VENDOR.
    TYPE-POOLS: slis.
    tables: BKPF,
            BSEG,
            bsik,
            bsak,
            bsid,
            bsad,
            lfa1,
            t005u,           "Region Description
            J_1IMOVEND.
    TYPES: BEGIN OF ty_bkpf,
            bukrs type bkpf-bukrs,
            belnr TYPE bkpf-belnr,
            gjahr type bkpf-gjahr,
            blart TYPE bkpf-blart,
            budat TYPE bkpf-budat,
           END   OF ty_bkpf.
    types: begin of ty_J_1IMOVEND,
             lifnr     type lfa1-lifnr,
             J_1IPANNO type J_1IMOVEND-J_1IPANNO,
             J_1ICSTNO type J_1IMOVEND-J_1ICSTNO,
             J_1ISERN  type J_1IMOVEND-J_1ISERN,
           end   of ty_J_1IMOVEND.
    TYPES: BEGIN OF ty_bseg,
            belnr TYPE bseg-belnr,
            gjahr type bseg-gjahr,
            bschl TYPE bseg-bschl,
            umskz type bseg-umskz,
            shkzg type bseg-shkzg,
            wrbtr TYPE bseg-wrbtr,
            hkont type bseg-hkont,
            lifnr TYPE bseg-lifnr,
           END   OF ty_bseg.
    types: begin of ty_t005u,
            bland type t005u-bland,
            bezei type t005u-bezei,
           end   of ty_t005u.
    types: begin of ty_lfa1,
            lifnr type lfa1-lifnr,
            name1 type lfa1-name1,   "35
            ort01 type lfa1-ort01,   "35
            ort02 type lfa1-ort02,   "35
            pfach type lfa1-pfach,   "10
            pstlz type lfa1-pstlz,   "10
            regio type lfa1-regio,   "3
            stras type lfa1-stras,   "35
            ktokk type lfa1-ktokk,
            telf1 type lfa1-telf1,   "16
            telf2 type lfa1-telf2,   "16
           end   of ty_lfa1.
    types: begin of ty_bsik,
            bukrs type bsik-bukrs,
            lifnr type bsik-lifnr,
            augdt type bsik-augdt,
            augbl type bsik-augbl,
            belnr type bsik-belnr,
            budat type bsik-budat,
            blart type bsik-blart,
            shkzg type bsik-shkzg,
            wrbtr type bsik-wrbtr,
           end   of ty_bsik.
    types: begin of ty_bsid,
            bukrs type bsid-bukrs,
            lifnr type bsid-kunnr,
            augdt type bsid-augdt,
            augbl type bsid-augbl,
            belnr type bsid-belnr,
            budat type bsid-budat,
            blart type bsid-blart,
            shkzg type bsid-shkzg,
            wrbtr type bsid-wrbtr,
           end   of ty_bsid.
    types: begin of ty_out2,
            lifnr type bsik-lifnr,
            wrbtr type bsik-wrbtr,
            end  of ty_out2.
    types: begin of ty_out,
            lifnr type lfa1-lifnr,
            name1 type lfa1-name1,
            addr(162) type c,
            J_1IPANNO type J_1IMOVEND-J_1IPANNO,
            J_1ICSTNO type J_1IMOVEND-J_1ICSTNO,
            J_1ISERN  type J_1IMOVEND-J_1ISERN,
            opbal  type bseg-wrbtr,
            purch type bseg-wrbtr,
            PAYM  type bseg-wrbtr,
            grdeb type bseg-wrbtr,
            othdeb type bseg-wrbtr,
            othcre type bseg-wrbtr,
            tds   type bseg-wrbtr,
            bal   type bseg-wrbtr,
            blart type bkpf-blart,
            bschl type bseg-bschl,
           end  of ty_out.
    types: begin of ty_bsegtemp,
            lifnr TYPE bseg-lifnr,
           end   of ty_bsegtemp.
    types: begin of ty_bsegnew,
            wrbtr TYPE bseg-wrbtr,
            lifnr TYPE bseg-lifnr,
           end   of ty_bsegnew.
    data: it_bsik type table of ty_bsik with header line,
          it_bsid type table of ty_bsid with header line,
          it_bsak type table of ty_bsik with header line,
          it_out2  type table of ty_out2 with header line,
          it_out3 type table of ty_out2 with header line.
    DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
           it_listheader TYPE slis_t_listheader,
           it_alvevent TYPE slis_t_event,
           gt_events TYPE slis_t_event WITH HEADER LINE.
    DATA: I_SORT TYPE SLIS_T_SORTINFO_ALV.
    DATA : wa_fieldcat TYPE slis_fieldcat_alv,
           wa_listheader TYPE slis_listheader,
           wa_alvevent TYPE slis_alv_event.
    DATA: WA_SORT TYPE SLIS_SORTINFO_ALV.
    DATA: ls_line TYPE slis_listheader.
    DATA : g_repid  LIKE sy-repid,                  " Program ID
           g_layout TYPE slis_layout_alv.           " Layout Workarea
    DEFINE m_fieldcat.
      wa_fieldcat-col_pos       = &1.               " Fieldcat column postion
      wa_fieldcat-fieldname     = &2.               " Field name
      wa_fieldcat-DO_SUM        = &3.
      wa_fieldcat-seltext_m     = &4.               " Column Text
      wa_fieldcat-outputlen    = &5.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    END-OF-DEFINITION.
    DATA: wa_lfa1 TYPE ty_lfa1,
          wa_bkpf TYPE ty_bkpf,
          wa_bkpf1 type ty_bkpf,
          wa_bsegtemp type ty_bsegtemp,
          wa_bsegnew type ty_bsegnew,
          wa_bsegnew1 type ty_bsegnew,
          wa_J_1IMOVEND type ty_J_1IMOVEND,
          wa_t005u type ty_t005u,
          wa_bseg TYPE ty_bseg,
          wa_out    TYPE ty_out.
    DATA: gt_out TYPE STANDARD TABLE OF ty_out,
          gt_out1 TYPE STANDARD TABLE OF ty_out,
          gt_lfa1 TYPE STANDARD TABLE OF ty_lfa1,
          gt_bsegtemp type standard table of ty_bsegtemp with header line,
          gt_bsegnew type standard table of ty_bsegnew with header line,
          gt_bsegnew1 type standard table of ty_bsegnew with header line,
          gt_J_1IMOVEND type standard table of ty_J_1IMOVEND,
          gt_bkpf1 TYPE STANDARD TABLE OF ty_bkpf WITH HEADER LINE,
          gt_t005u type standard table of ty_t005u,
          gt_bseg TYPE STANDARD TABLE OF ty_bseg WITH HEADER LINE,
          gt_bkpf TYPE STANDARD TABLE OF ty_bkpf WITH HEADER LINE.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_budat for bkpf-budat obligatory,
                    s_ktokk for lfa1-ktokk obligatory.
                   s_wrbtr for bseg-wrbtr.
    parameters: p_bukrs type bkpf-bukrs obligatory default '1000'.
               p_gjahr type bkpf-gjahr obligatory.
               p_lifnr type bseg-lifnr obligatory default '300040',
               p_ktokk type lfa1-ktokk obligatory default 'Z200'.
    selection-screen end   of block b1.
    START-OF-SELECTION.
      PERFORM sub_fetch_data.
      PERFORM sub_process_data.
    END-OF-SELECTION.
      PERFORM sub_build_fieldcat.
      PERFORM sub_build_layout.
      PERFORM eventtab_build USING gt_events[].
      PERFORM comment_build USING it_listheader[].
      PERFORM sub_disp_data.
    *&      Form  SUB_BUILD_FIELDCAT
          text
    -->  p1        text
    <--  p2        text
    FORM sub_build_fieldcat .
    sort gt_out by name1.
    *DEFINE M_SORT.
       ADD 1 TO WA_SORT-SPOS.
       WA_SORT-FIELDNAME = &1.
       WA_SORT-UP        = 'X'.
       WA_SORT-SUBTOT    = &2.
       APPEND WA_SORT TO I_SORT.
    END-OF-DEFINITION.
    *m_sort 'NAME1' 'X'.
    *M_SORT 'ADDR' 'X'.
      m_fieldcat 1  'LIFNR' ' '  text-026 10.
      m_fieldcat 2  'NAME1' ' '  text-006 35.
      m_fieldcat 3  'ADDR' ' ' text-007 162.
      m_fieldcat 4  'J_1IPANNO' ''  text-008 40.
      m_fieldcat 5  'J_1ICSTNO'  '' text-009 40.
      m_fieldcat 6  'J_1ISERN'  '' text-010 40.
      m_fieldcat 7  'OPBAL'  '' text-011 18.
      m_fieldcat 8  'PURCH'    '' text-012 18.
      m_fieldcat 9  'PAYM' ''  text-013 18.
      m_fieldcat 10  'GRDEB'  '' text-014 18.
      m_fieldcat 11  'OTHDEB'  '' text-020 18.
      m_fieldcat 12  'OTHCRE'  '' text-021 18.
      m_fieldcat 13  'BAL'  '' text-023 18.
      m_fieldcat 14  'TDS'  '' text-022 18.
    ENDFORM.                    " SUB_BUILD_FIELDCAT
    *&      Form  SUB_BUILD_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM sub_build_layout .
      g_layout-zebra             = 'X'.
      g_layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SUB_BUILD_LAYOUT
    *&      Form  EVENTTAB_BUILD
          text
         -->P_GT_EVENTS[]  text
    FORM eventtab_build  USING    gt_events TYPE slis_t_event.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gt_events.
      READ TABLE gt_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE 'TOP_OF_PAGE' TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
    ENDFORM.                    " EVENTTAB_BUILD
    *&      Form  COMMENT_BUILD
          text
         -->P_IT_LISTHEADER[]  text
    FORM comment_build  USING    p_it_listheader TYPE
                                            slis_t_listheader.
    data: v_text(30) type c,
          v_datelow(10) type c,
          v_datehigh(10) type c,
          v_month(2) type c,
          v_day(2) type c,
          v_year(4) type c.
    v_day  = s_budat-low+6(2).
    v_month = s_budat-low+4(2).
    v_year = s_budat-low+0(4).
    concatenate v_day '.' v_month '.' v_year into v_datelow.
    clear: v_day,v_month,v_year.
    v_day  = s_budat-high+6(2).
    v_month = s_budat-high+4(2).
    v_year = s_budat-high+0(4).
    concatenate v_day '.' v_month '.' v_year into v_datehigh.
    clear: v_day,v_month,v_year.
    concatenate 'From' v_datelow 'To' v_datehigh into v_text
                                        separated by space.
    clear: v_datelow, v_datehigh.
      ls_line-typ  = 'H'.
      ls_line-info = text-116.
      APPEND ls_line TO p_it_listheader.
    ls_line-typ  = 'S'.
      ls_line-key = text-090.
      ls_line-info = v_text.
      APPEND ls_line TO p_it_listheader.
    ENDFORM.                    " COMMENT_BUILD
    *&      Form  TOP_OF_PAGE
          text
    -->  p1        text
    <--  p2        text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader.
    ENDFORM.                    " TOP_OF_PAGE
    *&      Form  SUB_DISP_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM sub_disp_data .
      g_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = g_repid
          it_fieldcat        = it_fieldcat[]
          is_layout          = g_layout
          i_save             = 'U'
          it_events          = gt_events[]
        IT_SORT             = I_SORT[]
        TABLES
          t_outtab           = gt_out1[].
    ENDFORM.                    " SUB_DISP_DATA
    *&      Form  sub_fetch_data
          text
    -->  p1        text
    <--  p2        text
    form sub_fetch_data .
    select bukrs
           belnr
           gjahr
           blart
           budat
           from bkpf
           into table gt_bkpf
           where budat in s_budat
           and   bukrs = p_bukrs
          and   gjahr = p_gjahr
           and   blart in ('KR','KG','KZ','RE','DK','Z1','AB','SA','KA','DZ').
    select belnr
           gjahr
           bschl
           umskz
           shkzg
           wrbtr
           hkont
           lifnr
           from bseg
           into table gt_bseg
           for all entries in gt_bkpf
           where belnr = gt_bkpf-belnr
           and   gjahr = gt_bkpf-gjahr
          and gjahr = p_gjahr
           and   bschl in (21,25,29,31,50,39,38,19,35).
          and kunnr in gt_
          and lifnr = '0000300019'.
    select belnr
           gjahr
           bschl
           umskz
           shkzg
           wrbtr
           hkont
           kunnr
           from bseg
           appending table gt_bseg
           for all entries in gt_bkpf
           where belnr = gt_bkpf-belnr
           and   gjahr = gt_bkpf-gjahr
          and gjahr = p_gjahr
           and   bschl in (21,25,29,31,50,39,38,19).
    break manukapur.
    sort gt_bseg by  lifnr bschl.
    delete adjacent duplicates from gt_bseg comparing all fields.
    loop at gt_bseg into wa_bseg.
    if wa_bseg-lifnr is not initial.
    move: wa_bseg-lifnr to wa_bsegtemp-lifnr.
          append wa_bsegtemp to gt_bsegtemp.
          endif.
    endloop.
    delete adjacent duplicates from gt_bsegtemp comparing lifnr.
    select lifnr
            name1
            ort01
            ort02
            pfach
            pstlz
            regio
            stras
            ktokk
            telf1
            telf2
            from lfa1
            into table gt_lfa1
            for all entries in gt_bseg
            where lifnr = gt_bseg-lifnr
            and ktokk in s_ktokk.
           and lifnr = '0000300030'.
    select  bland
            bezei
            from t005u
            into table gt_t005u
            for all entries in gt_lfa1
            where bland = gt_lfa1-regio
            and land1 = 'IN'
            and spras = sy-langu.
    select lifnr
           J_1IPANNO
           J_1ICSTNO
           J_1ISERN
           from J_1IMOVEND
           into table gt_J_1IMOVEND
           for all entries in gt_bseg
           where lifnr = gt_bseg-lifnr.
    *select bukrs
          belnr
          blart
          budat
          from bkpf
          into table gt_bkpf1
          where budat < s_budat-low.
          and zfdbt < s_budat-low.
    select
           wrbtr
           lifnr
           from bseg
           into table gt_bsegnew
           for all entries in gt_bkpf
           where belnr = gt_bkpf-belnr
           and xopvw = 'X' .
          and zfbdt < s_budat-low.
    select bukrs
           lifnr
           augdt
           augbl
           belnr
           budat
           blart
           shkzg
           wrbtr
           from bsik
           into table it_bsik
           for all entries in gt_bseg
           where lifnr = gt_bseg-lifnr
          and   lifnr = '0000300000'
           and   bukrs = '1000'
           and   budat <= s_budat-low.
    select bukrs
           lifnr
           augdt
           augbl
           belnr
           budat
           blart
           shkzg
           wrbtr
           from bsak
           appending table it_bsik
           for all entries in gt_bseg
           where bukrs = '1000'
           and   lifnr = gt_bseg-lifnr
          and   lifnr = '0000300000'
           and   budat <= s_budat-low
           and   augdt > s_budat-low.
    select bukrs
           kunnr
           augdt
           augbl
           belnr
           budat
           blart
           shkzg
           wrbtr
           from bsid
           into table it_bsid
           for all entries in gt_bseg
           where bukrs = '1000'
           and   kunnr = gt_bseg-lifnr
          and   kunnr = '0000300000'
           and   budat <= s_budat-low.
    select bukrs
           kunnr
           augdt
           augbl
           belnr
           budat
           blart
           shkzg
           wrbtr
           from bsad
           appending table it_bsid
           for all entries in gt_bseg
           where bukrs = '1000'
           and   kunnr = gt_bseg-lifnr
          and   kunnr = '0000300000'
           and   budat <= s_budat-low
           and   augdt > s_budat-low.
    if it_bsid[] is not initial.
    append lines of it_bsid to it_bsik.
    endif.
    *delete gt_bsegnew where lifnr  <> '0000300000'.
    *break manukapur.
    *sort gt_bsegnew by lifnr.
    *loop at gt_bsegnew into wa_bsegnew.
    *collect wa_bsegnew into gt_bsegnew1.
    *endloop.
    loop at it_bsik .
    it_out2-lifnr = it_bsik-lifnr.
    *it_out1-budat = it_bsik-budat.
    *it_out1-blart = it_bsik-blart.
    if it_bsik-SHKZG = 'H'.
    it_out2-wrbtr = it_bsik-wrbtr.
    else .
    it_out2-wrbtr = it_bsik-wrbtr * -1.
    endif.
    append it_out2.
    clear: it_out2, it_bsik.
    *endif.
    *clear it1.
    endloop.
    sort it_out2 by lifnr.
    loop at it_out2.
    it_out3-lifnr = it_out2-lifnr.
    it_out3-wrbtr = it_out2-wrbtr.
    collect it_out3.
    clear: it_out3, it_out2.
    endloop.
    endform.
    *&      Form  sub_process_data
          text
    -->  p1        text
    <--  p2        text
    form sub_process_data .
    *sort gt_bsegtemp by  lifnr .
    sort gt_bseg by lifnr bschl.
    sort gt_bsegnew by lifnr.
    sort it_out3 by lifnr.
    *loop at gt_bsegnew into wa_bsegnew.
    *at end of lifnr.
    *sum.
    *endat.
    *endloop.
    sort gt_bkpf by blart.
    loop at gt_bseg into wa_bseg.
    if wa_bseg-lifnr is not initial.
    read table gt_lfa1 into wa_lfa1 with key lifnr = wa_bseg-lifnr.
    move: wa_lfa1-name1 to wa_out-name1,
         wa_lfa1-lifnr to wa_out-lifnr.
    read table gt_t005u into wa_t005u with key bland = wa_lfa1-regio.
    concatenate wa_lfa1-stras ',' wa_lfa1-ort01 ','
                wa_lfa1-ort02 ',' wa_t005u-bezei ','
                wa_lfa1-pfach ','
                wa_lfa1-pstlz ',' 'Ph:'
                wa_lfa1-telf1 ','
                wa_lfa1-telf2
                into wa_out-addr separated by space.
    read table gt_J_1IMOVEND into wa_J_1IMOVEND with key lifnr = wa_bseg-lifnr.
    move: wa_J_1IMOVEND-J_1IPANNO to wa_out-J_1IPANNO,
          wa_J_1IMOVEND-J_1ICSTNO to wa_out-J_1ICSTNO,
          wa_J_1IMOVEND-J_1ISERN  to wa_out-J_1ISERN.
          read table gt_bkpf into wa_bkpf with key belnr = wa_bseg-belnr.
    if wa_bkpf-blart = 'RE' and wa_bseg-bschl = 31 or
    wa_bkpf-blart = 'KR' and wa_bseg-bschl = 31.
    if wa_bseg-shkzg = 'H'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-purch = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-purch = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'KR' and wa_bseg-bschl = 50.
    *wa_out-tds = wa_out-tds + wa_bseg-wrbtr.
    if wa_bseg-shkzg = 'H'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-tds = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-tds = wa_bseg-wrbtr * -1.
    endif.
    endif.
    *wa_out-tds = wa_bseg-wrbtr.
    endif.
    if wa_bkpf-blart = 'KG' and wa_bseg-bschl = 21.
    *wa_out-grdeb =  wa_out-grdeb + wa_bseg-wrbtr.
    if wa_bseg-shkzg = 'H'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-grdeb = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-grdeb = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'RE' and wa_bseg-bschl = 21.
    *wa_out-grdeb =  wa_out-grdeb + wa_bseg-wrbtr.
    if wa_bseg-shkzg = 'H'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-grdeb = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-grdeb = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'KZ' and wa_bseg-bschl = 25
    *or wa_bkpf-blart = 'KZ' and wa_bseg-bschl = 29
    **and wa_bseg-umskz = 'A'
    or wa_bkpf-blart = 'SA' and wa_bseg-bschl = 25.
    if wa_bseg-shkzg = 'H'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-paym = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    *wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    wa_out-paym = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'DK' and wa_bseg-bschl = 31.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'AB' and wa_bseg-bschl = 31.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'SA' and wa_bseg-bschl = 31.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'KZ' and wa_bseg-bschl = 38.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'DZ' and wa_bseg-bschl = 19
    and wa_bseg-umskz = 'A'.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'KA' and wa_bseg-bschl = 39
    and wa_bseg-umskz = 'G' or
           wa_bseg-umskz = 'H' or
           wa_bseg-umskz = 'J' or
           wa_bseg-umskz = 'L' OR
           wa_bseg-umskz = 'A'.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'KA' and wa_bseg-bschl = 35.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if ( wa_bkpf-blart = 'KZ' and wa_bseg-bschl = 29 )
       and wa_bseg-umskz = 'A' or
           wa_bseg-umskz = 'B' or
           wa_bseg-umskz = 'I' or
           wa_bseg-umskz = 'M' or
           wa_bseg-umskz = 'O' or
           wa_bseg-umskz = 'V'.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'AB' and wa_bseg-bschl = 27.
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    if wa_bkpf-blart = 'Z1' and wa_bseg-bschl = 21 .
    if wa_bseg-shkzg = 'H'.
    wa_out-othcre = wa_bseg-wrbtr.
    else.
    if wa_bseg-shkzg = 'S'.
    wa_out-othcre = wa_bseg-wrbtr * -1.
    endif.
    endif.
    endif.
    **if wa_bseg-shkzg = 'H'.
    ***wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    **wa_out-othdeb = wa_bseg-wrbtr.
    **else.
    **if wa_bseg-shkzg = 'S'.
    ***wa_out-purch = wa_out-purch + wa_bseg-wrbtr.
    **wa_out-othdeb = wa_bseg-wrbtr * -1.
    **endif.
    **endif.
    **endif.
    ***if wa_bkpf-blart = 'AB' and wa_bseg-bschl = 27.
          wa_out-othdeb =  wa_bseg-wrbtr.
    ***endif.
    ***if wa_bkpf-blart = 'Z1' and wa_bseg-bschl = 21.
          wa_out-othdeb =  wa_bseg-wrbtr.
    ***endif.
    read table it_out3 with key lifnr = wa_bseg-lifnr binary search.
    on change of wa_bseg-lifnr.
    *move: wa_lfa1-name1 to wa_out-name1,
        wa_lfa1-lifnr to wa_out-lifnr.
    wa_out-opbal = it_out3-wrbtr.
    endon.
    *if wa_out-opbal is not initial.
    *wa_out-bal = wa_out-opbal + wa_out-purch - wa_out-grdeb - wa_out-othdeb + wa_out-othcre.
    **else.
    *wa_out-bal = wa_out-purch - wa_out-grdeb - wa_out-othdeb + wa_out-othcre.
    *endif.
    wa_out-bal = wa_out-opbal + wa_out-purch + wa_out-paym + wa_out-grdeb + wa_out-othdeb + wa_out-othcre.
    at end of lifnr.
    *wa_out-bal = wa_out-opbal + wa_out-purch - wa_out-grdeb - wa_out-othdeb + wa_out-othcre.
    append wa_out to gt_out.
    *collect wa_out into gt_out.
    clear wa_out.
    clear it_out3.
    clear wa_bsegnew1.
    endat.
    endif.
    clear: wa_bseg, wa_bkpf, wa_J_1IMOVEND.
    endloop.
    loop at gt_out into wa_out.
    collect wa_out into gt_out1.
    endloop.
    endform.                    " sub_process_data
    Regards,
    Santosh Kumar M.

  • Open windows wont close

    Somehow I got myself into what should be an easily resolved problem, but I havn't been able to figure it out.
    I have the main Elements window open on a second monitor. It is so far open that the handle bar at the top of the screen
    that allows you to move the window around the screen is hidden behind the menu bar on my mac. The bottom of the open window is also below the
    bottom of the same computer screen.  The result is that I cannot close the active Elements window or move it to my primary window where I may be
    able to grab the top and reduce the size.   I can bring in the sides but that doesn't help close the window. 
    I know I'm probably only one button away, but Which button?
    Thanks
    Rich

    Well, worst case you can always just Restore Workspace (under the Window menu).
    Your other option is to temporarily increase the resolution of your monitor so that the top of this window is displayed.
    Or you can temporarily decrease the resolution of your monitor so that all of the windows get smaller and rejigger into position, then reset your monitor to your regular resolution.

  • Turning Open items which are partially payed into Close items.. How?

    Hello,
    In our company we use partial payment to Vendors using transaction F-59 and also automatic paymant of full amounts. Everything is working correctly but since we use very offen partial way of paymant, on transaction FBL1N I have a lot of open items and most of the time I don't know exactly how much do I own to vendor(s).
    To explain it easier I will show one simple example:
    1. I own to one of my vendors amount Eur 10.000
    2. Using transaction F-59 (partial payment) I pay him Eur 3.000
    3. When I open transaction FBL1N for that vendor and if I choose to show only Open items
    total amount shows me that I own him Eur 10.000 instead of due amount 7.000
    I understand that total amount of Eur 10.000 instead of Eur 7.000 is shown because we use partial instead of residual way of paymant but I would like to know is there any way I could manually turn these Eur 3.000 into close item because they are already payed?
    Searching through Internet I found that transaction F-44 could be used for similar but I am not sure it can do exactly what I need: to turn all partial payed open items to close items so for each vendor then I could see exact amount I own them.
    I hope someone can help me with this because I must solve it ASAP and it's slowing me down at my workplace and it would be great if I could manually close some open items, because they are already payed.
    Greetings,
    Adi
    Moderator: Please, try searching before posting a new thread. Clearing issues are well described on these forums
    Edited by: samnovice on Jul 30, 2011 3:50 PM

    Hi:
         Knocking off invoices against partial payments in F-44 is a standard procedure that is used to clear open item outstanding in Vendor ledger FBL1N. You should ideally clear partial payment in Residual Tab of F-44 and for remaining amount e.g 7 in your case you should double click in residual item column next to amount. By doing so system will also copy the original invoice reference to the partial document AB (with 7 amount) as per setting defined in OBA0 for residual item clearing.
    Line item 10 and its payment line item 3 are standing open in ledger because you did not apply them in F-44. You could have also directly apply them in F-59 of F-53. Partial document will be generated with document type as per setting you have defined in OBXH. Hope this will clear your understanding.
    Regards

  • My iphoto wont close and wont let macbook close

    iphoto is open and wont close or let mac close, the red close icon is dark red and no responsive...any help?

    Press Command-Option-Escape and force iPhoto to quit.

  • Notes v 10.6.2 - opens but no content, wont close

    10.6.2 on MBP
    syncing to iPhone regularily
    suddenly, Notes via Mail app open but no content in them, wont close
    no content means none in Preview Pane and none via 2x clicking
    (dialogue in Prev Pane says "Loading..." but nothing ever does
    ALL Notes behave this way
    tried:
    1. deleting ~/Library/Mail/Envelope Index file
    2. DU - Repair Permissions / Verify Disk
    to no avail

    Chris Chamberlain1 wrote:
    << anyway, you can test the issue by creating a new user on your mac and copying the whole mail folder and the mail plist to that user. does Mail work there? >>
    yes it and Notes work fine on a virgin user account
    I did a full restore of the entire MBP from my Time Machine 12-19-09 backup, sadly, to no avail. Since I didnt have this issue on that date, I cannot understand why it didnt work, ie, the problem was still there. Wierd !
    To get my mail working properly again, what I did was delete the problem account, recreate a new account with same username, and am trying to restore folder by folder from Time Machine. This is not working very well:
    1. Calendar - restoring from the Application Support/Calendar folder causes a spinning beachball
    2. key desktop folders with my data - Im told that "The operation cant be completed because you dont have permisson to access some of the items".
    3. Contacts - its not obvious how to restore my contacts - where are they ?
    4. restore vs copying from the actual Finder window of a Time Machine backup isnt clear. In any case the Finder level copies yield the aforementioned error and seem to put some random number of successful copies of folders into any root folder. Not good.
    Ive got a real mess on my hands now, and Ive already spent hours and hours unsorting this thing.
    you are having all these permissions problems because the new user you created has a different UID than the old one. UID is different from username. it's a number. the first created user has UID 501, the second has 502 etc. UID's are what determines permissions, not user names. we can change the new user's UID to align with the old one but we need to find out what the old one was. how many users did you have. was the old user the first created on the computer?
    btw, contacts are stored in homedirectory/library/application support/address book. just restore the whole directory. but don't do this yet and don't copy stuff from the TM drive via finder. use the TM interface only.

  • Vendor's same open item selected for payment twice through APP run F110

    Hi,
    In F110 run, specified vendor  number and payment method(Bank Transfer), executed payment run.
    After, say 5 minutes interval again executed F110 for all vendors and except for the above mentioned payment method.
    In the first case, payment document generated, posted and cleared the Vendor open items. Here, the Payment method is B.
    In the second time also, the same open items are selected in the payment run and the payment method D(Cheque payment).
    Payment document generated and is not posted but cheque is generated for the same amount.
    How could it happened?

    Hi,
    In F110 run, specified vendor  number and payment method(Bank Transfer), executed payment run.
    After, say 5 minutes interval again executed F110 for all vendors and except for the above mentioned payment method.
    In the first case, payment document generated, posted and cleared the Vendor open items. Here, the Payment method is B.
    In the second time also, the same open items are selected in the payment run and the payment method D(Cheque payment).
    Payment document generated and is not posted but cheque is generated for the same amount.
    How could it happened?

  • How to restrict vendor open items to be picked to 45 during F110 process

    Hi experts,
    My client want to restrict vendor open items to be picked to 45 max during F110 payment run for each vendor.
    For example: If vendor " xyz" is having 60 open items at the time of payment run, it should allow max  to pick only 45 open items and generate one clearing document during payment run F110.
    Kindly give me any suggestions weather it is possible or not.
    Thanks & regards,
    Raghul

    hi ,
    Thanks for your quick reply.
    Actually we are using only payment method C- check.
    We have developed ZFORM and ZPROGRAM by copying standard form F110_PRENUM_CHCK  and std prog RFFOUS_C.
    In My ZFORM only single page is there with invoice details in main window ( upper side ) and check in the below page.
    when i had taken print on  pre printed stationary sample i came to know in main window at maximum 45 items details can be dispalyed in first page with  total amt check in below  for each vendor.
    Its works fine if each vendor has open items  below 45 during payment run.
    If any of the vendor is having more than 45 open items then 2 pages are printing.
    For ex: if vendor having 60 open items.
    For Ex : In first page 45 invoices details with  say total invoice amt 30,000 is printing check with same amt.
              in second page remaining 15 invoices with say total invoice amt of this 15 inovices is 5000 amt is printing check with 35,000 Instead of 5,000.
    We are not using void check concept here as my client dont want to waste checks.
    thansk & regards,
    Raghul.

  • Open items of Vendor are not getting processed in F110

    Hi Experts,
    "KR" documents posted in the month of April and I can see Vendor open Items in FBL1N for a particular vendor.
    When processing payment through F110, no open items can be taken for the vendor neither they are displayed when I tried in ZFB05 (Post with clearing) in process open items. In ZFB05 system says: " No line items"
    Where is the problem? Please help.
    - Nilesh

    Hi,
    Here might be lot of  reaons.
    1. May be they are not reached to due date.
    2. May be same vendor blocked to some other proposal
    3.May be those items have payment block
    4. May be Sepal GL Accounts not assign to All company coed Configuration
    5. Invoice posted into different Payment method and payment terms
    6. Please check the FBZP Configuration
    Regards,
    Surendra.

  • F110 doesn't clear vendor open items. Interad it creates one more entry.

    Hi!
    This is the problem I have. I run F110, proposal is great, payment is great, check is printer. Check in FCHR is created.
    I go back to FBL1N - open item is still there! More that that - another open item with document type - ZP is there, but it showed up as additional open item - not clearing item. When I click on it  - accounting document shows me : Clearing date 12/03/2008 - and same document number.
    Why doesn't it clear it and it still says OVERDUE???
    And of course, I can not post check cashed because of that in FCHR.
    Please let me know.
    Thanks!!!!!

    Hi,
    In FBZP transaction code while configuring The Automatic Outgoing payment, In Payment methods in country Tab under posting control What are document type you have defined for
    Document type for Payment and Clearing document type ? generally it should be same , normally KZ
    The payment for which F110 was executed , Is it a down payment to vendors?
    Pleease Check it.
    With Regards,
    Sudipto

  • F110  - payment on vendor open items as of a prior week

    Hello,
    I am trying to run F110 to pay vendor 1000's open items as of jan 2nd. Can anyone please tell me what how can I restrict the F110 to pick open items as of Jan 2nd? Do i enter it in the "docs entered upto" field? I have tried that and that doesnt seem to work.
    Also how does the Free selection tab work?
    My client ran FBL1N for vendor 1000 - open item as of Jan 8th - then sorts by payment date of Jan 2nd and these are the items that we are trying to pay using F110 - not sure how to bring it in F110 as it brings a lot more stuff than that needed.
    Thanks.

    Hi Anusha,
    For that you can do through this way
    In F110 there is one option that is  next payment date 
    If you will give there 9th Jan date system will pick all open item from run date to 8thJan
    So you can pick all open items through this way.
    Free Selection tab is working for inculsive and exculsive for field selcetion
    If it is Inclusive system sorted that for selection
    If it is Exclusive system deselected for selection
    If you have any doubt feel free to ask
    May be this information is useful to you
    Regards
    Surya

  • FireFox doesn't fully close so whenever I reopen it refuses to open secure sites I had up when I closed it; it keeps thinking that the tab is already open and wont open another one. How do you fix this?

    Whenever I close Firefox and then reopen it later on it opens the last webpage I had open before closing the browser instead of my homepage. It seems that exiting Firefox doesn't fully shut it down and just puts it into hibernation mode. This has become a problem because when I have a secure webpage open when I close the web browser, without logging out of the page, and then try to go to that page again it thinks that it's already open and wont open another page for me. This means that I can't even navigate to the page to log out. I think it might be just a setting with Firefox 4 but not sure which one, any suggestions?

    For possible causes and solutions see [[Firefox is already running but is not responding]].

  • AR transaction to open item/close item

    Hi experts,
         How can I check in the R3 system if a sales order is still open or closed. I want to reconcile the Data from BW with R3. FBL5N gives me open items I think. How can i close a open item. This will help me to identify if BW is capturing previously opened items properly.

    +
    f-03 - clearing is used when 2 clearing transactions (both dr and cr) are independently posted. these 2 items are idenfied and matched which will result in a clearing document. this document does not have any line items+
        * f-05 - post with clearing - when an entry is passed to clear an open item. this document has line items.

  • Open Items run (F110 payment proposal)

    Hi All,
    Can someone please help me with a problem that I am facing when running F110.
    We pay our vendors through F110 but also we have customers who we need to issue dividend equity check and their loan payout's. So when I do FB75 and create a credit note for customer and than I go FBL5N I see it there with other open invoices.  Than I go to F110 and do a payment run and it creates a check for the difference.  I don't want that to happen, I want the check issued for the credit amount that I posted in FB75.  Is there any way I can print checks for the credit memos only and not mess with the customer open invoices.  Please help if you know how to fix this problem.  Thank you in advance for your help.
    Happy Holidays!
    Monika

    You have a couple of options (select whichever is possible for your current system config):
    First, you can specify different payment methods in cust. invoices and cust. credit memos. Then, in F110, specify only the cust. credit memo payment method, and the system should pick up only the credit memos.
    Secondly, if the payment methods can't be different for both the document types, and if there are not too many invoices open, you can block all the open invoices. This way, F110 will not process the invoices with the credit memos.
    Thirdly, there is a checkbox in the cust. master data (Company Code Data - Payment transactions) named "Single payment". Place your cursor on it, and hit <F1>. SAP says that "If this indicator is set, every customer/vendor open item is paid separately during automatic payment transactions. This means that open items are not grouped together for payment."
    Fourthly, you can define Payment Groupings (T.Code OBAP).
    IMG path Fin. Acctg. --> AR and AP --> Buss. Trans. --> Outgoing Payments --> Autom. Outgoing Payments --> Payment Method / Bank Selection for Payment Prog. --> Define Payment Groupings.
    You can then specify these groupings in the cust. master screen (Company Code Data - Payment transactions) using field "Grouping Key".
    Remember to assign points if found useful.
    Regards,
    Gulshan

  • Close Outlook automatically and save open items to drafts

    Hello
    I have the following problem: some of my customers work with Outlook + POP3 (no Exchange Server) and from time to time an employee forgets to close Outlook after working hour. Because of the open PST-File I have problems with the backup (the open PST-File is
    in use and therfore the backup fails). Now I have wrote a small script to kill the outlook process on every machine at 10 p.m. But the next day when the employee starts Outlook he gets an annoying message about the PST-File was not closed properly and he has
    to wait up to 10 Minutes until Outlook starts. So my question: is there a tool or a script to close outlook properly?
    Btw: I have already found some sripts to close outlook in a decent way BUT: if the user has an open New E-Mail Window open all the scripts I found where not able to handle this situation - this is because in that case Outlook asks whether you want to save the
    open New Massage to Drafts or not (and Outlooks does not close until you press the YES, NO or CANCEL Button.
    Here is one of the Script I found (AutoHotKey Script):
    SetTitleMatchMode RegEx
    IfWinExist .*Microsoft\sOutlook
    WinClose .*Microsoft\sOutlook
    ExitApp
    This script works perfectly when no additional Outlook Item Window is open - Outlooks then closes properly and no problem arises with the PST-File. But as already mentioned when the user has a open New Item Window (e.g. new Mail he just started to compose)
    Outlook does not close but asks the user what to do. What I need is a script or a program that answers automatically to the Outlook question dialog box "Do you want to save changes?" YES and then closes Outlook properly. The next Day the user will
    find his new / unfinished Mail item in the drafts folder.
    I have also found a small program called "Close Outlook" by Douglas J. Nakakihara. But this tool also fails when an open (new) Message Windows exists.
    Any ideas?
    Markus

    This code works for me
    I created a batch file CloseOL.bat to call the CloseOL.vbs.
    Here's the code for the batch file:
    @echo off
    cscript "CloseOL.VBS"
    :EXIT
    And here's the code for CloseOL.vbs:
    Dim oOL 'As Outlook.Application
    Dim olkIns
    Set oOL = CreateObject("Outlook.Application")
    If oOL Is Nothing Then
        'no need to do anything, Outlook is not running
    Else
        'Outlook running
        Do while oOL.Inspectors.Count <> 0
            For each olkIns in oOl.Inspectors
                    olkIns.Close olSave
                Next
        Loop
        oOL.Session.Logoff
        oOL.Quit
    End If
    Set oOL = Nothing
    Hope this helps

Maybe you are looking for

  • HTML format report for Daily basis Oracle Database health Checkup

    Hi All, Can anyone provide me the script which I can schedule in BAT file to run againt all the database and gather most of the health check related data and present the same in HTML format. Regards, Sphinx

  • My CD/DVD drive is missing.

    My dvd/cd optical drive is missing from "my computer" , and the hardware manager.  It does spin, and is listed in bios.  Physically disconnected and pulled it from the bay then reinserted but no sucess.  Ran "Driver Tool" which showed the optical dri

  • Issue with xslt transform

    I'm having a problem with xslt transformations. I'm sending a DOMDocument to be transformed into a varchar2. The transformation was into html and I was then printing the returning varchar2 to a web page, along the lines of... htp.prn(Xslt.transform(d

  • Insert a subquery

    idont know ewhy this statment is not working and what is the right statement insert into deleted_orders(employee,order_id,user_id)values('yy',(select order_id,user_id from orders where order_id=491))

  • Pictures in iPhoto not recognized in iMovie 8.

    All my pictures in iPhoto do not show up in iMovie 8. They did in the previous version 6. How do I get iMovie 8 to recognized all my pictures in iPhoto? Many thanks for any help.