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

Container -- Urgent

Hi,

Iam creating a workflow and a container and i have to update container with multiple values (i.e pass internal table values into that container ) .

but Its working for single entry.

How can it be acheived for multiple.

Regards,

Vimal

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 06:41 AM

    Use macro SWC_SET_TABLE which is used to set value in container element that is Multiline.

    Thanks

    Arghadip

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vimal,

      check the following code

      data : i_event_cont type table of SWR_CONT,

      i_event_msg TYPE TABLE OF swr_mstruc, " Message Struct

      i_event_msgline TYPE TABLE OF swr_messag. " Message

      data : I_event_cont_wa like i_event_cont

      • Event Container declaration

      • swc_container i_event_cont.

      • swc_create_container i_event_cont.

      i_event_cont-element = 'container'.

      i_event_cont-value = I_MATERIAL_BASICDATA .

      APPEND i_event_cont.

      i_event_cont_wa-element = 'MAT_HDR'.

      i_event_cont_wa -value = i_material_head .

      APPEND i_event_cont_wa to i_event_cont.

      i_event_cont_wa -element = 'MAT_DESC'.

      i_event_cont_wa -value = wa_material_desc .

      APPEND i_event_cont_wa to i_event_cont.

      CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'

      EXPORTING

      task = 'WS97400242'

      LANGUAGE = SY-LANGU

      DO_COMMIT = 'X'

      • USER = SY-UNAME

      • START_ASYNCHRONOUS = ' '

      • DESIRED_START_DATE =

      • DESIRED_START_TIME =

      • DESIRED_START_ZONLO = SY-ZONLO

      • IFS_XML_CONTAINER =

      IMPORTING

      • RETURN_CODE =

      WORKITEM_ID = lv_workitem

      • NEW_STATUS =

      TABLES

      INPUT_CONTAINER = i_event_cont

      MESSAGE_LINES = i_event_msgline

      MESSAGE_STRUCT = i_event_msg

      • AGENTS =

      .

      catch the message while debugging

      Thanks & Regards

      Hari Sankar M

  • Posted on Dec 03, 2007 at 08:07 AM

    Use SWC_SET_TABLE container 'TABLENAME' LOCALTAB[].

    it should work.

    thanks & regards,

    Sudhahar R.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 03, 2007 at 08:12 AM

    Please do not use the word 'Urgent' in the title.

    Thanks & Regards,

    Sudhahar R

    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.