[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-187677-en":3,"doc-seo-187677-105":30,"detail-sidebar-cat-1-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":11,"category_id":12,"category_name":13,"doc_title":14,"doc_description":15,"doc_content":16,"file_id":17,"file_url":18,"file_type":19,"file_size":20,"view_count":11,"is_deleted":4,"is_public":11,"is_downloadable":11,"audit_status":11,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":15,"update_tm":28,"read_time":29},187677,1374404737137,"Adam","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",1,18,"Letters","Add the Project ID to the Email Template Header","Guidance for extending an SAP S/4HANA Cloud billing email workflow so customer project ID information is visible in the email template header. The approach creates an extension custom field, adds custom logic via a BAdI to populate the field for the billing output header, and defines a CDS view that combines project ID with the sales order number. It also covers customizing the standard billing email template and assigning the value to the billing document, including required personas, authorizations, and Output Management (1LQ) setup.","| 1 | Custom Fields and Logic | You create an extension custom field to store the costumer project ID. Later, you customize the data in this field to be reflected in the email template header.\u003Cbr>You create a custom logic to implement Business Add-In (BAdI) to populate the extension field for the billing output header. |\n| --- | --- | --- |\n| 2 | Custom CDS View | You create a custom CDS view combining the project ID with the sales order number. This view is used in the BAdI implementation. |\n| 3 | Maintain Email Template | You customize the standard email template for billing documents to include the customer project ID in the header and assign it to the billing document. |\n\n\n| SAP S/4HANA Cloud system | You have access to an SAP S/4HANA Cloud system with all the necessary users and authorizations (refer to the following prerequisites) .\u003Cbr>The solution proposed here leverages the SAP S/4HANA Cloud standard extensibility capabilities, coding extensibility in particular. |\n| --- | --- |\n| Personas/users and authorizations | The following personas can be involved in the scenarios. However, depending on your use case, there might be differences.\u003Cbr>SAP S/4HANA key users: The following implementation users and business users are involved:\u003Cbr>• The Administrator (SAP_BR_ADMINISTRATOR) business role has been assigned to your user for implementing the extension field, CDS view, BAdI, and custom email template. Make sure that the Extensibility (SAP_CORE_BC_EXT) business catalog is also assigned to the role.\u003Cbr>• Business Process Configuration Expert (SAP_BR_BPC_EXPERT) is required for customizing.\u003Cbr>• Project Manager for Commercial Services (SAP_BR_PROJ_MANAGE_COMM) is required to set up the customer or internal project as a reference.\u003Cbr>• Billing Clerk (SAP_BR_BILLING_CLERK) is required to create a billing document. |\n| Output Management (1LQ) scope item | Make sure that you've carried out the steps in the Settings for an Email Process section in the Output Management (1LQ) ) set-up instructions. |","cbCail97EKzk29VY","https://ap.wps.com/l/cbCail97EKzk29VY","pdf",1477680,26,"English","en",105,"# Custom Fields and Logic\n## Custom CDS View\n## Maintain Email Template\n# Personas/users and authorizations\n# Output Management (1LQ) scope item","[{\"question\":\"How is the customer project ID added to the billing email header?\",\"answer\":\"An extension custom field is created for the customer project ID, then custom logic using a BAdI populates it for the billing output header. The value is reflected in the customized email template header and assigned to the billing document.\"},{\"question\":\"What is the role of the custom CDS view?\",\"answer\":\"The custom CDS view combines the project ID with the sales order number. This combined view is used in the BAdI implementation to supply the email header data.\"},{\"question\":\"Which user roles and authorizations are involved?\",\"answer\":\"The Administrator role (SAP_BR_ADMINISTRATOR) is needed to implement the extension field, CDS view, BAdI, and custom email template, including the Extensibility (SAP_CORE_BC_EXT) catalog. Additional roles include Business Process Configuration Expert (SAP_BR_BPC_EXPERT) for configuration, Project Manager for Commercial Services (SAP_BR_PROJ_MANAGE_COMM) to set the project reference, and Billing Clerk (SAP_BR_BILLING_CLERK) to create the billing document.\"}]","Add the Project ID to the Email Template Header | PDF",1788384765,9,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":14,"keywords":34,"description":15,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"add-the-project-id-to-the-email-template-header","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":11},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/template/","Template",2,{"item":49,"name":13,"@type":43,"position":50},"https://docshare.wps.com/template/letters/",3,{"item":52,"name":14,"@type":43,"position":53},"https://docshare.wps.com/template/add-the-project-id-to-the-email-template-header/187677/",4,{"url":52,"name":14,"@type":55,"author":56,"headline":14,"publisher":58,"fileFormat":61,"inLanguage":23,"description":15,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-09-05","2026-09-02",true,{"@type":66,"interactionType":67,"userInteractionCount":11},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"How is the customer project ID added to the billing email header?","Question",{"text":76,"@type":77},"An extension custom field is created for the customer project ID, then custom logic using a BAdI populates it for the billing output header. The value is reflected in the customized email template header and assigned to the billing document.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"What is the role of the custom CDS view?",{"text":81,"@type":77},"The custom CDS view combines the project ID with the sales order number. This combined view is used in the BAdI implementation to supply the email header data.",{"name":83,"@type":74,"acceptedAnswer":84},"Which user roles and authorizations are involved?",{"text":85,"@type":77},"The Administrator role (SAP_BR_ADMINISTRATOR) is needed to implement the extension field, CDS view, BAdI, and custom email template, including the Extensibility (SAP_CORE_BC_EXT) catalog. Additional roles include Business Process Configuration Expert (SAP_BR_BPC_EXPERT) for configuration, Project Manager for Commercial Services (SAP_BR_PROJ_MANAGE_COMM) to set the project reference, and Billing Clerk (SAP_BR_BILLING_CLERK) to create the billing document.","https://schema.org",{"og:url":52,"og:type":88,"og:title":14,"og:site_name":59,"og:description":15},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":93},[94,99,104,109,114,119,124,127,132],{"id":95,"doc_module":11,"doc_module_name":46,"category_name":96,"show_sort_weight":97,"slug":98},11,"Presentations",90,"presentations",{"id":100,"doc_module":11,"doc_module_name":46,"category_name":101,"show_sort_weight":102,"slug":103},12,"Resumes",80,"resumes",{"id":105,"doc_module":11,"doc_module_name":46,"category_name":106,"show_sort_weight":107,"slug":108},14,"Invoices",70,"invoices",{"id":110,"doc_module":11,"doc_module_name":46,"category_name":111,"show_sort_weight":112,"slug":113},15,"Posters",60,"posters",{"id":115,"doc_module":11,"doc_module_name":46,"category_name":116,"show_sort_weight":117,"slug":118},16,"Social Media",50,"social-media",{"id":120,"doc_module":11,"doc_module_name":46,"category_name":121,"show_sort_weight":122,"slug":123},17,"Forms",40,"forms",{"id":12,"doc_module":11,"doc_module_name":46,"category_name":13,"show_sort_weight":125,"slug":126},30,"letters",{"id":128,"doc_module":11,"doc_module_name":46,"category_name":129,"show_sort_weight":130,"slug":131},21,"Paper Templates",5,"papers-templates",{"id":133,"doc_module":11,"doc_module_name":46,"category_name":134,"show_sort_weight":4,"slug":135},158,"General","general-158"]