on 08-25-2008 11:31 AM
Hi,
We are on SRM 5.0, configuring Extended classic scenario. We have defined the default output medium as "Print" and it is defiend as default.
Now based on the selection of a custom specific check box, we need to select the output mediume as "Fax". Already added the check box and the selected check box value is getting saved. Now we need to change the output medium based on this selection.
I have tried using the condition dependent document output. But still when I try to process the PO, the output medium as "Print" and not the "Fax".
Please let me know some input to achieve this functionality.
Regards,
Chary
I believe you need to so set the BOR object BUS2201 attribute PurchaseOrderEC.Medium . This attibute will have the default Medium from the vendor which needs to be set according to the logic you want.
Check the BOR object method that you need to change for this.
Regards,
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, I want to change the medium to fax, based on the check box selection.
I am not able to get the check box created in BUS2201. Is the method "SetReleased" can be used?.
I tried implementing the DOC_CHANGE BADI, but i could not find "output Medium" field over here, to alter the same based on the selection.
Tried the document ouput BADI, here, it says that "Medium" can not be changed.
Please provide mroe details, if any sample code available, please share the same.
Regards
Chary
Hello,
I kindly suggest you to refer SAP note no.- 564826 .
Kind regards,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please note that the print medium gets copied from "Vendor Details" while raising a PO. Please take this into consideration as this could overwrite the logic in BADI.
Regards
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kathirvel,
Thanks for the reply.
Yes, it is true, even if the logic is written in the BADI, it always picks from the Vendor details. But the requirement here is that based on the user defined checkbox, the output medium need to be changed from one to another. Can you please share some method to achieve this,
Regards,
Chary
Please try this, it should work:
1. Clear the Output medium details in vendor record in SRM. Note this can result in an error message poping now and then in documents. You can switch this off using message control in SPRO. Please refer the below thread for additional info
2. Now, you ca incorporate the logic in the BADI's for the output determination.
Hope this should solve your problem.
Regards
Kathirvel
Maybe a little late, but we implemented/changed the standard SAP BADI implementation of TRIGGER_EXECUTED. We added the following code just below the CONSTANTS declaration:
*START
DATA: lv_bid_guid TYPE BBP_GUID,
lv_ttype TYPE PPFDTT,
ls_bid_header TYPE BBP_PDS_BID_HEADER_D.
CLEAR: lv_bid_guid, lv_ttype, ls_bid_header.
ro_application ?= io_trigger->get_appl( ).
* get GUIDs
CALL FUNCTION 'BBP_OUTPUT_APPL_GETDATA'
EXPORTING
io_appl = ro_application
IMPORTING
ev_guid = lv_bid_guid
* EV_STATUS =
.
* Determine if the type is a bid
lv_ttype = io_trigger->get_ttype( ).
IF lv_ttype EQ 'STANDARD_BID'.
* retrieve BID data
CALL FUNCTION 'BBP_PD_BID_GETDETAIL'
EXPORTING
I_GUID = lv_bid_guid
IMPORTING
E_HEADER = ls_bid_header
.
* Check on description of the bid (programmatically added)
IF ls_bid_header-description(26) EQ 'Extra bid invitation'.
* TRY.
* If so, change the output method from MAI to PRN
CALL METHOD io_trigger->set_metype
EXPORTING
i_metype = 'PRN'
.
* CATCH cx_os_object_not_found .
* ENDTRY.
ENDIF.
ENDIF.
CLEAR ro_application.
*END
Regards,
Robin
pl check the documentation of following BADI
SRM IMG> Supplier Relationship Management>SRM Server>Business Add-Ins (BAdIs)>Document Output-->Change Forms for Document Output
BR
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it can be done by using the BBP_DOC_CHANGE_BADI. Change the output option in this BADI as per your selected checkbox.
Regards,
Satheesh.
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.