SAP Note 1227667 - Guidelines for expert routine: Design rules

Component : Transformation -

Solution : https://service.sap.com/sap/support/notes/1227667 (SAP Service marketplace login required)

Summary :
This SAP Note guides developers on constructing user-defined expert routines with design rules that manage error conditions effectively. It underscores the importance of sending status messages to the Data Transfer Process (DTP) monitor and creating seamless reference relationships between the data records of the inbound and outbound data packages. SAP emphasizes the customer's responsibility for the custom expert routines they develop, providing examples to facilitate proper setup but does not guarantee the provided source code's execution, intending it solely for reference.

Key words :
call method cl_rstran_expert_rout_srv=>send_message       exporting         i_r_log        = log         i_rule_context = p_curr_rule         i_seg_id       =, call method new_record__expert_routine       exporting         log           = log         source_segid  =, skipped l_s_msg-recno   = <source_fields>-record      l_s_msg-skipped = 'x', = segment id        importing         record_new    = result_fields-record, = segment id       changing         c_t_msg        = l_t_msg, skip record      l_s_msg-msgid = 'xxx', source_record = <source_fields>-record         target_segid  =, source packages record     endif, ensure consistent runtime behavior, user-defined expert routine

Related Notes :

1349820Expert routine: Technical enhancements
1258089Design rule: Adding records to the start routine
1052648Migrating transfer rules and update rules for BW7.x