SAP Reports / Programs

J_1AMGIP SAP ABAP Report - Replacement Cost Valuation (Goods Issue Revaluation)







J_1AMGIP 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_1AMGIP 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

J1A3 - MM goods issue revaluation


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_1AMGIP. "Basic submit
SUBMIT J_1AMGIP AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AMGIP 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: PERIODM = Posting Month
Selection Text: MATNR = Material
Selection Text: BWTAR = Valuation Type
Selection Text: BWKEY = Valuation Area
Selection Text: BUKRS = Company Code
Selection Text: P_ZEBRA = Striped Pattern
Selection Text: P_VARI = Layout
Selection Text: P_COLOPT = Optimize Columns
Selection Text: PROVRUN = Provisional Run
Selection Text: PERIODY = Posting Year
Title: Replacement Cost Valuation (Goods Issue Revaluation)
Text Symbol: 103 = Control Data
Text Symbol: 102 = Selection Criteria
Text Symbol: 020 = (YYYY/PP)
Text Symbol: 013 = Update Mode
Text Symbol: 010 = Valuation Period
Text Symbol: 250 = Display Options
Text Symbol: 240 = Inflation Method
Text Symbol: 225 = No Account Class Assigned
Text Symbol: 224 = Account Missing from SKB1
Text Symbol: 222 = Goods Issue Revaluation


INCLUDES used within this REPORT J_1AMGIP

INCLUDE J_1A_ALV_GIP_DATA.


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:

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING BUKRS = BUKRS-LOW IMPORTING WMARV = MARV EXCEPTIONS NOT_FOUND = 1 WRONG_CALL = 2 OTHERS = 3.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' "boi 1382307 IMPORTING E_GLFLEX_ACTIVE = glflex_active EXCEPTIONS ERROR_IN_SETUP = 1 OTHERS = 2.

J_1BSA_COMPONENT_ACTIVE CALL FUNCTION 'J_1BSA_COMPONENT_ACTIVE' EXPORTING BUKRS = T001-BUKRS COMPONENT = CHECK_COMP IMPORTING ACTIVE_COMPONENT = ACTIVE_COMP EXCEPTIONS COMPONENT_NOT_ACTIVE = 1 OTHERS = 2.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING BUKRS = BUKRS-LOW IMPORTING WMARV = MARV EXCEPTIONS NOT_FOUND = 1 WRONG_CALL = 2 OTHERS = 3.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = PYEAR " year of period I_PERIV = X001-PERIV " variant I_POPER = PPERIOD IMPORTING E_DATE = DATE-LOW.

LAST_DAY_IN_PERIOD_GET CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = PYEAR " year of period I_PERIV = X001-PERIV " variant I_POPER = PPERIOD IMPORTING E_DATE = DATE-HIGH.

MB_CONTROL_MOVETYPE_GET CALL FUNCTION 'MB_CONTROL_MOVETYPE_GET' EXPORTING I_MANDT = SY-MANDT I_BWART = MSEG-BWART I_WERTU = 'X' I_MENGU = '*' I_SOBKZ = '*' I_KZBEW = '*' I_KZZUG = '*' I_KZVBR = '*' * IMPORTING * E_ST156S = TABLES TE_ST156S_TAB = XST156S EXCEPTIONS INCONSISTENT_ENTRIES = 1 NO_ENTRIES_FOUND = 2 OTHERS = 3.

J_1A_INF_INT_ALV CALL FUNCTION 'J_1A_INF_INT_ALV' EXPORTING I_DATE_LOW = U_DATE_LOW I_DATE_HIGH = U_DATE_HIGH I_UPDATE = U_UPDATE I_PROVRUN = U_PROVRUN I_PROCESSING_LINES = L_MBEW_LINES I_CALLBACK_PROGRAM = L_REP_NAME I_VARI = U_P_VARI I_ZEBRA = U_P_ZEBRA I_COLOPT = U_P_COLOPT I_TITLE = L_TITLE TABLES T_OUTTAB_HEADER = UT_HEADER T_OUTTAB_ITEM = UT_ITEM T_MSG = UT_MSG.

MBEW_EXTEND CALL FUNCTION 'MBEW_EXTEND' EXPORTING * KZRFB = ' ' * MAXTZ = ' ' XVPER = 'X' XVVPR = 'X' XVJAH = 'X' XVVJA = 'X' * IMPORTING * RMBEWH = TABLES MBEW_TAB = TMBEW.

DATE_COMPUTE_DAY * CALL FUNCTION 'DATE_COMPUTE_DAY' * EXPORTING * DATE = PDATE_HIGH * IMPORTING * DAY = I.

J_1A_GOODISSUE_AC_MODIFICATION CALL FUNCTION 'J_1A_GOODISSUE_AC_MODIFICATION' EXPORTING BUKRS = P_BUKRS KTOPL = P_KTOPL VORSL = P_KTOSL PROVRUN = P_PPROVRUN CHANGING ACCOUNT = P_HKONT EXCEPTIONS ACCOUNT_NOT_FOUND = 1 ACCOUNT_CLASS_NOT_FOUND = 2.

MB_CONTROL_MOVETYPE_GET_SINGLE CALL FUNCTION 'MB_CONTROL_MOVETYPE_GET_SINGLE' EXPORTING I_MANDT = SY-MANDT I_BWART = PXMSEG-BWART I_WERTU = PXMSEG-WERTU I_MENGU = PXMSEG-MENGU I_SOBKZ = PXMSEG-SOBKZ I_KZBEW = PXMSEG-KZBEW I_KZZUG = PXMSEG-KZZUG I_KZVBR = PXMSEG-KZVBR IMPORTING E_ST156S = PST156S EXCEPTIONS NO_ENTRY_FOUND = 1 INCONSISTENT_ENTRIES = 2 OTHERS = 3.

MR_ACCOUNT_ASSIGNMENT CALL FUNCTION 'MR_ACCOUNT_ASSIGNMENT' EXPORTING KONTENPLAN = P_KTOPL VORGANGSSCHLUESSEL = P_LVSL BEWERTUNG_MODIF = P_BWMOD * KONTO_MODIF = (UNUSED) BEWERTUNGSKLASSE = P_BKLAS SOLL_HABEN_KENNZEICHEN = P_LM_SHKGZ IMPORTING KONTO = P_LM_ACC BUCHUNGSSCHLUESSEL = P_LM_BSL EXCEPTIONS NOT_FOUND_T030 = 1 NOT_FOUND_T030R = 2 NOT_FOUND_T030B = 3 NOT_FOUND_T030S = 4.

AC_DOCUMENT_GENERATE CALL FUNCTION 'AC_DOCUMENT_GENERATE' IMPORTING E_AWREF = P_AWREF E_AWORG = P_AWORG TABLES T_ACCHD = P_XACCHD T_ACCIT = P_XACCIT T_ACCCR = P_XACCCR 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_1AMGIP or its description.