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

/SAPPSSRM/OPTION_HANDLER SAP ABAP Report - Program /SAPPSSRM/OPTION_HANDLER updating Option Contracts







/SAPPSSRM/OPTION_HANDLER 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 /SAPPSSRM/OPTION_HANDLER 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 /SAPPSSRM/OPTION_HANDLER. "Basic submit
SUBMIT /SAPPSSRM/OPTION_HANDLER AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPPSSRM/OPTION_HANDLER 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: P_CTRID = Contract Number
Selection Text: P_DAYS = D .
Title: Program /SAPPSSRM/OPTION_HANDLER updating Option Contracts
Text Symbol: 000 = Contract scheduled for update:
Text Symbol: 001 = Data of processed Contract:
Text Symbol: 002 = Contract Updated without Messages.
Text Symbol: 003 = Messages occurred during Contract update
Text Symbol: 004 = System error, Contract update failed.
Text Symbol: 006 = Contract Type
Text Symbol: 007 = Contract ID
Text Symbol: 008 = Contract GUI
Text Symbol: 009 = Messages issued at document update:
Text Symbol: 010 = Msg-ID
Text Symbol: 011 = Msg-No
Text Symbol: 012 = Msg-Type
Text Symbol: 013 = Message text
Text Symbol: 014 = Program Version:
Text Symbol: 015 = Program Date:


INCLUDES used within this REPORT /SAPPSSRM/OPTION_HANDLER

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:

BBP_PD_CTR_GETLIST CALL FUNCTION 'BBP_PD_CTR_GETLIST' EXPORTING i_valid_until = lv_day i_process_type = lv_process_type i_object_id = p_ctrid TABLES e_pdlist = lt_ctr_pdlist e_messages = lt_messages.

BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_guid = lv_guid i_with_itemdata = 'X' IMPORTING e_header = ls_ctr_header_d TABLES e_item = lt_ctr_item_d e_header_rel = lt_ctr_header_rel e_itmlim_rel = lt_ctr_itmlim_rel e_hcf = lt_ctr_hcf e_icf = lt_ctr_icf. "#EC ENHOK

BBP_PD_PO_GETDETAIL CALL FUNCTION 'BBP_PD_PO_GETDETAIL' EXPORTING i_guid = ls_ctr_header_rel-guid_b i_with_itemdata = 'X' TABLES e_item = lt_po_item_d.

BBP_PD_CTR_LOCK CALL FUNCTION 'BBP_PD_CTR_LOCK' EXPORTING i_header_guid = .

BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_guid = IMPORTING e_header = ls_ctr_header_d TABLES e_item = lt_item e_hcf = lt_ctr_hcf.

BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_guid = -header i_with_itemdata = space IMPORTING e_header = ls_ctr_header_d.

BBP_PD_CTR_STATUS_CHANGE CALL FUNCTION 'BBP_PD_CTR_STATUS_CHANGE' EXPORTING iv_item_guid = -guid i_activity = 'ITCH' "I1903 i_save_db = 'X' i_test_run = space TABLES e_messages = lt_messages CHANGING e_changed = lv_changed.

BBP_PD_CTR_STATUS_CHANGE CALL FUNCTION 'BBP_PD_CTR_STATUS_CHANGE' EXPORTING iv_item_guid = -guid i_activity = 'ITAC' "I1143 i_save_db = 'X' i_test_run = space TABLES e_messages = lt_messages CHANGING e_changed = lv_changed.

BBP_PD_CTR_UPDATE CALL FUNCTION 'BBP_PD_CTR_UPDATE' EXPORTING i_header = ls_ctr_header_u i_save = 'X' iv_with_change_approval = ' ' IMPORTING es_header = ls_ctr_header_d TABLES i_item = lt_ctr_item_u i_hcf = lt_ctr_hcf_u e_messages = lt_messages EXCEPTIONS OTHERS = 0.

BBP_PD_CTR_UPDATE CALL FUNCTION 'BBP_PD_CTR_UPDATE' EXPORTING i_header = ls_ctr_header_u i_save = 'X' iv_with_change_approval = ' ' IMPORTING es_header = ls_ctr_header_d TABLES i_item = lt_ctr_item_u i_hcf = lt_ctr_hcf_u e_messages = lt_messages EXCEPTIONS OTHERS = 0.

BBP_PD_CTR_SAVE CALL FUNCTION 'BBP_PD_CTR_SAVE' EXPORTING iv_header_guid = ls_ctr_header_d-guid iv_create_hist_version = 'X'.

BBP_PD_CTR_UNLOCK CALL FUNCTION 'BBP_PD_CTR_UNLOCK' EXPORTING i_header_guid = ls_ctr_header_d-guid.

BBP_PD_CTR_GETDETAIL CALL FUNCTION 'BBP_PD_CTR_GETDETAIL' EXPORTING i_guid = -header i_with_itemdata = space IMPORTING e_header = ls_ctr_header_d.



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