10-22-2011 5:45 AM
Hii All..
I have one Zprog with attachment option.
to display attachment in report i m using class CL_GOS_MANAGER and method START_SERVICE_DIRECT.
my requirment is if attachment file exists change icon .
so how to read attachment file exists or not?
Thanks in Advance
Regards
Vshal
10-22-2011 2:44 PM
You have to use the same method CL_GOS_MANAGER=>START_SERVICE_DIRECT, informing parameter IP_CHECK_AVAILABLE:
call method lr_manager->start_service_direct
EXPORTING
IP_SERVICE = 'VIEW_ATTA'
IP_CHECK_AVAILABLE = 'X'
IMPORTING
EP_AVAILABLE = lv_available.
This way the service will not be launched and you will know whether there are attachemnts or not.
10-22-2011 2:44 PM
You have to use the same method CL_GOS_MANAGER=>START_SERVICE_DIRECT, informing parameter IP_CHECK_AVAILABLE:
call method lr_manager->start_service_direct
EXPORTING
IP_SERVICE = 'VIEW_ATTA'
IP_CHECK_AVAILABLE = 'X'
IMPORTING
EP_AVAILABLE = lv_available.
This way the service will not be launched and you will know whether there are attachemnts or not.