SAP J_2GSAVE_OTF Function Module for Save legal document print data









J_2GSAVE_OTF is a standard j 2gsave otf SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save legal document print data 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 j 2gsave otf FM, simply by entering the name J_2GSAVE_OTF into the relevant SAP transaction such as SE37 or SE38.

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



Function J_2GSAVE_OTF 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 'J_2GSAVE_OTF'"Save legal document print data
EXPORTING
I_LEGKEY = "Legal doc. key (apply f. J_2GFORM_LEGKEY 1st)
I_ITCPP = "SAPscript print parameters

TABLES
* T_ADD = "Additional text with issuer data
T_OTF1 = "Print text of doc. copy 1 (OTF format)
* T_OTF2 = "Print text of doc. copy 2 (OTF format)
* T_OTF3 = "Print text of doc. copy 3 (OTF format)
* T_OTF4 = "Print text of doc. copy 4 (OTF format)
.



IMPORTING Parameters details for J_2GSAVE_OTF

I_LEGKEY - Legal doc. key (apply f. J_2GFORM_LEGKEY 1st)

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

I_ITCPP - SAPscript print parameters

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

TABLES Parameters details for J_2GSAVE_OTF

T_ADD - Additional text with issuer data

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

T_OTF1 - Print text of doc. copy 1 (OTF format)

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

T_OTF2 - Print text of doc. copy 2 (OTF format)

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

T_OTF3 - Print text of doc. copy 3 (OTF format)

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

T_OTF4 - Print text of doc. copy 4 (OTF format)

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

Copy and paste ABAP code example for J_2GSAVE_OTF 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:
lt_t_add  TYPE STANDARD TABLE OF J_2GLPTXT, "   
lv_i_legkey  TYPE J_2GLPLEGKEY, "   
lt_t_otf1  TYPE STANDARD TABLE OF ITCOO, "   
lv_i_itcpp  TYPE ITCPP, "   
lt_t_otf2  TYPE STANDARD TABLE OF ITCOO, "   
lt_t_otf3  TYPE STANDARD TABLE OF ITCOO, "   
lt_t_otf4  TYPE STANDARD TABLE OF ITCOO. "   

  CALL FUNCTION 'J_2GSAVE_OTF'  "Save legal document print data
    EXPORTING
         I_LEGKEY = lv_i_legkey
         I_ITCPP = lv_i_itcpp
    TABLES
         T_ADD = lt_t_add
         T_OTF1 = lt_t_otf1
         T_OTF2 = lt_t_otf2
         T_OTF3 = lt_t_otf3
         T_OTF4 = lt_t_otf4
. " J_2GSAVE_OTF




ABAP code using 7.40 inline data declarations to call FM J_2GSAVE_OTF

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!