cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically access image from MIME in sapscripts or smartforms..

Former Member
0 Kudos

Hello Abapers ,

I had one problem , i want to dynamically print the images that are stored in MIME repository in smart forms or sap scripts , if any one knows please tell me the ways to get the result ,

please help me in this issue , thank you

bye

Raj..

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

closed.

Former Member
0 Kudos

hi,

kindly share your solution

regards,

hasan

Former Member
0 Kudos

Hi

Based on a condition, you can definitely call the script or smartform required. But dynamically, I am not sure it is possible.

For example, based on company code..you want to call the logos:

if bukrs = a001.

logo1.

else.

logo2.

endif.

Regards,

Vishwa.

Former Member
0 Kudos

Hai

I want to take it from MIME repository not from se78, is there any way to take it from mime repository.

regards

raj

Former Member
0 Kudos

Hi

Check this FM: SAP_OI_LOAD_MIME_DATA,

Regards,

Vishwa.

Former Member
0 Kudos

Can you pls send me breifly how i will take the image and put it in sapscript or smartforms..

regards

Raj

Former Member
0 Kudos

CALL FUNCTION 'SAP_OI_LOAD_MIME_DATA'

EXPORTING

OBJECT_ID = DESCR-DOCUMENT_ID

IMPORTING

DATA_SIZE = DOC_SIZE

DOCUMENT_FORMAT = DOC_FORMAT

DOCUMENT_TYPE = DOC_TYPE

TABLES

DATA_TABLE = DOC_TABLE

EXCEPTIONS

OBJECT_NOT_FOUND = 1

INTERNAL_ERROR = 2

OTHERS = 3.

Former Member
0 Kudos

Thank you for your fast replay

what is the object_id i have to pass for the export parameter.