Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

screen painter doubt

Former Member
0 Likes
592

hi guys i am a fresher in abap and am havin a prob..

wen makin the module pool program...

i m addin two buttons to my screen painter..

NEXT and BACK

when in the module pool screen i am giving case n when statement it says case not defined and when i make a module for it in se38 it says for WHEN 'BACK'.. tat when should be followed by case..

pl help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

i have already written

CASE SY-UCOMM.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

WHEN 'NEXT'.

SELECT ...

LEAVE TO SCREEN 200.

That i did before only... still the prob is comin

4 REPLIES 4
Read only

Former Member
0 Likes
569

Hi

give like this

CASE SY-UCOMM

WHEN 'BACK'.

SELECT STATMENT.....................

And also check in SE51(screen painter) for button Back your given FCT code or/not.

Regards

ranga

Read only

Former Member
0 Likes
570

i have already written

CASE SY-UCOMM.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

WHEN 'NEXT'.

SELECT ...

LEAVE TO SCREEN 200.

That i did before only... still the prob is comin

Read only

0 Likes
569

In your screen element list declare a variable for ok_code(last one in the element list), and declare the same variable in the program also.

Now use Case statement with that variable.

Regards

Karthik D

Read only

Former Member
0 Likes
569

Hi Abhi,

Here you have to understand one concept, when you are clicking on Back or next pushbuttons it has to communicate the next action that you have given in the code that can be done using SY-UCOMM.

If you declare Ok code in module pool elements than use OK_CODE.

And you have to define your FCT code for Back and Next which will help you to trigger the action when button is click. Suppose double click on Back opens a window in that give fct code as BACK.

Coming to code part.

Case Sy-ucomm.

When 'BACk'.

Call screen 100.

endcase.

that means when i am clicking on back i am calling screen 100 understand the concept of your problem.

Cheers!!

VEnk@