SAP Reports / Programs

RBUS1237 SAP ABAP Report - Program for Object Type BUS1237: Price Plan







RBUS1237 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 RBUS1237 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 RBUS1237. "Basic submit
SUBMIT RBUS1237 AND RETURN. "Return to original report after report execution complete
SUBMIT RBUS1237 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 BUS1237: Price Plan


INCLUDES used within this REPORT RBUS1237

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:

WRF_PPW_PPD_FIND CALL FUNCTION 'WRF_PPW_PPD_FIND' EXPORTING ir_range = lr_range IMPORTING et_ppdheadt = lt_heads et_ppdvers = lt_vers EXCEPTIONS no_data_found = 1.

WRF_PPW_PPD_MRGE_VERS_TO_HEAD CALL FUNCTION 'WRF_PPW_PPD_MRGE_VERS_TO_HEAD' EXPORTING is_head = lw_head it_versions = lt_vers IMPORTING es_header = gs_headinfo.

WRF_PPW_START CALL FUNCTION 'WRF_PPW_START' EXPORTING i_mode = 1 i_ppdnr = object-key-priceplan EXCEPTIONS OTHERS = 01.

WRF_PPW_START CALL FUNCTION 'WRF_PPW_START' EXPORTING i_mode = 4 i_ppdnr = object-key-priceplan i_wi_id = l_wi_id EXCEPTIONS CANCELED = 1 OTHERS = 2.

WRF_PPW_START CALL FUNCTION 'WRF_PPW_START' EXPORTING i_mode = 2 i_ppdnr = object-key-priceplan i_wi_id = l_wi_id EXCEPTIONS OTHERS = 01.

WRF_PPW_PPD_APPROVE CALL FUNCTION 'WRF_PPW_PPD_APPROVE' EXPORTING i_ppdnr = object-key-priceplan EXCEPTIONS obsolet = 1 not_found = 1001 ppd_is_locked = 1002 not_permitted = 1003 OTHERS = 1999.

SWC_ELEMENT_SET CALL FUNCTION 'SWC_ELEMENT_SET' EXPORTING element = 'StatusOld' field = cl_wrf_ppw_const=>ppd_stat_in_work TABLES container = lt_event_container.

SWC_ELEMENT_SET CALL FUNCTION 'SWC_ELEMENT_SET' EXPORTING element = 'StatusNew' field = cl_wrf_ppw_const=>ppd_stat_approved TABLES container = lt_event_container.

SWE_EVENT_CREATE CALL FUNCTION 'SWE_EVENT_CREATE' EXPORTING objtype = 'BUS1237' objkey = l_object_key event = 'StatusChanged' start_recfb_synchron = 'X' TABLES event_container = lt_event_container.

BAPI_WRF_PPW_PRICEPLAN_CHANGE CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_CHANGE' EXPORTING PROMO_HEADER_X = PROMOHEADERX PROMO_HEADER = PROMOHEADER HEADER_X = HEADERX HEADER = HEADER TESTRUN = TESTRUN PRICEPLAN = OBJECT-KEY-PRICEPLAN TABLES RETURN = RETURN PROMO_ITEMS_X = PROMOITEMSX PROMO_ITEMS = PROMOITEMS ITEMS_X = ITEMSX ITEMS = ITEMS ORGSET_ITEMS_X = ORGSETITEMSX ORGSET_ITEMS = ORGSETITEMS ORGSET_HEADS_X = ORGSETHEADSX ORGSET_HEADS = ORGSETHEADS PLANTS_X = PLANTSX PLANTS = PLANTS PLANTGROUPS_X = PLANTGROUPSX PLANTGROUPS = PLANTGROUPS EXCEPTIONS OTHERS = 01.

BAPI_WRF_PPW_PRICEPLAN_CREATE CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_CREATE' EXPORTING TESTRUN = TESTRUN HEADER = HEADER PROMO_HEADER = PROMOHEADER IMPORTING PRICE_PLAN = PRICEPLAN TABLES PLANTGROUPS = PLANTGROUPS PLANTS = PLANTS ITEMS = ITEMS PROMO_ITEMS = PROMOITEMS RETURN = RETURN EXCEPTIONS OTHERS = 01.

BAPI_WRF_PPW_PRICEPLAN_DELETE CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_DELETE' EXPORTING PRICEPLAN = OBJECT-KEY-PRICEPLAN TABLES RETURN = RETURN EXCEPTIONS OTHERS = 01.

BAPI_WRF_PPW_PRICEPLAN_GETDET CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_GETDET' EXPORTING PRICEPLAN = OBJECT-KEY-PRICEPLAN IMPORTING HEADER = HEADER PROMO_HEADER = PROMOHEADER TABLES PLANTGROUPS = PLANTGROUPS PLANTS = PLANTS ORGSET_HEADS = ORGSETHEADS ORGSET_ITEMS = ORGSETITEMS ITEMS = ITEMS ACCUMULATED_ITEMS = ACCUMULATEDITEMS PROMO_ITEMS = PROMOITEMS RETURN = RETURN EXCEPTIONS OTHERS = 01.

BAPI_WRF_PPW_PRICEPLAN_GETLIST CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_GETLIST' EXPORTING HIERARCHY = HIERARCHY SEASONYEAR = SEASONYEAR SEASON = SEASON PRICEPLAN_VALID_TO = PRICEPLANVALIDTO PRICEPLAN_VALID_FROM = PRICEPLANVALIDFROM DISTR_CHANNEL = DISTRCHANNEL SALESORG = SALESORG BUDGETTYPE = BUDGETTYPE TABLES RETURN = RETURN HEADERS = HEADERS PLANTS = PLANTS PRICELISTS = PRICELISTS MATGRP_HIER_NODES = MATGRPHIERNODES HIERARCHY_NODES = HIERARCHYNODES MATERIALS = MATERIALS VALIDITY_START_DATES = VALIDITYSTARTDATES PRICEPLANNER_GROUPS = PRICEPLANNERGROUPS CREATEDBY = CREATEDBY PRICEPLANS = PRICEPLANS PROMOTIONS = PROMOTIONS DESCRIPTONS = DESCRIPTONS STATUS = STATUS CATEGORIES = CATEGORIES EXCEPTIONS OTHERS = 01.

BAPI_WRF_PPW_PRICEPLAN_UNDEL CALL FUNCTION 'BAPI_WRF_PPW_PRICEPLAN_UNDEL' EXPORTING PRICEPLAN = OBJECT-KEY-PRICEPLAN TABLES RETURN = RETURN EXCEPTIONS OTHERS = 01.



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