VinceCoder
5/17/2019 - 11:53 AM

FM: Scadenze Solleciti Calcolo

    LOOP AT lt_bsid INTO wa_bsid.

      READ TABLE lt_bseg INTO DATA(wa_bseg) WITH KEY
                                      bukrs = wa_bsid-bukrs
                                      belnr = wa_bsid-belnr
                                      gjahr = wa_bsid-gjahr
                                      buzei = wa_bsid-buzei.

             CALL FUNCTION 'NET_DUE_DATE_GET'
               EXPORTING
                 i_zfbdt       = wa_bseg-zfbdt
                 i_zbd1t       = wa_bseg-zbd1t
                 i_zbd2t       = wa_bseg-zbd2t
                 i_zbd3t       = wa_bseg-zbd3t
                 i_shkzg       = 'S'
                 i_rebzg       = space
                 I_KOART       = 'D'
               IMPORTING
                 E_FAEDT       = wa_bseg-fdtag.