05-30-2008 3:47 AM
hi there Gurus,
thanks for the helps that you have given me.
i have a new issue, where i was ask to change the information message to an error message in the SO creation va01. i have done that.
but now the user wants me to disable the save button if the error message that i set appears.
i have done the changes in this program FV45SFST_STRUKTUR_ANLEGEN_POSI
this were the changes that i did
if da_subrc > 0.
if product_selection_rekursiv eq space.
*{ REPLACE DM2K909203 1
*\ message i003(v2) with vbap-matnr.
insert it in global MV45ATOP data: errorstatus type c.
message e003(v2) with vbap-matnr.
errorstatus = '1'.
now im trying to figure out how to set the save button disable when the error message appears.
this is a bit urgent, can any one please guide me in this.
thanks.
05-30-2008 6:04 AM
Hi,
In the PAI module try using this
IF errorstatus = '1'.
move 'SAVE' to wa.
APPEND wa to itab.
SET PF STATUS EXCLUDING itab.
else.
set pf status.
endif.
Please reward points if this helps.
Thanks.
06-03-2008 4:13 AM
hi there Guru,
there are alot of PAI modules,
im not sure which one is it?
06-03-2008 6:29 AM
Hi,
Just try to do this in the PAI of the screen of which you have to disable the save button...
If Errorstatus = '1'.
set pf-status '100' Excluding 'SAVE'.
endif.
Here SAVE is the Fcode of the SAVE button.
**************************************
Reward if helful.
Regards,
Syed
06-05-2008 3:35 AM
hi there Gurus,
i try but it is not working. is there any other way to do this.
to disable the save button if hit any error message. or dont allow the user to save the sales order if there is any error message appears.