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

How to validate plan data before saving the data

I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.

Regards,

Tipo.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 01:00 PM

    Hi,

    before saving you can execute a planning sequence/function and check the data. This can be done e.g. in a FOX. If the total is not the value you are expecting you can raise an error mesage in your FOX.

    In your save button you have a command to call the above mentioned planning sequence/function

    and another one to save the area. So the planning sequence/function is executed first and generates an error message.

    Please note that this does not prevent to save the data using the context menu (e.g. in BExAnlyzer).

    If you want to make shure that using the context menu does not save your data, you need to plan in a different version and when you press the button "save" you can repost the planning data to your planning version once the FOX mentioned above has checked that the data is ok. Saving is the last step in this sequence.

    Hope this helps.

    Regards Matthias Nutt

    SAP Consulting Switzerland

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Thanks for your idea..

      I have a one question using exit how your are stopping the incorect data???

      Can you explain little bit more.How you developed the function module and after validating the data how you stopped to saving the incorrect data???

      Thanks.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 29, 2008 at 10:59 AM

    <Font Face="Tahoma" Color="Blue">

    Hi,

    Write a FOX Code to do this check and use that FOX Code as "Function after data change" in your planning layout design.

    Regards,

    Abhijit

    <removed request for points>

    </Font>

    Edited by: Siegfried Szameitat on Nov 5, 2008 10:07 AM

    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.