Skip to Content
author's profile photo Former Member
Former Member

need advice regarding disable the save button for SO

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on May 30, 2008 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2008 at 03:13 AM

    hi there Guru,

    there are alot of PAI modules,

    im not sure which one is it?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 03, 2008 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2008 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.