Ask the Expert

Create an object ID using key fields from the workflow container

How do I create an object ID using key fields from the workflow container?

Overview- My workflow is using two different business objects types LFB1 and LFM1. The workflow is triggered when a change is made to a vendor master record at the company code level (LFB1). In a step in the workflow, I want a change to be made to a vendor master record at the purchasing organization level (LFM1).

Problem-The key fields for object type LFB1 are vendor number and company code; the key fields for object type LFM1 are vendor number and purchasing organization.

I have the vendor number (from the event container) and the purchasing organization (using a container operation) in my workflow container. The problem is that I am unable to create an object ID for LFM1 to bind to "my change vendor at the purchasing organization" task. As I said, I have the values for the key fields for LFM1 in my workflow container so it seems to me that I should be able to create an object ID, but I don't know how.


    Requires Free Membership to View

You should use the method SYSTEM.GenericInstantiate to get an instance. There is also a wizard that will generate an activity to do this for you. Just go to Wizards->Include "Create Object Reference".

As a general rule, I try to use Object references rather then actual field values in my workflow container as Object references provide much greater flexibility than straight data fields.

I am not too familiar with the Purchasing functionality that you describe but If I were you I would take a step back and take a look at the relationship between all the objects. Perhaps the vendor master record (LFM1) should be an attribute of the LFB1 object?


This was first published in January 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: