The detail component definition is the configuration for the screen that loads when an invoice number link is selected. This shows a detailed screen for a single invoice that contains more information than the widget screen.
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy83NDg4LzMyMTM5L2NrZmluZGVyL2ltYWdlcy9xdS9SVDU5KDEpLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTc2NjI1ODE1M319fV19&Signature=Df5PYve3LfKmJVYbjGFGR0Kbsw2FjALT286PTvCT~DEyBlZBN92fWV1eIYONdRFvfvnwONdLeoMssqxE8BfvnKR7t9w2RyNxr3K4qqTBnjULtDlFbMzDdxVpPVzI-czfJAUET4D2zGPmVhg-sz-1ntraxdiGDc117vmXjudF~FKFkmCBpfHtsoQxi-R9djVS6a1zA6j-PvjAt34YRxL81NodL4wvSE6NdzIeRoMaof-q7kZqoQMciakQtMKq-6k1uOeXLbw1wPW5fO4P0A69VBjP8hw013KNaoeV0Tmk5FuL6sX3Vu5g3zOilkJt2Y0fpAi83p96qIUxqVE9t1W1yA__&Key-Pair-Id=K2TK3EG287XSFC)
1. Create a component
Open the BAPI_WEBINVOICE_GETDETAIL scenario record page and select the Create Component button.

2. Set definition properties
To set the details for the component definition, populate the fields as follows:

Label: SAP Invoice Detail
Developer Name: mySAPInvoiceDetail
Apex Plugin Class: Blank
Require Secure Link for Access: Not Required (Off)
Custom Permission(s): Blank
Select Create Component Button.
3. Set preview settings
Specify how the Component Builder should render the definition in the preview frame. Populate the fields as follows:

After selecting Update, all of the dialog boxes should close and allow for editing.
The preview mode will make live calls to the SAP system, so a development system should be used.
The preview mode for a detail view needs more information than can be set in the component builder, thus the preview screen will not show any live data.
4. Configure the component tab
The default view of the Component tab will be visible in the top left. Populate the fields as follows:

Choose the values as shown above in the respective fields for 1, 2, 3, 4 and 5. Next, choose the values as shown below on the next screen for 1, 2, 3, 4 and lastly, click Save (5).
This will display the two parameters in the Parameters fields WEBINVOICEDOCUMENT.BILL_TYPE_TEXT and WEBINVOICEDOCUMENT.BILLINGDOC, which would show the dynamic value for the Label in the Output display in place of a static label for the SAP invoice.
5. Configure BAPI_WEBINVOICE_GETDETAIL section
Disable the first section BAPI_WEBINVOICE_GETDETAIL by turning off (1).
6. Configure RETURN_x section
The next section, RETURN_x, is the BAPI messages section. The success and error messages will appear here. This is a standard SAP data structure. Thus, in order to handle the return messages, the fields should be set as follows:

With this configuration, the messages from SAP will appear as toast messages at the top of the screen - success as green, warning as yellow, and error as red.
7. Configure WEBINVOICEDOCUMENT section
The WEBINVOICEDOCUMENT section is a single data structure that holds header information about the invoice. Populate the fields as follows:

On the Fields tab, select Hide all and enable the following:

8. Configure WEBINVOICEITEMS section
The WEBINVOICEITEMS section is a collection of item records. Display this as a table in a tab group by populating the fields in the section settings as follows:

On the Fields tab, select Hide all and enable the following:

9. Configure WEBINVOICEPARTNERS section
The WEBINVOICEPARTNERS section is also a collection of item records. This is shown in the same tab group as that of WEBINVOICEITEMS. Populate the fields as follows:

On the Fields tab, select Hide all and enable the following:

10. Reference Values
Navigate to the Reference Values tab. Locate the SAP Account Identifier, which is what will be used to get the SAP customer number from the record.

11. Parameter Mappings
Create the connection between the account record data and component definition with parameter mappings. These are called "parameter mappings" because of data being mapped to the BAPI parameters. These mappings are loaded when displaying the page, thus pulling the data from the record to build the request payload.
Select the Parameter Mappings tab and the New button.
Set the input values as follows:

Select Save.
Create a second mapping with input values as follows:
.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9kemY4dnF2MjRlcWhnLmNsb3VkZnJvbnQubmV0L3VzZXJmaWxlcy83NDg4LzMyMTM5L2NrZmluZGVyL2ltYWdlcy9xdS9QYXJhbWV0ZXJFZGl0RGV0YWlsMSgxKS5wbmciLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3NjYyNTgxNTN9fX1dfQ__&Signature=dHI~r2tk90m8Yah2vcgnd7~fMX8sZWN0-l7vqQqCwdivx0BtX8vg2oFvOifUyAvHiSEagweJp-q~K4zimHoUTv8FDYQkCVJSpRK2ZHltw94Ss17K6Tt8ecUUfwbFj8qBmQHWvJ6~6diJnynL~Vpl7zpgCjbL3PZopB2TmnsEhAiP2MBSYpwPc2Moe8W3XayNjuvszL75Qbi0ZxDfQ~1glRJwR5EpjsJuPVaHEnyyA69cgkgPhcKGqMbgg37u5xhq-YVShu0gaEkGquhrMb0xdMonT4tTsY1rtdkwonD3Znu3lcfZu~0hhhPICd-JUEfZFETqhV2tMUQ4wunqO-svyA__&Key-Pair-Id=K2TK3EG287XSFC)
Select Save.
12. Save and preview
Now that the setup is completed, the component definition will need to be saved from the top right by selecting Save. The preview pane will reload after saving completes, displaying the layout, but without data.
