Application Development 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: 

How to get selected line item in next tab

former_member1242340
Participant
0 Kudos

Hi,

I have a requirement i added an extra in in t-code IW22,

in that the standard screen tab called "ACTIVITIES"

i have some line items ex:

1 activity 1

2 activity 2

3 activity 3

4 activity 4 in this if i select activity 4 then that activity should get display in my added tab

if i select activity 3 then that activity should get display in my added tab.

but my tab is showing default as activity1 which ever i select.

how to do it ?

ill present the code where exactly the data is picking from standard tab (Activity tab)

select single kurztext from qpct into text_i_4

where katalogart = 'A'

and codegruppe = e_viqmma-mngrp

and code = e_viqmma-mncod

and sprache = sy-langu.

if text_i_4 is initial.

text_i_4 = e_viqmma-matxt.

endif.

if ( cust_aktyp = 'V' or cust_aktyp = 'A' ) and text_i_4 is initial.

"Notifn Change/Display

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.

  • ENDSELECT.

&----


if sy-subrc = 0.

else.

text_i_4 = viqmma-matxt.

endif.

endif.

if text_i_4 is initial.

message w537(im).

flag_error = 'X'.

  • exit.

elseif not t_tc[] is initial.

clear t_tc.

concatenate 'Why' text_i_4 into t_tc-why_quest separated by space.

modify t_tc index 1 transporting why_quest.

endif.

Thanks & Regards

Rajesh

1 REPLY 1

former_member1242340
Participant
0 Kudos

Hi Abapers,

Please help me to my requirement.

thanks in advance,

rajesh