SAP CNPL_XSLT_TRANSFORM_STRING Function Module for Do not use









CNPL_XSLT_TRANSFORM_STRING is a standard cnpl xslt transform string SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Do not use 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 cnpl xslt transform string FM, simply by entering the name CNPL_XSLT_TRANSFORM_STRING into the relevant SAP transaction such as SE37 or SE38.

Function Group: CAT_CONNECTOR_PLUGINS
Program Name: SAPLCAT_CONNECTOR_PLUGINS
Main Program: SAPLCAT_CONNECTOR_PLUGINS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CNPL_XSLT_TRANSFORM_STRING 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 'CNPL_XSLT_TRANSFORM_STRING'"Do not use
EXPORTING
* RFCDEST = ' ' "Logical destination (specified when calling function)
* CACHE_ID = ' ' "ABAP Program Name
* CLEAR_CACHE = ' ' "Single-Character Flag
* IN_XML = ' ' "
* IN_XSLT = ' ' "

IMPORTING
OUT_XML = "
RETURN = "Return Parameter
.



IMPORTING Parameters details for CNPL_XSLT_TRANSFORM_STRING

RFCDEST - Logical destination (specified when calling function)

Data type: RFCDEST
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

CACHE_ID - ABAP Program Name

Data type: PROGNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLEAR_CACHE - Single-Character Flag

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_XML -

Data type: XSTRING
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

IN_XSLT -

Data type: XSTRING
Default: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CNPL_XSLT_TRANSFORM_STRING

OUT_XML -

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

RETURN - Return Parameter

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

Copy and paste ABAP code example for CNPL_XSLT_TRANSFORM_STRING 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_out_xml  TYPE XSTRING, "   
lv_rfcdest  TYPE RFCDEST, "   SPACE
lv_return  TYPE BAPIRET1, "   
lv_cache_id  TYPE PROGNAME, "   SPACE
lv_clear_cache  TYPE CHAR1, "   SPACE
lv_in_xml  TYPE XSTRING, "   SPACE
lv_in_xslt  TYPE XSTRING. "   SPACE

  CALL FUNCTION 'CNPL_XSLT_TRANSFORM_STRING'  "Do not use
    EXPORTING
         RFCDEST = lv_rfcdest
         CACHE_ID = lv_cache_id
         CLEAR_CACHE = lv_clear_cache
         IN_XML = lv_in_xml
         IN_XSLT = lv_in_xslt
    IMPORTING
         OUT_XML = lv_out_xml
         RETURN = lv_return
. " CNPL_XSLT_TRANSFORM_STRING




ABAP code using 7.40 inline data declarations to call FM CNPL_XSLT_TRANSFORM_STRING

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.

 
DATA(ld_rfcdest) = ' '.
 
 
DATA(ld_cache_id) = ' '.
 
DATA(ld_clear_cache) = ' '.
 
DATA(ld_in_xml) = ' '.
 
DATA(ld_in_xslt) = ' '.
 


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!