You want to influence the ship-to party address details on the billing document printout.
SAP S/4HANA Cloud
The ship-to party address is shown on the billing document printout according to the street priority rule: if street data is maintained in the ship-to party master data, then the street is shown on the billing document printout.
The existing ship-to partner address data is not changeable, but it is possible to add extensibility fields for the ship-to partner address and fill them according to your needs.
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_BillingDocumentPartner with partner function WE 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)
SAP Help - How to Extend a Custom Form Template for Billing Output with Custom Fields
2679030 - Extensibility for Billing Document Printout - SAP S/4HANA Cloud
2924014 - Address formatting - SAP S/4HANA Cloud
2984817 - Form design in Adobe LiveCycle Designer
2899660 - What is the CDS view to display plant address in the billing document printout - SAP S/4HANA Cloud
3011127 - Phone number and email address of contact person is not printed on the billing document output form - SAP S/4HANA Cloud
<ShipToParty>, WE, SH, partner function, Warenempfänger, PARVW, VBPA, ADRC, ADRNR, FDP_V3_BD_STANDARD_SRV, CL_FDP_V3_BD_FORM_UTILITY, GET_ADDRESS_IN_PRINTFORM, GET_STREET_HAS_PRIORITY, STREET_HAS_PRIO, STREET_HAS_PRIORITY, ADDRESS_LINE, AddressID, full address, street, PO box, xml, custom form template, invoice, SDBIL_CI_STANDARD_*, Custom logic, BAdI, Billing Standard Output, Custom Fields, Extensibility, Form Templates, , KBA , SD-BIL-GF-OC , Output Control Billing , Problem