SAP PIC05_MATERIAL_PIC_CHECKS Function Module for Perform PIC consistency checks from Material master maintenance









PIC05_MATERIAL_PIC_CHECKS is a standard pic05 material pic checks SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Perform PIC consistency checks from Material master maintenance 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 pic05 material pic checks FM, simply by entering the name PIC05_MATERIAL_PIC_CHECKS into the relevant SAP transaction such as SE37 or SE38.

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



Function PIC05_MATERIAL_PIC_CHECKS 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 'PIC05_MATERIAL_PIC_CHECKS'"Perform PIC consistency checks from Material master maintenance
EXPORTING
IS_MARA = "General Material Data
IS_MARC = "Plant Data for Material
IS_MPGD = "Change Document Structure for Material Master/Product Group
* IS_MARD = "Storage Location Data for Material

IMPORTING
EV_ANSWER = "Generic Type

TABLES
IT_PTAB = "Internal Pointer Table
.



IMPORTING Parameters details for PIC05_MATERIAL_PIC_CHECKS

IS_MARA - General Material Data

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

IS_MARC - Plant Data for Material

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

IS_MPGD - Change Document Structure for Material Master/Product Group

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

IS_MARD - Storage Location Data for Material

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

EXPORTING Parameters details for PIC05_MATERIAL_PIC_CHECKS

EV_ANSWER - Generic Type

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

TABLES Parameters details for PIC05_MATERIAL_PIC_CHECKS

IT_PTAB - Internal Pointer Table

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

Copy and paste ABAP code example for PIC05_MATERIAL_PIC_CHECKS 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_is_mara  TYPE MARA, "   
lt_it_ptab  TYPE STANDARD TABLE OF PTAB, "   
lv_ev_answer  TYPE C, "   
lv_is_marc  TYPE MARC, "   
lv_is_mpgd  TYPE MPGD, "   
lv_is_mard  TYPE MARD. "   

  CALL FUNCTION 'PIC05_MATERIAL_PIC_CHECKS'  "Perform PIC consistency checks from Material master maintenance
    EXPORTING
         IS_MARA = lv_is_mara
         IS_MARC = lv_is_marc
         IS_MPGD = lv_is_mpgd
         IS_MARD = lv_is_mard
    IMPORTING
         EV_ANSWER = lv_ev_answer
    TABLES
         IT_PTAB = lt_it_ptab
. " PIC05_MATERIAL_PIC_CHECKS




ABAP code using 7.40 inline data declarations to call FM PIC05_MATERIAL_PIC_CHECKS

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!