SAP FMCA_P700_BUILD_AND_CREATE Function Module for IS-PS-CA: Creation of Inbound Correspondence









FMCA_P700_BUILD_AND_CREATE is a standard fmca p700 build and create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-PS-CA: Creation of Inbound Correspondence 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 p700 build and create FM, simply by entering the name FMCA_P700_BUILD_AND_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FMCA_MASS_P700
Program Name: SAPLFMCA_MASS_P700
Main Program: SAPLFMCA_MASS_P700
Appliation area:
Release date: 27-Nov-2001
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FMCA_P700_BUILD_AND_CREATE 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_P700_BUILD_AND_CREATE'"IS-PS-CA: Creation of Inbound Correspondence
EXPORTING
I_FMCA_DPSOB_CORRIN = "Structure for Inbound Correspondence Data
I_FKKCOINFO = "FI-CA Correspondence - Info Structure for Corresp. Creation
I_XSIMU = "Mass Activity: Simulation Run
* I_IDENT_FAEDN_PERMIT = ' ' "Generation of correspondence with same due date allowed
* I_CORR_STATUS = "Correspondence Status

IMPORTING
E_COMREQ = "Commit is Wanted
E_DFKKCOHI = "Correspondence - Data for Inbound Correspondence

EXCEPTIONS
ALREADY_EXISTS = 1 CREATE_ERROR = 2 EXEMPTION_PERIOD = 3 NOT_IN_ACTIVE_RANGE = 4 SHORT_PERIOD_SUPPRESSED = 5 ERROR_EVENT_P102 = 6 ERROR_EVENT_P100 = 7 ERROR_EVENT_P101 = 8 ERROR_EXEMPTION_CHECK = 9
.



IMPORTING Parameters details for FMCA_P700_BUILD_AND_CREATE

I_FMCA_DPSOB_CORRIN - Structure for Inbound Correspondence Data

Data type: FMCA_DPSOB_CORRIN
Optional: No
Call by Reference: No ( called with pass by value option)

I_FKKCOINFO - FI-CA Correspondence - Info Structure for Corresp. Creation

Data type: FKKCOINFO
Optional: No
Call by Reference: No ( called with pass by value option)

I_XSIMU - Mass Activity: Simulation Run

Data type: FKK_MAD_BASICS-STATUS-XSIMU
Optional: No
Call by Reference: Yes

I_IDENT_FAEDN_PERMIT - Generation of correspondence with same due date allowed

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CORR_STATUS - Correspondence Status

Data type: CORR_STATUS_KK
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FMCA_P700_BUILD_AND_CREATE

E_COMREQ - Commit is Wanted

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

E_DFKKCOHI - Correspondence - Data for Inbound Correspondence

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

EXCEPTIONS details

ALREADY_EXISTS - Entry already exists

Data type:
Optional: No
Call by Reference: Yes

CREATE_ERROR - Error During Creation of Entry

Data type:
Optional: No
Call by Reference: Yes

EXEMPTION_PERIOD - Exception Period Overlaps with Calculation Period

Data type:
Optional: No
Call by Reference: Yes

NOT_IN_ACTIVE_RANGE - Period not in Active Time Range

Data type:
Optional: No
Call by Reference: Yes

SHORT_PERIOD_SUPPRESSED - Shortened Calculation Period is not Created

Data type:
Optional: No
Call by Reference: Yes

ERROR_EVENT_P102 - Error Occured in Function Module for Event P102

Data type:
Optional: No
Call by Reference: Yes

ERROR_EVENT_P100 - Error Occured in Function Module for Event P100

Data type:
Optional: No
Call by Reference: Yes

ERROR_EVENT_P101 - Error Occured in Function Module for Event P101

Data type:
Optional: No
Call by Reference: Yes

ERROR_EXEMPTION_CHECK - Error Occured in Function Module for Exception Period Check

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMCA_P700_BUILD_AND_CREATE 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_e_comreq  TYPE XFELD, "   
lv_already_exists  TYPE XFELD, "   
lv_i_fmca_dpsob_corrin  TYPE FMCA_DPSOB_CORRIN, "   
lv_e_dfkkcohi  TYPE DFKKCOHI, "   
lv_i_fkkcoinfo  TYPE FKKCOINFO, "   
lv_create_error  TYPE FKKCOINFO, "   
lv_i_xsimu  TYPE FKK_MAD_BASICS-STATUS-XSIMU, "   
lv_exemption_period  TYPE FKK_MAD_BASICS, "   
lv_not_in_active_range  TYPE FKK_MAD_BASICS, "   
lv_i_ident_faedn_permit  TYPE BOOLE-BOOLE, "   SPACE
lv_i_corr_status  TYPE CORR_STATUS_KK, "   
lv_short_period_suppressed  TYPE CORR_STATUS_KK, "   
lv_error_event_p102  TYPE CORR_STATUS_KK, "   
lv_error_event_p100  TYPE CORR_STATUS_KK, "   
lv_error_event_p101  TYPE CORR_STATUS_KK, "   
lv_error_exemption_check  TYPE CORR_STATUS_KK. "   

  CALL FUNCTION 'FMCA_P700_BUILD_AND_CREATE'  "IS-PS-CA: Creation of Inbound Correspondence
    EXPORTING
         I_FMCA_DPSOB_CORRIN = lv_i_fmca_dpsob_corrin
         I_FKKCOINFO = lv_i_fkkcoinfo
         I_XSIMU = lv_i_xsimu
         I_IDENT_FAEDN_PERMIT = lv_i_ident_faedn_permit
         I_CORR_STATUS = lv_i_corr_status
    IMPORTING
         E_COMREQ = lv_e_comreq
         E_DFKKCOHI = lv_e_dfkkcohi
    EXCEPTIONS
        ALREADY_EXISTS = 1
        CREATE_ERROR = 2
        EXEMPTION_PERIOD = 3
        NOT_IN_ACTIVE_RANGE = 4
        SHORT_PERIOD_SUPPRESSED = 5
        ERROR_EVENT_P102 = 6
        ERROR_EVENT_P100 = 7
        ERROR_EVENT_P101 = 8
        ERROR_EXEMPTION_CHECK = 9
. " FMCA_P700_BUILD_AND_CREATE




ABAP code using 7.40 inline data declarations to call FM FMCA_P700_BUILD_AND_CREATE

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 STATUS FROM FKK_MAD_BASICS INTO @DATA(ld_i_xsimu).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_ident_faedn_permit).
DATA(ld_i_ident_faedn_permit) = ' '.
 
 
 
 
 
 
 


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!