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

Regarding Uploading image in se78 through program.

Former Member
0 Likes
2,237

Hi,

SAP Gurus,

My requirement is follows,

I need to upload an image in SAP to print in Smartforms using a program.

This is because I am downloading the image from other pc to my desktop

using a program and in the same program I am print the image on the smartform.

so, I need to Upload the image before calling the smartform.

I have tried using recording for SE78, but not working

Please suggest

Thanks and regards,

Pavan.

1 ACCEPTED SOLUTION
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,267

Check this program  RSTXLDMC

Also check the Subroutine in the program SAPLSTXBITMAPS and Include LSTXBITMAPSF05   

Just copy the same code in your custom program where u want to upload the Image..

      perform graphic_import_bds using    rlgrap-filename
                                        stxbitmaps-tdname
                                        stxbitmaps-tdobject
                                        stxbitmaps-tdid
                                        stxbitmaps-tdbtype
                                        bds_description
                                        stxbitmaps-resident
                                        stxbitmaps-autoheight
                                        stxbitmaps-bmcomp
                               changing stxbitmaps-resolution.

This will use to upload images into SAP System..

Hope this helps...

Hi,

SAP Gurus,

My requirement is follows,

I need to upload an image in SAP to print in Smartforms using a program.

This is because I am downloading the image from other pc to my desktop

using a program and in the same program I am print the image on the smartform.

so, I need to Upload the image before calling the smartform.

I have tried using recording for SE78, but not working

Please suggest

Thanks and regards,

Pavan.

4 REPLIES 4
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,268

Check this program  RSTXLDMC

Also check the Subroutine in the program SAPLSTXBITMAPS and Include LSTXBITMAPSF05   

Just copy the same code in your custom program where u want to upload the Image..

      perform graphic_import_bds using    rlgrap-filename
                                        stxbitmaps-tdname
                                        stxbitmaps-tdobject
                                        stxbitmaps-tdid
                                        stxbitmaps-tdbtype
                                        bds_description
                                        stxbitmaps-resident
                                        stxbitmaps-autoheight
                                        stxbitmaps-bmcomp
                               changing stxbitmaps-resolution.

This will use to upload images into SAP System..

Hope this helps...

Read only

Former Member
0 Likes
1,267

Use the function module  SAPSCRIPT_IMPORT_GRAPHIC_BDS

Felipe.

Read only

Former Member
0 Likes
1,267

Thanks,

Solved with little workout.

Read only

0 Likes
1,267

Hi Pavan,

Can you let me know how did you resolve...

I have the requirement that i will receive the image in byte format  from the Third-party system..

I need to convert that byte to image & store it in SAP...

Kindly help on this please....

Thanks & Regards,

A.K.Shyam Sundar