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: 

read attachment exists or not

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

arseni_gallardo
Active Participant
0 Kudos

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.

1 REPLY 1

arseni_gallardo
Active Participant
0 Kudos

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.