cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Language Dependent Element in Workflow Container

Former Member
0 Likes
2,097

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

View Entire Topic
pokrakam
Active Contributor
0 Likes

Usually such methods have a language parameter, or at least they should.

If not, add it, or ask those responsible for /ascorpi/ namespace to do it.

Else you'll have to write some code to map it, or use a standard SAP calendar function to get the name of the month (don't know any offhand).

Or a dirty hack is to set sy-langu explicitly before the call:

data(current_language) = sy-langu. 
sy-langu = 'F'. 
<call method>
sy-langu = current_language.
Former Member
0 Likes

Hi Mike,

thanks for your answer. We have the /ascorpi/ namespace fully under our control. I am aware that I can add the language to that method call but it will not solve my problem. This logic is executed during the workflow creation by a technical user in the background (sy-langu is always "EN"). So the language to use is totally unkown in this context since different users (in different languages) have to process that workflow later. So an english user should see an english text and a german user should see a german text. So what I am looking for is a user-exit that can be used to replace technical tokens with language dependant text when the workflow item is read.

Does that make sense?

Regards

Tobias