Skip to Content
author's profile photo Former Member
Former Member

how the values passed to BOR ?

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Nov 29, 2007 at 05:21 PM

    Hello,

    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,

    Mike

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 29, 2007 at 03:21 PM

    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...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:06 AM

    You can check the following link

    http://help.sap.com/saphelp_47x200/helpdata/en/a6/9bacb45f2c11d194a40000e82dec10/frameset.htm

    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

    Thanks

    Arghadip

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi guys

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

      finally i got solution

      swc_create_object businessobject 'ZSAMPLE1'

      employee_objkey.

      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

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.