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

MODULE POOL

Hi,

I have a req in which i have six screens in sequence , for each screen there is save button , AFTER SAVING ON EACH SCREEN step by step i reached to sixth screen ,suppose there is any problem on sixth or any screen data saved for any screen should not be update ,if every thing is fine till sixth screen then only data should be saved.

1 save 2save 3save 4save 5save 6save..

if somebody will give me help to findout the appropriate solution defintly i will reward point.

regards

san

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 11:22 AM

    hai,

    check out this wheather this will will do for what you are looking for.

    after each screen before going to next screen,don't save the data but try to export it into memory either using

    1.export/import <itab> from/to memory id <id>

    2. export/import <itab> from/to indx(ar) id <key>

    once when you reach the sixth screen import all the screen values from the memory and then try to update the database tbales if the condition is true. else dont upadte simply delete teh exported values to memory

    if this satisfies and any calrification. pls come back

    cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2005 at 11:25 AM

    Check whether all the data got saved if not rollback the update which u did. Else give commit.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2005 at 11:29 AM

    Hi,

    Just to add on to what Rajani suggested, if all the 6 screens are of the same module pool program then you can just use global varibales/internal tables to store values from each screen. There is no need to even import/export data. On the 6th screen, validate all the data and then save.

    This is exactly what we did for one of our clients' MDE (Mobile Data Entry) solution.

    /Sagar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 12:03 PM

    Hi

    You should use some variables where you store your data when the user push SAVE FROM SCREEN1 TO SCREEN 5, and only in SCREEN6 you should store the data in database when user push SAVE and all is ok.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

    • you have following before showing the screen and disable the save button on first 5 screens

      data:begin of exclmenu occurs 0,

      okcode like sy-ucomm,

      end of exclmenu.

      exclmenu-okcode = 'SAVE'.

      set pf-status '<statusname>' excluding exclmenu

      and on the last screen PBO, use as follow

      delete from exclmenu where okcode = 'SAVE'.

      set pf-status '<statusname>' excluding exclmenu

      this is what I have been doing.

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.