on 11-30-2022 8:09 AM
Dear customer
To enhance the data flow between S/4HANA Service and other S/4HANA applications like SD Billing or Controlling there is an enhancement concept in place which allows influencing the data by add customer specific classes, which inherit the standard classes. The data flow can be from Service to the other application (=Forward) or vice versa (=Backward).
Old CRM versions used the BADI SRV_CONF_MOVE_TYPE but this BADI is available in S/4HANA. Instead, the method CREATE_GOODS_MOVEMENT or FILL_GOODS_MOVEMENT can be redefined in custom class inheriting from standard flow class CL_CRMS4_PROC_SRVCONF_FWD. Talking of your requirement, the movement types are hardcoded in method FILL_GOODS_MOVEMENT
IF ls_process_data-cancel_flag NE 'X'.
ls_goodsmvt_item-move_type = '291'.
ELSE.
ls_goodsmvt_item-move_type = '292'.
ENDIF.
ls_goodsmvt_item-spec_stock = 'W'.
Once you adapt these methods, the custom created must be added in customizing Service -> Transaction -> Data Exchange in Service -> Define Custom Handler Classes for Forward Data Exchange. For instance, standard service confirmation has these entries
SRVC 10 BUS2000117 CL_CRMS4_PROC_SRVCONF_FWD -> substitute by ZL_CRMS4_PROC_SRVCONF_FWD
SRVC 15 BUS2000117 CL_CRMS4_UPLOAD_FSCM_CM_SRVC
SRVC 20 BUS2000117 CL_CRMS4_BILLING_PROCESS_FWD
Don't add a new entry ! Just change CL_CRMS4_PROC_SRVCONF_FWD for ZL_CRMS4_PROC_SRVCONF_FWD
Best regards
Silvia Ventura
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.