Professional Documents
Culture Documents
3. In our case, the infoset definition is read from ECC, a query is auto
generated for this infoset (based on input fields selected on campaign),
and it is called via RFC.
4. Infoset code is called, data is sent as result.
5. To test, simply click COUNT on Segment. No need to create all components
on CRM for campaign while still developing.
Debugging
Below I attached 2 screen shots showing where debugging should take place.
Use external break-points. These break-points will kick from CRM WEB UI.
1. Showing first function module CRM architecture is calling:
A real life example: Creating the Credit Card Expiry Campaign for
MSK
ECC System:
TCODE SQ02 (Infosets) Infosets are done in Global Area under ZCRM in
Role/Group Assignment
As you noticed this is a Data- Reading Program (Meaning most of the work is
done using ABAP)
Fields groups: If the field does not exist on the field group (Right side box) It will
not available for use in field attributes on the CRM side.
Click Code (or SHIT + F8) and goto data reading program tab
report rsaqdvp_template .
*
*---------------------------------------------------------------------*
*
declarations
*
(insert your declarations in this section)
*---------------------------------------------------------------------*
Comes standard:{
data:
zcrm_seg_msk_ccexpire_struct
type zcrm_seg_msk_ccexpire_struct
it_data type standard table of zcrm_seg_msk_ccexpire_struct .
}
Can be added as your standard: Will always be required {
data: lt_selections
type standard table of rsparams,
ls_selections
type rsparams,
lt_fieldinfo
type table of rsel_info,
ls_fieldinfo
lv_repid
lv_name
lv_yday
lv_sy-uzeit
type
type
type
type
type
rsel_info,
syrepid,
rsscr_name,
sy-datum,
sy-uzeit.
type zcrmt_seg_period.
type zcrm_seg_period.
Comes standard:{
field-symbols: <struc> type zcrm_seg_msk_ccexpire_struct
}
*-------------------------------------------------------------------*
*
selection screen statements
*-------------------------------------------------------------------*
*
(define your selection-screen here)
* !! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
*-------------------------------------------------------------------*
*
read data into IT_DATA
*-------------------------------------------------------------------*
* (select your data here into internal table IT_DATA)
Becareful {On generation all selection values are checked here by SAP
Autogenerated. So, the field in structure being checked should have the
value it is expecting
}
endloop.
}
Class ZCL_CRM_MKT_MSK_ATTRIBS
method SEG_CC_EXPIRE.
data: ls_fieldinfo type rsel_info,
ls_selections type rsparams.
data: ls_period type
zcrm_seg_period.
ls_period-option = ls_selections-option.
ls_period-low = ls_selections-low.
ls_period-high = ls_selections-high.
append ls_period to lt_period.
endif.
endif.
endmethod.
*
*
*
*
select to get data - create a new internal table to cater for address
select t6~kunnr as partner "t7~partner
into corresponding fields of table lt_data
from veda as t1
inner join fpla as t2
on t2~vbeln = t1~vbeln
inner join fpltc as t3
on t3~fplnr = t2~fplnr
inner join but0cc as t4
on t4~ccnum = t3~ccnum
inner join ccard as t5
on t5~ccins = t4~ccins and
t5~ccnum = t4~ccnum
inner join vbpa as t6
on t6~vbeln = t1~vbeln
inner join but000 as t7
on t7~partner = t6~kunnr
inner join adrc as t8
on t8~addrnumber = t6~adrnr
CRM System:
TCODE CRMD_MKTDS (Maintain datasources and attribute lists)
Datasets:
The RFC used is set as well and infoset name on the external system.
You will need to say which field return either the BP or BP GUID.
Save and its complete.
Attribute Lists:
When creating a new attribute list:
You assign the datasource you created easlier, and click update attributes
whenever you change fields on field groups on infoset in ECC.
Whichever field is selected means it can be used in the Campaign creation
screen.
Creating a filter criteria It allows a user using the campaign to use defaults
values that can be pre-defined here.
Click save and everything is ready. Now to just test this campaign.
Finding a segment/campaign:
Click marketing and then search:
Generally, the most developers would do is create the segment. This allows us to
test.
Lets find a segment recently created
This is the modeller: Used by users to add criteria for segments. (Selections)