SAP Reports / Programs | Non-Ferrous Metal enhancements | Mill Products Industry Solution | Non-Ferrous Metal enhancements(IS-MP-NF) SAP IS

/NFM/SUM_NE_KONSTRUKTIONSGEW SAP ABAP Report - Calculation and Updating of Structural Weights in Batch Mode







/NFM/SUM_NE_KONSTRUKTIONSGEW 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 /NFM/SUM_NE_KONSTRUKTIONSGEW 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 /NFM/SUM_NE_KONSTRUKTIONSGEW. "Basic submit
SUBMIT /NFM/SUM_NE_KONSTRUKTIONSGEW AND RETURN. "Return to original report after report execution complete
SUBMIT /NFM/SUM_NE_KONSTRUKTIONSGEW 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: KLVAR = D Costing Variant
Selection Text: MATNR = D Material
Selection Text: WERK = D Plant
Title: Calculation and Updating of Structural Weights in Batch Mode
Text Symbol: 001 = NF totaling not possible
Text Symbol: 005 = Selection options
Text Symbol: 010 = Parameter
Text Symbol: 020 = Test run (no database changes)
Text Symbol: 030 = Log
Text Symbol: 040 = Issue log
Text Symbol: 050 = Costing variant
001 Material Plant Reference quantity
002 Origin group NF key
003 Structural weight


INCLUDES used within this REPORT /NFM/SUM_NE_KONSTRUKTIONSGEW

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

CK_F_CSTG_STRUCTURE_EXPLOSION CALL FUNCTION 'CK_F_CSTG_STRUCTURE_EXPLOSION' EXPORTING klvar = ls_keko-klvar kalnr = ls_keko-kalnr kadky = ls_keko-kadky tvers = ls_keko-tvers werk = ls_keko-werks sicht = '01' s_losgr = 'X' * S_BEZUGSMENGE = * s_aufloesungstiefe = '1' s_read_only_db = 'X' s_only_mat_pos = 'X' IMPORTING * f_keko = ls_keko1 f_header_mat = ls_header_mat * s_aufl_unvollstaendig = TABLES strukturtabelle = lt_struktur t_keko_imp = lt_keko_imp EXCEPTIONS invalid_bzobj = 1 keko_not_found = 2 meta_model_error = 3 OTHERS = 4 .

/NFM/TCO_SELECT CALL FUNCTION '/NFM/TCO_SELECT' EXPORTING i_kokrs = lt_herkunft_summe-kokrs i_hrkft = lt_herkunft_summe-hrkft IMPORTING e_co = /nfm/tco EXCEPTIONS OTHERS = 1.

/NFM/TNES_SELECT CALL FUNCTION '/NFM/TNES_SELECT' EXPORTING i_nes = /nfm/tco-nes IMPORTING e_tnes = /nfm/tnes e_nestx = lt_herkunft_summe-nestx.

UNIT_CORRESPONDENCE_CHECK CALL FUNCTION 'UNIT_CORRESPONDENCE_CHECK' EXPORTING unit_in = lt_struktur-meeht unit_out = lt_herkunft_summe-bme EXCEPTIONS OTHERS = 1.

MARM_SINGLE_READ CALL FUNCTION 'MARM_SINGLE_READ' EXPORTING MATNR = lt_struktur-matnr MEINH = lt_herkunft_summe-bme IMPORTING WMARM = l_marm EXCEPTIONS WRONG_CALL = 1 NOT_FOUND = 2 OTHERS = 3.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = lt_struktur-menge round_sign = 'X' unit_in = lt_struktur-meeht unit_out = lt_herkunft_summe-bme IMPORTING output = l_menge EXCEPTIONS OTHERS = 1.

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING input = lt_herkunft_summe-kgw round_sign = 'X' unit_in = lt_herkunft_summe-bme unit_out = lt_struktur-meeht IMPORTING output = l_menge EXCEPTIONS OTHERS = 1.

ENQUEUE_EMMARCE CALL FUNCTION 'ENQUEUE_EMMARCE' EXPORTING matnr = i_matnr werks = i_werks EXCEPTIONS foreign_lock = 1 system_failure = 2.

/NFM/TKGW_VB CALL FUNCTION '/NFM/TKGW_VB' IN UPDATE TASK EXPORTING i_matnr = i_matnr TABLES t_kgw_vb_old = lt_del_kgw t_kgw_vb_new = lt_new_kgw.

DEQUEUE_EMMARCE CALL FUNCTION 'DEQUEUE_EMMARCE' "CSAK001099 EXPORTING "CSAK001099 matnr = i_matnr "CSAK001099 werks = i_werks. "CSAK001099

/NFM/TKGW_SELECT CALL FUNCTION '/NFM/TKGW_SELECT' EXPORTING I_MATNR = LT_STRUKTUR-MATNR I_WERKS = LT_STRUKTUR-WERKS TABLES T_KGW = LT_KGW EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING INPUT = LT_STRUKTUR-MENGE KZMEINH = 'X' MATNR = LT_STRUKTUR-MATNR MEINH = LT_STRUKTUR-MEEHT MEINS = LT_STRUKTUR-MEINS IMPORTING OUTPUT = LT_STRUKTUR-MENGE EXCEPTIONS CONVERSION_NOT_FOUND = 1 INPUT_INVALID = 2 MATERIAL_NOT_FOUND = 3 MEINH_NOT_FOUND = 4 MEINS_MISSING = 5 NO_MEINH = 6 OUTPUT_INVALID = 7 OVERFLOW = 8 OTHERS = 9.

/NFM/TNES_SELECT CALL FUNCTION '/NFM/TNES_SELECT' EXPORTING I_NES = -NES IMPORTING E_TNES = /NFM/TNES E_NESTX = LT_HERKUNFT_SUMME-NESTX.



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 /NFM/SUM_NE_KONSTRUKTIONSGEW or its description.