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

Argh, Help please in using screens and Graphic Layout Editor

So basically this is what I have to do.

1. Implement your main selection screen with a parameter (recommended: call it PA_INPUT) of type C and length 20. It should appear on screen as "My Input".

2. Upon execution, you will have another screen (say screen 100) that will present two options:

2.1 Display input as a list

2.2 Display input in a screen

3. If a user selects the first option, write the input made in the selection screen as a list.

4. If the user selects the second option, write the input made in the selection screen onto 2 separate fields on screen. Both fields are OUTPUT only. The first field will display all the characters in upper case, and the second in lower case.

So far my code has this.

REPORT ZISTANZS_TRNG_EX7AA.

PARAMETERS PA_INPUT(20) TYPE C. .

CALL SCREEN 0100.

It's not much I know. But I have basically no idea how to use screens. Reading on the tutorials, I've managed to create a screen 100. Editing its layout to have 2 radio buttons DEFINED as well as having a text beside them Display input as a list and Display input in a screen. I also manage to create a Pushbutton with Name of ENTER and text as ENTER with a function code of 110.

Now, I don't know how to proceed. Basically I'm stuck here. I keep reading this tutorial my supervisor gave me but her instructions were so vague that I ended up confusing myself. I know it may have something to do with modules but I don't know how to implement it. I'm not sure how I can know if the user chose to display input as alist or screen and I don't know how to seperate them? Any help or even jsut tips on this would be appreciated. and also given points.

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 Jun 04, 2008 at 08:19 AM

    Hi,

    if you do not know much about screens and modules, try the simple way:

    PARAMETERS: ......

    ...

    ...

    SUBMIT ZZREPORT AND RETURN. (ZZREPORT gives you another sel-screen)

    IMPORT FLAG FROM MEMORY ID ZZFLAG.

    IF FLAG ...

    ...

    ...

    REPORT ZZREPORT.

    PARAMETERS: (your radiobuttons or x-fields)

    ...

    ...

    EXPORT FLAG (your radiobutton or x-field) TO MEMORY ID ZZFLAG.

    Godd luck!

    Jo

    Add a comment
    10|10000 characters needed characters exceeded

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

    Try starting with Tcode ABAPDOCU and navigate into the sections on Screens, Processing Screens, and Lists, Calling Lists from Screens. There's also transaction BIBS with demo screens.

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 05, 2008 at 01:54 PM

    Read - and read it properly, don't just skip through it - the SAP help at [http://help.sap.com/saphelp_47x200/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm]. This should give you an overview of how user dialogs work.

    Basically, a screen is just a layout with some flow logic behind it. The flow logic consists of a PBO (Process Before Output) section and a PAI (Process after Input) section. Each section will contain a number of calls to MODULEs which are effectively like subroutines and these will contain your code. The PAI will be trigger after every user input eg if the user presses ENTER the PAI code will run. The PBO code runs before you enter the screen and subsequently after every run of the PAI before the changed screen is refreshed.

    There are lots of other elements involved in building screens, but these are the basics. As already suggested, studying the example screens in your system will be useful. Is there anyone else at your company that you can ask for help? I can't believe that anyone would expect a screen - even a simple one which is what this sounds like - to be built by someone with no knowledge of screens.

    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.