SAP FMCA_SAMPLE_P267 Function Module for TaxObligationERPCreateRequestConfirmation









FMCA_SAMPLE_P267 is a standard fmca sample p267 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for TaxObligationERPCreateRequestConfirmation 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 fmca sample p267 FM, simply by entering the name FMCA_SAMPLE_P267 into the relevant SAP transaction such as SE37 or SE38.

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



Function FMCA_SAMPLE_P267 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 'FMCA_SAMPLE_P267'"TaxObligationERPCreateRequestConfirmation
EXPORTING
IS_REQ = "Request for create of a tax obligation

CHANGING
C_PSOBJECTREVTYPE = "Revenue Type
C_XUPDATETASK = "Indicator for IS-PS-CA Applications
CT_PSOBJECTEXMT = "
CT_PSOBJECTRL = "
CT_PSOBJECTPER = "
C_START_PERIOD = "Key for Period Assignment
C_END_PERIOD = "Key for Period Assignment
C_PARTNER = "Business Partner Number
C_PSOBJECTKEY = "Identification Key for Contract Object
C_CTRACCOUNT = "Contract Account Number
C_EFILE_CODE = "Online filing commitment
C_INVOICINGTERM = "Billing Data
C_PSOBJECTTESTRUN = "Switch to Simulation Session for Write BAPIs
.



IMPORTING Parameters details for FMCA_SAMPLE_P267

IS_REQ - Request for create of a tax obligation

Data type: FMCA_TAX_OBLIGATION_ERPCRT_R
Optional: No
Call by Reference: Yes

CHANGING Parameters details for FMCA_SAMPLE_P267

C_PSOBJECTREVTYPE - Revenue Type

Data type: ABTYP_PS
Optional: No
Call by Reference: Yes

C_XUPDATETASK - Indicator for IS-PS-CA Applications

Data type: BAPI_CTRACPSOBJECT_ADMIN-XUPDATETASK
Optional: No
Call by Reference: Yes

CT_PSOBJECTEXMT -

Data type: FMCA3_TT_PSOBJECTEXMT
Optional: No
Call by Reference: Yes

CT_PSOBJECTRL -

Data type: FMCA3_TT_PSOBJECTRL
Optional: No
Call by Reference: Yes

CT_PSOBJECTPER -

Data type: FMCA3_TT_PSOBJECTPER
Optional: No
Call by Reference: Yes

C_START_PERIOD - Key for Period Assignment

Data type: PERSL_KK
Optional: No
Call by Reference: Yes

C_END_PERIOD - Key for Period Assignment

Data type: PERSL_KK
Optional: No
Call by Reference: Yes

C_PARTNER - Business Partner Number

Data type: BAPI_CTRACPSOBJECT_ACCOUNT-PARTNER
Optional: No
Call by Reference: Yes

C_PSOBJECTKEY - Identification Key for Contract Object

Data type: BAPI_CTRACPSOBJECT_HEAD-PSOBJECTKEY
Optional: No
Call by Reference: Yes

C_CTRACCOUNT - Contract Account Number

Data type: BAPI_CTRACPSOBJECT_ACCOUNT-CTRACCOUNT
Optional: No
Call by Reference: Yes

C_EFILE_CODE - Online filing commitment

Data type: EFILE_PS
Optional: No
Call by Reference: Yes

C_INVOICINGTERM - Billing Data

Data type: FMCA_INVOICING_TERM
Optional: No
Call by Reference: Yes

C_PSOBJECTTESTRUN - Switch to Simulation Session for Write BAPIs

Data type: BAPI_CTRACPSOBJECT_ADMIN-PSOBJECT_TESTRUN
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMCA_SAMPLE_P267 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_is_req  TYPE FMCA_TAX_OBLIGATION_ERPCRT_R, "   
lv_c_psobjectrevtype  TYPE ABTYP_PS, "   
lv_c_xupdatetask  TYPE BAPI_CTRACPSOBJECT_ADMIN-XUPDATETASK, "   
lv_ct_psobjectexmt  TYPE FMCA3_TT_PSOBJECTEXMT, "   
lv_ct_psobjectrl  TYPE FMCA3_TT_PSOBJECTRL, "   
lv_ct_psobjectper  TYPE FMCA3_TT_PSOBJECTPER, "   
lv_c_start_period  TYPE PERSL_KK, "   
lv_c_end_period  TYPE PERSL_KK, "   
lv_c_partner  TYPE BAPI_CTRACPSOBJECT_ACCOUNT-PARTNER, "   
lv_c_psobjectkey  TYPE BAPI_CTRACPSOBJECT_HEAD-PSOBJECTKEY, "   
lv_c_ctraccount  TYPE BAPI_CTRACPSOBJECT_ACCOUNT-CTRACCOUNT, "   
lv_c_efile_code  TYPE EFILE_PS, "   
lv_c_invoicingterm  TYPE FMCA_INVOICING_TERM, "   
lv_c_psobjecttestrun  TYPE BAPI_CTRACPSOBJECT_ADMIN-PSOBJECT_TESTRUN. "   

  CALL FUNCTION 'FMCA_SAMPLE_P267'  "TaxObligationERPCreateRequestConfirmation
    EXPORTING
         IS_REQ = lv_is_req
    CHANGING
         C_PSOBJECTREVTYPE = lv_c_psobjectrevtype
         C_XUPDATETASK = lv_c_xupdatetask
         CT_PSOBJECTEXMT = lv_ct_psobjectexmt
         CT_PSOBJECTRL = lv_ct_psobjectrl
         CT_PSOBJECTPER = lv_ct_psobjectper
         C_START_PERIOD = lv_c_start_period
         C_END_PERIOD = lv_c_end_period
         C_PARTNER = lv_c_partner
         C_PSOBJECTKEY = lv_c_psobjectkey
         C_CTRACCOUNT = lv_c_ctraccount
         C_EFILE_CODE = lv_c_efile_code
         C_INVOICINGTERM = lv_c_invoicingterm
         C_PSOBJECTTESTRUN = lv_c_psobjecttestrun
. " FMCA_SAMPLE_P267




ABAP code using 7.40 inline data declarations to call FM FMCA_SAMPLE_P267

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 XUPDATETASK FROM BAPI_CTRACPSOBJECT_ADMIN INTO @DATA(ld_c_xupdatetask).
 
 
 
 
 
 
"SELECT single PARTNER FROM BAPI_CTRACPSOBJECT_ACCOUNT INTO @DATA(ld_c_partner).
 
"SELECT single PSOBJECTKEY FROM BAPI_CTRACPSOBJECT_HEAD INTO @DATA(ld_c_psobjectkey).
 
"SELECT single CTRACCOUNT FROM BAPI_CTRACPSOBJECT_ACCOUNT INTO @DATA(ld_c_ctraccount).
 
 
 
"SELECT single PSOBJECT_TESTRUN FROM BAPI_CTRACPSOBJECT_ADMIN INTO @DATA(ld_c_psobjecttestrun).
 


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!