SAP Reports / Programs | Materials Management | Purchasing(MM-PUR) SAP MM

RM06BB10 SAP ABAP dialog Program - Modules for Automatic Generation of Purchase Orders







RM06BB10 is a standard Module pool for a dialog screen ABAP Program 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 RM06BB10 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

ME59 - Automatic Generation of POs


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 RM06BB10. "Basic submit
SUBMIT RM06BB10 AND RETURN. "Return to original report after report execution complete
SUBMIT RM06BB10 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Modules for Automatic Generation of Purchase Orders


INCLUDES used within this REPORT RM06BB10

INCLUDE FMMEXDIR.
INCLUDE RM06BBCO.


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:

MM_GROUP_REQUISITIONS CALL FUNCTION 'MM_GROUP_REQUISITIONS' "4.0C

ME_CCP_ACTIVE_CHECK CALL FUNCTION 'ME_CCP_ACTIVE_CHECK' IMPORTING ef_ccp_active = lf_ccp_active.

MEX_COMMON_WERK_AND_LTS CALL FUNCTION 'MEX_COMMON_WERK_AND_LTS' EXPORTING i_mawe = lt_mawe i_lifnr = bat-flief IMPORTING e_werks = i_werks e_ltsnr = i_ltsnr.

ME_CREATE_PO_HEADER CALL FUNCTION 'ME_CREATE_PO_HEADER' EXPORTING i_bedat = sy-datlo i_bsart = hbsart i_bukrs = hbukrs i_ekgrp = bat-ekgrp i_ekorg = bat-ekorg i_konnr = bat-konnr i_lifnr = bat-flief i_reswk = bat-reswk i_vorga = cva_ab i_werks = i_werks i_ltsnr = i_ltsnr EXCEPTIONS error_message = 1.

ME_POST_PO CALL FUNCTION 'ME_POST_PO' EXPORTING i_commit_wait = 'X' IMPORTING e_ebeln = eban-ebeln EXCEPTIONS error_message = 1.

ME_POST_PO CALL FUNCTION 'ME_POST_PO' EXPORTING i_commit_wait = 'X' IMPORTING e_ebeln = eban-ebeln EXCEPTIONS error_message = 1. "538401

ME_POST_PO CALL FUNCTION 'ME_POST_PO' EXPORTING i_commit_wait = 'X' IMPORTING e_ebeln = eban-ebeln EXCEPTIONS error_message = 1.

RV_MESSAGES_REFRESH CALL FUNCTION 'RV_MESSAGES_REFRESH'.

ME_POST_PO CALL FUNCTION 'ME_POST_PO' IMPORTING e_ebeln = eban-ebeln EXCEPTIONS error_message = 1.

ME_CHECK_PO CALL FUNCTION 'ME_CHECK_PO' EXCEPTIONS error_message = 1.

ME_REFRESH_PO CALL FUNCTION 'ME_REFRESH_PO'.

ME_CCP_ACTIVE_CHECK CALL FUNCTION 'ME_CCP_ACTIVE_CHECK' IMPORTING ef_ccp_active = lf_ccp_active.

VENDOR_MASTER_SELECT_EKORG CALL FUNCTION 'VENDOR_MASTER_SELECT_EKORG' EXPORTING pi_ekorg = ban-ekorg IMPORTING pe_ekorz = lfm1key-ekorg * PE_MORE_THAN_ONE_FOUND = EXCEPTIONS no_entries_found = 1 OTHERS = 2.

MATERIAL_PRE_READ_MT06E CALL FUNCTION 'MATERIAL_PRE_READ_MT06E' EXPORTING i_spras = sy-langu i_noenq = 'X' TABLES ipre02 = ypre02.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mt06e return = mtcor TABLES seqmat01 = tdummy.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = mt06a return = mtcor TABLES seqmat01 = tdummy EXCEPTIONS error_message = 1 OTHERS = 2.

ME_ITEM_CATEGORY_OUTPUT CALL FUNCTION 'ME_ITEM_CATEGORY_OUTPUT' EXPORTING pstyp = bat-pstyp IMPORTING epstp = rm06b-epstp.

ME_CCP_ACTIVE_CHECK * CALL FUNCTION 'ME_CCP_ACTIVE_CHECK' * IMPORTING * ef_ccp_active = lf_ccp_active.

ME_CREATE_PO_ITEM





CALL FUNCTION 'ME_CREATE_PO_ITEM' EXPORTING i_konnr = p_eban-konnr i_ktpnr = p_eban-ktpnr i_pstyp = hpstyp i_set_ebakz = par-set_ebakz TABLES xeket = xeket xekkn = xekkn EXCEPTIONS error_message = 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 RM06BB10 or its description.