cancel
Showing results for 
Search instead for 
Did you mean: 

Display of Output B is Output A is not present

rohan_somji
Active Participant
0 Kudos
300

Dear SAP Experts,

I have requirement as below,

Display substance and relevant columns output. They are part of composition data for a specific Value Assignment. So I use Composition slave group to display output. Plus there are additional criteria like if regulation for Korea is present in composition A then only display composition output. So there I added a conditional output.

Row 1. If composition data is present then display row 1.

Row 2. If composition data is not present then display row 2 with "-".

My scenario works fine when data is present. So I'm able to display row 1.

Problem is I'm not able to build a condition for row 2 i.e. if no data is present then display row 2 with "-".

Please note both the condition prevail for the same heading highlighted in red and also same Value Assignment.

Any thoughts how I can handle this requirement. Thanks.

Regards,

Rohan

Ralph_P
Product and Topic Expert
Product and Topic Expert

Hello Rohan,

Inside the SPOS do a BNG with alternative and check whether a component type is present. If yes, then there is a composition and you can print it. If no then in the alternative print the "-". IF, in addition to that, you need to check for a certain regulation, it is best to do that check first using a stack.

Best regards,

Ralph

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_bergemann
Active Contributor
0 Kudos

Hello

first you must define the critera for the term "does not exist". In your example:

We have three columns to check.

1.) Description

2.) Cas Number

3.) Value

So we can have no "Name", "No CAS number" and "no value" (and combinations of this)

I assume that the specification as such is present in the composition?

If you "slightly" change the maintenance approach then the WWI option is "easy" to use:

So on composition level you can define by component a so called "EA" value. If you would set up a value like "ND" (= No data) you can maintain a component with this "EA" value and by using "IF" technique you can check for this value and i am pretty sure you can print somethiing liek you wish to print.

The SAP standard (as you know) supports the "empty line" deletion part. By analysing this "deeper" (how is it done) you could think of a creating a customer specific symbol

You can as well use the "Comp Type" (and not EA value) to get something similar

I am not sure if this will work: check like per component "If average value => 0 then .... else print "-"

But the story depends on the "demand" (under which exact conditions you would like to print "-")

C.B