You want to make the plant address visible on the billing document printout.
SAP S/4HANA Cloud
Sales and Distribution (SD)
Plant address is not contained in the standard billing document form template.
Follow the steps described on SAP Help Portal on How to Extend a Custom Form Template for Billing Output with Custom Fields.
Read the address ID from CDS view I_PLANT and then get the address via:
* iv_address_type = '1'
iv_address_number = lv_addressid
* iv_person_number =
iv_language_of_country_field = 'E'
* iv_number_of_lines = 99
* iv_sender_country = space
ev_formatted_to_one_line = DATA(one_line)
et_formatted_all_lines = DATA(all_lines)
KBA 2679030 - Extensibility for Billing Document Printout - SAP S/4HANA Cloud
Custom logic, BAdi, Billing Standard Output, Custom Fields and Logic, Extensibility, Form Templates, SDBIL_CI_STANDARD_*, , KBA , SD-BIL-GF-OC , Output Control Billing , How To