Register Login

Extended withholding tax and ALE

Updated Aug 26, 2019

Import Support Packages SAPKH46B38 or SAPKH46C29 or implements the advance correction.

Caution:
When you import the Support Package, active user exits may be deactivated - reactivate them, refer to SAP Note 402972.
Addition on August 13, 2002, see SAP Note 536869:
The Support Packages specified above contain an error in the IDoc definition. However, the same error is also contained in the sapserv file mentioned here up to August 12, 2002, afterwards, the error is corrected.
For the corrections, you can either import the sapserv file again or use the correction report from SAP Note 536869.

Advance correction:

Make the following changes to function modules:

  • Add table parameter FI_DOCUMENT_WTAX LIKE ACCIT_WT to function module EXIT_SAPLF050_003. Select the 'Optional' flag.
  • Add import parameter IDOC_CONTRL LIKE EDIDC to function module EXIT_SAPLF050_004. Select the 'Optional' flag.
  • Add table parameter FI_DOCUMENT_WTAX LIKE ACCIT_WT to function module EXIT_SAPLF050_005. Select the 'Optional' flag.
  • Add import parameter IDOC_CONTRL LIKE EDIDC to function module EXIT_SAPLF050_006 . Select the 'Optional' flag.
  • Add table parameter T_ACCWT LIKE ACCIT_WT to function module EXIT_SAPLF050_008. Select the 'Optional' flag.
  • Add table parameter T_ACCWT LIKE ACCIT_WT to function module AC_DOCUMENT_GENERATE. Select the 'Optional' flag.
  • Add table parameter T_ACCWT LIKE ACCIT_WT to function module FI_IDOC_CREATE_FIDCC1. Select the 'Optional' flag.
  • Add table parameter T_ACCWT LIKE ACCIT_WT to function module FI_IDOC_CREATE_FIDCC2. Select the 'Optional' flag.

If function module FI_IDOC_CREATE_FIDCC2 (program LF050U10) has an edit lock in your system (defined in the 'Attributes' of the function module), delete this edit lock either by proceeding as described in Note 151354 (create a new user with the name SAP) or as described in Note 37900 (start a correction report that removes the edit lock flag. The specified example report is also valid for other releases. In this case, the name ABCDEFGH is to be replaced by LF050U10.)

  • Add table parameter T_ACCWT LIKE ACCIT_WT to function module FI_IDOC_UPDATE. Select the 'Optional' flag.
  • Add import parameter I_STATUS TYPE C to function module FI_WT_ACI_PROCESS_WITH. Select the 'Optional' flag.
  • Create function module FI_WT_GET_X_ACCIT_WT:
    Function group:
    Short text: 'Get global interface data in X_ACCIT_WT'
    Table parameter: T_ACCIT_WT LIKE ACCIT_WT
  • Create function module FI_WT_PUT_X_ACCIT_WT:
    Function group:
    Short text: 'Update glob. interface data in X_ACCIT_WT'
    Table parameter: T_ACCIT_WT LIKE ACCIT_WT
  • Create function module FI_WT_WITHHOLDINGTAX_FOR_IDOC:
    Function group:
    Short text: 'Get the withholding tax data for IDoc in ACCIT_WT'
    Table parameter: T_ACCIT_WT LIKE ACCIT_WT
  • Create function module FI_WT_PREPARE_DATA_FOR_IDOC:
    FWTH
    Short text: 'Prepare withholding tax data for IDoc'
    Import parameter: I_BUKRS LIKE BKPF-BUKRS
    Export parameter: X_DISTRIBUTE TYPE BOOLE
    Table parameter: H_WITH_ITEM LIKE WITH_ITEMX, select the 'Optional' flag.
  • If you use Release 4.6C with Support Package 1 to 14, also make the following changes:
    Change function module FI_WT_F110_UPDATE_ITEM

Delete the following import parameters:

I_BUKRS LIKE  BSEG-BUKRS
I_BELNR LIKE  BSEG-BELNR
I_GJAHR LIKE  BSEG-GJAHR
I_BUZEI LIKE  BSEG-BUZEI
I_VBLNR LIKE  REGUP-VBLNR
I_VBLNR_OLD LIKE  REGUP-VBLNR
I_LAUFD LIKE  REGUP-LAUFD
I_LAUFI LIKE  REGUP-LAUFI

Insert the following import parameters:

I_ALE_FLAG TYPE C, select the 'Optional' flag.
I_BUKRS LIKE  BSEG-BUKRS
I_BELNR LIKE  BSEG-BELNR
I_GJAHR

Insert the following table parameter:
T_ACCIT_WT LIKE ACCIT_WT

Do not activate the function module before you have implemented the source code corrections.

  • As described in Note 13719, import the two files for the corresponding release into your system from directory /general/R3server/abap/note.0450076 from sapserv3, sapserv4, sapserv5 or sapserv6. Note that special files are stored in the mentioned directory for Release 4.6B and 4.6C. Only import the files relevant for your release.
    After you have imported these files, the new IDoc type FIDCCP02 is available which contains a new segment for the data of the extended withholding tax. The other segments are available in a new version in your system after the import.
  • Afterwards, implement the attached source code corrections into your system and activate the objects.
    For Release 4.6C, consider the following: If you use Support Package 1 to 14, first implement correction instructions 0120061532 0000341756 and then correction instructions 0120061532 0000341757. If you use at least Support Package 15, only implement correction instructions 0120061532 0000341757.
  • For Release 4.6B, there is only one correction instruction to be implemented.

After you have carried out these steps, you can use IDoc type FIDCCP02 and send documents with extended withholding tax.


×