There is the requirement to print the sales organization address on Billing Documents output form.
SAP S/4HANA Cloud
In standard data source the sales organization address is not available.
In order to make the sales organization address available on Billing document output, the following class containing the method for returning the address data should be used in Cloud BADIs (Custom Logic) for print:
* iv_address_type = '1'
iv_address_number = address_number
* iv_person_number =
iv_language_of_country_field = language
* iv_number_of_lines = 99
* iv_sender_country = space
ev_formatted_to_one_line = DATA(one_line)
et_formatted_all_lines = DATA(all_lines)
Prior to that, 'address_number' must be filled with the corresponding number and the 'language' with the language in which the country name shall be printed.
All_lines would then contain the formatted addess.
If the address should be shown in a list, or on a small UI placeholder or label, the one-line-versions of the result might be interesting.
However there is not a released CDS view from where the sales organization address can be pulled.
The CDS view I_SALESORGANIZATION (ISDSALESORG) is released but does not contain the field ADRNR.
There is no solution or workaround currently available to to print the sales organization address on Billing Documents output form.
Create a feature request as of SAP Note 2582556
Form Template, CL_FDP_V3_BD_STANDARD_DPC_EXT, CDS View, VKORG, I_ADDRESS, IADDRESS, AddressLine, ADRC, ADDRNUMMER, CITY, STREET, POST_CODE, BILLING_DOCUMENT, SDBIL_CI_STANDARD, Data Source, FDP_V3_BD_STANDARD_GLO_GEN_SRV, ADDRESS_INTO_PRINTFORM, GET_ENTITY, ER_ENTITY , KBA , SD-BIL-GF-OC , Output Control Billing , Problem