cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter Symbol / WWI / Phrase based

christoph_bergemann
Active Contributor
0 Kudos

Dear all

in reference to discussion in https://answers.sap.com/questions/13234371/parameter-symbol-wwi-phrase-basd.html

we still struggle a little bit.

One can describe story like this:

- Assume you have a material / REAL_SUB combination and you would like to generate a WWI report

- Assume that on material level we have a material class with characteristics which are "phrase based" and allow multiple values and we have a report symbol used in the WWI layout to collect the data etc.

Now we try to generate the report for this material/REAL_SUB combination (e.g. report from template)

Using a "stupid"/"fictive" example like color: we have this situation: in the characteristic we have "blue" + "green" + "yellow"

Now the output runs currently in WWI like:

Color: blue, green, yellow

This works really fine. But only if we use "shorttext" phrases.

But now if we have only one phrase selected with a long text the output runs like:

Color: Shorttext1,Shorttext2,Longtext1

So in this output the "space" is missing so that we don't get something like "phrasetext1" + "," + "Space" + "Phrasetext2" etc.

Analysing the value value: there is a big difference in content for case 1 and case 2

Any idea? is this still an issue in our code or is this an issue in SAP standard (in marketplace i could not find something).

C.B.

Accepted Solutions (1)

Accepted Solutions (1)

Mark-Pfister
Active Contributor
0 Kudos

Hi Christoph,

I assume this is an issue in your coding / or WWI as the standard logic for specification symbols using phrased characteristics works correctly - no matter if long or short text phrases are mixed..

I think this would need an in depth analysis that can't be done easily remotely.

To understand better what is going on - and what result your coding should produce - I would suggest the following:

  1. Create a PARAMETER Symbol for a phrase enabled characteristic.
  2. Maintain Short and long text phrases in that chrateristic
  3. Create a simple WWI Template that outputs the characteristics - with the separation you want
  4. Add your material based parameter symbol
  5. Analyze the differences....

Best

Mark

christoph_bergemann
Active Contributor

Dear all

we have improved the code. It was very old stuff. But now we accept the missing "space".

What we can see (in debug) is that our function module collect the data as assumed. What we can see as well:

as soon as if there is at least one long text phrase maintained: for any selected phrase we have in the value value some "rtf" like code in front (and here the "Space" is missing. But from my point of view: the problem seems to be "deep" inside the ABAP part..

The business has now accepted that the "space" is missing. So we stopped further research.

C.B.

Answers (2)

Answers (2)

satya11719
Active Contributor
0 Kudos

Hello CB ,

Great to see that there are some queries coming from you as well ..... 🙂

This issue can fixed by changing WWI code pattern ,

In you are case 2 , when you enter Long Text 1 as 3rd Value assignment instance then you are facing this Space issue ?

May be if we see your WWI code then it would be better to suggest further ,

If we use space separator then it will create issue in your Case 1 with extra space.

Best

Satya

holger_hartung
Contributor
0 Kudos

Hello

could you try to use space separator within WWI between values?

christoph_bergemann
Active Contributor
0 Kudos

Dear Holger

this was one idea on my side as well... but for the "shorttext" case we would then have:

phrase1 + "," + "2 space" + phrase2 etc.

In principle: the business will accept it.. (i would assume) the question is only... why does it not work as expected?

C.B.