cancel
Showing results for 
Search instead for 
Did you mean: 

Enhacement of Service confirmation: assign Item cat. - movement type

SAPSupport
Employee
Employee
0 Kudos

Dear Support

I got requirement from user to separate GL account when good issue. The example of scenario is service order created with spare part item cat. and FOC spare part item category. Then, service confirmation created and completed service confirmation. In step of completed service confirmation and material document was generated with movement type

so, the question is How to linked service confirmation Item cat. with movement type to determine GL account.


Thanks and Regards,
------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee
0 Kudos

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

Answers (0)