cancel
Showing results for 
Search instead for 
Did you mean: 

method for reading graphic from phrase

holger_hartung
Contributor
0 Kudos
355

Hi,

I'm looking for a method which can read and give back graphic from phrases for a symbol. I need these method because of a complex logic which is not realize by conditional formating...

Accepted Solutions (1)

Accepted Solutions (1)

satya11719
Active Contributor
0 Kudos

Hello daytona80

May be you can find out something from the below function modules , please check the code inside it.

C14N_SYM_DUPL_CHECK_INIT

C14N_SYM_DUPL_CHECK

C129X_SYMBOL_VALUE_FETCH

Regards

Satya

Answers (3)

Answers (3)

christoph_bergemann
Active Contributor
0 Kudos

Dear Holger

i am not aware of any special function module you are looking for. This is all done "very deep" in the WWI generation process. The corresponding "name" of the "graphic" is retrieved from phrase position and then used in the value file generation. Then as part of the overall WWI process the "file name" is exchanged (by using Win Word functionality) by the "graphic" (which MUST be located in a local folder on you Windows client)

In one of the many threads a discussion was running that somebody has prepared a 100% customer like solution. In this case: The graphic was not located on local Windows client (or WWI server) but in DMS of SAP. But this will not help you.

So sorry to say: No futher help possible. Check generally function module e.g. C129X_SYMBOL_VALUE_FETCH

C.B.

PS: ONLY as reference: https://answers.sap.com/questions/10207302/index.html

christoph_bergemann
Active Contributor
0 Kudos

Dear Holger

the use of characteristics which are "phrase based" in a material class / characteristic is related to a "very complex" WWI set up and other set up but it is possible.

Your scenario is "slightly different" (trying to read between the lines)

Question: do you use "phrase based" charactersitics in the material class

Assuming you are not using something like that: this would be my story:

1.) we are talking about a WWI parameter topic (as material driven)

2.) now you are able to "catch" the value from characteristic

3.) you you do "something in ABAP"; at the end somehow you can relate a "value" to a "phrase" having a "graphic"

Now you would like to use this WWI standard option to get "back" the graphic to show somehow in the WWI report.

I am pretty sure that a solution is possible; but this is 100% customer specific and therefore the solution is 100% on your side

C.B.

PS: can you simplify your approach by using "phrase based characteristics" direct?

PPS: check e.g.

https://answers.sap.com/questions/10295773/sap-ehs-wwi-graphic-rotation.html

https://answers.sap.com/questions/12840500/insert-graphic-in-wwi-report-dynamically.html

https://answers.sap.com/questions/6203324/wwi-rotate-graphics-from-phrases-on-a-template.html

https://answers.sap.com/questions/12630346/picuture-from-dir-into-wwi-template.html

https://answers.sap.com/questions/10980565/wwi-error-graphic-file-has-invalid-format.html

https://answers.sap.com/questions/10207302/wwi-insert-graphics.html

So to print a "graphic" is easy using WWI options (in the background some SAP function modules are used; but there is no "specific" function module etc. available (as far as i know) for your "business story"

holger_hartung
Contributor
0 Kudos

Hi Christoph,

no no, I read characteristic of material master classification (classtype 001) via ABAP in z methode in wwi symbol. I have not mentioned that I use phrases for that.

I would combine that results from material classification with text phrases which have a symbol on board.

If charc. of material master = A than phrase 0001

If charc of material master = B than phrase 0002

For that I would like to use ABAP but I'm looking for fm do read and display graphics from phrases.

holger_hartung
Contributor
0 Kudos

Hi Mark and Christoph,

background: I already had have a symbol based on matnr with z-method which read and give back characteristic from material classification (001). These characteristics could be up to ten (eg. A, B, ...) On the other side I have phrases with symbols (jpg, bmp on postion, eg CUST-A) which I assign to these chara. via ABAP (eg. If A -> CUST-A or B _> CUST-B,...)

So I'm looking for a function modul or method to read graphics (jgp, bmp) from phrases ESTPH/*PP and then gave back to symbol as output and display in WWI.