Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

need advice regarding disable the save button for SO

Former Member
0 Kudos

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.

4 REPLIES 4

0 Kudos

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.

Former Member
0 Kudos

hi there Guru,

there are alot of PAI modules,

im not sure which one is it?

Former Member
0 Kudos

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

Former Member
0 Kudos

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.