cancel
Showing results for 
Search instead for 
Did you mean: 

Need to display gantt chart as a image in Adobe Form

Former Member
0 Kudos

Hello Experts,

I have a requirement that to display a gantt chart in adobe form.For this i am using the method get_gantt_data from the class cl_dpr_ui_log_gantt.

using this method i am getting xstring data in to a variable and we are mapping it to Grapic field.But i am unable to display the gantt chart.Is their any possibility to convert gantt chart in to image.

Please help me.

Below is the code which we used in adobe form interface.

DATA lr_gantt TYPE REF TO cl_dpr_ui_log_gantt.

CALL METHOD lr_gantt->get_gantt_data
   EXPORTING
     it_objects         = lt_objects
     iv_debug           = lv_debug
     is_sel_obj         = ls_obj_event
     it_entry_obj_event = lt_entry_obj_event
   IMPORTING
     ev_gantt_data      = gv_gantt_data
*    ev_gantt_data_id   =
*    ev_title           =
   EXCEPTIONS
     open_failed        = 1
     OTHERS             = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

gv_var = 'image/bmp'.

Mapping of the field:

Thank you,

Manasa Veena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Veena,

Can you check if you have bind your xstring variable to the the FIELD entry under graphic content?

regards,

Xiang Li

Former Member
0 Kudos

Hi Xiang Li,

Thanks for your response .I binded the xstring variable to the the FIELD  under graphic content and passed MIME type as 'MIME/IMAGE/BMP/GIF'. But the chart is not getting displayed. I tried by passing only BMP for MIME type ,but issue was not resolved .

Please suggest me if there is any other way to solve the issue.

Thank you,

Manasa Veena

Former Member
0 Kudos

Hi All,

Sorry for delay in Reply.

I have solved this requirement.

It is not possible to create gantt chart as a image in Adobe Form but possible in Webdynpro's.

I used normal chat to full fill the requirement.

Regards,

Manasa Veena P.

Answers (0)