Hi Experts,
I have create a new workflow with a decision item for a certain step. This item has the following text:

As you can see it uses several Tokens as placeholders. While CONTRACT_ID and LICENSEE are just numbers PERIOD should be language dependent text. To achieve this I added attributed PERIOD in the global workflow container and filled it programatically when the workflow is started:

Methode "GET_PERIOD_TOKEN" delivers an identifiert like "APR", "NOV" etc.
Now I was looking for a user exit during the query/read process of workflows (e.g. when the item is shown in Tx. SBWP) to replace that identifiert by the correct language dependent text. Unfortunately I could not find any appropriate place to do that.
Is this approach correct? Is there even a solution for such an issue? Thanks in advance!
Regards
Tobias
Request clarification before answering.
Hi Tobias,
A functional method is not a workflow specific term, it is a method with a RETURNING parameter and can be used in operand positions within code. E.g.
data(test) = zcl_foo->bar( ).
And they can be used in most positions in workflow containers and data fields, as in
&user.get_email( )&
You only need the bi_persistent interface for instantiated objects (almost always a good idea). For static usage, just use % as with system variables. You can even nest expressions and mix and match BOR and OO. A good example is to use BOR objects to instantiate the corresponding OO objects in binding or assignment steps:
%zcl_order=>get_instance( &bor_order.purchaseorder& )%
I suggest to always build new functionality in classes and leave BOR for legacy functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.