cancel
Showing results for 
Search instead for 
Did you mean: 

Change output medium to print for internal PO

Former Member
0 Kudos

Hello experts,

Can you please suggest a BADI where in I can handle the logic to change the out put medium to print from XML for internal PO.

How can we set the output medium to print.

Thanks & Regards,

Murthy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

have you tried BBP_SEND_MEDIUM_MODE?

Regards

Former Member
0 Kudos

Hello Luis,

My exact requirement is we have added a custom field at shopping cart header level called internal PO. In case the internal PO field is checked. Then the output medium at PO processing must change to PRINT.

I am still searching for the exact answe since BBP_SEND_MEDIUM_MODE BADI does not have acess to the Shopping cart header fields. Please suggest a way out.

Thanks & Regards,

Rama Murthy.P

Former Member
0 Kudos

What you could do is to implement BAdI BBP_DOC_CHANGE_BADI, for BUS2201 (PO). In this method, you would try to retrieve the source document information (SC information), i.e. SC header field, of your interest and change the follow on PO output medium accordingly.

Former Member
0 Kudos

Hello Jay,

Thank you for your valuable input. Can you specify the structure and field in the BADI which needs to be changed to fulfill my requirement.

Thanks & Regards,

Murthy

Former Member
0 Kudos

What you need to do in the implementation is to call the following two FMs:

1) BBP_OUTPUT_PO_PARAMS_GET by exporting your current PO GUID (as you are inside the PO Change BADI, this info is handy)

And get back the MEDIUM_VEND.

2) if the MEDIUM_VEND is not PRN, you call FM BBP_OUTPUT_PO_PARAMS_SET to set it and give the printer name.

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you all

Former Member
0 Kudos

Hi

i think you have to change the medium in youy supplier:

you can try to implement the BADI BBP_DOC_CHECK_BADI with SC filter

in BBP_DOC_CHECK mehtod

IF iv_save = 'X'.

* Get partner info
BBP_MEDIUM_GET_BY_PARTNER 
...
*Update Medium Partner XML
BBP_MEDIUM_DB_UPDATE 
...
-

Regards