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.
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
In the blog, the function text determination is introduced and now I would like to guide you one step further, to have custom logic in text determination.


Please consider the following use case, instead of texts from customer master data or predecessor documents, you would like to define central standard texts and include them in document texts so they can be printed. And let's have a concrete example: showing transport instructions for certain products in a sales order. One product is fragile and another which must be stored in a specific temperatures.

So let's see how to achieve this:

Define the standard texts. This can be done with the app Create Standard. As can be seen from below, two standard texts are defined.



Then implement the custom logic to specify when will these standard texts be valid. In the context of text determination, there can be two types of BAdIs, one is Copying Requirement, which is usually used to specify the criteria with which a text determination is valid. The other is the Data Transfer, which can be used to define the critial, also specify a standard text to be determined.


In below implementation Demo, the logic is quite starlight forward. For sales document with type TA (standard sales order), if the product maintained in the item is TG-D010_US, then the standard text ZITEM1_INSTRUCTION will be determined. And if the product is TG-D020_US, then ZITEM2_INSTRUCTION will be determined. There are much more parameters provided in the cloud BAdI to build your logic.


Then this cloud BAdI implementation can be assigned to a routine (SSCUI 104306) and finally be maintained to the configuration of text determination. In below screenshots, the implementation Demo is assigned to a routine with number 3000000 and then the routine is assigned to the text determination configuration.



Now, let's create a sales order with the products as items. As can be seen, the contents of the texts get copied from the standard texts.


With this feature, the text determination can be even more flexible (and complex...). Thanks for reading.