SAP ICL_DOCUMENT_ADD Function Module for Include New Document in Proposal List









ICL_DOCUMENT_ADD is a standard icl document add SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Include New Document in Proposal List 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 icl document add FM, simply by entering the name ICL_DOCUMENT_ADD into the relevant SAP transaction such as SE37 or SE38.

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



Function ICL_DOCUMENT_ADD 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 'ICL_DOCUMENT_ADD'"Include New Document in Proposal List
EXPORTING
I_DOCID = "Claim Document
* IV_XBRF_PLUS = "
* I_XMANUAL = "Flag: Document entered manually
* I_XCOPYAGENT = 'X' "Flag: Copy of Document will be sent to Agent
* I_SENDTYPE = 'PROPOSAL' "Dispatch Medium
* IO_EVENT = "BRF: Event
* IV_SUBCLAIM = "Subclaim
* IV_SUBOBJCAT = "Claim Subobject Category
* IV_SUBOBJECT = "Claim Subobject
* IS_ACTUAL = "

TABLES
* T_DOC_SCR = "
* T_DOCUMENTS = "Document in Claim
.



IMPORTING Parameters details for ICL_DOCUMENT_ADD

I_DOCID - Claim Document

Data type: ICLDOC-DOCID
Optional: No
Call by Reference: Yes

IV_XBRF_PLUS -

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

I_XMANUAL - Flag: Document entered manually

Data type: ICLDOC-XMANUAL
Optional: Yes
Call by Reference: Yes

I_XCOPYAGENT - Flag: Copy of Document will be sent to Agent

Data type: ICLDOC-XCOPYAGENT
Default: 'X'
Optional: Yes
Call by Reference: Yes

I_SENDTYPE - Dispatch Medium

Data type: ICL_SENDTYPE
Default: 'PROPOSAL'
Optional: No
Call by Reference: Yes

IO_EVENT - BRF: Event

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

IV_SUBCLAIM - Subclaim

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

IV_SUBOBJCAT - Claim Subobject Category

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

IV_SUBOBJECT - Claim Subobject

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

IS_ACTUAL -

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

TABLES Parameters details for ICL_DOCUMENT_ADD

T_DOC_SCR -

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

T_DOCUMENTS - Document in Claim

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

Copy and paste ABAP code example for ICL_DOCUMENT_ADD 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_docid  TYPE ICLDOC-DOCID, "   
lt_t_doc_scr  TYPE STANDARD TABLE OF ICL_CORR_SCR_DOC, "   
lv_iv_xbrf_plus  TYPE ICL_XBRF_PLUS_D, "   
lv_i_xmanual  TYPE ICLDOC-XMANUAL, "   
lt_t_documents  TYPE STANDARD TABLE OF ICLDOC, "   
lv_i_xcopyagent  TYPE ICLDOC-XCOPYAGENT, "   'X'
lv_i_sendtype  TYPE ICL_SENDTYPE, "   'PROPOSAL'
lv_io_event  TYPE IF_EVENT_BRF, "   
lv_iv_subclaim  TYPE ICL_SUBCL, "   
lv_iv_subobjcat  TYPE ICL_SUBOBJCAT, "   
lv_iv_subobject  TYPE ICL_SUBOBJECT, "   
lv_is_actual  TYPE ICL_ACTUAL. "   

  CALL FUNCTION 'ICL_DOCUMENT_ADD'  "Include New Document in Proposal List
    EXPORTING
         I_DOCID = lv_i_docid
         IV_XBRF_PLUS = lv_iv_xbrf_plus
         I_XMANUAL = lv_i_xmanual
         I_XCOPYAGENT = lv_i_xcopyagent
         I_SENDTYPE = lv_i_sendtype
         IO_EVENT = lv_io_event
         IV_SUBCLAIM = lv_iv_subclaim
         IV_SUBOBJCAT = lv_iv_subobjcat
         IV_SUBOBJECT = lv_iv_subobject
         IS_ACTUAL = lv_is_actual
    TABLES
         T_DOC_SCR = lt_t_doc_scr
         T_DOCUMENTS = lt_t_documents
. " ICL_DOCUMENT_ADD




ABAP code using 7.40 inline data declarations to call FM ICL_DOCUMENT_ADD

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 DOCID FROM ICLDOC INTO @DATA(ld_i_docid).
 
 
 
"SELECT single XMANUAL FROM ICLDOC INTO @DATA(ld_i_xmanual).
 
 
"SELECT single XCOPYAGENT FROM ICLDOC INTO @DATA(ld_i_xcopyagent).
DATA(ld_i_xcopyagent) = 'X'.
 
DATA(ld_i_sendtype) = 'PROPOSAL'.
 
 
 
 
 
 


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!