cancel
Showing results for 
Search instead for 
Did you mean: 

PO Output

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello,

I kindly suggest you to refer SAP note no.- 564826 .

Kind regards,

Gaurav

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Kathirvel,

Thanks for the reply.

I had already referred the thread and did the changes accordingly. But it always picks from Vendor master only.

May I know how can I clear the output medium for the vendor.

Which BADI to be imlemented to change this.

Regards,

Chary

Former Member
0 Kudos

Hi Kathirvel,

Any help on this? Do share some input os this.

Regards,

Chary

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Sateesh,

I am trying to change in Doc change badi, I could not find the output medium in any of the parameters. Should I have to implement the SC change or PO change method which business object to filter? Can you provide some more details.

Regards,

Chary