on ‎2011 Jan 19 9:56 AM
Hi all
In our implementation of SAP EHS we also use WWI for a Word document. Most of the data which is put in the document comes from default SAP symbols. The values of those symbols come from tables and characteristics. But some are coming from custom fields and with those we have a problem.
In our WWI document we would like to add some custom fields. The values of those custom fields cannot be retrieved via default SAP characteristics or tables. So we have made our own symbols, symbol groups and so on.
Also we have created an own custom structure and use the fields of this structure for the custom symbols.
We have add this structure to the known structures for WWI with Specify tables for Report Symbol Generation. And also connected to our own made symbol group.
All the custom symbols are created with 'Check and specify report symbols' for WWI with the type TABLE.
In 'Specify Report symbol groups' we had seen that we can add a function module to our made symbol group.
Also this symbol group is known in the transaction CG42 where we created the WWI document.
In this function module the values of the default SAP symbols are retrieved and we have add an enhancement.
In this enhancement the values of our custom made symbols are retrieved and filled just like the default SAP symbols.
When we start the WWI from transaction CBIH82, the function module is started, we see that the default SAP symbols are retrieved and filled in the WWI document. And after it, our enhancement is started, and our custom symbols are also set with a value in the EXPORTING parameter of the function module, we can see this in the debugging modus.
But when the document is started in word none of our custom made symbols are visible in the word document. And the default SAP custom symbols are.
So i think we forgot something or we have not the good solultion for adding our own symbols with custom logic to a WWI.
Does anybody know this? What do we wrong? Or do you know a better solution?
I kindly hear from you!
Anton Pierhagen
Request clarification before answering.
Hi AntonPierhagen2,
Have you already done this?
In 'Specify Report symbol groups' when creating new report symbol groups for default parameter determination, the function C120_PARAMETER_VALUES_SELECT must always be entered as the function module for symbol expansion.
Regards
JCD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, indeed. The function module is connected to our symbol group. in row Symbol Expension Function module.
In the other row function module Foreign key function module' we had set the enhancement which put our custom objects with their values to the EXPORT parameter.
I see now the row where this function module 'C12O_PARAMETER_VALUES_SELECT_N ' is used, calls Symbol Expension Function module. Do we have to put here our values in? Or are we on the right path?
Hi,
In general you're doing the right things - however I have not implemented custom symbols for Incident Accident in a long time.
I would do the following:
Instead of creating an enhancement on a existing SAP FM - just create your own FM in the customer name space that has the interface of 'CBIH_IA18_DEFAULT_PARAM_IAREP'.
Make sure that your report symbols are from 'Rp. sym. type' = 'Parameter'.
In the coding of the custom FM you need to make sure that in the export table the field
OBJECT = 'Table Name' (Structure) you used in the Symbol definition
ATTRIB = 'Field Name' you used in the Symbol definition
VALUE = The value
VALUETYPE = IC_SYMBOL_TYPE-<choose the fitting type> (See Include CBUI13)
SORT = 1 if it is just one value - otherwise n+1.
Hope this helps
If not post a screenshot of E_CVDDP_TAB where we can see how it was filled form your custom FM and a screenshot from the symbol definition.
Greets
Mark
P.s.: Did you see my answer on your other question in this thread
Hi Mark
I have filled the table, but on the WWI they are still not visible.
When i put the whole interface as the function module you described, i don't need the enhancementpoint. Thank you for that.
I have made 2 screenshots, one of the table and one of the customizing in SPRO:
[http://www.xs4all.nl/~pierhage/scr1.jpg]
It is number 21.
and
[http://www.xs4all.nl/~pierhage/scr2.jpg]
Also, sort is filled. from 1 till the last one, i believe 21.
Edited by: AntonPierhagen2 on Jan 20, 2011 5:04 PM
Hi Anton,
The triple OBJECT ATTRIB ORD needs to be unique - in your case all the values in the table have the same OBJECT ATTRIB and ORD.
In my previous post i wrote SORT instead of ORD - sorry for that!
It looks like you are trying to selecting data for multiple Incidents, is that correct?
Greets
Mark
I have found the solution
In the function module which can be set in the 'Foreign key-function module' tab of the EHS report symbol group transaction.
We have create the new symbols.
In the function module which can be set in the 'Symbol extension-function module' tab of the EHS report symbol group transaction we set the values of the created symbols when they are used. And then it works!
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.