Hi Santanu -
In the screen shot you provided, the CMP remarks is disabled. Do you want to enable the long text OR issue an error method when blank. Please let us know. In the earlier post, I have mentioned
Check the BADI - ME_PROCESS_REQ_CUST
Two methods (a) PROCESS_ITEM (when something get changed in line item it get triggerd for that particular item when SAVE or Enter (b) CHECK triggers when 'SAVE' or CHECK
PROCESS_ITEM
DATA : lt_textlines TYPE mmpur_t_textlines.
REFRESH : lt_textlines.
CALL METHOD im_item->if_longtexts_mm~get_text
EXPORTING
im_tdid = < You need to check this from the table STXH, Pass TDNAME as PR+Item no
IMPORTING
ex_textlines = lt_textlines.
* You can validate here
PROCESS_CHECK
IF im_header IS NOT INITIAL.
CALL METHOD im_header->get_items
RECEIVING
re_items = li_items.
IF li_items IS NOT INITIAL.
CLEAR: lw_items,lw_req_item.
LOOP AT li_items INTO lw_items.
lif_item = lw_items-item.
IF lif_item IS NOT INITIAL.
CALL METHOD lif_item->if_longtexts_mm~get_text
EXPORTING
im_tdid = < You need to check this from the table STXH, Pass TDNAME as PR+Item no
IMPORTING
ex_textlines = lt_textlines
* You can validate here
ENDIF.
CLEAR lw_req_item.
ENDLOOP.
ENDIF.
ENDIF.
If you see above, I have mentioned * You can validate here.
If you want raise error message.
1. Include the macro mm_messages_mac to your code,
Code - INCLUDE mm_messages_mac
2. Create a meesage class in SE91 and create message in it and use that in next step
3. To raise error, write the folwoing code
If lt_textlines[] is initial.
mmpur_message 'E'
<ZmessageClass>
<Message Number > '
' ' ' ' ' ' ' ' .
ENDIF.