Finance Automation SAP FCc REL Functions
SAP FCc REL functions. The following SAP FCc REL functions are used in the SAP FCc flavor. The functions reside in the Redwood_FCA
library. You call these functions by specifying
=<partition>.Redwood_FCA.<function>
.
The examples on this page assume the definition which calls these functions resides in the same partition as the library, specified as
$
. The default partition of the library is FCA
. The REL functions can be accessed via RedwoodScript from the
com.redwood.scheduler.custom.fca.fcc.rel.FlSapFccRel
class.
defaultFCcParameters
Returns the default value of the specified FCc parameter using the KOKRS, BUKRS, WERKS as specified on the process. If the value is not found by the organizational structure search, additional algorithms are used (which also do organizational searches):
- Find subentries and concatenate. Example PARM is not found, then search PARM_1. If found, concatenate with PARM_2
- Find Parent. Example PARM_TEST is not found, then search PARM
note
Parameter must be Runtime!
Syntax
Redwood_FCA.defaultFCcParameters(Long jobId, String inParameter, String inKOKRS, String inBUKRS, String inWERKS)
Example
=$.Redwood_FCA.defaultFCcParameters(jobId, 'BATCH_USER', '1001', '1002', '1003')
Result
Returns jdoe
on this system.
defaultFCcParametersJob
Returns the default value of the specified FCc parameter using the KOKRS, BUKRS, WERKS as specified on the process. If the value is not found by the organizational structure search, additional algorithms are used (which also do organizational searches):
- Find subentries and concatenate. Example PARM is not found, then search PARM_1. If found, concatenate with PARM_2
- Find Parent. Example PARM_TEST is not found, then search PARM
note
Parameter must be Runtime!
Syntax
Redwood_FCA.defaultFCcParametersJob(Long jobId, String inParameter)
Example
=$.Redwood_FCA.defaultFCcParametersJob(jobId, 'BATCH_USER')
Result
Returns jdoe
on this system.
getReferenceTaskParameterValue
Returns the String value of a parameter.
note
Parameter must be Runtime!
Syntax
Redwood_FCA.getReferenceTaskParameterValue(Long jobId, String taskName, String jobParameterName, boolean isInput)
Example
=$.Redwood_FCA.getReferenceTaskParameterValue(jobId,'TEST Task','CHAIN_PARM',true)
Result
getSapFccAgentUsers
Returns a list of users belonging to the specified responsible agent.
Syntax
Redwood_FCA.getSapFccAgentUsers(Long jobId, String agent)
Example
Result
Returns jdoe,jsmith,emustermann
on this system.
getSapFccFirstAgentUser
Returns the first user belonging to the specified responsible agent.
Syntax
Redwood_FCA.getSapFccFirstAgentUser(Long jobId, String agent)
Example
=$.Redwood_FCA.getSapFccFirstAgentUser(jobId, 'US:C5061314')
Result
Returns jdoe
on this system.
getSapFccReplacement
Converts the input string using SAP FCc Replacement (table /JCS/FCC_DEFPARM
).
Syntax
Redwood_FCA.getSapFccReplacement(Long jobId, String repl)
Example
=$.Redwood_FCA.getSapFccReplacement(jobId, '${F:BATCH_USER}')
Result
Returns jdoe
on this system.
taskListTaskUrl
Returns the task list URL for the task.
Syntax
Redwood_FCA.taskListTaskUrl(Long jobId)
Example
=$.Redwood_FCA.taskListTaskUrl(jobId)
financeTopic