SAP MDG: Auto-fill CR Description by Data Model and CR Type Description

Hi SCN Folks, 

Hope you guys are doing great 🙂

Note 01: This blog does not include execution screenshots.
Note 02: 
The entire code was developed and validated in the SANDBOX system, with results meeting expectations.
Note 03: 
There are several ways; this blog is written about one of them.

BADI Responsible: USMD_CREQUEST_INTEGRATION.

Auto-populate the Change Request Description with the Data Model’s CR Type Description so every MDG CR is consistently and meaningfully described. 

Create Custom implementation & assign Data model filter values.

Method Responsible: if_ex_usmd_crequest_integr~get_crequest_attributes.

Code: 

METHOD if_ex_usmd_crequest_integr~get_crequest_attributes.

SELECT SINGLE a~usmd_creq_type, a~usmd_model, b~txtmi
FROM usmd110c AS a INNER JOIN
usmd110t AS b ON a~usmd_creq_type = b~usmd_creq_type
AND a~usmd_model EQ @iv_model
INTO @DATA(ls_cr_types)
WHERE b~langu EQ @SY-langu AND
a~usmd_creq_type = @iv_crequest_type.

IF sy-subrc IS INITIAL.
cv_description = ls_cr_types-txtmi.
ENDIF.

ENDMETHOD.

 

   

Thank You, 
Sandeep Suggu.
SAP Community Profile | SAP Profile | LinkedIn   

 

​ Hi SCN Folks, Hope you guys are doing great 🙂Note 01: This blog does not include execution screenshots.Note 02: The entire code was developed and validated in the SANDBOX system, with results meeting expectations.Note 03: There are several ways; this blog is written about one of them.BADI Responsible: USMD_CREQUEST_INTEGRATION.Auto-populate the Change Request Description with the Data Model’s CR Type Description so every MDG CR is consistently and meaningfully described. Create Custom implementation & assign Data model filter values.Method Responsible: if_ex_usmd_crequest_integr~get_crequest_attributes.Code: METHOD if_ex_usmd_crequest_integr~get_crequest_attributes.

SELECT SINGLE a~usmd_creq_type, a~usmd_model, b~txtmi
FROM usmd110c AS a INNER JOIN
usmd110t AS b ON a~usmd_creq_type = b~usmd_creq_type
AND a~usmd_model EQ @iv_model
INTO @DATA(ls_cr_types)
WHERE b~langu EQ @SY-langu AND
a~usmd_creq_type = @iv_crequest_type.

IF sy-subrc IS INITIAL.
cv_description = ls_cr_types-txtmi.
ENDIF.

ENDMETHOD.    Thank You, Sandeep Suggu.SAP Community Profile | SAP Profile | LinkedIn      Read More Technology Blog Posts by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author