SAP CMS_API_ANL_CS_CALL_SMTFRM Function Module for Call Smart Forms









CMS_API_ANL_CS_CALL_SMTFRM is a standard cms api anl cs call smtfrm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Call Smart Forms 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 cms api anl cs call smtfrm FM, simply by entering the name CMS_API_ANL_CS_CALL_SMTFRM into the relevant SAP transaction such as SE37 or SE38.

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



Function CMS_API_ANL_CS_CALL_SMTFRM 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 'CMS_API_ANL_CS_CALL_SMTFRM'"Call Smart Forms
EXPORTING
I_TAB_AST_DET = "Asset details related to CAG for Collateral sheet
I_TAB_CALC_RES_RBL = "Receivables Calculation results for collateral sheet
I_TAB_CAG_NOTES = "Notes for Agreements
I_TAB_REL_CAG_TO = "Table of Relationship Details: Contributions 'To'
I_TAB_REL_CAG_FROM = "Table of relationship details: Contributions 'From'
I_TAB_CAG_REL_DET = "Collateral Agreement
I_TAB_CS_CAG_REL_DET = "Collateral agreement details for collateral sheet(relations)
I_PRINT_IMMD = "Print parameters, print immediately
I_PRINT_PREVIEW = "Print preview
I_DEVICE = "Output device
I_DEST_PRINTER = "Spool: Output device
I_TAB_CS_AST_DET = "Asset details for collateral sheet
I_SMARTFORM_NAME = "Smartform name
I_TAB_CALC_RES_AST = "Calcualtion results of asset for collateral sheet
I_TAB_RE_DET = "Real estate details for collateral sheet
I_TAB_CAG_DET = "Collateral Agreement
I_TAB_CS_CAG_DET = "Collateral agreement details for collateral sheet
I_TAB_CALC_RES_CAG = "Calculation results of CAG for collateral sheet
I_TAB_RBL_DET = "Receivable details related to CAG for Collateral sheet
I_TAB_RBL_BORR_DET = "Receivables borrower details

IMPORTING
E_TAB_RC = "Return Code and corresponding Message
.



IMPORTING Parameters details for CMS_API_ANL_CS_CALL_SMTFRM

I_TAB_AST_DET - Asset details related to CAG for Collateral sheet

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

I_TAB_CALC_RES_RBL - Receivables Calculation results for collateral sheet

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

I_TAB_CAG_NOTES - Notes for Agreements

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

I_TAB_REL_CAG_TO - Table of Relationship Details: Contributions 'To'

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

I_TAB_REL_CAG_FROM - Table of relationship details: Contributions 'From'

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

I_TAB_CAG_REL_DET - Collateral Agreement

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

I_TAB_CS_CAG_REL_DET - Collateral agreement details for collateral sheet(relations)

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

I_PRINT_IMMD - Print parameters, print immediately

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

I_PRINT_PREVIEW - Print preview

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

I_DEVICE - Output device

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

I_DEST_PRINTER - Spool: Output device

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

I_TAB_CS_AST_DET - Asset details for collateral sheet

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

I_SMARTFORM_NAME - Smartform name

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

I_TAB_CALC_RES_AST - Calcualtion results of asset for collateral sheet

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

I_TAB_RE_DET - Real estate details for collateral sheet

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

I_TAB_CAG_DET - Collateral Agreement

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

I_TAB_CS_CAG_DET - Collateral agreement details for collateral sheet

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

I_TAB_CALC_RES_CAG - Calculation results of CAG for collateral sheet

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

I_TAB_RBL_DET - Receivable details related to CAG for Collateral sheet

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

I_TAB_RBL_BORR_DET - Receivables borrower details

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

EXPORTING Parameters details for CMS_API_ANL_CS_CALL_SMTFRM

E_TAB_RC - Return Code and corresponding Message

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

Copy and paste ABAP code example for CMS_API_ANL_CS_CALL_SMTFRM 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_tab_rc  TYPE CMS_TAB_MSG_COL_MESSAGE, "   
lv_i_tab_ast_det  TYPE CMS_TAB_ANL_CS_REL_AST_DET, "   
lv_i_tab_calc_res_rbl  TYPE CMS_TAB_ANL_CS_CALC_RES_RBL, "   
lv_i_tab_cag_notes  TYPE CMS_TAB_CAG_TXT_LINES, "   
lv_i_tab_rel_cag_to  TYPE CMS_TAB_REL_CAG_TO, "   
lv_i_tab_rel_cag_from  TYPE CMS_TAB_REL_CAG_FROM, "   
lv_i_tab_cag_rel_det  TYPE CMS_TAB_CAG, "   
lv_i_tab_cs_cag_rel_det  TYPE CMS_TAB_ANL_CS_CAG_REL_DETAILS, "   
lv_i_print_immd  TYPE SYPRIMM, "   
lv_i_print_preview  TYPE TDPREVIEW, "   
lv_i_device  TYPE TDDEVICE, "   
lv_i_dest_printer  TYPE RSPOPNAME, "   
lv_i_tab_cs_ast_det  TYPE CMS_TAB_ANL_CS_AST_DETAILS, "   
lv_i_smartform_name  TYPE CMS_DTE_SMTFRM_NAME, "   
lv_i_tab_calc_res_ast  TYPE CMS_TAB_ANL_CS_CALC_RES_AST, "   
lv_i_tab_re_det  TYPE CMS_TAB_ANL_CS_RE_DETAILS, "   
lv_i_tab_cag_det  TYPE CMS_TAB_CAG, "   
lv_i_tab_cs_cag_det  TYPE CMS_TAB_ANL_CS_CAG_DETAILS, "   
lv_i_tab_calc_res_cag  TYPE CMS_TAB_ANL_CS_CALC_RES_CAG, "   
lv_i_tab_rbl_det  TYPE CMS_TAB_ANL_CS_REL_RBL_DET, "   
lv_i_tab_rbl_borr_det  TYPE CMS_TAB_ANL_CS_RBL_BORR_DET. "   

  CALL FUNCTION 'CMS_API_ANL_CS_CALL_SMTFRM'  "Call Smart Forms
    EXPORTING
         I_TAB_AST_DET = lv_i_tab_ast_det
         I_TAB_CALC_RES_RBL = lv_i_tab_calc_res_rbl
         I_TAB_CAG_NOTES = lv_i_tab_cag_notes
         I_TAB_REL_CAG_TO = lv_i_tab_rel_cag_to
         I_TAB_REL_CAG_FROM = lv_i_tab_rel_cag_from
         I_TAB_CAG_REL_DET = lv_i_tab_cag_rel_det
         I_TAB_CS_CAG_REL_DET = lv_i_tab_cs_cag_rel_det
         I_PRINT_IMMD = lv_i_print_immd
         I_PRINT_PREVIEW = lv_i_print_preview
         I_DEVICE = lv_i_device
         I_DEST_PRINTER = lv_i_dest_printer
         I_TAB_CS_AST_DET = lv_i_tab_cs_ast_det
         I_SMARTFORM_NAME = lv_i_smartform_name
         I_TAB_CALC_RES_AST = lv_i_tab_calc_res_ast
         I_TAB_RE_DET = lv_i_tab_re_det
         I_TAB_CAG_DET = lv_i_tab_cag_det
         I_TAB_CS_CAG_DET = lv_i_tab_cs_cag_det
         I_TAB_CALC_RES_CAG = lv_i_tab_calc_res_cag
         I_TAB_RBL_DET = lv_i_tab_rbl_det
         I_TAB_RBL_BORR_DET = lv_i_tab_rbl_borr_det
    IMPORTING
         E_TAB_RC = lv_e_tab_rc
. " CMS_API_ANL_CS_CALL_SMTFRM




ABAP code using 7.40 inline data declarations to call FM CMS_API_ANL_CS_CALL_SMTFRM

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!