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

How to write the code in loop

Former Member
0 Likes
858

HI,

i have designed a screen using "screen exit" in Plant Maintenance for Notification,

in that i have an extra screen to give detail description for the "activity" done in the notification,

my requirement is for single activity my screen "yy analysis" is working,.but when im giving selecting

second activity in the same notification and clicking on my screen its not working, wat ever 1st activity we r giving its working for only one activity.

here i have to use Loop Statement or any anything else you people suggest me please, how to correct it.

Thanks,

Rajesh

7 REPLIES 7
Read only

former_member226999
Contributor
0 Likes
822

Which enhancement are you using?

Read only

0 Likes
822

for this im using screen exit "SAPLXQQM"

AND USEREXITS as 1)EXIT_SAPLCOIH_009

2)EXIT_SAPLCOIH_019

3)EXIT_SAPMIWO0_020

4)exit_sapmiwo0_008

manly my requirment works in userexit EXIT_SAPMIWO0_020

Edited by: rajesh kumar kandagatla on Aug 29, 2008 4:21 PM

Read only

0 Likes
822

I am not sure how you are doing this. I will give some idea on how to do this.

You have to use enhancement QQMA0001 (check this in SMOD and create project in CMOD)

First design your own custom screen in SE51 named SAPLXQQM and screen number 0100 (as mentioned in the enhancement)

When designing your screen you can use the values from structure VIQMEL for any reference.

Use the EXIT_SAPMIWO0_008 to transfer data to your subscreen.

Use the EXIT_SAPMIWO0_009 to transfer back any data to main program from your subscreen.

Then finaly use the exit EXIT_SAPMIWO0_020 to store your custom screen values into any custom tables if needed.

Hope this helps.

Franc

Read only

0 Likes
822

Thank you for reply

i have done all the things before you said sir,

but i want get the activity which i select activities tab and should display in my screen

Read only

0 Likes
822

select single * from qmma into viqmma

where qmnum = viqmel-QMNUM and kzloesch = ''.

&----


  • loop at t_tc.

select single kurztext from qpct into text_i_4

where katalogart = 'A'

and codegruppe = viqmma-mngrp

and code = viqmma-mncod

and sprache = sy-langu.

here is my code where exactly my requirement working for single activity,

when i select second activity in activities tab its showing the first activity only

Read only

0 Likes
822

Hello Rajesh,

Please check in debug are the values for viqmel-QMNUM changing?

I think since viqmel-QMNUM is not changing, you will be getting same result.

thnx..

ags.

Read only

0 Likes
822

yes its not changing

i want the that only it should change

can u help me out