cancel
Showing results for 
Search instead for 
Did you mean: 

template - issue with validity area - check on multiple usages at once

Former Member
0 Kudos

Hi all

One customer requirement Iu2019m trying to solve, and I donu2019t find a solution, is the following:

<b>When we have two or more validity areas in the generation variant, we want to check on both at the same time in order to get the data on the SDS.</b>

<b>Is this possible or not and, in case it is possible, can someone explain me how to do this?</b>

Thanks in advance.

Two examples.

In the generation variant we have validity areas:

A. REGION SE

USE_CAT IND

B. REGION NO

USE_CAT IND

C. REGION NO

USE_CAT FER

In the specification data of one VAT we have several instances. The usages added to these instances are:

1. REGION SE

USE_CAT IND

2. REGION SE

USE_CAT FER

3. REGION NO

USE_CAT IND

When I use generation variant A, I only want to see instance 1 on the SDS.

When I use generation variant B, I only want to see instance 3 on the SDS.

When I use generation variant C, I donu2019t want to see any instances on the SDS.

I donu2019t find how to solve this.

When I donu2019t use a repeating group type G for validity area, using generation variant A, I get instances 1 and 2. Using generation variant B or C I get instance 3 on the SDS.

When I use a repeating group type G for validity area USE_CAT, using generation variant A or B, I get instances 1 and 3. Using generation variant C I get instance 2 on the SDS.

Similar with the exclude check put.

In the generation variant we have validity areas:

D. REGION SE

USE_CAT IND

E. REGION NO

USE_CAT FER

In the specification data of one VAT we have several instances. The usages added to these instances are:

4. REGION SE

USE_CAT IND excl

5. REGION REG_EU

REGION SE excl

USE_CAT FER

6. REGION NO

USE_CAT IND

When I use generation variant D, I donu2019t want to see an instance on the SDS.

When I use generation variant E, I donu2019t want to see an instance on the SDS

I donu2019t find how to solve this.

When I donu2019t use a repeating group G for validity area USE_CAT, using generation variant D, I get instance 4 on the SDS. Using generation variant E I gent instance 6 on the SDS.

When I use a repeating group G for validity area USE_CAT, using generation variant D, I get instance 6 on the SDS. Using generation variant E, I get instance 5 on the SDS.

Kind regards,

Luk

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_bergemann
Active Contributor
0 Kudos

Hello Luk

I did not really understood your question: but may be I can give you hints:

1.) in the generation variant you can define how the "validity area" is used (validity area of a VAT in combination with validity area of genvar) . This can be done without using "G groups" in the template.

If I remember correct you can select:

a.) that the validity area must be exactly the same (VAT and Genvar)

That means if your VAT is DE and genVar DE then the value is selected; if VAT is BE and GenVar DE than it is not selected

b.) validity area is a "superset"

if VAT is DE and GENVar is REG_WORLD logic is DE is part of REG_WORLD therefore value is selected

etc.

There are I believe four values which change the behaviour in VAT selection for WWI report => IMPORTANT: this behaviour is indipendent if or if not you use a G Group (but if you have used a G Group the topic is more be complex)

These four values are defined as:

1:1

intersection

subset

superset

PLease refer to SAP documentation regarding explanation of these options.

2.) You can always use ratings on VAT level in combination with genvar to select data

Primitive Example

VAT 1: Usage = Rating 1/DE

VAT 2: Usage = Rating 2/DE

VAT 3: Usage = Rating 3/DE

GenVar 1 uses Rating 1 and DE to select data

GenVar 2 uses Rating 2 and DE to select data

Genvar 3 uses Rating 3 and DE to select data

Result: WWI report wih genvar 1 contains only VAT 1 and so on

Now as you may be now you can use rating hierarchies in VAT selection. That means you can define GenVar like this:

Priority Rating

1 Rating 1

2 Rating 2

3 Rating 3

Now you can use at the same time more than one usage per VAT. Example:

VAT 1: Usage = Rating 1/DE

VAT 2: Usage = Rating 2/DE

VAT 3: Usage 1 = Rating 3/DE

VAT 3: Usage 2 = Rating 1/DE

In This case the WWI report would contain VAT 1 and VAT 3 because the rating of VAT fits the definition of genvar in combination of validiyt area of VAT with Validity area of genvar.

The "G group" is normally used only in such circumstances in which you have the need to print more than one language.

Explanation: by creating the WWI report you define the "main" language. Using now a "G group" you can can select data from EH&S and then print more than one language in the same report. This techniques is used very often during label generation. Here you have very often the need to print the same data with several languages in a WWI document (like R sentences).

May be this helps.

With best regards

C.B.

PS: refer may be to:

http://help.sap.com/erp2005_ehp_05/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm

Section Generation Variant

Topic: Validity area and here: "Leading validity areas" and " Discrete validity areas"

PPS: The "primary" selection criteria to get data in a WWI report is always the "rating" and not the validity area. Therefore if your VAt does have a rating which is not used in the defintiion of the genvar it is not selected in this WWI report

As a second criteria for selection teh validity are of VAT is analysed in combination with validiyta area efinition of genvar (based on mode of expand of validity area)

The "G Group" is a very "special" WWI technique. PLease read carefully the SAP documentation.

Edited by: Christoph Bergemann on Sep 3, 2011 4:40 PM

Edited by: Christoph Bergemann on Sep 3, 2011 5:37 PM

Edited by: Christoph Bergemann on Sep 3, 2011 5:39 PM

Edited by: Christoph Bergemann on Sep 3, 2011 5:44 PM

Former Member
0 Kudos

Hi Christophe,

Thank you for your reaction. I will get into this further when I'm back from vacation.

We use only one rating for all our data. multiple ratings is no option.

When I understand the documentation of the validity area's correct, options subset, superset, 1:1, ... always reflect to the relation of the entry in the generation variant and the usage that is maintained one on the data.

What I want to know is whether it is possible to:

  • when on the data a validity area is excluded and the same validity area is present in the generation variant, data should not be displayed even when there is a positive match prasent as well. (e.g. positive match on region, negative match on use category).

  • when you defined the data as relevant for region EU and use category industrial, data should only be displayed when the generation variant contains both a region related to EU AND this industrial use.

Currently we solve this by creating multiple characteristics (use category specific) and selecting only on validity area region based on the generation variant.

Kind regards,

Luk

christoph_bergemann
Active Contributor
0 Kudos

Hello Luk

You wrote: When I understand the documentation of the validity area's correct, options subset, superset, 1:1, ... always reflect to the relation of the entry in the generation variant and the usage that is maintained one on the data.

This is exactly how the link is done between data in EH&S and the data which show up in WWI document (please exclude the topic of G group at the moment; this is special). Therefore the validity area entered in GenVar is the "Leading" validity area.

Regarding you questions some "basic" work is needed. May be this help you to find new options to solve your issue:

SAP EH&S uses the "validity area type" and the "validity area". Common used are the validity types:

REGION

DGREGION

PLANT

It seems that you have created a new validity area type USE_CAT with validity areas wich you have defined by your own.

I will give you only an overview about the "normal" use of REGION. In this case the validity area is normally a 1:1 relation to a country (defintion is done via customizing). A "special" validity area is REG_WORLD (please refer to SAP docu). REG_WOLRD contains automatically (without further doing) all other validity areas of type REGION. Now it is always possible to generate new "fictive" validity areas. E.g. you Could define the validity area "NAFTA" which would have a link to the countries: US, MX etc. These validiyta areas can be used in data maintenance and in the GenVar as well.

As I have no knowlede how you have defined the USE_CAT" validity areas I can not provide you hints. But I would like to provide further hints in using the "Excl." Flag of usage of the VAT

Example: if you use Rating 1 in combination with REG_WORLD, DE excluded and the GenVar has the leading validity area DE this value is not used in WWI report. But if the genVar would have the leading validity area BE it would be used.

Please check really carefully the topic of "subset, superset, 1:1,.." because this is the "key" issue if or if not a VAT will show up in WWI.

Now back to your next question:

  • when on the data a validity area is excluded and the same validity area is present in the generation variant, data should not be displayed even when there is a positive match prasent as well. (e.g. positive match on region, negative match on use category).

Now as explained above: if in VAT level a validity area is excluded but the same validity area is used as leading Validity area in WWI report the value will not show up. The same should be true if you have used "G groups" with discrete validity areas

Next question:

  • when you defined the data as relevant for region EU and use category industrial, data should only be displayed when the generation variant contains both a region related to EU AND this industrial use.

Here I would need more information. The GenVar contains by default only one leading validity area. Therefore any further "logic" must be applied by using "G Group" in the template and now things get "worse" in some sense.

If I remember correct the following should be true:

If you have used properly the G Group with "Use_CAT" in your WWI document this should work:

You have defined the VAT as : Rating + DE + IND. Now in a special section of your WWI report you have used the G Group. By using this the value should be printed but not a parallel VAT value with Rating + DE + FER.

If you have used this logic in your whole template I really salute because the WWI template is in my opinion very complex to understand and the logic how to retrieve the data from EH&S into the WWI report is complex too and the length of the report should have increased by at least 20 % or something like that

Now you have mentioned a further option you are using:

"Currently we solve this by creating multiple characteristics (use category specific) and selecting only on validity area region based on the generation variant."

If I underdstood your explanation correct you have done the following:

If necessary you have entered a further characteristic in the Class called "use CAT" which must have values. Then using the "if else etc." logic of WWI you select only those VATs into the WWI report which does have the correct "Use Cat".

Once again:hard work which you have done. In my opinion you should go on with this approach. In doing so you have implemented an "and" logic. Only if the Value does have DE and the UseCat (in characteristic) Is e.g. FER the value will be printed.

It is complex yes but the "G Group" is much complexer

Natural solution of demands like this is using further ratings to select the data properly. It seems to be you have excluded this option.

With best regards

C.B.

Edited by: Christoph Bergemann on Sep 4, 2011 5:50 PM

Edited by: Christoph Bergemann on Sep 4, 2011 5:54 PM

Former Member
0 Kudos

Hi Christophe,

Thank you for your extensive reply.

In will dive into it a little deeper.

In the mean time I got some information from SAP that this can also be solved using a user exit "VALAREA" on the main repeating group. This user exit makes use of FM C14N_GEN_EXIT_CHECK_VALAREA.

I'll try to find out how this works, somewhere this or next week as I don't really find information on user exits on WWI templates...

Kind regards,

Luk

christoph_bergemann
Active Contributor
0 Kudos

Hello Luk

upps. this is new to me. I have had no knowledge about it and the exit. Thanks .

Here is a docu: http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YD-EHS_UEXIT_GEN

The link is very interessant and one can start of thinking in options. So I learned something which I did not know about EHS.

So it seems to be "clear" how you could use this exit any may be it will help you using your approach

With best regards

C.B.

Edited by: Christoph Bergemann on Sep 15, 2011 4:56 PM

Former Member
0 Kudos

Hi Christoph,

Indeed, these kind of user exits can be used to use validity area's in a different way.

The user exit provided by SAP does not solve my issue but at least I know now of this technique to manipulate the template.

Thanks for the link by the way.

Kind regards,

Luk