cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with BBP_OUTPUT_CHANGE

Former Member
0 Kudos

Hello Gurus

I have SRM 5.0 with SP10.

I need to change the smartform on output of PO. I implemented the BBP_OUTPUT_CHANGE BADI to do that. In the preview this work fine, but when i send email, the BADI don't work and send the wrong smartform.

I know that is another way to do this smartform change, but i don't know how.

Can anyone help me, please?

Thanks in advanced.

Best regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Oi Paulo,

When you PREVIEW the output you are using the BBP_BID_INVITATION smartform.

When you send an e-mail the message content is in the BBP_OUTPUT_COVER smartform and the e-mail attachement is the output preview (BBP_BID_INVITATION smartform).

Your BAdI code should look like this:

_______________________________

method IF_EX_BBP_OUTPUT_CHANGE_SF~CHANGE_FORMS.

data: bbpex_c_ev_subcat_notif_output type bbp_event_sub_category value 'NOTIFICATION_DOCUMENT_OUTPUT'. "Check Note 1028166

if IV_OBJECT_TYPE = 'BUS2200'.

if is_event-event_sub_categ = bbpex_c_ev_subcat_notif_output or is_event-event_sub_categ = 'PREVIEW'. "Check Note 1028166

cv_subject_mail = 'Mail Subject'.

cv_smartform_mail = 'BBP_OUTPUT_COVER'.

cv_smartform = 'BBP_BID_INVITATION'.

endif.

endif.

endmethod.

________________________________

This should make it work.

Abraço,

Henrique

Former Member
0 Kudos

Oi Henrique

Thanks for your answer. I need to PO process, but I resolve the problem using Condition-Dependent Purchase Order Output process.

No entanto obrigado pela tua resposta.

Abraço.

Paulo Costa

Answers (1)

Answers (1)

Former Member
0 Kudos

Problem resolved with Condition-Dependent Purchase Order Output Process of SRM

Former Member
0 Kudos

Ok, good to know!

And sorry for the BAdI example: it should have been BUS2201 instead of BUS2200 since you wanted a PO and not a bid invitation...

Regards,