RM06EEI0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This direct input program creates purchase orders using function modules...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 RM06EEI0 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
OMQ1 - Transfer of Purchase Orders
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.
Selection Text: TESTLAUF = Without database update
Selection Text: PROTOCOL = Log without error messages
Selection Text: NUM = For test only (Reineck)
Selection Text: LDS_NAME = File name
Selection Text: ECHTLAUF = With database update
Selection Text: DETAILPR = Log with error messages
Title: Transfer of Purchase Orders
Text Symbol: 019 = Logical file
Text Symbol: 018 = Scope of log
Text Symbol: 017 = Update or test run
Text Symbol: 016 = Test run without database update!
Text Symbol: 015 = Message text
Text Symbol: 014 = No.
Text Symbol: 013 = T
Text Symbol: 012 = ID
Text Symbol: 011 = Item
Text Symbol: 010 = Purchase order
Text Symbol: 009 = Detailed error log
Text Symbol: 008 = Program end :
Text Symbol: 007 = Program start :
Text Symbol: 006 = Following purchase orders not added:
Text Symbol: 005 = Following purchase orders added:
Text Symbol: 004 = Program statistics
Text Symbol: 003 = Number of purchase orders added :
Text Symbol: 002 = Number of purchase orders read :
Text Symbol: 001 = Number of data records read :
INCLUDE RM06EEDA.
INCLUDE FMMEXDIR.
No SAP DATABASE tables are accessed within this REPORT code!
FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = lds_name IMPORTING file_name = phy_filename EXCEPTIONS file_not_found = 01.
ME_CREATE_PO_HEADER CALL FUNCTION 'ME_CREATE_PO_HEADER' EXPORTING i_bedat = zekko-bedat i_bsart = zekko-bsart i_bukrs = zekko-bukrs i_ekgrp = zekko-ekgrp i_ekorg = zekko-ekorg i_lifnr = zekko-lifnr i_ebeln = zekko-ebeln i_tekko = ztekko i_tekkorel = 'X' i_no_condition_copy = 'X' i_vorga = cva_bu i_address = addr1_val EXCEPTIONS error_message = 1.
ME_CREATE_PO_ITEM CALL FUNCTION 'ME_CREATE_PO_ITEM' EXPORTING i_adrnr = zekpo-adrnr i_ematn = zekpo-ematn i_knttp = zekpo-knttp i_kunnr = zekpo-kunnr i_lgort = zekpo-lgort i_matkl = zekpo-matkl i_meins = zekpo-meins i_pstyp = zpstyp i_txz01 = zekpo-txz01 i_werks = zekpo-werks i_kanba = zekpo-kanba i_aktnr = zekpo-aktnr i_abeln = zekpo-abeln i_abelp = zekpo-abelp i_netpr = zekpo-netpr i_peinh = zekpo-peinh i_bprme = zekpo-bprme i_bpumz = zekpo-bpumz i_bpumn = zekpo-bpumn i_packno = zekpo-packno i_tekpo = ztekpo i_tekporel = 'X' i_ebelp = zekpo-ebelp i_bpueb = '2' i_no_rounding = 'X' "363722 i_attyp = zekpo-attyp i_upvor = zekpo-upvor i_uebpo = zekpo-uebpo i_uptyp = zekpo-uptyp IMPORTING e_ebelp = zekpo-ebelp TABLES xeket = zeket xekkn = zekkn EXCEPTIONS error_message = 1.
ME_POST_PO CALL FUNCTION 'ME_POST_PO' IMPORTING e_ebeln = zekko-ebeln EXCEPTIONS error_message = 1.
DEQUEUE_EMEKKOE * call function 'DEQUEUE_EMEKKOE' "INSERT 84048 * exporting "INSERT 84048 * ebeln = zekko-ebeln. "INSERT 84048
DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.
ME_REFRESH_PO CALL FUNCTION 'ME_REFRESH_PO'.
ME_ITEM_CATEGORY_INPUT CALL FUNCTION 'ME_ITEM_CATEGORY_INPUT' EXPORTING epstp = mbepoi-epstp IMPORTING pstyp = zpstyp EXCEPTIONS not_found = 01.
MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' "170479 EXPORTING * kzrfb = ' ' * maxtz = 0 matnr = mbepoi-ematn bwkey = zt001w-bwkey bwtar = space * sperrmodus = ' ' * std_sperrmodus = ' ' IMPORTING wmbew = mbew EXCEPTIONS lock_on_mbew = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.
READ_NETWORK_AUFPL_APLZL CALL FUNCTION 'READ_NETWORK_AUFPL_APLZL' EXPORTING nplnr = mbepoi-nplnr vornr = mbepoi-vornr IMPORTING aplzl = zekkn-aplzl aufpl = zekkn-aufpl EXCEPTIONS not_found = 01.
CALCULATE_EXCHANGE_RATE CALL FUNCTION 'CALCULATE_EXCHANGE_RATE' EXPORTING date = sy-datum foreign_amount = zwebtf foreign_currency = zekko-waers local_amount = zwebth local_currency = zt001-waers type_of_rate = 'M' IMPORTING exchange_rate = zkurs.
CALCULATE_EXCHANGE_RATE CALL FUNCTION 'CALCULATE_EXCHANGE_RATE' EXPORTING date = sy-datum foreign_amount = zrebtf foreign_currency = zekko-waers local_amount = zrebth local_currency = zt001-waers type_of_rate = 'M' IMPORTING exchange_rate = zkurs.
MESSAGE_TEXT_BUILD CALL FUNCTION 'MESSAGE_TEXT_BUILD' EXPORTING msgid = prot-msgid msgnr = prot-msgno msgv1 = prot-msgv1 msgv2 = prot-msgv2 msgv3 = prot-msgv3 msgv4 = prot-msgv4 IMPORTING message_text_output = omess.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RM06EEI0 - Transfer of Purchase Orders RM06EEI0 - Transfer of Purchase Orders RM06EEEX - Export of Purchase Orders to Sequential Dataset RM06EEEX - Export of Purchase Orders to Sequential Dataset RM06EEDA - Joint Data Declaration for Transfer of Partially Open Purchase Orders RM06EE00 - Purchase Orders Relating to a Requisition