Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Sahil_Grover
Product and Topic Expert
Product and Topic Expert
2,882

Introduction


This blog post has been written to address common customer query on how to use custom logic to have additional fields in usage decision for Flexible Billing Document Numbering

Business Use Case


Many customers are asking for requirement of having additional fields in usage table to configure Flexible Billing Document Numbering. One of the use cases is to have flexible billing document number based on Plant and Company code combination. Let’s see in the blog post How it can be achieved.

Process Steps


1. Create a new field using ‘Custom Logic’


Enable for UI and Report


 

2. Create the BADI to populate the field at header



 

3. Define Custom Routines for Data Transfer to Billing Documents


4. Define Copying Control for Delivery Document to Billing Document


 

 

Now we have the set up to fill plant at Header level when sales Invoice is created.

5. Define Parameter Catalog for Flexible Billing Document Numbering


6. Define Formulas for Flexible Billing Document Numbering


 

Add

 


 



 


 

7. Define Custom Routines for Flexible Billing Document Numbering


8. Assign Custom Routines to Billing Type


Now when the billing document is created we have number range as per the decision table.


 

Conclusion


This blog post should help you to understand in detail how to use Custom Logic to Implement Flexible Billing Document Numbering

Thanks for reading this blog post, hopefully the blog post was informative

References


https://help.sap.com/docs/SAP_S4HANA_CLOUD/a376cd9ea00d476b96f18dea1247e6a5/a4660117481d46f4b3c54c55...
6 Comments