Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

pie chart

Former Member
0 Kudos

hi,

thanks for ur reply kai.

am passing the format value as

1) IF_GRAPHIC_PROXY=>co_format_bmp . but still am getting the picture in jpg .

CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT

EXPORTING

FORMAT = IF_GRAPHIC_PROXY=>co_format_bmp

WIDTH = 10000000

HEIGHT = 30000000

NAME = 'C:\S'

IMPORTING

CONTENT_TYPE = ct

CONTENT_LENGTH = cl

CONTENT = t

RETVAL = RETVAL

.

2) is there any funtional module / class / program to convert jpg to bmp .

3) the content is T is empty if i comment name parameter ?

4) is there any way so that i can directly add this picture in se78 .

  • is there any way that i can mail u directly .

cheers

senthil

6 REPLIES 6

kai_gutenkunst
Active Contributor
0 Kudos

Hi,

please implement note 584593.

If parameter name is empty the export method returns the chart as an internal table, otherwise it is saved as a file.

With 6.40 the IGS provides an image converter, see the topic "Using an IGS Graph in Smartforms" in this forum.

BTW, why don't you append your comments to your first question instead of creating several new topics about the same issue in this forum?

Regards, Kai

0 Kudos

WHEN 'SAVE'.

CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT

EXPORTING

FORMAT = IF_GRAPHIC_PROXY=>co_format_bmp

WIDTH = 10000000

HEIGHT = 30000000

<b>NAME = ' '</b>

IMPORTING

CONTENT_TYPE = ct

CONTENT_LENGTH = cl

CONTENT = t

RETVAL = RETVAL

.

if i give space to name parameter . the method is not returning any content value in 't' .

is this the solution for this

1) do we need to implement the oss note # 584593 .

0 Kudos

hi ,

i got the solution for my above question . now when i am using the method

WHEN 'SAVE'.

CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT

EXPORTING

FORMAT = IF_GRAPHIC_PROXY=>co_format_bmp

WIDTH = 10000000

HEIGHT = 30000000

NAME = ' '

IMPORTING

CONTENT_TYPE = ct

CONTENT_LENGTH = cl

CONTENT = t

RETVAL = RETVAL

.

am able to get the content in table t .

1) i wann to upload the pic data in 't' into the table stxbitmaps using the funtion module SAPSCRIPT_IMPORT_GRAPHIC . is it possible ?

cheers

senthil

0 Kudos

WHEN 'SAVE'.

CALL METHOD GP_INST->IF_GRAPHIC_PROXY~EXPORT

EXPORTING

FORMAT = IF_GRAPHIC_PROXY=>co_format_bmp

WIDTH = 10000000

HEIGHT = 30000000

NAME = ' '

IMPORTING

CONTENT_TYPE = ct

CONTENT_LENGTH = cl

CONTENT = t

RETVAL = RETVAL

.

am able to get the content in table t which is in hex format . i want to upload to se78 automatically . using the funtional module. please mention the fm which will convert xa to binary.

cheers

senthil

Former Member
0 Kudos

Thanks problem resolved.

Former Member
0 Kudos

Hi,

I have similar problem which is including jpg in SAP Smartforms. Please let me know how you solved your problem.

Thanks in advanced