09-26-2008 8:45 AM
Hi,
I have create a customer screen (Me23N Item -SAPLXM06 - 0111 ) with 1 field obligatory : EKPO-ZZPS_POSID.
The value is save in the table EKPO. But if i'm not going (clik in the customer screen) in the customer screen, he don't verify the field and save the data without take the customer field. how can i do, for he verify the customer screen and if the field is empty, they are an error message in the check box ? ( when we check a popup open and all the error are listed - i don't know how update this popup with my customer field ).
Thank you for your help and your reply.
Spawnrad
09-26-2008 8:57 AM
Hello,
In this case u will have to implement
BADI : ME_PROCESS_PO
Goto the Method
Method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
The Above Badi & Method should solve ur problem for further clarification plz reply
regards
Suresh Nair
09-26-2008 8:57 AM
Hello,
In this case u will have to implement
BADI : ME_PROCESS_PO
Goto the Method
Method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
The Above Badi & Method should solve ur problem for further clarification plz reply
regards
Suresh Nair
09-26-2008 9:14 AM
Thanks Suresh for your help.
In this method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM can i update the popup with error message in me23N ?
how can i import ekpo data to verify that EKPO-ZZPS_POSID is not empty.
Thanks.
09-26-2008 9:35 AM
I have implemented the badi and the method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM
I have import the data using this code :
data: w_data type mepoitem.
call method im_item->get_data
receiving re_data = w_data.
If w_data-ZZPS_POSID = ''.
********************
*********************
********************
endif.
call method im_item->set_data
exporting im_data = w_data.
How can i update the error message please? they are a popup in the me23N when we check who appear and display all the warning and error message.
thanks for your help.
09-26-2008 9:47 AM
I have found :
If w_data-ZZPS_POSID = ''.
MESSAGE ID 'MSG' TYPE 'E' NUMBER '000' WITH 'OTP'.
endif.
and that work.
and that display :
S:MSG:000 OTP
how can i hide S:MSG:000 ? it's possible?
09-26-2008 9:59 AM