cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VOC highest value

0 Likes
396

Hi Guys,

There are two Volatile Orgnaic Compounds values getting displayed, but our requirement is to get the highest value among the two values.

Please let us know if you have any solution for this.

Regards,

Rafi Mohammed

Accepted Solutions (0)

Answers (1)

Answers (1)

Ralph_P
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Rafi Mohammed,

If there are two values maitained, you will always see both in CG02. I guess you are talking about tonly the higher one getting printed on a SDS? Then you need to use the conditional output (http://help.sap.com/erp2005_ehp_06/helpdata/EN/a7/2873890a6c11d28a220000e829fbbd/frameset.htm) on your template. Using the operator GT you can selectively print the higher one of the two.

Ralph

christoph_bergemann
Active Contributor
0 Likes

Hello all

in case WWI is effected: refer to e.g.: :http://forums.sdn.sap.com/thread.jspa?threadID=2118141&tstart=0

In case you think of outputvariants: you "could" use the standard one (EXCEL) and then do filtering in Excel o you can copy this EXCEL variant to a customer specific output variant and then try to implement the "filter" before the output is done

On the top: In case of WWI: you can hav a "number" of values in EH&S per property. An example can be density. You can have density stored with 15 °C, 20 °C and 50 °C. By using the rating of the value assignment together with the definition of the generation vairant you could specify a rating which will bes used with "higher" priority in WWI process so you need no "conditional mapping" in WWI but the user is specifing the "highest" value using the rating. This process could be supported by using "rulesets"/"Secondary data determination" programming to do it "automatic".

Using the WWI approach with conditional mapping does have "pros" and "cons". The same is true in using the different "rating" approach. I prefer we "rating" variant because than the "printing" is related to "usage" logic of the value assignment and not to the conditional output WWI technique there the "end user" might have problems in understanding "easily" why this value is printed in WWI document in comprison to the status of the property and the existing values. The rating approach is used e.g. in DG filling, QM interface etc.

With best regards

C.B.

0 Likes

Hi C.B,

We have gone through your saying, but still we are not able to end it up with the perfect solution.

Could you please send me the code if you have any for comparing the VOC values and picking the highest one among.

Regards,

Rafi

0 Likes

Hi Ralph,

Thanks for the information.

Please can put on the sample code so as how to compare the values among to get the highest one.

<11BRG000(M,SAP_EHS_1023_041;*)><01G1023041VG[D:VOC in g/l]<11ERG000>

This is the parameter symbol we are using fo displaying multiple VOC values, kindly let us know the approach so as to get the highesg VOC value using above parameter symbol.

Regards,

Rafi

Ralph_P
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Rafi,

I have to contradict myself, conditional output will not do the trick, you have to use a stack. I haven't testd the code below, but it ought to work. Please check the name space of the function modules, it may not be /TDAG/CS104 in your system but rather C14N or ZISI104. You need to check that in SE37.

(Initialize a stack for VOC Value) <11BRG004(M,SAP_EHS_1023_041;*)><01G1023041VG(M:/TDAG/CS104_SYM_STACK_NEW)[D:VOC in g/l]>

<11ERG004>

(Push results on stack, i.e VOC values)

<11BRG064(M,SAP_EHS_1023_041;*)>

<01G1023041VG(M:/TDAG/CS104_SYM_STACK_PUSH)>

<01G1023041VG(M:/TDAG/CS104_SYM_STACK_SORT_DSC)> sort stack in descending order

<11ERG064>

If stack has any value, print the first value, i.e. the highest one:

Higher value: <13BNG006(+:01G1023041VG(M:/TDAG/CS104_SYM_STACK_TOP))><01G1023041VG(M:/TDAG/CS104_SYM_STACK_TOP)[D:VOC in g/l]><13CNG006> no value

<13ENG006>

Ralph

JuanCarlosDelga
Contributor
0 Likes

Hi Ralph,

Thanks for the answer, in my system I've the following functions:

C14N_SYMBOL_STACK_PUSH

C14N_SYMBOL_STACK_TOP

Regards.

JCD

0 Likes

Hi Ralph,

Thanks a lot for the technical details with respect to VOC highest value.

Will implement the same and get back to if any issues.

Regards,

Rafi

0 Likes

Hi Ralph,

We have implemented the code as said by you, it's perfectly working now.

Thanks lot for your great help...!!!!

Regards,

Rafi

0 Likes

Hi Ralph,

We have introduced the code we are able to preview the label perfectly. But when our client tries to print the label he is unable to do it.

Below is the log that we received

I000 Trace:

I000 ======

I000 02/10/12 09:16:55 Start Function 'WWI_GENERATE_LABEL'

I000 Initializing parameters

I000 Receiving data from client

I000 wait for semaphore

I000 semaphore allocated

I000 License check: I000 EH&S License verified.

I000 starting resolve for mode L

I000 Writing Result File

W000 WARNING: The height of the labelstock is too small for this amount of rows and margin. Labels may be printed on the next page.

W000 WARNING: The left edge of the shape 1036 is larger than the defined height of the label! The shape will probably not be visible on the label. Please check the template.

W000 WARNING: The right edge of the shape 1036 is larger than the defined height of the label! The shape will probably not be visible on the label. Please check the template.

W000 WARNING: Unknown rotation case! Got following data: PaperWidth=612.050009;PaperHeight=792.050012;LabelWidth=612.077000;LabelHeight=396.050000;LandscapeFlag=0

I000 GenerateLabel got 'SUCCESS' (0) as result from 'WWILABEL.DLL' and cleans up now

I000 Initializing Word connection at 02/10/12 09:16:55

I000 Initializing winword.exe process list

I000 Updating winword.exe process list

I000 Closing Word connection at 02/10/12 09:17:00

I000 process exit code: 0

I000 release semaphore

I000 Initializing result-file for OrderNo. 00000000000000001882

I000 Checking results returned from WWI in the Result-File

I000 Checking existence of generated file C:\WWI\WWI_GENSERVER_SYN_DEST\P00000000000000001882.PRN

We have analyzed it and found that there are some differences in width of the label with respect to the paper which is being used for print. But there is a statement in the log 'I000 GenerateLabel got 'SUCCESS' (0) as result from 'WWILABEL.DLL' and cleans up now', we are unable to understand this. This says the label is SUCCESS and also says WWILABEL.DLL cleans.

Could you please let us know if the label data is getting cleared once it is generated.

Regards,

Rafi

Ralph_P
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Rafi,

I suggest you open a new thread for this so the GLM gurus find it more easily. I am not that savvy in GLM to be able to help you.

Ralph