1 Reply Latest reply: Jan 15, 2009 11:55 PM by riki frisky RSS

lockbox user exits

Sebastian James
Currently Being Moderated

Hello All

We are using lockbox and the system applies the checks on the invoices even though the amount in the invoice in SAP does not match with the invoice amount in the lockbox file. I checked all the config and they turn out to be Ok as we had run the test. we are trying to use user exit 001 in program RFEBLB20 and the code is given below.

 

EXIT_RFEBLB20_001              Lockbox Data

 

FUNCTION EXIT_RFEBLB20_001.

*"----


""Lokale Schnittstelle:

*"       IMPORTING

*"             VALUE(I_AVIK) LIKE  AVIK STRUCTURE  AVIK

*"       EXPORTING

*"             VALUE(E_AVIK) LIKE  AVIK STRUCTURE  AVIK

*"       TABLES

*"              T_AVIP STRUCTURE  AVIP

*"              T_AVIR STRUCTURE  AVIR

*"----


 

 

  INCLUDE ZXF01U03.

 

 

ENDFUNCTION.

 

 

  • ZXF01U03

 

IF  i_avik-bukrs = u2018153u2019.

  •   US Lockbox process

SELECT SINGLE * FROM bsid WHERE bukrs = i_avik-bukrs

                                    AND kunnr = i_avik-konto

                                    AND belnr = t_avip-belnr.

                                     AND wrbtr = t_avip-wrbtr.

         

IF sy-subrc = 0.

  •           applied

   RETURN.

         ENDIF.

 

SELECT SINGLE * FROM bsid WHERE bukrs = i_avik-bukrs

                                    AND kunnr = i_avik-konto

                                    AND belnr = t_avip-belnr.

                                     AND wrbtr <> t_avip-wrbtr.

         

IF sy-subrc = 0.

  •           post on account

            t_avip-xacon = u2018Xu2019.

ENDIF.

ENDIF.

 

The problem we are running into is the program does not compare the amounts and still gives the same error. Your help would be greatly appreciated

Actions