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

how to give the application server file path in the module pool programming

Former Member
0 Likes
373

Hi,

Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.

For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,

if container2 is initial.

CREATE OBJECT CONTAINER2

EXPORTING

CONTAINER_NAME = 'PICTURE_CONTAINER2'.

CREATE OBJECT PICTURE2

EXPORTING

PARENT = CONTAINER2.

CALL METHOD PICTURE2->SET_DISPLAY_MODE

EXPORTING

DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center

EXCEPTIONS

ERROR = 1.

CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL

EXPORTING

URL = " ? "

EXCEPTIONS

ERROR = 1

Others = 2.

endif.

Thanks in advance

Deepu

Hi,

Could somebody help me how to provide the application server file path in module pool programming once the logo is uploaded to sap system.

For eg I have imported a logo name ‘owens’ into sap system by using transaction ‘se78’; now I need to call the path in the below url,

if container2 is initial.

CREATE OBJECT CONTAINER2

EXPORTING

CONTAINER_NAME = 'PICTURE_CONTAINER2'.

CREATE OBJECT PICTURE2

EXPORTING

PARENT = CONTAINER2.

CALL METHOD PICTURE2->SET_DISPLAY_MODE

EXPORTING

DISPLAY_MODE = CL_GUI_PICTURE=>display_mode_fit_center

EXCEPTIONS

ERROR = 1.

CALL METHOD PICTURE2->LOAD_PICTURE_FROM_URL

EXPORTING

URL = " ? "

EXCEPTIONS

ERROR = 1

Others = 2.

endif.

Thanks in advance

Deepu

1 REPLY 1
Read only

Former Member
0 Likes
327

hi Deepu,

Use FM '/SAPDMC/LSM_F4_FRONTEND_FILE' for fetching the data from the application server path/presentation server path

Regards,

Santosh