78: x_appl_short_name := 'SQLGL';
79: x_flex_field_code := 'GL#';
80: x_flex_field_struc_num := p_coa_id;
81:
82: diagn_msg(l_state_level,'start_acct_generator_workflow','Calling fnd_flex_workflow.initialize to create workflow process');
83:
84: -- The procedure fnd_flex_workflow.initialize will fetch an itemkey and
85: -- create the workflow process. The process will be 'started' later
86:
80: x_flex_field_struc_num := p_coa_id;
81:
82: diagn_msg(l_state_level,'start_acct_generator_workflow','Calling fnd_flex_workflow.initialize to create workflow process');
83:
84: -- The procedure fnd_flex_workflow.initialize will fetch an itemkey and
85: -- create the workflow process. The process will be 'started' later
86:
87: l_itemkey := FND_FLEX_WORKFLOW.INITIALIZE (x_appl_short_name
88: ,x_flex_field_code
83:
84: -- The procedure fnd_flex_workflow.initialize will fetch an itemkey and
85: -- create the workflow process. The process will be 'started' later
86:
87: l_itemkey := FND_FLEX_WORKFLOW.INITIALIZE (x_appl_short_name
88: ,x_flex_field_code
89: ,x_flex_field_struc_num
90: ,l_itemtype);
91:
153:
154: -- Once all the attributes have been set, call the AOL function to start -- the workflow process and retrieve the results
155:
156:
157: diagn_msg(l_state_level,'start_acct_generator_workflow','fnd_flex_workflow.generate called');
158:
159: result := FND_FLEX_WORKFLOW.generate('ITRWKFAG',
160: l_itemkey,
161: x_return_ccid,
155:
156:
157: diagn_msg(l_state_level,'start_acct_generator_workflow','fnd_flex_workflow.generate called');
158:
159: result := FND_FLEX_WORKFLOW.generate('ITRWKFAG',
160: l_itemkey,
161: x_return_ccid,
162: x_concat_segs,
163: x_concat_ids,
231: -- History
232: -- 03-NOV-2000 S Brewer Created.
233: -- Arguments
234: -- itemtype Workflow item type (ITR Account Generator)
235: -- itemkey fnd flex workflow item key
236: -- actid ID of activity, provided by workflow engine
237: -- (not used in this procedure)
238: -- funcmode Function mode (RUN or CANCEL)
239: -- result Result code of the activity