cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering structure to my workflow

Former Member
0 Kudos

Hi,

i created a new workflow with an element (named REQ_VENDOR) with data type zmm_struc_vendor, a specific structure that i created. Now i want to launch my workflow, for this i use the FM SAP_WAPI_START_WORKFLOW, in input_container i add the element 'REQ_VENDOR' with value g_vendor an ABAP variable of type zmm_struc_vendor.

In the PAI, i fill the g_vendor variable, i fill the container and i launch the FM SAP_WAPI_START_WORKFLOW, the workflow is launched. When i look at the element REQ_VENDOR, it is partially filled and i don't know why. All specifics fields are filled but fields resulting of dictionnary are empty.

The structure zmm_struc_vendor :

This fields are filled :

DATE_REQUEST ZDATE_REQUEST DATS 8 0

DATE_DESIRED ZDATE_DESIRED DATS 8 0

PHONE_REQUEST AD_TLNMBR CHAR 30

EMAIL_REQUEST MAILADDRESS CHAR 241

This fields are empty :

LIFNR LIFNR CHAR 10

NAME1 AD_NAME1 CHAR 40

STREET AD_STREET CHAR 60

HOUSE_NUM1 AD_HSNM1 CHAR 10

POST_CODE1 AD_PSTCD1 CHAR 10

Thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor
0 Kudos

Hello,

I've long ago given up on reminding people to post their version, but here it is particularly relevant.

There is a size limit on container element. This has grown throughout the versions, I am not sure but 250 and 1000 chars ring a bell in pre-ECC versions. Also make sure you're using XML persistence (Header -> Version Dep -> Control -> Persistence).

An easy way to check is to remove a filled field from the structure and see if more data appears at the end.

Cheers,

Mike

Former Member
0 Kudos

Thanks Mike for your answer.

I'm in ECC5 version.

<Also make sure you're using XML persistence (Header -> Version Dep -> Control -> Persistence).

Sorry i don't understand this, where can i check this ? in workflow ?

My structure size is 782.

I'm going to reduce the size...

Cheers

Former Member
0 Kudos

Clearly there is a limit, about 300 characters, this is boring, so what is the best solution ? I have 26 fields, do i declare all fields in my workflow ?

pokrakam
Active Contributor
0 Kudos

OK, as I hinted earlier on... what version are you using?

Yes I am referring to the header in the workflow builder.

Former Member
0 Kudos

Hi Mike,

finaly i use class object and temporary table.

Thanks.

Cheers

Answers (0)