Skip to Content

WWI Spec Multiple Status Conditional Output

Hello Experts,

In the system I'm working in we can have multiple status' per specification:

In WWI we want to only output a section of data only if ALL status' = "ZRE".

This is my code to output all status' - this is not the data we want to output but this is what I use to see the status' in testing:

This is the data output:

I have tried to use Conditional Output to output only if LK (Text Comparison) to "ZRE". I have also tried to use the opposite, (if symbol LK "ZIP" OR "ZSR" OR "ZIA" etc [all other possible status' not in Released]).

However because of the Repeating group, which was necessary to output all possible status' on the spec per an SAP note, the conditional output will cycle through each value, rather than looking at all values at the same time.

Is there a way to always check the most recent value first, potentially by using the WWI stack method to always pull the most recent date's Status? Or are there other options for this, i.e. custom symbol or a development?

Thanks in advance,

Nick

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 08, 2014 at 09:31 AM

    Hi Nick,

    If I understand correctly, you only want an output if all status are ZRE.In that case it may work using the stack function. Read in all status into the stack and sort the stack in descending order. Then ZSR (if it exists) should be on top of the stack, else ZRE will be on top. If the top item is ZRE, output, else not. Maybe this approach wil do the trick.

    Ralph

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Ralph

      I can not confirm your findings/statements. Any WWI report is considering the "change number"; I need not to specify something in WWI code. This is done "automatic". Without that Change numbers are "useless". From my point of view based on screen shot: there is only one current Status (with "All Ratings"/Reg_World combination)-

      E.g. if you change the color from black to green using a change number the WWI report will display (based on key date) either black or green. Even if you have more that one data record this would happen like that.

      Is the repeating group used to loop on "Status" herefore "special"? (never tried to output that data)?

      Long ago we have done "testing" using change numbers. And SAP standard was "fine" (but the use of the change number is "very tricky")

      But may be you have some additional arguments why the system is working as you expect. Thanks.

      C..B

  • Posted on Aug 05, 2014 at 07:05 PM

    Dear Nick

    the "Status" on specification hearder is used rarely in the context of WWI. First I recommend that you should read the onlien SAP help (and how data is retrieved in WWi report based on Status).

    The topic is "very complex" it belongs to scenarios not easy to understand in context of WWI

    The topic is most worse as you seem to use "change numbers"

    I have never seen such a "complex" scenario; at t is not easy to explain the "relations" between WWi, Status, and Change numbers.

    May be check: WWI for Experts

    and e.g. this link:

    Generation Not Permitted - Basic Data and Tools (EHS-BD) - SAP Library

    It is very imprortant to understand the relation of data maintained on spec level and the definition of the generation variant.

    May be check:

    Generation Variant - Basic Data and Tools (EHS-BD) - SAP Library

    So it is very difficult to explain to you all the "relations" if you are using at the same time:

    "Change numbers"

    and "Status"

    This combination is very tricky in relation to WWI reports; personally I have no experience.

    Please read first the SAP help; may be you get a clue how it worksit takes a lot of time to really understand it !

    Regarding use of "Change numebers" may be read:About use of Change numbers in SAP EHS Management (Classic)

    My recommendation would be: try to simplyfiy your maintenance approach; your approach is very very tricky (and is really not easy for endusers as well)

    C.B:

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Christoph,

      Thanks for the information, because of the complexity, like you helped explain, we have decided to manage this through a 2 Template - Business Process solution, one with the signature and one without.

      Those links you provided were very helpful, in the end it was too complex without a custom solution.

      Thanks,

      Nick

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.