Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using custom smartform instead of standard one

I have a requirement where I have to use a custom smartform instead of standard one(BBP_OUTPUT_COVER). This is used for formatting the bidder emails. The BADI used for changing the smartform is BBP_OUTPUT_CHANGE_SF and the field to be changed is CV_SMARTFORM_MAIL.

The processing class is CL_PD_BID_PROCESSING_BBP and the method is PROCESS_BBP_BID_MAI_BCS.

The methods makes a call to a FM 'BBP_OUTPUT_BID_GETDETAIL_SMART' . There is a handle in the function module which calls the CHANGE_FORMS METHOD OD badi BBP_OUTPUT_CHANGE_SF.

IF sv_badi_active = 'X'.
        iv_guid           = iv_bid_guid
        iv_medium         = iv_medium
        is_partner        = sf_bid_data-bidder
        iv_object_type    = c_biddingdoc
* added for note 1050619
        is_event          = is_event
        cv_smartform      = ev_smartform
        cv_smartform_mail = ev_smartform_cover
        cv_subject_mail   = ev_subject_mail

Here, if I click the 'change_forms' in code, I get a prompt showing my implementation as well as CL_EX_BBP_OUTPUT_CHANGE_SF.

So in order to just change the smartform which is getting called, apart from the CV_SMARTFORM_MAIL assignment, should I copy the code in CL_EX_BBP_OUTPUT_CHANGE_SF to my implementation?

And what is the function of the method IF_EX_BBP_OUTPUT_CHANGE_SF~CHANGE_FORMS.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question