[sap-log-mm] Header Text and ME_PROCESS_PO_CUST

Posted by wnash7658 (SAP Specialist and Project Leader)
on Aug 1 at 3:49 AM
Based on viewing other replies by controlling the header text in the PO, I have used ME_PROCESS_PO_CUST and PROCESS_HEADER to put an error if the header text is blank for a certain text type.

The problem is that if the user enters data in the header and then the item and clicks the error message appears, but the BADI ME_PROCESS_PO_CUST is not re-executed again and the error message remains in the error log.

Anyone come across my same requirement and possibly the same issue. I don't want to tell the users to enter the header first and then the items. Just need a method to re-check and then clear the PO error message log.

CALL METHOD IM_HEADER->IF_LONGTEXTS_MM~GET_TEXT(
EXPORTING
IM_TDID = LS_H_TXTTYPES-TDID
IMPORTING
EX_TEXTLINES = LT_H_TXTLINES
EX_TEXT_FORMATTED = LV_H_FORMAT ).

* APPEND LINES OF LT_H_TXTLINES TO LT_H_TEXTDATA.
IF LT_H_TXTLINES[] IS INITIAL.
MESSAGE 'Header text not available-please enter' TYPE 'E'.
ENDIF.

Regards


Waza
__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
View this online
  
wnash7658
SAP Logistics Material Management Top Contributor

Contributed the most posts in a group for a month to earn a Silver Achievement
_.____.__

0 Response to "[sap-log-mm] Header Text and ME_PROCESS_PO_CUST"

Post a Comment