on 09-25-2008 4:33 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem resolved with Condition-Dependent Purchase Order Output Process of SRM
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.