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: 

Dynamic upload of images fails

Former Member
0 Kudos

Hi,

Due to some requirement, we have maintained images in the Application server in JPEG format and at run time we are trying to read the image using Datasets , convert it to BMP using IGS methods, upload it to BDS and create corresponding document entry in the table STXBITMAPS and then use it where we need it - after usage we are again deleting the entry by using the Function Module SAPSCRIPT_DELETE_GRAPHIC_BDS.

The issue is even though we manage to convert the image and create an entry in STXBITMAPS table, the image is not visible in SE78. We are using the standard form IMPORT_BITMAP_BDS of the program saplstxbitmaps and all the methods return a subrc value of 0 so we are unable to figure out if there is something wrong with the code or with the existing settings and configurations -- point to be noted is the system is currently being upgraded from SAP 4.6 to ECC and this requirement is being tried out in ECC.

Any pointers on where to possibly look are highly appreciated.

Thanks.

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

How do you generate the image in BDS?

Regards,

Naimesh Patel

Former Member
0 Kudos

I am using the standard code of Perform IMPORT_BITMAP_BDS of the program saplstxbitmaps to ensure that the image gets imported into BDS.

Former Member
0 Kudos

The issue was because the image name was being passed in lower case. Issue resolved now.