Application Development and Automation 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: 
Read only

Placing graph in e-mail body

Former Member
0 Likes
1,668

Hi,

We have a requirement where a report program needs to be developed which places the graph output in e-mail body and sends across. The data required for graph is made available in the program and it will be run in the background mode. Request you to help me out with possible ways of achieving the requirement.

Regards,

~Athreya

Hi,

We have a requirement where a report program needs to be developed which places the graph output in e-mail body and sends across. The data required for graph is made available in the program and it will be run in the background mode. Request you to help me out with possible ways of achieving the requirement.

Regards,

~Athreya

7 REPLIES 7
Read only

Former Member
0 Likes
1,190

H,

Use graph_matrix_3d FM.

Set appropriate parameters for sending mail.

mail_allow = SPACE          "               Allows sending the graphic as mail

*   so_contents = SPACE         "               Subtitle of generated SAPoffice document

*   so_receiver = SPACE

Refer this doc for info on this FM


http://scn.sap.com/docs/DOC-46553

Read only

0 Likes
1,190

Susmitha,

Thanks for your reply. But my requirement is that I should capture the generated graph as an image and place it in the e-mail body along with condition that the custom program will be run in background. If I use any of the graph generating FMs during background run, it will result in runtime error because those FMs need active GUI for the graph display.

Do let me know if there is any other way.

Regards,

~Athreya

Read only

0 Likes
1,190

Hi Athreya,

If you go inside the FM graph_matrix_3d, you can see the function that is being used to send mail.

Probably you can use just that function in your program so that the requirement of GUI can be done with.

See the follwoing subroutines used in the FM.

GR_SEND(SAPLGRAP)

GR_SEND_C(SAPLGRAP)

And the final function module that is used to send the graph. (lines 527-536)

IF NOT SO_SEND IS INITIAL.           "// OBJ_STAT = 'CREATE'
     CALL FUNCTION 'GRAPH_OBJ_SO_SEND'
          EXPORTING
               APP_TYPE = DEF_ID
               CONTENTS = SO_CONTENTS
               TITLE    = SO_TITLE
               OBJ_ID   = ID_TEXT
               RECEIVER = SO_RECEIVER.
   ENDIF.

Read only

0 Likes
1,190

Hi Susmitha

I have a query, i want to know how to call the reports i.e. classical/interactive/avl reports using module pool?

Read only

0 Likes
1,190

This message was moderated.

Read only

0 Likes
1,190

Hi Karan,

With in the screens navigation in module pool, are using the call screen, leave to screen or set screen syntax's.

If you want to call the reports or list from module pool need to use the below syntax at PBO or PAI

This statement can be executed during PBOand PAI processing. After processing the current dynpro, this statement interrupts the respective dynpro sequence, starts the list processor, and displays the basic list. The basic list consists of the list outputs of all PBO and PAI modules of the dynpro sequence executed to this point. The statement has no effect in the event blocks for reporting events and list events

leave to list-processing and return to screen 0.

check the demo program :  DEMO_DYNPROS_AND_LISTS

Read only

Former Member
0 Likes
1,190

Hi Athreya,

Check this Program  GRBUSG_3.

or

Check where used list using this FM GRAPH_MATRIX_3D.

With regards,

SKR