Defining Source Code Format Components
The following procedure describes how to define source code formats.
To define source code format components
Navigate to the Administration - Marketing screen, then the Source Code Formats view.
In the Source Code Formats list, select a source code format.
In the All Components list, create a new record.
Complete the fields for the component, using the following information as a guide.
Field Description Attribute
Shows the available fields from the business component. For a list of available business components, see the Type row in this table.
The Attribute MLOV (Multiple List of Values) column in the Source Code formats view records the language-independent code for each Attribute. The language independent code must exactly match the field name in Siebel Tools. Do not attempt to add extension fields that exceed 30 characters. The displayed value is limited to 75 characters.
Constant Value
Specifies an optional constant value to be inserted in the source code. This is editable only when the Type field is set to Constant.
Default Value
Inserted when the input value is NULL. You can provide a default value for any source code component. For example, if you included Campaign Member Country, you could insert a value for any members with no Country in their profile.
Sequence
Sequence determines the position of the code component in the source code format. Sequence is automatically set when source code components are added to the format. Use Move Up, Move Down or Resequence to adjust the order.
Type
The Type field shows the business component used as the source of the field. The supported components are Campaign, Campaign Member, Offer, Program, Segment, Stage, and Wave. When you select one of these types, you must also select the Attribute.
The Type field also supports inserting a Constant, Numeric Sequence, or Alphanumeric Sequence. You cannot use both a Numeric Sequence and an Alphanumeric Sequence in the same source code.
Constant. A fixed value that is the same for all campaign members. You can have more than one constant in the source code format. For example, you can use a constant to insert a spacing character such as a hyphen (-).
Numeric Sequence. Inserts a running count in the source code for each campaign member in a campaign wave. The value uses a standard integer sequence of 1,2,3...9,10,11....N.
Alphanumeric Sequence. Similar to Numeric Sequence, except that the values include integers and letters of the alphabet. For example, 1,2,3....9,A,B,C....,X,Y,Z,10,11, and so on.
The source code generator adds a prefix of zeros (0) to the numeric sequence and alphanumeric sequence based on the width of the field. For example, if the width is 4, the values are 0001, 0002, 0003, and so on.
Width
The width of the source code component is automatically added. However, you can change the width. The maximum width for the entire source code format is 75 characters. The following is a list of examples:
If the source code width for a component is 16 characters and you specify 6 as the width in this field, the individual source code for the component is truncated to the first six characters.
If the component’s code has a width of 10 characters, and you specify 20 as the width, 10 blank spaces appear in your source code format.
Save the component.
Note: To add more components, repeat Step 3 through Step 5, one row at a time.Adjust the sequence of the components by clicking Move Up and Move Down.
To reorder deleted components before saving the changes, click the menu button and choose Resequence.