SAP Reports / Programs

RM06ENP0 SAP ABAP Report - Price Determination for Contracts







RM06ENP0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report computes the new net and effective prices from the currently valid conditions for each contract that satisfies the criteria of the selection screen...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 RM06ENP0 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 RM06ENP0. "Basic submit
SUBMIT RM06ENP0 AND RETURN. "Return to original report after report execution complete
SUBMIT RM06ENP0 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: I_BSART = Contract Type
Selection Text: I_EBELN = Contract
Selection Text: I_EKGRP = Purchasing Group
Selection Text: I_EKORG = Purchasing Organization
Selection Text: UPDALL = No Date Check
Selection Text: WQ_SIMUL = Test Run
Title: Price Determination for Contracts
Text Symbol: 001 = Contract Type Vendor Name PGp Agmt Dt
Text Symbol: 002 = Item Material Short Text Mat.Grp
Text Symbol: 003 = Price Old
Text Symbol: 004 = Price New
Text Symbol: 005 = Remarks
Text Symbol: 010 = Old Price
Text Symbol: 011 = New Price
Text Symbol: 012 = Not Found
Text Symbol: 013 = Not Usable (Negative)
Text Symbol: 020 = Result:
Text Symbol: 021 = contract items changed
Text Symbol: 022 = contracts processed
Text Symbol: 030 = Restrictions --------------------------------------------------------------


INCLUDES used within this REPORT RM06ENP0

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:

ENQUEUE_EMEKKOE CALL FUNCTION 'ENQUEUE_EMEKKOE' EXPORTING ebeln = ekko-ebeln EXCEPTIONS foreign_lock = 2 system_failure = 3.

DEQUEUE_EMEKKOE CALL FUNCTION 'DEQUEUE_EMEKKOE' EXPORTING ebeln = ekko-ebeln.

DEQUEUE_EMEKKOE CALL FUNCTION 'DEQUEUE_EMEKKOE' EXPORTING ebeln = ekko-ebeln.

ENQUEUE_EMEKKOE * CALL FUNCTION 'ENQUEUE_EMEKKOE' * EXPORTING * ebeln = ekko-ebeln * EXCEPTIONS * foreign_lock = 2 * system_failure = 3.

DEQUEUE_EMEKKOE * CALL FUNCTION 'DEQUEUE_EMEKKOE' * EXPORTING * ebeln = ekko-ebeln.

DEQUEUE_EMEKKOE * CALL FUNCTION 'DEQUEUE_EMEKKOE' * EXPORTING * ebeln = ekko-ebeln.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

ME_PRICING_CONTRACT CALL FUNCTION 'ME_PRICING_CONTRACT' EXPORTING dialog = space kopf = ekko position = ekpo simulation = space skonto = space bezugs = space effektiv = space only_contract = 'X' IMPORTING preisp = komp preisk = komk.

MM_CURRENT_PRICE_DOCUMENT CALL FUNCTION 'MM_CURRENT_PRICE_DOCUMENT' EXPORTING i_ekko = ekko i_forced = updall CHANGING c_ekpo = *ekpo EXCEPTIONS OTHERS = 1.

MM_ADDRESS_GET CALL FUNCTION 'MM_ADDRESS_GET' EXPORTING i_ekko = ekko IMPORTING e_name1 = name1 EXCEPTIONS OTHERS = 1.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid is_layout = ls_layout it_fieldcat = lt_fieldcat i_default = 'X' i_save = 'A' is_variant = ls_variant it_events = lt_events IMPORTING e_exit_caused_by_caller = l_exit_caused_by_caller es_exit_caused_by_user = ls_exit_caused_by_user TABLES t_outtab = gt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = rt_events.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_repid i_structure_name = g_struc_name CHANGING ct_fieldcat = cht_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_top_of_page.



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