Skip to Content

SWW_WI_START_SIMPLE container question

I'm trying to start a WF trhough custom program using function module SWW_WI_START_SIMPLE. My problem is that I can't fill the container properly. The container is taking all elements except Business Object element. I have used Macro "swc_create_object" to populate the container.

What I need is to pass a Business Object and Customer number to WF but there seems to be a problem to match the structure SWCONT to the container element "<BusinessObject>".

Any tips.

Regards

Kasi

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 18, 2007 at 03:58 PM

    Dont worry, I resolved it myself. I have added following code to resolve the issue.

    mainly set Element length to 90 instead of 255 and move 'o' to container type.

    swc_create_object v_yktest7 'YKTEST7' yktest7_key.

    • Populate first container element - object type

    move: 'YKTEST7' to L_WI_CONTAINER-element,

    '90' TO L_WI_CONTAINER-ELEMLENGTH,

    'o' TO L_WI_CONTAINER-type,

    v_yktest7 to L_WI_CONTAINER-value.

    append L_WI_CONTAINER.

    CLEAR L_WI_CONTAINER.

    Thanks for your support

    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.