SAP Reports / Programs

J_3GBAUB SAP ABAP Report - Location Stock







J_3GBAUB is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

J4GO - Location Stock


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 J_3GBAUB. "Basic submit
SUBMIT J_3GBAUB AND RETURN. "Return to original report after report execution complete
SUBMIT J_3GBAUB 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: E_RESSOU = Equipment
Selection Text: P_DATVON = Key date
Selection Text: P_KZBEST = Only unrestricted-use stock
Selection Text: SORT_B = According to equi. description
Selection Text: SORT_E = According to equi. number
Selection Text: SORT_I = According to inventory number
Selection Text: SORT_K = According to catalog number
Selection Text: SUM_E = Total after equi. change
Selection Text: SUM_L = Total after actvty type change
Selection Text: S_AGEXT = Sold-to party
Selection Text: S_DBER = Planning area
Selection Text: S_EIFR = Own/external indicator
Selection Text: S_EMPFAE = Recipient
Selection Text: S_WEEXT = External ship-to party
Selection Text: S_VERWAL = Administrator
Selection Text: S_TYPBZ = Model identification
Selection Text: S_TPLKZ = Catalog code
Selection Text: S_SERNR = Serial number
Selection Text: S_SERGE = Manufacturer serial number
Selection Text: S_MATNR = Material number
Selection Text: S_LVART = Activity type
Selection Text: S_KZMENG = Equi. item / multipart equi.
Selection Text: S_KATNRC = Number in catalog
Selection Text: S_ETYP = Recipient type
Selection Text: S_EQKTX = Equipment description
Selection Text: S_EQART = Equipment type
Title: Location Stock
Text Symbol: S50 = Classes
Text Symbol: S40 = Output control
Text Symbol: S30 = General restriction
Text Symbol: S20 = Special restrictions
Text Symbol: S10 = Select resource
Text Symbol: 915 = Equipment
Text Symbol: 914 = Name of customer
Text Symbol: 913 = Value
Text Symbol: 001 = Key date:
Text Symbol: 002 = Unrestricted-use stck
Text Symbol: 004 = Total after equi. change





Text Symbol: 005 = Total after actvty type change
Text Symbol: 010 = Location stock on: Page:
Text Symbol: 011 = Date:
Text Symbol: 020 = Description not created
Text Symbol: 030 = Customer not found
Text Symbol: 100 = General restrictions
Text Symbol: 110 = Recipient-oriented restrictions
Text Symbol: 120 = Recipient-oriented
Text Symbol: 121 = Equipment restriction
Text Symbol: 122 = Resources restriction
Text Symbol: 123 = Resources description
Text Symbol: 124 = Rcpnt type restriction
Text Symbol: 125 = Catalog restriction
Text Symbol: 130 = Sort order
Text Symbol: 140 = Form totals
Text Symbol: 500 = Recipient :
Text Symbol: 501 = Ship-to party:
Text Symbol: 502 = Sold-to party:
Text Symbol: 503 = Sort order:
Text Symbol: 505 = Equipment Description Catalog no. since Qty UM AT
Text Symbol: 508 = Katalognr. seit Menge ME LA
Text Symbol: 510 = Model no. Inventory no. Doc. no. Item/Multi indicator
Text Symbol: 520 = Equipment number
Text Symbol: 521 = No. in catalog
Text Symbol: 522 = Inventory no.
Text Symbol: 523 = Equi description
Text Symbol: 524 = Equipment
Text Symbol: 525 = Description
Text Symbol: 900 = Location Stock on:
Text Symbol: 910 = Page:
Text Symbol: 911 = Date:
Text Symbol: 912 = Category


INCLUDES used within this REPORT J_3GBAUB

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:

MGV_SELOP_AFTER_INITIALIZATION call function 'MGV_SELOP_AFTER_INITIALIZATION' EXPORTING PROGRAM = mgv_matnr_prog TABLES SELOP = mgv_matnr_selopt_tab EXCEPTIONS NO_PROGRAMNAME = 1 OTHERS = 2 .

MGV_SELOP_AFTER_START_OF_SEL CALL FUNCTION 'MGV_SELOP_AFTER_START_OF_SEL' EXPORTING SELOPT_NAME = mgv_matnr_selopt_tab-name TABLES RANGE = .






J_3G_CHECK_ERP_MEC_LIST CALL FUNCTION 'J_3G_CHECK_ERP_MEC_LIST' IMPORTING EV_CHECK_SWITCH_FLAG = lv_switch_flag EXCEPTIONS INVALID_SWITCH = 1 OTHERS = 2 .

CONVERSION_EXIT_ALPHA_INPUT call function 'CONVERSION_EXIT_ALPHA_INPUT' exporting input = equnr importing output = equnr exceptions others = 1.

CONVERSION_EXIT_ALPHA_OUTPUT call function 'CONVERSION_EXIT_ALPHA_OUTPUT' exporting input = equnr importing output = equnr exceptions others = 1.

CLCA_GET_CLASSTYPES_FROM_TABLE call function 'CLCA_GET_CLASSTYPES_FROM_TABLE' exporting spras = sy-langu table = h_table with_text = ' ' tables iklart = h_iklart exceptions no_classtype_found = 01.

CLSC_SELECT_OBJECTS_FROM_CLASS call function 'CLSC_SELECT_OBJECTS_FROM_CLASS' exporting klart = h_iklart-klart table = h_table tables objects = clobj_tab exceptions pf03 = 01 pf12 = 02 pf15 = 03.

/SAPCEM/HBEST_TBEST_MERGE call function '/SAPCEM/HBEST_TBEST_MERGE' exporting i_cdate = p_datvon i_cequi = 'X' IT_EMPFA = XEMPFAE[] it_agext = s_agext[] it_weext = s_weext[] it_requi = resso_wa[] i_corr_hbest_read = '' importing ET_HBEST = LT_HBEST[] EXCEPTIONS OTHERS = 1.

J_3G_GET_KATNR call function 'J_3G_GET_KATNR' exporting i_equnr = p_ressou i_datum = p_datum importing e_katnr = xkat-katnrc e_katkz = xkat-tplkz exceptions no_number = 1 two_numbers = 2 no_values = 3 no_katkz = 4 others = 5.

REUSE_ALV_LIST_DISPLAY call function 'REUSE_ALV_LIST_DISPLAY' exporting i_callback_program = g_repid i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layout it_fieldcat = lt_fcat it_events = lt_events is_print = ls_print TABLES t_outtab = gt_HEADER EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * i_callback_program = gv_repid * i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' * is_layout = ls_layout * it_fieldcat = lt_fcat * it_events = lt_events * is_print = ls_print * TABLES * t_outtab = gt_HEADER * EXCEPTIONS * program_error = 1 * OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = lv_struct CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' IMPORTING et_events = ct_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY call function 'REUSE_ALV_LIST_DISPLAY' exporting i_callback_program = g_repid i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layout it_fieldcat = lt_fcat IT_SORT = lt_sort it_events = lt_events is_print = ls_print TABLES t_outtab = gt_lineitems EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * i_callback_program = gv_repid * i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' * is_layout = ls_layout * it_fieldcat = lt_fcat * IT_SORT = lt_sort * it_events = lt_events * is_print = ls_print * TABLES * t_outtab = gt_lineitems * EXCEPTIONS * program_error = 1 * OTHERS = 2.



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 J_3GBAUB or its description.