SAP Reports / Programs

RBUS2012 SAP ABAP Report - Program for Object Type BUS2012: Purchase Order







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


Text pool values


Title: Program for Object Type BUS2012: Purchase Order
Text Symbol: 001 = Confirm object type BUS2012
Text Symbol: 002 = Confirm object?
Text Symbol: 003 = Y
Text Symbol: 004 = No


INCLUDES used within this REPORT RBUS2012

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:

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = object-key-purchaseorder i_enjoy = 'X' i_bstyp = 'F' EXCEPTIONS OTHERS = 1.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = object-key-purchaseorder i_enjoy = 'X' i_bstyp = 'F' i_edit = 'X' EXCEPTIONS OTHERS = 1.

ME_RELEASE_PURCHASE_DOCUMENT CALL FUNCTION 'ME_RELEASE_PURCHASE_DOCUMENT' EXPORTING i_ebeln = object-key-purchaseorder i_bstyp = 'F' i_frgco = releasecode EXCEPTIONS OTHERS = 1.

ME_EKKO_SINGLE_READ CALL FUNCTION 'ME_EKKO_SINGLE_READ' EXPORTING pi_ebeln = object-key-purchaseorder IMPORTING po_ekko = ekko EXCEPTIONS no_records_found = 1 OTHERS = 2.

BAPI_PO_GETITEMSREL CALL FUNCTION 'BAPI_PO_GETITEMSREL' EXPORTING items_for_release = itemsforrelease rel_code = relcode rel_group = relgroup TABLES po_headers = poheaders po_items = poitems return = return EXCEPTIONS OTHERS = 01.

BAPI_PO_RELEASE CALL FUNCTION 'BAPI_PO_RELEASE' EXPORTING use_exceptions = useexceptions po_rel_code = relcode no_commit = nocommit purchaseorder = object-key-purchaseorder IMPORTING rel_status_new = relstatusnew rel_indicator_new = relindicatornew TABLES return = return EXCEPTIONS authority_check_fail = 1001 document_not_found = 1002 enqueue_fail = 1003 prerequisite_fail = 1004 release_already_posted = 1005 responsibility_fail = 1006 OTHERS = 01.

BAPI_PO_RESET_RELEASE CALL FUNCTION 'BAPI_PO_RESET_RELEASE' EXPORTING use_exceptions = useexceptions po_rel_code = relcode purchaseorder = object-key-purchaseorder IMPORTING rel_status_new = relstatusnew rel_indicator_new = relindicatornew TABLES return = return EXCEPTIONS authority_check_fail = 1001 document_not_found = 1002 enqueue_fail = 1003 prerequisite_fail = 1004 release_already_posted = 1005 responsibility_fail = 1006 no_release_already = 1007 no_new_release_indicator = 1008 OTHERS = 01.

BAPI_PO_GET_LIST CALL FUNCTION 'BAPI_PO_GET_LIST' EXPORTING items_for_release = itemsforrelease rel_code = relcode rel_group = relgroup TABLES return = return po_items = items po_addresses_new = addressesnew po_addresses = addresses po_headers = headers EXCEPTIONS rel_code_missing = 1001 rel_authority_check_failed = 1002 OTHERS = 01.

BAPI_PO_GETRELINFO CALL FUNCTION 'BAPI_PO_GETRELINFO' EXPORTING purchaseorder = object-key-purchaseorder po_rel_code = porelcode IMPORTING release_already_posted = releasealreadyposted release_prerequisites = releaseprerequisites general_release_info = generalreleaseinfo TABLES release_final = releasefinal return = return EXCEPTIONS OTHERS = 01.

ME_EKKO_SINGLE_READ CALL FUNCTION 'ME_EKKO_SINGLE_READ' EXPORTING pi_ebeln = object-key-purchaseorder IMPORTING po_ekko = ekko EXCEPTIONS no_records_found = 1 OTHERS = 2.

VMI_PO_CONFIRM_FROM_ORDRSP CALL FUNCTION 'VMI_PO_CONFIRM_FROM_ORDRSP' EXPORTING pi_idoc = idocnumb pi_po = object-key-purchaseorder EXCEPTIONS error_occured = 1 OTHERS = 2.

BAPI_PO_CREATE CALL FUNCTION 'BAPI_PO_CREATE' EXPORTING item_add_data_relevant = itemadddatarelevant skip_items_with_error = skipitemswitherror po_address = poaddress po_header = poheader po_header_add_data = poheaderadddata header_add_data_relevant = headeradddatarelevan IMPORTING purchaseorder = object-key-purchaseorder TABLES po_limits = polimits po_contract_limits = pocontractlimits po_services = poservices po_srv_accass_values = posrvaccassvalues po_services_text = poservicetexts return = return po_items = poitems po_item_add_data = poitemadddata po_item_schedules = poitemschedules po_item_account_assignment = poitemaccountassignm po_item_text = poitemtext EXCEPTIONS OTHERS = 01.

BAPI_PO_GETDETAIL CALL FUNCTION 'BAPI_PO_GETDETAIL' EXPORTING confirmations = confirmations services = services header_texts = headertexts item_texts = itemtexts history = history purchaseorder = object-key-purchaseorder items = items account_assignment = accountassignment schedules = schedules IMPORTING po_address = poaddress po_header = poheader TABLES po_item_history_totals = poitemhistorytotals po_item_limits = poitemlimits po_item_contract_limits = poitemcontractlimits po_item_services = poitemservices po_item_srv_accass_values = poitemsrvaccassvalues return = return po_item_history = poitemhistory po_header_texts = poheadertexts po_items = poitems po_item_account_assignment = poitemaccountassignm po_item_schedules = poitemschedules po_item_confirmations = poitemconfirmations po_item_texts = poitemtexts EXCEPTIONS OTHERS = 01.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = object-key-purchaseorder i_enjoy = 'X' i_bstyp = 'F' i_edit = 'X' EXCEPTIONS OTHERS = 1.

ME_DISPLAY_PURCHASE_DOCUMENT CALL FUNCTION 'ME_DISPLAY_PURCHASE_DOCUMENT' EXPORTING i_ebeln = object-key-purchaseorder i_enjoy = 'X' i_bstyp = 'F' i_edit = 'X' EXCEPTIONS OTHERS = 1.

BAPI_PO_DELETE_HISTORY CALL FUNCTION 'BAPI_PO_DELETE_HISTORY' EXPORTING purchaseorder = purchaseorder TABLES return = return poitemhistory = poitemhistory EXCEPTIONS OTHERS = 01.

BAPI_PO_UPDATE_HISTORY CALL FUNCTION 'BAPI_PO_UPDATE_HISTORY' EXPORTING purchaseorder = purchaseorder TABLES poitemhistoryaddon = poitemhistoryaddon poitemhistoryx = poitemhistoryx poitemhistory = poitemhistory return = return EXCEPTIONS OTHERS = 01.

BAPI_PO_CHANGE CALL FUNCTION 'BAPI_PO_CHANGE' EXPORTING versions = versions poexpimpheaderx = poexpimpheaderx poexpimpheader = poexpimpheader memory_complete = memorycomplete memory_uncomplete = memoryuncomplete park_complete = parkcomplete park_uncomplete = parkuncomplete testrun = testrun poaddrvendor = poaddrvendor poheaderx = poheaderx poheader = poheader purchaseorder = object-key-purchaseorder IMPORTING exppoexpimpheader = exppoexpimpheader expheader = expheader TABLES polimits = polimits pocontractlimits = pocontractlimits poservices = poservices posrvaccessvalues = posrvaccessvalues poservicestext = poservicestext extensionin = extensionin extensionout = extensionout poexpimpitem = poexpimpitem poexpimpitemx = poexpimpitemx potextheader = potextheader potextitem = potextitem allversions = allversions popartner = popartner return = return poitem = poitem poitemx = poitemx poaddrdelivery = poaddrdelivery poschedule = poschedule poschedulex = poschedulex poaccount = poaccount poaccountprofitsegment = poaccountprofitsegment poaccountx = poaccountx pocondheader = pocondheader pocondheaderx = pocondheaderx pocond = pocond pocondx = pocondx pocomponents = pocomponents pocomponentsx = pocomponentsx poshipping = poshipping poshippingx = poshippingx poshippingexp = poshippingexp pohistory = pohistory pohistory_totals = pohistory_totals poconfirmation = poconfirmation serialnumber = serialnumber serialnumberx = serialnumberx invplanheader = invoiceplanheader invplanheaderx = invoiceplanheaderx invplanitem = invoiceplanitem invplanitemx = invoiceplanitemx EXCEPTIONS OTHERS = 01.

BAPI_PO_CREATE1





CALL FUNCTION 'BAPI_PO_CREATE1' EXPORTING versions = versions poexpimpheaderx = poexpimpheaderx poexpimpheader = poexpimpheader memory_complete = memorycomplete memory_uncomplete = memoryuncomplete park_complete = parkcomplete park_uncomplete = parkuncomplete testrun = testrun poaddrvendor = poaddrvendor poheaderx = poheaderx poheader = poheader no_messaging = nomessaging no_message_req = nomessagereq no_authority = noauthority no_price_from_po = nopricefrompo IMPORTING exppoexpimpheader = exppoexpimpheader expheader = expheader exppurchaseorder = object-key-purchaseorder TABLES polimits = polimits pocontractlimits = pocontractlimits poservices = poservices posrvaccessvalues = posrvaccessvalues poservicestext = poservicestext extensionin = extensionin extensionout = extensionout poexpimpitem = poexpimpitem poexpimpitemx = poexpimpitemx potextheader = potextheader potextitem = potextitem allversions = allversions popartner = popartner return = return poitem = poitem poitemx = poitemx poaddrdelivery = poaddrdelivery poschedule = poschedule poschedulex = poschedulex poaccount = poaccount poaccountprofitsegment = poaccountprofitsegment poaccountx = poaccountx pocondheader = pocondheader pocondheaderx = pocondheaderx pocond = pocond pocondx = pocondx pocomponents = pocomponents pocomponentsx = pocomponentsx poshipping = poshipping poshippingx = poshippingx poshippingexp = poshippingexp serialnumber = serialnumber serialnumberx = serialnumberx invplanheader = invoiceplanheader invplanheaderx = invoiceplanheaderx invplanitem = invoiceplanitem invplanitemx = invoiceplanitemx EXCEPTIONS OTHERS = 01.

BAPI_PO_GETDETAIL1 CALL FUNCTION 'BAPI_PO_GETDETAIL1' EXPORTING services = services version = version delivery_address = deliveryaddress header_text = headertext item_text = itemtext account_assignment = accountassignment serialnumbers = serialnumbers invoiceplan = invoiceplan purchaseorder = object-key-purchaseorder IMPORTING poheader = poheader poexpimpheader = poexpimpheader TABLES potextheader = potextheader potextitem = potextitem poexpimpitem = poexpimpitem pocomponents = pocomponents poshippingexp = poshippingexp pohistory = pohistory pohistory_totals = pohistorytotals poconfirmation = poconfirmation allversions = allversions popartner = popartner extensionout = extensionout posrvaccessvalues = posrvaccassvalues poservices = poservices pocontractlimits = pocontractlimits polimits = polimits pocond = pocond pocondheader = pocondheader poaccount = poaccount poschedule = poschedule poaddrdelivery = poaddrdelivery poitem = poitem return = return serialnumber = serialnumber invplanheader = invplanheader invplanitem = invplanitem EXCEPTIONS OTHERS = 01.

BAPI_PO_GETITEMS CALL FUNCTION 'BAPI_PO_GETITEMS' EXPORTING pur_mat_evg = purmatevg material_evg = materialevg pur_mat = space items_open_for_receipt = itemsopenforreceipt deleted_items = deleteditems with_po_headers = withpoheaders preq_name = preqname created_by = createdby short_text = shorttext trackingno = trackingno plant = plant purchaseorder = purchaseorder doc_type = doctype doc_date = docdate pur_group = purgroup purch_org = purchorg vendor = vendor suppl_plant = supplplant material = material mat_grp = matgrp item_cat = itemcat acctasscat = acctasscat TABLES po_headers = poheaders po_items = poitems return = return EXCEPTIONS OTHERS = 01.

MMPUR_FSSC_GET_FACTORY CALL FUNCTION 'MMPUR_FSSC_GET_FACTORY' IMPORTING eo_factory = factory.



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