SAP ISM_MEDIA_ISSUE_SINGLE_READ Function Module for Read Structures for Media Issue in Buffer









ISM_MEDIA_ISSUE_SINGLE_READ is a standard ism media issue single read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Structures for Media Issue in Buffer 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 ism media issue single read FM, simply by entering the name ISM_MEDIA_ISSUE_SINGLE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_MEDIA_ISSUE_SINGLE_READ 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 'ISM_MEDIA_ISSUE_SINGLE_READ'"Read Structures for Media Issue in Buffer
EXPORTING
PVI_MATNR = "Material Number
* PVI_BWTAR = "Valuation Type
* PVI_WERKS = "Plant
* PVI_VKORG = "Sales Organization
* PVI_VTWEG = "Distribution Channel
* PVI_LANGU = SY-LANGU "Language Key
* PVI_LGORT = "Storage Location
* PVI_LGNUM = "Warehouse Number/Warehouse Complex
* PVI_LGTYP = "Storage Type
* PVI_BWKEY = "Valuation Area

IMPORTING
PSE_MARA = "General material data
PSE_MPGD = "Change-Document Structure for Material Master/Product Group
PVE_KTXT = "Material Description
PVE_REFMDPRFAM = "Higher-Level Media Product Family
PVE_REFMDPROD = "Higher-Level Media Product
PVE_DRERZ = "Publication
PVE_PVA = "Edition
PVE_VAUSGB = "Issue
PSE_MAKT = "Material Descriptions
PSE_MARC = "Plant Data for Material
PSE_MVKE = "Sales Data for Material
PSE_MARD = "Storage Location Data For Material
PSE_MFHM = "Production Resource Tool (PRT) Fields in the Material Master
PSE_MBEW = "Material Valuation
PSE_MLGN = "Material Data For Each Warehouse Number
PSE_MLGT = "Material Data For Each Storage Type

TABLES
* PT_MG03STEUER = "Control Table
* PT_MG03STEUMM = "Control Table: Purchasing

EXCEPTIONS
READ_NOT_POSSIBLE = 1 NO_ISSUE = 2
.



IMPORTING Parameters details for ISM_MEDIA_ISSUE_SINGLE_READ

PVI_MATNR - Material Number

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

PVI_BWTAR - Valuation Type

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

PVI_WERKS - Plant

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

PVI_VKORG - Sales Organization

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

PVI_VTWEG - Distribution Channel

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

PVI_LANGU - Language Key

Data type: MAKT-SPRAS
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

PVI_LGORT - Storage Location

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

PVI_LGNUM - Warehouse Number/Warehouse Complex

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

PVI_LGTYP - Storage Type

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

PVI_BWKEY - Valuation Area

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

EXPORTING Parameters details for ISM_MEDIA_ISSUE_SINGLE_READ

PSE_MARA - General material data

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

PSE_MPGD - Change-Document Structure for Material Master/Product Group

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

PVE_KTXT - Material Description

Data type: MAKT-MAKTX
Optional: No
Call by Reference: No ( called with pass by value option)

PVE_REFMDPRFAM - Higher-Level Media Product Family

Data type: MARA-ISMREFMDPRFAM
Optional: No
Call by Reference: No ( called with pass by value option)

PVE_REFMDPROD - Higher-Level Media Product

Data type: MARA-ISMREFMDPROD
Optional: No
Call by Reference: No ( called with pass by value option)

PVE_DRERZ - Publication

Data type: JDTDRER-DRERZ
Optional: No
Call by Reference: No ( called with pass by value option)

PVE_PVA - Edition

Data type: JDTPVA-PVA
Optional: No
Call by Reference: No ( called with pass by value option)

PVE_VAUSGB - Issue

Data type: JDTVAUSGB-VAUSGB
Optional: No
Call by Reference: No ( called with pass by value option)

PSE_MAKT - Material Descriptions

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

PSE_MARC - Plant Data for Material

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

PSE_MVKE - Sales Data for Material

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

PSE_MARD - Storage Location Data For Material

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

PSE_MFHM - Production Resource Tool (PRT) Fields in the Material Master

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

PSE_MBEW - Material Valuation

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

PSE_MLGN - Material Data For Each Warehouse Number

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

PSE_MLGT - Material Data For Each Storage Type

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

TABLES Parameters details for ISM_MEDIA_ISSUE_SINGLE_READ

PT_MG03STEUER - Control Table

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

PT_MG03STEUMM - Control Table: Purchasing

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

EXCEPTIONS details

READ_NOT_POSSIBLE - Unable to read master record

Data type:
Optional: No
Call by Reference: Yes

NO_ISSUE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_MEDIA_ISSUE_SINGLE_READ 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_pse_mara  TYPE MARA, "   
lv_pvi_matnr  TYPE MARA-MATNR, "   
lt_pt_mg03steuer  TYPE STANDARD TABLE OF MG03STEUER, "   
lv_read_not_possible  TYPE MG03STEUER, "   
lv_pse_mpgd  TYPE MPGD, "   
lv_pvi_bwtar  TYPE MBEW-BWTAR, "   
lv_pve_ktxt  TYPE MAKT-MAKTX, "   
lv_pve_refmdprfam  TYPE MARA-ISMREFMDPRFAM, "   
lv_pve_refmdprod  TYPE MARA-ISMREFMDPROD, "   
lv_pve_drerz  TYPE JDTDRER-DRERZ, "   
lv_pve_pva  TYPE JDTPVA-PVA, "   
lv_pve_vausgb  TYPE JDTVAUSGB-VAUSGB, "   
lv_no_issue  TYPE JDTVAUSGB, "   
lv_pse_makt  TYPE MAKT, "   
lv_pvi_werks  TYPE MARC-WERKS, "   
lt_pt_mg03steumm  TYPE STANDARD TABLE OF MG03STEUMM, "   
lv_pse_marc  TYPE MARC, "   
lv_pvi_vkorg  TYPE MVKE-VKORG, "   
lv_pse_mvke  TYPE MVKE, "   
lv_pvi_vtweg  TYPE MVKE-VTWEG, "   
lv_pse_mard  TYPE MARD, "   
lv_pvi_langu  TYPE MAKT-SPRAS, "   SY-LANGU
lv_pse_mfhm  TYPE MFHM, "   
lv_pvi_lgort  TYPE MARD-LGORT, "   
lv_pse_mbew  TYPE MBEW, "   
lv_pvi_lgnum  TYPE MLGT-LGNUM, "   
lv_pse_mlgn  TYPE MLGN, "   
lv_pvi_lgtyp  TYPE MLGT-LGTYP, "   
lv_pse_mlgt  TYPE MLGT, "   
lv_pvi_bwkey  TYPE MBEW-BWKEY. "   

  CALL FUNCTION 'ISM_MEDIA_ISSUE_SINGLE_READ'  "Read Structures for Media Issue in Buffer
    EXPORTING
         PVI_MATNR = lv_pvi_matnr
         PVI_BWTAR = lv_pvi_bwtar
         PVI_WERKS = lv_pvi_werks
         PVI_VKORG = lv_pvi_vkorg
         PVI_VTWEG = lv_pvi_vtweg
         PVI_LANGU = lv_pvi_langu
         PVI_LGORT = lv_pvi_lgort
         PVI_LGNUM = lv_pvi_lgnum
         PVI_LGTYP = lv_pvi_lgtyp
         PVI_BWKEY = lv_pvi_bwkey
    IMPORTING
         PSE_MARA = lv_pse_mara
         PSE_MPGD = lv_pse_mpgd
         PVE_KTXT = lv_pve_ktxt
         PVE_REFMDPRFAM = lv_pve_refmdprfam
         PVE_REFMDPROD = lv_pve_refmdprod
         PVE_DRERZ = lv_pve_drerz
         PVE_PVA = lv_pve_pva
         PVE_VAUSGB = lv_pve_vausgb
         PSE_MAKT = lv_pse_makt
         PSE_MARC = lv_pse_marc
         PSE_MVKE = lv_pse_mvke
         PSE_MARD = lv_pse_mard
         PSE_MFHM = lv_pse_mfhm
         PSE_MBEW = lv_pse_mbew
         PSE_MLGN = lv_pse_mlgn
         PSE_MLGT = lv_pse_mlgt
    TABLES
         PT_MG03STEUER = lt_pt_mg03steuer
         PT_MG03STEUMM = lt_pt_mg03steumm
    EXCEPTIONS
        READ_NOT_POSSIBLE = 1
        NO_ISSUE = 2
. " ISM_MEDIA_ISSUE_SINGLE_READ




ABAP code using 7.40 inline data declarations to call FM ISM_MEDIA_ISSUE_SINGLE_READ

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.

 
"SELECT single MATNR FROM MARA INTO @DATA(ld_pvi_matnr).
 
 
 
 
"SELECT single BWTAR FROM MBEW INTO @DATA(ld_pvi_bwtar).
 
"SELECT single MAKTX FROM MAKT INTO @DATA(ld_pve_ktxt).
 
"SELECT single ISMREFMDPRFAM FROM MARA INTO @DATA(ld_pve_refmdprfam).
 
"SELECT single ISMREFMDPROD FROM MARA INTO @DATA(ld_pve_refmdprod).
 
"SELECT single DRERZ FROM JDTDRER INTO @DATA(ld_pve_drerz).
 
"SELECT single PVA FROM JDTPVA INTO @DATA(ld_pve_pva).
 
"SELECT single VAUSGB FROM JDTVAUSGB INTO @DATA(ld_pve_vausgb).
 
 
 
"SELECT single WERKS FROM MARC INTO @DATA(ld_pvi_werks).
 
 
 
"SELECT single VKORG FROM MVKE INTO @DATA(ld_pvi_vkorg).
 
 
"SELECT single VTWEG FROM MVKE INTO @DATA(ld_pvi_vtweg).
 
 
"SELECT single SPRAS FROM MAKT INTO @DATA(ld_pvi_langu).
DATA(ld_pvi_langu) = SY-LANGU.
 
 
"SELECT single LGORT FROM MARD INTO @DATA(ld_pvi_lgort).
 
 
"SELECT single LGNUM FROM MLGT INTO @DATA(ld_pvi_lgnum).
 
 
"SELECT single LGTYP FROM MLGT INTO @DATA(ld_pvi_lgtyp).
 
 
"SELECT single BWKEY FROM MBEW INTO @DATA(ld_pvi_bwkey).
 


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!