on 2011 Nov 07 1:59 PM
Dear Experts,
I wanted to change the output medium of a Local PO. Currently the Output medium is picked from the Supplier data e.g Mail.
I wanted to change the output medium to say XML.
I have implemented the Badi BBP_DOC_CHANGE_BADI.
METHOD if_ex_bbp_doc_change_badi~bbp_po_change.
DATA : lv_medium TYPE ppfdmetype,
lv_medium_new TYPE ppfdmetype VALUE 'XML'.
Check for Vendor customiing and do necessary change.
CALL FUNCTION 'BBP_OUTPUT_PO_PARAMS_GET'
EXPORTING
guid = is_header-guid
IMPORTING
medium_vend = lv_medium.
IF lv_medium <> 'XML'.
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.
In Debugging When I save or order the PO , I could see that the medium changed to XML . But When I open the PO , i could see that the Output medium is again fetched from Supplier data.
This behaviour is save , even if I change the Output medium from the output medium tab .
Would be great if you could help me solve this issue.
Best regards,
Prabhu
Request clarification before answering.
This is a bug. Raised OSS and got reply to implement the following note..
0001566016 - Purchase order changed.
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.