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: 

GOS Attachment: give me a list

Former Member
0 Kudos

Hello,

I have this problem:

in QM-Notification we have attached documents (.jpg),

now I shall print in a SmartForms a list ao this attachments, as you get it when using the transaction (or FM GOS_ATTACHMENT_LIST_POPUP),

but no popup, i just only want a simple internal table to pass it to the SmartForms and print it out ...

Any hints ?

Some FM (with which OBJECT_ID ???)

or some source code how to use a method ?

Thanks a lot and have a good weekend.

Regards

Bernhard

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Bernhard,

I don't know any FM or method - so I have selected directly from DB

select YOUR_FIELDS from srgbtbrel into YOUR_TABLE
               where instid_a = YOUR_KEY
                 and   typeid_a = YOUR_TYPE
                 and   catid_a = 'BO'.

hope that helps,

kind regards,

Holger

4 REPLIES 4

Former Member
0 Kudos

Hi Bernhard,

I don't know any FM or method - so I have selected directly from DB

select YOUR_FIELDS from srgbtbrel into YOUR_TABLE
               where instid_a = YOUR_KEY
                 and   typeid_a = YOUR_TYPE
                 and   catid_a = 'BO'.

hope that helps,

kind regards,

Holger

0 Kudos

Thanks Holger,

in table srgbtbrel I have only an INSTID_B = 'FOL18 4 EXT33000000000572' or a GUID, but I want to get the name or title of the attachment, where is the connection to this ?

Regards

Bernhard

0 Kudos

note 530792 gives a lot of information

table SOOD contains the title of the attachment

kind regards

arthur de smidt

Edited by: A. de Smidt on Sep 8, 2008 10:44 AM

Edited by: A. de Smidt on Sep 8, 2008 10:48 AM

former_member194669
Active Contributor
0 Kudos

Hi,

You can try this way


  i_object1-typeid = 'BUS2017'.
  i_object1-catid  = 'BO'.
  i_object1-instid = i_item-docno.
  call method cl_gos_attachment_query=>count_for_object
    exporting
     is_object = i_object1
     ip_arl    = space
    receiving
     rt_stat   = i_stat1.