SAP FSC_GET_ATTR_WITHH Function Module for FI-CA: Determination of Posting Data for Withholding Tax Items









FSC_GET_ATTR_WITHH is a standard fsc get attr withh SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FI-CA: Determination of Posting Data for Withholding Tax Items processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fsc get attr withh FM, simply by entering the name FSC_GET_ATTR_WITHH into the relevant SAP transaction such as SE37 or SE38.

Function Group: FSP_BA_INT
Program Name: SAPLFSP_BA_INT
Main Program: SAPLFSP_BA_INT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FSC_GET_ATTR_WITHH pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FSC_GET_ATTR_WITHH'"FI-CA: Determination of Posting Data for Withholding Tax Items
EXPORTING
I_IKEY = "Interest Key
I_QSSKZ = "Witholding Tax Code For Outgoing Payments
I_LAND = "Country Key
I_KTOPL = "Chart of Accounts
I_BUKRS = "Company Code

IMPORTING
E_HVORG = "Main Transaction for Line Item
E_TVORG = "Subtransaction for Document Item
E_STAKZ = "Type of Statistical Item
.



IMPORTING Parameters details for FSC_GET_ATTR_WITHH

I_IKEY - Interest Key

Data type: TFK056A-IKEY
Optional: No
Call by Reference: Yes

I_QSSKZ - Witholding Tax Code For Outgoing Payments

Data type: FKKVKP-QSSKZ_A
Optional: No
Call by Reference: Yes

I_LAND - Country Key

Data type: T001-LAND1
Optional: No
Call by Reference: Yes

I_KTOPL - Chart of Accounts

Data type: T001-KTOPL
Optional: No
Call by Reference: Yes

I_BUKRS - Company Code

Data type: FKKOP-BUKRS
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FSC_GET_ATTR_WITHH

E_HVORG - Main Transaction for Line Item

Data type: FKKOP-HVORG
Optional: No
Call by Reference: Yes

E_TVORG - Subtransaction for Document Item

Data type: FKKOP-TVORG
Optional: No
Call by Reference: Yes

E_STAKZ - Type of Statistical Item

Data type: FKKOP-STAKZ
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FSC_GET_ATTR_WITHH Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_i_ikey  TYPE TFK056A-IKEY, "   
lv_e_hvorg  TYPE FKKOP-HVORG, "   
lv_e_tvorg  TYPE FKKOP-TVORG, "   
lv_i_qsskz  TYPE FKKVKP-QSSKZ_A, "   
lv_i_land  TYPE T001-LAND1, "   
lv_e_stakz  TYPE FKKOP-STAKZ, "   
lv_i_ktopl  TYPE T001-KTOPL, "   
lv_i_bukrs  TYPE FKKOP-BUKRS. "   

  CALL FUNCTION 'FSC_GET_ATTR_WITHH'  "FI-CA: Determination of Posting Data for Withholding Tax Items
    EXPORTING
         I_IKEY = lv_i_ikey
         I_QSSKZ = lv_i_qsskz
         I_LAND = lv_i_land
         I_KTOPL = lv_i_ktopl
         I_BUKRS = lv_i_bukrs
    IMPORTING
         E_HVORG = lv_e_hvorg
         E_TVORG = lv_e_tvorg
         E_STAKZ = lv_e_stakz
. " FSC_GET_ATTR_WITHH




ABAP code using 7.40 inline data declarations to call FM FSC_GET_ATTR_WITHH

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single IKEY FROM TFK056A INTO @DATA(ld_i_ikey).
 
"SELECT single HVORG FROM FKKOP INTO @DATA(ld_e_hvorg).
 
"SELECT single TVORG FROM FKKOP INTO @DATA(ld_e_tvorg).
 
"SELECT single QSSKZ_A FROM FKKVKP INTO @DATA(ld_i_qsskz).
 
"SELECT single LAND1 FROM T001 INTO @DATA(ld_i_land).
 
"SELECT single STAKZ FROM FKKOP INTO @DATA(ld_e_stakz).
 
"SELECT single KTOPL FROM T001 INTO @DATA(ld_i_ktopl).
 
"SELECT single BUKRS FROM FKKOP INTO @DATA(ld_i_bukrs).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!