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: 

Table field:= Sales order is having attachments or not;

Former Member
0 Kudos

Hi All,

I appreciate your help on the below please;

I need to check the Sales order is having attachments or not;

Appreciate if you know the SAP table field for the above check please;

Thanks

Iver

1 REPLY 1

Former Member
0 Kudos

Hi,

Try out this.

DATA: is_object TYPE sibflporb,

it_relation_options TYPE obl_t_relt,

is_relation_options TYPE obl_s_rolt,

gt_links TYPE obl_t_link.

is_object-instid = <sales order number with leading zeros>.

is_object-typeid = 'BUS2032'.

is_object-catid = 'BO'.

*u201Ddocument relation

is_relation_options-sign = 'I'.

is_relation_options-option = 'EQ'.

is_relation_options-low = 'ATTA'.

APPEND is_relation_options TO it_relation_options.

TRY.

CALL METHOD cl_binary_relation=>read_links

EXPORTING

is_object = is_object

it_relation_options = it_relation_options

IMPORTING

et_links = gt_links.

ENDTRY.

GT_LINKS should be filled if sales order has attachment.

Regards,

Sudhakar