SAP PI_SHEET2_GENERATE_FROM_TABLE Function Module for NOTRANSL: Neue Herstellanweisung: Erzeugung der Laufzeitobjekte aus Tabell









PI_SHEET2_GENERATE_FROM_TABLE is a standard pi sheet2 generate from table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Neue Herstellanweisung: Erzeugung der Laufzeitobjekte aus Tabell 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 pi sheet2 generate from table FM, simply by entering the name PI_SHEET2_GENERATE_FROM_TABLE into the relevant SAP transaction such as SE37 or SE38.

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



Function PI_SHEET2_GENERATE_FROM_TABLE 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 'PI_SHEET2_GENERATE_FROM_TABLE'"NOTRANSL: Neue Herstellanweisung: Erzeugung der Laufzeitobjekte aus Tabell
EXPORTING
CR_HEADER = "Recipe: Header Data
* SYNTAX_CHECK_ONLY = ' ' "
SETTINGS = "Structure: Global Settings

IMPORTING
O_PI_DOCUMENT = "
IS_CORRECT = "
WITH_WARNINGS = "Indicator: Warnings Occurred

TABLES
CR_PROCINSTR_TAB = "Process Instructions
CR_CHARACS_TAB = "PI char.
* CR_CHARAC_LTEXTS_TAB = "

EXCEPTIONS
FAILED = 1 FAILED_TEMPORARY = 2
.



IMPORTING Parameters details for PI_SHEET2_GENERATE_FROM_TABLE

CR_HEADER - Recipe: Header Data

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

SYNTAX_CHECK_ONLY -

Data type: FLAG
Default: ' '
Optional: Yes
Call by Reference: Yes

SETTINGS - Structure: Global Settings

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

EXPORTING Parameters details for PI_SHEET2_GENERATE_FROM_TABLE

O_PI_DOCUMENT -

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

IS_CORRECT -

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

WITH_WARNINGS - Indicator: Warnings Occurred

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

TABLES Parameters details for PI_SHEET2_GENERATE_FROM_TABLE

CR_PROCINSTR_TAB - Process Instructions

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

CR_CHARACS_TAB - PI char.

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

CR_CHARAC_LTEXTS_TAB -

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

EXCEPTIONS details

FAILED - Generation Failed

Data type:
Optional: No
Call by Reference: Yes

FAILED_TEMPORARY - Generation Failed Temporarily (e.g. Because of Lock)

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PI_SHEET2_GENERATE_FROM_TABLE 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_failed  TYPE STRING, "   
lv_cr_header  TYPE COCH, "   
lv_o_pi_document  TYPE CL_PI_DOCUMENT_POC, "   
lt_cr_procinstr_tab  TYPE STANDARD TABLE OF COFT, "   
lv_is_correct  TYPE FLAG, "   
lt_cr_characs_tab  TYPE STANDARD TABLE OF COFV, "   
lv_failed_temporary  TYPE COFV, "   
lv_syntax_check_only  TYPE FLAG, "   ' '
lv_settings  TYPE POC_SETTINGS, "   
lv_with_warnings  TYPE FLAG, "   
lt_cr_charac_ltexts_tab  TYPE STANDARD TABLE OF RCOCTAP. "   

  CALL FUNCTION 'PI_SHEET2_GENERATE_FROM_TABLE'  "NOTRANSL: Neue Herstellanweisung: Erzeugung der Laufzeitobjekte aus Tabell
    EXPORTING
         CR_HEADER = lv_cr_header
         SYNTAX_CHECK_ONLY = lv_syntax_check_only
         SETTINGS = lv_settings
    IMPORTING
         O_PI_DOCUMENT = lv_o_pi_document
         IS_CORRECT = lv_is_correct
         WITH_WARNINGS = lv_with_warnings
    TABLES
         CR_PROCINSTR_TAB = lt_cr_procinstr_tab
         CR_CHARACS_TAB = lt_cr_characs_tab
         CR_CHARAC_LTEXTS_TAB = lt_cr_charac_ltexts_tab
    EXCEPTIONS
        FAILED = 1
        FAILED_TEMPORARY = 2
. " PI_SHEET2_GENERATE_FROM_TABLE




ABAP code using 7.40 inline data declarations to call FM PI_SHEET2_GENERATE_FROM_TABLE

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_syntax_check_only) = ' '.
 
 
 
 


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!