Skip to Content
author's profile photo Former Member
Former Member

Problem in sending attachment using user decision Program Exit

Hi Peers, I am trying to send attachment in user decision step. I am able to send the attachment.

But I am facing below issues.

1. Duplicate attachments are displayed in the workitem.

2. interface instance to get container element is returning below exception.

VALUE = lv_attach
* UNIT =

Result is exception CX_SWF_CNT_ELEM_TYPE_CONFLICT.

Please let me know what type I should declare for variable lv_attach.

I tried below options

Data: lv_attach TYPE TABLE OF obj_record,

Data: lv_attach type REF TO OBJECT,

Data: lv_attach type REF TO SOFM,

Please suggest.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 12, 2014 at 07:08 PM


    Are you using fm SAP_WAPI_ATTACHMENT_ADD?

    What is the purpose of LV_CONTAINER->GET if, as you say, you are able to send the attachment?


    Rick Bakker

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.