Hide a custom field using BADI BBP_CUF_BADI_2
We need to hide a custom field using BADI(BBP_CUF_BADI_2) for the Payment request (Invoice) alone.
We need to know how to differentiate the document as Invoice or Credit memo through which structure in the BADI the values are getting imported whether the selected one is invoice or credit memo, based on this condition we can hide the custom field.
Suggest any structure e.g is_header-subtype or any field so as to differentiate as invoice or credit memo
Please use the below in the BADI
IS_HEADER-PROCESS_TYPE = 'INV' IS_HEADER-SUBTYPE = 'IV'
IS_HEADER-PROCESS_TYPE = 'CRME' IS_HEADER-SUBTYPE = 'CM'