cancel
Showing results for 
Search instead for 
Did you mean: 

Searching for Constant container event in binding

liam_wilkinson
Participant
0 Kudos

Hi All,

I need to pass some extra information into my workflow container. I am looking in Basic Data>Start Events>Binding and in the event container. I cannot find a constant to put into my workflow container &NI_DETAILS&

I have not worked extensively with wf in the past but have never came across this before, normally its very easy to find or it can generate it automatically.

Liam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

What do you mean by constants. You can hardcode in the Binding part no issues the type should be matching. Please if you want to define some more container element In event you can do so from SWO1 provided it is a custom Event.

Of course you have to create new container element but not in standard event but in custom event. How that event gets value of that element that you have to either pass by coding or by other means. You cannot add element to Standard event Bcoz its of no use as this value will not be populated.

Thanks

Arghadip

Message was edited by:

Arghadip Kar

liam_wilkinson
Participant
0 Kudos

I mean, in the binding screen as described above, when i go into the event side of the binding and select the dropdown list is says "select constant" for example:

&_EVT_OBJECT.POSTALCODECITY& binds &POSTCODE& correctly.

I'm using the sap standard object type ADDRESSEMP to start my wf. Are you saying i need to make a copy of it and then through SWO1 add in my extra container?

Liam

KKilhavn
Active Contributor
0 Kudos

You will only find constants when the domain has values. The domain of the field you are referring does not have any value specification, neither as a list of values, intervals, or even a value table. This makes sense of course, as post codes are completely different e.g. in Norway and United Kingdom.

You have to find the best way to solve it, but if you need constants, perhaps you should create your own domain and data type, use a container element of this data type and then copy the value to the standard structure. I'd consider that a smaller change than copying and changing the structure (where you still would have to have your own domain for the post code structure element's data type).

liam_wilkinson
Participant
0 Kudos

Thanks Kjetil,

I'm not sure what you mean by domain though,

I thought I would have to create a subtype, and add in this extra attribute, not used it before as the container is normally always available for my wf container.

Is there an easier way to bring in this one piece of extra data (event/constant/container or what ever its called)

KKilhavn
Active Contributor
0 Kudos

Dictionary domain.

If I understood you correct, what you want to do is select a constant when setting a container element value (or in the condition editor your want to compare a container element value to a constant). This is only possible if the container element has a data type that is based on a dictionary domain with values.

Now that you mention subtype, I think I may have misunderstood what your problem is.

Answers (0)