on 05-11-2015 6:25 PM
Hi, We are running SRM 7.0. We previously had an issue with one of SAP Component Connected to SRM. We had to re-push Shopping Carts stuck in Error In Process via REQREQ_RESUMBMIT FM. Regression of that process is, workflow error on the PO.
I cannot find a way to correct the error on the workflow. The next workaround is, Start the PO without Approval > Edit the PO > Add Approver. We would like to change the Output Medium of the PO to Printer so when the PO has been forced Approved, it won't be submitted to the Supplier. My question is, how can we manually change the Output Medium of the PO which is stuck in Awaiting Approval? I tried to PARAM_SET FM but it didn't work.
Hi Lemuel
Please could you put this code and try to see if it works
Get the PO details and check for an error in workflow if any and then put this code ..
CALL FUNCTION 'BBP_OUTPUT_PO_PARAMS_GET'
EXPORTING
guid = is_header-guid
IMPORTING
medium_vend = lv_medium.
IF lv_medium = " Your condition "
CALL FUNCTION 'BBP_OUTPUT_PO_PARAMS_SET'
EXPORTING
iv_guid = is_header-guid
iv_medium_type = lv_medium_new
EXCEPTIONS
no_print_possible = 1
no_mail_possible = 2
no_fax_possible = 3
no_xml_possible = 4
OTHERS = 5.
IF sy-subrc <> 0.
" dO NOTHING AS OF NOW..
ENDIF.
ENDIF.
The Above FM has value range as below one of which you could use
PRN Print
MAI Mail
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.