Symptom
There is the requirement to print the sales organization address on Billing Documents output form.
Environment
SAP S/4HANA Cloud Public Edition
Cause
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:
cl_address_format=>get_instance( )->printform_postal_addr(
EXPORTING
* 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
IMPORTING
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 SAP S/4HANA Cloud Public Edition 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.
Resolution
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
See Also
2582556 - Request for New Features for Sales in SAP S/4HANA Cloud Public Edition
Extensibility Billing Document Printout
Setting Up Output Management (1LQ)
Extensibility for Output Forms and Email Templates of Billing Documents
Keywords
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 , SD-BIL-GF-OC-2CL , Output Control Billing (Public Cloud) , Problem