SAP LESI_DOCUMENT_ANALYZE Function Module for Analyzes a given document for presentation purposes









LESI_DOCUMENT_ANALYZE is a standard lesi document analyze SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Analyzes a given document for presentation purposes 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 lesi document analyze FM, simply by entering the name LESI_DOCUMENT_ANALYZE into the relevant SAP transaction such as SE37 or SE38.

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



Function LESI_DOCUMENT_ANALYZE 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 'LESI_DOCUMENT_ANALYZE'"Analyzes a given document for presentation purposes
EXPORTING
IS_LTITY_XRFN = "Reference Structure for Host Confirmation

TABLES
ET_ATTR_VALUE = "Allowed values
ET_ATTR_PRSNT = "Presentation attributes

EXCEPTIONS
INVALID = 1 ITEM_MISSING = 2
.



IMPORTING Parameters details for LESI_DOCUMENT_ANALYZE

IS_LTITY_XRFN - Reference Structure for Host Confirmation

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

TABLES Parameters details for LESI_DOCUMENT_ANALYZE

ET_ATTR_VALUE - Allowed values

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

ET_ATTR_PRSNT - Presentation attributes

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

EXCEPTIONS details

INVALID - invalid object type

Data type:
Optional: No
Call by Reference: Yes

ITEM_MISSING - reference object item missing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LESI_DOCUMENT_ANALYZE 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_invalid  TYPE STRING, "   
lt_et_attr_value  TYPE STANDARD TABLE OF LTIF_ATTR_VALUE, "   
lv_is_ltity_xrfn  TYPE LTIF_XRFN, "   
lv_item_missing  TYPE LTIF_XRFN, "   
lt_et_attr_prsnt  TYPE STANDARD TABLE OF LTIF_ATTR_PRSNT. "   

  CALL FUNCTION 'LESI_DOCUMENT_ANALYZE'  "Analyzes a given document for presentation purposes
    EXPORTING
         IS_LTITY_XRFN = lv_is_ltity_xrfn
    TABLES
         ET_ATTR_VALUE = lt_et_attr_value
         ET_ATTR_PRSNT = lt_et_attr_prsnt
    EXCEPTIONS
        INVALID = 1
        ITEM_MISSING = 2
. " LESI_DOCUMENT_ANALYZE




ABAP code using 7.40 inline data declarations to call FM LESI_DOCUMENT_ANALYZE

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!