Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to Display selected Acivity in Next Tab

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

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question