Function Modules for SD Reports and Smartforms

These function modules are great to get the information used to populate Smartforms and reports in SD.

Remember you can access the data with transaction SE37 and use the test/execute icon [F8].

1. To get all Pricing details for the Sale order item:

‘SD_SALES_PRICING_INFORMATION’.
This will fetch all KOMK / KOMP data into the internal Tables.

2. To get all pricing details for the Billing item:

‘RV_INVOICE_PRICING_PREPARE’.
This will fetch all KOMK / KOMP data into the internal Tables.

3. To get the Pricing Condition data:

‘PRICING_GET_CONDITIONS’
This will fetch corresponding KONV data to the internal tables

4. To fetch the Terms of Payment Details:

‘SD_PRINT_TERMS_OF_PAYMENT’
This Function Module will be used to retrieve the Billing Due Date and Cash discount Percentage for each with respect to the Document Payment Terms

5. To fetch the Texts:

‘READ_TEXT’
This is the commonly used Function Module to read the header and item texts from the document for the given Text ID /Text Name / Text Object

6. To fetch Address Details of the Customer:

‘SD_ADDRESS_GET’
This FM is used to fetch the complete Address Details of the Customer using the corresponding ADRNR. (With Key as Document # in VBPA)

Leave a Reply