SAP Reports / Programs

J_3GBBEW_N SAP ABAP Report - Movements Between Locations ( ALV )







J_3GBBEW_N is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Movements Between Construction Sites (ALV - ABAP List Viewer) You can use this report to display equipment and/or material movements between different recipients...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 J_3GBBEW_N 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

J4GWN - Movements Between Locations List


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_3GBBEW_N. "Basic submit
SUBMIT J_3GBBEW_N AND RETURN. "Return to original report after report execution complete
SUBMIT J_3GBBEW_N 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 = D Equipment
Selection Text: M_KATNRC = D Number in catalog
Selection Text: M_RESSOU = D Material
Selection Text: P_DATBIS = D To date
Selection Text: P_DATVON = D From date
Selection Text: P_KZBEST = Only unrestricted-use stock
Selection Text: P_TPLKZ = D Catalog code
Selection Text: SEL_A = All locations
Selection Text: SEL_B = Lctns wth acq. docs in period
Selection Text: S_AGEXT = D Debtor - recipient
Selection Text: S_BFART = D Inventory mgmt type
Selection Text: S_DBER = D Planning area
Selection Text: S_EIFR = D Own/external equi.
Selection Text: S_EMPFAE = D Recipient
Selection Text: S_EQART = D Technical obj. type
Selection Text: S_EQKTX = D Equipment descriptn
Selection Text: S_ETYP = D Recipient type
Selection Text: S_INVNR = D Inventory number
Selection Text: S_KATNRC = D Number in catalog
Selection Text: S_KZMENG = D Item/multipart ind.
Selection Text: S_LVART = D Activity type
Selection Text: S_MAKTX = D Material Description
Selection Text: S_MATKL = D Material Group
Selection Text: S_MATNR = D Material
Selection Text: S_SERGE = D ManufSerialNumber
Selection Text: S_SERNR = D Serial number
Selection Text: S_TPLKZ = D Catalog code
Selection Text: S_TYPBZ = D Model number
Selection Text: S_WEEXT = D ExtShiptoPrtyRcpnt
Title: Movements Between Locations ( ALV )
Text Symbol: T10 = ==================== M A T E R I A L =====================
Text Symbol: S60 = List formatting
Text Symbol: S50 = Classes
Text Symbol: 001 = Time period from:
Text Symbol: 002 = Unrestrctd-use stck
Text Symbol: 003 = To
Text Symbol: 004 = All locations/acquisition date in period
Text Symbol: 005 = Acquisition date in time period





Text Symbol: 006 = Display equipment only
Text Symbol: 007 = Display material only
Text Symbol: 008 = Display equipment + material
Text Symbol: 009 = Material directly after equipment?
Text Symbol: 010 = Movements between locations. from: to: Page:
Text Symbol: 011 = Color for material items
Text Symbol: 012 = Zebra display
Text Symbol: 013 = The following settings are only relevant if material for a
Text Symbol: 014 = location is to be displayed directly after its equipment
Text Symbol: 015 = Display variant for equipment
Text Symbol: 016 = Display variant for material
Text Symbol: 020 = Description not created
Text Symbol: 030 = Customer not found
Text Symbol: 100 = Equipment
Text Symbol: 110 = Material
Text Symbol: 130 = Sort order
Text Symbol: 140 = Additional selection parameters
Text Symbol: 300 = Recipient :
Text Symbol: 310 = Basic days:
Text Symbol: 320 = Sold-to party:
Text Symbol: 325 = Basic hrs:
Text Symbol: 330 = Ship-to party:
Text Symbol: 910 = Header
Text Symbol: 920 = Item
Text Symbol: S10 = Resource-dependent restrictions
Text Symbol: S20 = Special restrictions
Text Symbol: S30 = General restriction
Text Symbol: S40 = Output control


INCLUDES used within this REPORT J_3GBBEW_N

INCLUDE J_3GBBEW_TOP.
INCLUDE J_3GBBEW_SELOPT_N.


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 = .

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING es_variant = xvariant EXCEPTIONS OTHERS = 1.

/SAPCEM/LBUKRS_GET





CALL FUNCTION '/SAPCEM/LBUKRS_GET' EXPORTING i_equnr = ausgabe-equnr i_datum = ausgabe-j_3gdatvon IMPORTING e_bukrs = bukrs.

J_3G_DAY_CALCULATE CALL FUNCTION 'J_3G_DAY_CALCULATE' EXPORTING j_3gabrart = header-j_3gabrart j_3gtagmon = header-j_3gtagmon j_3gvondat = ausgabe-j_3gdatvon j_3gbisdat = ausgabe-j_3gdatbis facid = header-j_3gcalid j_3gvmonat = header-j_3gvmonat j_3glbukrs = bukrs IMPORTING dauer = anz_tage dauer_mit = anz_tage_mit EXCEPTIONS abrechart_incorrect = 1 facid_incorrect = 2.

/SAPCEM/HBEST_TBEST_MERGE CALL FUNCTION '/SAPCEM/HBEST_TBEST_MERGE' EXPORTING i_vdate = hlp_datum i_cdate = p_datbis 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.

/SAPCEM/HBEST_TBEST_MERGE CALL FUNCTION '/SAPCEM/HBEST_TBEST_MERGE' EXPORTING i_vdate = hlp_datum i_cdate = p_datbis i_cmatn = 'X' it_empfa = xempfae[] it_agext = s_agext[] it_weext = s_weext[] it_rmatn = resso_wa[] i_corr_hbest_read = ' ' IMPORTING et_hbest = lt_hbest[] EXCEPTIONS OTHERS = 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 J_3GBBEW_N or its description.