1.Functional Description
This function is designed to be called multiple time, once for each item to be included in the delimited string.
Create a delimited string that can be used as the ISTKEY value when retrieving F98860 records.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
ISTKEYKeyDataI/OR
MATH01MathDataI
DL01StringDataI
DATEDataDataI
EV01CharDataI
EV01DelimiterI
 
Processing:
/* get the first character of the input parameter szKeyData */
VA evt_FirstChar = substr([BF szKeyData],0,1)
If VA evt_FirstChar is not equal to cDelimiter   /* the string contains no delimiters */
    BF szKeyData = concat ([BF cDelimiter], [BF szKeyData]) /* place a delimiter at the start of the string */
   If VA evt_FirstChar is not equal to 
  BF szKeyData = concat ([BF szKeyData], [BF cDelimiter]) /* place a delimiter at the end of the string */
 End If
End If
/* Depending on which input parameter contains a value concatenate that value to the end of szKeyData */
If BF MathData is not equal to 
 BF szKeyData = concat ([BF szKeyData], [BF MathData])
Else
 If BF StringData is not equal to 
  BF szKeyData = concat ([BF szKeyData], [BF StringData])
 Else
  If BF CharData is not equal to 
   BF szKeyData = concat ([BF szKeyData], [BF CharData])
  Else
   If BF DataData is not equal to 
    BF szKeyData = concat ([BF szKeyData], [BF DateDate])
   End If
  End If
 End If
End If
/* place a delimiter character at the end of the string */
BF szKeyData = concat ([BF szKeyData], [BF cDelimiter]) 
^
D9000090F - Create WF Key Data String
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| szKeyData | ISTKEY | char | REQ | BOTH | 
The key data values associated with the workflow process instance.  | ||||
| mnMathData | MATH01 | MATH_NUMERIC | OPT | INPUT | 
- - - Good Performance Low Value.  | ||||
| szStringData | DL01 | char | OPT | INPUT | 
A user defined name or remark.  | ||||
| cCharData | EV01 | char | OPT | INPUT | 
An option that specifies the type of processing for an event.  | ||||
| jdDateData | DATE01 | JDEDATE | OPT | INPUT | 
Event point for JDE Date.  | ||||
| cDelimiter | EV01 | char | REQ | INPUT | 
An option that specifies the type of processing for an event.  | ||||
| None | 
| None |