Skip to Content
author's profile photo Former Member
Former Member

Resorting of components and display on WWI report


we would like to display the ingredients of a compostion on a WWI report. We have implemented a user exit GEN_POSRG to change the sorting order of the ingredient before the output. The ingredients need to be displayed as a flow text separated by comma. Unfortunately the combination of both cases does not seem to be that easy. I tried to use two POS repeating groups (S:POS;1) and comma (S:POS;2-) to show the first ingredient and then in a loop all other ingredients with a preceeding comma. When attaching the user exit to both POS groups the first POS group wil lonly get the first ingredient instead of all. So the sorting does no work.

Any idea on how to solve this?

Regards, Michael

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Mar 01, 2012 at 08:44 PM

    Hello Michael

    I did not catch your requirement. E.g. if you print the "hazardous ingredients" (the names of the ingredients) in a WWI document you use normal WWI techniques and need to use use this exit programming.

    What do you are thinking of if your are using the term "sorting"? Do you try to figure out which ingridient is more "hazardnous" and the sort by this "criteria"? Something like that should not be done in WWI logic (possible but not receommended) Yout will never have a 1:1 relation of data in database and the data whcih is printed in the document. Normally something like this is not easy to understand from user perspective.

    With best regards


    Add comment
    10|10000 characters needed characters exceeded