cancel
Showing results for 
Search instead for 
Did you mean: 

Custom smartform in SUS

Former Member
0 Kudos

Hi All,

I need to use custom PO in SUS. The custom form name was added in SPRO settings. But still, the output is standard PO smartform. What all configurations are required for this? Please guide on this.

Thanks

Nandalal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Copy the std smartform to the 'Z' one(transaction SMARTFORMS) and apply your changes.

- use BADI to call your custom form.

For PDF output form change use BADI BBP_OUTPUT_CHANGE_SF.

You will find all relevant documentation in SPRO --> Supplier Relationship Management --> SRM Server --> Business Add-Ins (BAdIs) --> Document Output -->

- Change Forms for Document Output

BR,

Disha.

Pls reward points for helpful answers.

Former Member
0 Kudos

Hi Disha,

Thanks for the reply.

There is no badi as BBP_OUTPUT_CHANGE_SF but BBP_OUTPUT_CHANGE exists. Couldnt find where this is called.

But I got a different badi BBP_SUS_DOWNLD_FILES which helps us to change the smartform. This is available under

SPRO --> Supplier Relationship Management --> Supplier Self-Services...

When I implemented this badi the smartform can be changed. In SUS ,document is available for download, and we can specify the form name.

Thanks

Nandalal

Former Member
0 Kudos

Hi,

Thanks for the info.

BR,

Disha.

Former Member
0 Kudos

HI Nandlal

For SUS for any Output you can use the BADI BBP_SUS_DOWNLD_FILES for printing.

Just check following help

Use

You can use this Business Add-in (BAdI) to specify file names and folders that differ from those used in the standard system for downloading documents. You can also specify the XSLT program the system uses for converting from XML to CSV, as well as the form the system uses for printing documents.

Standard settings

SAP does not deliver a standard implementation for this BAdI. If there is no active implementation, the system uses the following:

• File name for:

o Purchase order: PO_<purchase order number>

o Confirmation: CONF_<Confirmation number>

o Shipping notification: ASN_<shipping notification number>

o Invoice: INV_<invoice number>

• XSLT program for:

o Purchase order: BBP_SUS_XML2CSV_ORDER

o Confirmation: BBP_SUS_XML2CSV_CONF

o Shipping notification: BBP_SUS_XML2CSV_ASN

o Invoice: BBP_SUS_XML2CSV_INV

• Output form for:

o Purchase order: BBP_SUSPO

o Confirmation: BBP_SUSCONF

o Shipping notification: BBP_SUSASN

o Invoice: BBP_SUSINV

The BAdI provides the FILES_MODIFY method with the following parameters:

Importing

IV_OBJTYPE Document type (purchase order or invoice)

IV_OBJID Document number

Changing

EV_XML_FNAME XML file name

EV_CSV_FNAME CSV file name

EV_PDF_FNAME PDF file name

EV_REL_DIR relative folder

EV_XSLT_PNAME XSLT program

EV_SMARTFORM output form

Activities

If you want to use file names or forms that differ from the standard system, implement the BAdI and activate the implementation.

Example

include BBP_PD_CON_CL.

CASE iv_objtype.

  • Order

WHEN c_suspo.

ev_xslt_pname = 'YOUR_ENTRY'.

ev_xml_fname = 'YOUR_ENTRY'.

  • ASN

WHEN c_susasn.

ev_xslt_pname = 'YOUR_ENTRY'

  • INVOICE

WHEN c_susinv.

ev_smartform = 'YOUR_ENTRY'.

  • CONFIRMATION

WHEN c_suscf.

ev_xslt_pname = 'YOUR_ENTRY'.

ENDCASE.

I hope this suffice the query.

Regards,

Nimish Sheth

Pls reward points for helpful answers