cancel
Showing results for 
Search instead for 
Did you mean: 

SWW_WI_START_SIMPLE container question

kasithunuguntla
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

kasithunuguntla
Participant
0 Kudos

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