RE:[sap-log-mm] Header Text and ME_PROCESS_PO_CUST

Posted by wnash7658 (SAP Specialist and Project Leader)
on Aug 1 at 4:53 AM
Hello,

Sorry guys, reviewed the BADI and moved the code into the CHECK module and now things are fine.

Regards


Waza

---------------Original Message---------------
From: Warren Nash
Sent: Monday, August 01, 2011 3:50 AM
Subject: Header Text and ME_PROCESS_PO_CUST

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
Mark as helpful
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
Popular White Papers

In the Spotlight
Toolbox.com Marketplace: Take online training courses in SAP and other specialized areas of business and IT.
_.____.__

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

Post a Comment