Showing results for 
Search instead for 
Did you mean: 

how the values passed to BOR ?

Former Member
0 Kudos

hi gurus

my question is how the Business object gets the values from the particular instance ,

eg : suppose user fills the leave application form in SWXF , workflow WS3000050

starts , when i go to the transaction SWI2_FREQ ,& to the particular instance log , i can able to find workflow container element FORMABSENC ( with the data type of BO FORMABSENC) is filled with the particular instance value . how its getting the value ?..

i had done some research workflow by debugging the transaction to find how the instance values r passed to the particular business object ....

there i can able to find the function module SWU_OBJECT_PUBLISH ,, i can't under stand what for this function module is used ?....

This i am searching because , in my project entire custom application is going to be build , so i want to make workflow's for that . for that i want to know how the instance values (user fills in the screen) is fetching into the particular business object .

thanks & regards

surya suresh

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos


Firstly, a business object does not get its values from anywhere. A business object has a key and it's attributes define how the attribute value is determined and/or retrieved from the database. As Karri already suggested, as little more investigation in business objects shall reveal all.

Next, data can be transferred to workflow in two ways, both involve the use of containers. A container is basically like a set of variables which are not bound to a specific ABAP program or web service. If your workflows are triggered directly then they will be a function module call such as SAP_WAPI_START_WORKFLOW. It is within the code that calls this step the container is populated, and in this function module call the container is passed on to workflow.

If on the other hand the workflow started using an event, then the event container will hold any data that is passed to workflow. Back to the objects theory: if you're using a business object, then only the key needs to be passed to the workflow. The attributes will determine themselves: you can click on any attribute and then click on the code button to view the code that is executed when ever a workflow or program requests and attribute's value.

Hope that helps,


Answers (2)

Answers (2)

Former Member
0 Kudos

You can check the following link

Workflow Instance gets value from the Event Container which is binded to the Workflow Container. Now this event can either be triggered by a lot of ways which you can check in the above link. <b>Binding</b> is necessary to pass data into Wflow



Former Member
0 Kudos

hi guys

thanks for u r valuable response & sorry for my late response .

finally i got solution

swc_create_object businessobject 'ZSAMPLE1'


the macro swc_create_object , which select the data from the DB tables the data based on the key fields , with the attribute programs , contianer element(business object) is getting the value

Message was edited by:

surya suresh

Former Member
0 Kudos

Very fundamental question. I think that there is no easy answer for this.

Are you familiar with business objects in general? If not, then I think you should take a look to transaction SWO1, and investigate the object FORMABSENC and its code.

And if you really are going to build something from scratch, the best idea would be to replace BOs with ABAP classes. (Read Jocelyn Dart's blogs regarding ABAP OO with workflow for more information). But that's another story...