SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Cross-Industry Functions(SRM-EBP-CRI) SAP SRM

/SAPPSSRM/OPTIONS_HANDLER_REP SAP ABAP Report - Options Handler Report







/SAPPSSRM/OPTIONS_HANDLER_REP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ..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 /SAPPSSRM/OPTIONS_HANDLER_REP 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

/SAPPSSRM/OPTIONS - Options Handler


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 /SAPPSSRM/OPTIONS_HANDLER_REP. "Basic submit
SUBMIT /SAPPSSRM/OPTIONS_HANDLER_REP AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPPSSRM/OPTIONS_HANDLER_REP 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: ALL = All
Selection Text: CONTRACT = Contracts
Selection Text: LEADTIME = Number of Days' Notice
Selection Text: MAILADDR = E-Mail Address
Selection Text: MAIL_AD = Specific Recipient
Selection Text: MAIL_CR = Document Creator
Selection Text: MAIL_PG = Purchasing Group
Selection Text: OBJ_ID = ID from
Selection Text: PO = Purchase Orders
Selection Text: USERNAME = Send to User
Selection Text: VERSION = Change Version of Doc. Exists
Selection Text: XER_STAR = Item's Exercise Period Starts
Title: Options Handler Report
Text Symbol: 222 = days:
Text Symbol: 221 = Exercise period starting
Text Symbol: 219 = Exercise period starts on:
Text Symbol: 218 = Currency:
Text Symbol: 217 = Value:
Text Symbol: 216 = Price:
Text Symbol: 215 = Quantity:
Text Symbol: 214 = Description:
Text Symbol: 213 = Product:
Text Symbol: 212 = SAP line item number:
Text Symbol: 211 = CLIN:
Text Symbol: 210 = has following item(s) for which the exercise period starts soon:
Text Symbol: 101 = Document ID
Text Symbol: 102 = A change version of this document exists. It will not be updated.
Text Symbol: 103 = Successful Update
Text Symbol: 104 = Error: Document Locked
Text Symbol: 121 = Option Handler Error list
Text Symbol: 122 = is locked for editing. It will not be updated. Please run the report again for this document.
Text Symbol: 123 = Notification
Text Symbol: 124 = Error Messages
Text Symbol: 125 = Documents Affected
Text Symbol: 151 = Document ID
Text Symbol: 152 = Item Number
Text Symbol: 153 = Document Name
Text Symbol: 154 = Option Indicator





Text Symbol: 155 = Sourcing Status
Text Symbol: 156 = Option Status (Curr)
Text Symbol: 157 = Option Status (Prev)
Text Symbol: 158 = Comment
Text Symbol: 159 = External Line Number
Text Symbol: 201 = _______________________________________________________________
Text Symbol: 202 = _________________
Text Symbol: 203 = ->
Text Symbol: 207 = For some items of the following document(s), the exercise period starts in
Text Symbol: 208 = The document
Text Symbol: 209 = with smart number


INCLUDES used within this REPORT /SAPPSSRM/OPTIONS_HANDLER_REP

INCLUDE BBP_PD_CON_CL. "#EC INCL_OK


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:

BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING" i_object_type = object_type_contract TABLES e_pdlist = lt_pdlist_ctr i_range_object_id = obj_id e_messages = lt_msgs.

BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING" i_object_type = object_type_po TABLES e_pdlist = lt_pdlist_ctr i_range_object_id = obj_id e_messages = lt_msgs.

BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING" i_object_type = object_type_contract TABLES e_pdlist = lt_pdlist_ctr e_messages = lt_msgs.

BBP_PROCDOC_GETLIST CALL FUNCTION 'BBP_PROCDOC_GETLIST' EXPORTING" i_object_type = object_type_po TABLES e_pdlist = lt_pdlist_po e_messages = lt_msgs.

BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_guid = ls_pdlist-guid IMPORTING e_header = ls_header TABLES e_item = lt_item e_messages = lt_msgs e_status = lt_status e_version = lt_version e_orgdata = lt_org_data.

/SAPPSSRM/SEND_MAIL_TO_PUR_GRP CALL FUNCTION '/SAPPSSRM/SEND_MAIL_TO_PUR_GRP' EXPORTING lt_org_data = lt_org_data ls_pdlist = ls_pdlist mode = '1'.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING opt_status = ls_option_item-opt_status IMPORTING opt_status_text = opt_status_text.

BBP_PD_STATUS_CHANGE_CALL CALL FUNCTION 'BBP_PD_STATUS_CHANGE_CALL' EXPORTING iv_guid = ls_item-guid iv_vrgng = 'ITIN' " Constant for Deactivating activity.

BBP_PD_STATUS_CHANGE_CALL CALL FUNCTION 'BBP_PD_STATUS_CHANGE_CALL' EXPORTING iv_guid = ls_item-guid iv_vrgng = 'ITAC' " Constant for Activating activity.

BBP_PD_STATUS_CHANGE_CALL CALL FUNCTION 'BBP_PD_STATUS_CHANGE_CALL' EXPORTING iv_guid = ls_item-guid iv_vrgng = 'ITIN' " Constant for Deactivating activity.

BBP_PD_STATUS_CHANGE_CALL CALL FUNCTION 'BBP_PD_STATUS_CHANGE_CALL' EXPORTING iv_guid = ls_item-guid iv_vrgng = 'ITIN' " Constant for Deactivating activity.

BBP_PD_CTR_LOCK CALL FUNCTION 'BBP_PD_CTR_LOCK' EXPORTING i_header_guid = ls_header-guid TABLES e_messages = lt_lock_msgs.

BBP_PD_PO_LOCK





CALL FUNCTION 'BBP_PD_PO_LOCK' EXPORTING i_header_guid = ls_header-guid TABLES e_messages = lt_lock_msgs.

BBP_PROCDOC_UPDATE CALL FUNCTION 'BBP_PROCDOC_UPDATE' EXPORTING i_header = ls_header i_save = '' i_park = '' iv_with_change_approval = '' IMPORTING es_header = ls_ch_header TABLES i_item = lt_item_update e_messages = lt_msgs.

BBP_PD_CTR_SAVE CALL FUNCTION 'BBP_PD_CTR_SAVE' EXPORTING iv_header_guid = ls_ch_header-guid.

BBP_PD_CTR_UNLOCK CALL FUNCTION 'BBP_PD_CTR_UNLOCK' EXPORTING i_header_guid = ls_header-guid TABLES e_messages = lt_msgs.

BBP_PD_PO_SAVE CALL FUNCTION 'BBP_PD_PO_SAVE' EXPORTING iv_header_guid = ls_ch_header-guid.

BBP_PD_PO_UNLOCK CALL FUNCTION 'BBP_PD_PO_UNLOCK' EXPORTING i_header_guid = ls_header-guid TABLES e_messages = lt_msgs.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING opt_status = ls_option_item-opt_status IMPORTING opt_status_text = opt_status_text.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING opt_ind = ls_option_item-opt_ind IMPORTING opt_ind_text = opt_ind_text.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING itm_released = ls_item-itm_released IMPORTING opt_src_status_text = opt_src_status_text.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING opt_status = ls_option_item-opt_status IMPORTING opt_status_text = opt_status_text.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING opt_ind = ls_option_item-opt_ind IMPORTING opt_ind_text = opt_ind_text.

/SAPPSSRM/OPTCODE_TO_OPTTEXT CALL FUNCTION '/SAPPSSRM/OPTCODE_TO_OPTTEXT' EXPORTING itm_released = ls_item-itm_released IMPORTING opt_src_status_text = opt_src_status_text.

BBP_PROCDOC_GETDETAIL CALL FUNCTION 'BBP_PROCDOC_GETDETAIL' EXPORTING i_guid = wa_doc_creators_to_doc_guids-doc_guid IMPORTING e_header = ls_header TABLES e_item = lt_item.

CONVERSION_EXIT_PRID1_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_PRID1_OUTPUT' EXPORTING input = ls_item-ordered_prod IMPORTING output = ls_item-ordered_prod.

/SAPPSSRM/OPT_SEND_DUE_ALERT CALL FUNCTION '/SAPPSSRM/OPT_SEND_DUE_ALERT' EXPORTING it_recipients = lt_alert_recipient iv_object_id = ls_header-object_id iv_longnum = ls_ps_numbering-ps_longnum iv_exlin = ls_item-exlin iv_product_desc = ls_item-description iv_opt_xper_start = ls_option_item-opt_xper_start iv_number_int = ls_item-number_int iv_ordered_prod = ls_item-ordered_prod iv_quantity = ls_item-quantity iv_price = ls_item-price iv_value = ls_item-value iv_currency = ls_item-currency iv_unit = ls_item-unit.

/SAPPSSRM/SEND_MAIL_TO_PUR_GRP CALL FUNCTION '/SAPPSSRM/SEND_MAIL_TO_PUR_GRP' EXPORTING lt_org_data = lt_org_data ls_pdlist = ls_pdlist ilt_body = lt_mail_body ireport_subject = lv_mail_subject iv_mail_format = 'RAW' mode = '2'.

/SAPPSSRM/SEND_MAIL CALL FUNCTION '/SAPPSSRM/SEND_MAIL' EXPORTING it_recipient = lt_recipient iv_subject = lv_mail_subject it_body = lt_mail_body iv_mail_format = 'RAW' EXCEPTIONS error_send_email = 1 OTHERS = 2.

/SAPPSSRM/SEND_MAIL CALL FUNCTION '/SAPPSSRM/SEND_MAIL' EXPORTING it_recipient = lt_admin_recipient iv_subject = report_subject it_body = lt_body_error EXCEPTIONS error_send_email = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_repid it_fieldcat = lt_fieldcat[] it_sort = lt_sort[] TABLES t_outtab = lt_options_update[] EXCEPTIONS program_error = 1 OTHERS = 2.

USER_EXISTS CALL FUNCTION 'USER_EXISTS' EXPORTING bname = username EXCEPTIONS user_dont_exist = 1 user_exists = 2 OTHERS = 3.






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 /SAPPSSRM/OPTIONS_HANDLER_REP or its description.