Symptom
- The manually entered delivery address at the Purchase Order (PO) item level (Delivery Address tab) is in which released views for use in custom print forms for Purchase Order.
- The delivery address differs from the Plant/Storage Location address and is stored as a document address linked via the AddressID field in the Purchase Order Item.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Maintain a manual delivery address at PO item level in the Delivery Address tab, different from the plant/storage location address.
- Create or adapt a custom print form for STO.
- Attempt to retrieve the PO item delivery address from released views for the form data source.
Cause
Resolution
- Use released views I_PurchaseOrderItemAPI01 and I_Address to obtain the PO item’s document delivery address.
- In the Custom CDS Views app, create a custom view with primary data source I_PurchaseOrderItemAPI01.
- Add an association/join from the purchase order item to I_Address using the AddressID field to link to the document address.
- Expose the required address fields from I_Address (for example, name, street, city, postal code, region, country).
- Publish the custom view and use it as the data source (or extend your existing data source) for the STO print form.
- Bind the exposed address fields in the form template and test printing the STO to confirm the manual delivery address appears as expected.
Keywords
purchase order item delivery address, document address, addressid, sto, jsto, print form, custom form, released views, cds view, I_PurchaseOrderItemAPI01, I_Address, delivery address tab, s/4hana cloud, procurement, po address , KBA , MM-PUR-GF-ADR-2CL , Addresses (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public