cancel
Showing results for 
Search instead for 
Did you mean: 

Badi MRM_CHECK_INVOICE_CLOUD with check on supplier master data

Massi_Merc
Explorer
0 Kudos

Dear SAP experts,

our requirement is to compare payment terms specified in supplier invoice header with payment terms defined in supplier master data (company code view). If they differ a warning/error message should be raised.

Checking badi MRM_CHECK_INVOICE_CLOUD it seems that it's possible to check only supplier invoice data (at header and line item level) but without comparing them with external values, e.g. in supplier master data.

Could you please advice on and alternatively propose a possible solution to meet our requirement?

Thanks a lot for your support

Tayane
Advisor
Advisor
0 Kudos

Dear Massimiliano,

We helped you to accept the answer, since there were no updates after 7 days. You can unaccept it anytime if the answer provided was not helpful enough and you have further questions.

Best regards.

View Entire Topic
Massi_Merc
Explorer
0 Kudos

We are trying to implement this logic:

IF action = if_ex_mrm_check_invoice_cloud=>c_action_check.

IF headerdata-INVOICINGPARTY-paymentterms <> IT_SUPPLIER_COMPCODE-paymentterms

APPEND VALUE #( messagetype = if_ex_mrm_check_invoice_cloud=>c_messagetype_error

messageid = 'MRM_BADI_CLOUD'

messagenumber = '001'

messagevariable1 = 'Payment terms differ from supplier master data.' ) TO messages.

ENDIF.

ENDIF.