SAP Reports / Programs

SAPDBMSM SAP ABAP Report - Access Program for Database MSM







SAPDBMSM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program SAPDBMSM contains the access routines for reporting...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter SAPDBMSM into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT SAPDBMSM. "Basic submit
SUBMIT SAPDBMSM AND RETURN. "Return to original report after report execution complete
SUBMIT SAPDBMSM VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: MS_BWKEY = Valuation area
Selection Text: MS_BWTAR = Valuation type
Selection Text: MS_CHARG = Batch
Selection Text: MS_LGNUM = Warehouse number
Selection Text: MS_LGORT = Storage location
Selection Text: MS_LGTYP = Storage type
Selection Text: MS_MATNR = Material
Selection Text: MS_VKORG = Sales organization
Selection Text: MS_VTWEG = Distribution channel
Selection Text: MS_WERKS = Plant
Title: Access Program for Database MSM
Text Symbol: 001 = Database selections


INCLUDES used within this REPORT SAPDBMSM

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

BEGRU_MAT_AUTHORITY_CHECK * CALL FUNCTION 'BEGRU_MAT_AUTHORITY_CHECK' * EXPORTING * aktyp = 'A' * begru = mara-begru * EXCEPTIONS * no_authority = 1.

T023_SINGLE_READ * CALL FUNCTION 'T023_SINGLE_READ' * EXPORTING * t023_matkl = mara-matkl * IMPORTING * wt023 = t023 * EXCEPTIONS * not_found = 01.

BEGRU_WGR_AUTHORITY_CHECK * CALL FUNCTION 'BEGRU_WGR_AUTHORITY_CHECK' * EXPORTING * aktyp = 'A' * begru = t023-begru * EXCEPTIONS * no_authority = 1.

MBEW_EXTEND CALL FUNCTION 'MBEW_EXTEND' "TF 4.0C

LESEN_PROGNOSE CALL FUNCTION 'LESEN_PROGNOSE' EXPORTING IMAPRF = MAPRF IMPORTING EPROPF = PROPF TABLES TPROWF = MS_TAB EXCEPTIONS MAPR_NOT_FOUND = 1 PROP_NOT_FOUND = 1.

MARD_EXTEND CALL FUNCTION 'MARD_EXTEND' "TF 4.0C

MARD_EXTEND_STFLAG CALL FUNCTION 'MARD_EXTEND_STFLAG' "ch/4.6c

MCHB_EXTEND CALL FUNCTION 'MCHB_EXTEND' "TF 4.0C

MCHB_EXTEND_STFLAG CALL FUNCTION 'MCHB_EXTEND_STFLAG' "ch/4.6c

MKOL_EXTEND CALL FUNCTION 'MKOL_EXTEND' "TF 4.0C

MKOL_EXTEND_STFLAG CALL FUNCTION 'MKOL_EXTEND_STFLAG' "ch/4.6c

MBEW_EXTEND CALL FUNCTION 'MBEW_EXTEND' "TF 4.0C

MARD_EXTEND CALL FUNCTION 'MARD_EXTEND' "TF 4.0C

MARD_EXTEND_STFLAG CALL FUNCTION 'MARD_EXTEND_STFLAG' "ch/4.6c

MCHB_EXTEND CALL FUNCTION 'MCHB_EXTEND' "TF 4.0C

MCHB_EXTEND_STFLAG CALL FUNCTION 'MCHB_EXTEND_STFLAG' "ch/4.6c

MKOL_EXTEND CALL FUNCTION 'MKOL_EXTEND' "TF 4.0C

MKOL_EXTEND_STFLAG CALL FUNCTION 'MKOL_EXTEND_STFLAG' "ch/4.6c

BEGRU_MAT_AUTHORITY_CHECK





* CALL FUNCTION 'BEGRU_MAT_AUTHORITY_CHECK' * EXPORTING * aktyp = 'A' * begru = i_mara-begru * EXCEPTIONS * no_authority = 1.

T023_SINGLE_READ * CALL FUNCTION 'T023_SINGLE_READ' * EXPORTING * t023_matkl = i_mara-matkl * IMPORTING * wt023 = t023 * EXCEPTIONS * not_found = 01.

BEGRU_WGR_AUTHORITY_CHECK * CALL FUNCTION 'BEGRU_WGR_AUTHORITY_CHECK' * EXPORTING * aktyp = 'A' * begru = t023-begru * EXCEPTIONS * no_authority = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name SAPDBMSM or its description.