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

Services for Objects -> attachment List

Former Member
0 Likes
6,012

Dear all,

Can anyone tell me when we go to any display Transaction say me23n which if for Purchase Order,

We click on Services for Objects.

If there is some document linked to that PO, then attachment list becomes enabled else it is disabled.

moreover when we click on attachment List, the number of docs attached to that particular PO are shown.

How the count comes. I know the entries are present in TOA01 but which method is actually called to display the docs??

Can anyone please tell me

Dear all,

Can anyone tell me when we go to any display Transaction say me23n which if for Purchase Order,

We click on Services for Objects.

If there is some document linked to that PO, then attachment list becomes enabled else it is disabled.

moreover when we click on attachment List, the number of docs attached to that particular PO are shown.

How the count comes. I know the entries are present in TOA01 but which method is actually called to display the docs??

Can anyone please tell me

2 REPLIES 2
Read only

Former Member
0 Likes
2,264

HI ,

if you wanna find no.of attachments for any objects then u can simply call this method.

      call method cl_binary_relation=>read_links

        exporting

          is_object           = object-->your object details..

          it_role_options     = role

          it_relation_options = relation

          ip_no_buffer        = 'X'

        importing

          et_links            = et_links.

check for sample code and syntax as well..

Prabhu

Read only

arindam_m
Active Contributor
0 Likes
2,264

Hi,

The table in which the attachments are stored is SOFFCONT1 table. Business objects are stored in Archiving tables like TAO..

And the above mentioned method will work,

cl_binary_relation=>read_links

Cheers,

Arindam