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

data should carry between the screens--urgent

hi,

how can we pass the value of a particular screen from that screen to other.

i have a value of customer in screen1 and i want the same value to be displayed in screen2.

and if i enter a value in one screen1 and go to screen 2, then again if goto screen1 the data entered in screen 1 should exists it is getting empty ,how to hold the data in the previous screen.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2008 at 08:19 AM

    store the screen bariable values in some variables..

    on BACK button of scrren 2 place these values back to the screen elements...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2008 at 12:45 PM

    Hi,

    Plz try the following.

    Suppose you want to display the username in the second screen like 'Welcome <username>'.

    In the TOP INCLUDE of the program declare a variable of your screen type.

    DATA: gv_user TYPE <DDIC-FIELDTYPE> .

    In the FORMS INCLUDE, capture the screen field into variable gv_user.

    While creating the second screen, please make the input/output field after Welcome as 'output only'.

    In the PBO of the second screen, assign the value as 'screen-field' = gv_user.

    Basically you assign the screen field values to your global variables and populate the other screen fields using these global variables.

    Reward if Helpful.

    Edited by: prosenjit chaudhuri on Feb 22, 2008 1:46 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2008 at 04:46 PM

    Hi Vijay,

    In the PAI of the first screen write some code to store the value in a Global Variable(Declared in Top Include).in the PBO of the next screen copy this value back to the field in the second screen.

    Regards

    shibu

    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.