‎2006 Nov 23 5:16 AM
Hello,
i hav a table control with 15 fields..i am creating 2 transactions for the same table control..
i want that when i call the first transaction only the first 10 fields shud get displayed in my table control and when i call the second transaction the last 5 fields shud get displayed..
plz guide
‎2006 Nov 23 5:20 AM
HI,
use the tcoe SY-TCODE.
using this u will get current t code of ur program.
put this in the if condition in ur PBO.
Rgds
anver
‎2006 Nov 23 5:20 AM
HI,
use the tcoe SY-TCODE.
using this u will get current t code of ur program.
put this in the if condition in ur PBO.
Rgds
anver
‎2006 Nov 23 5:21 AM
before fetching data into table control internal table. first u check the transaction code. i.e. using sy-tcode.
ex, if sy-tcode = 'T1'.
pass only the 10 values to internal table .
elseif sy-tcode = 'T2'.
endif.
‎2006 Nov 23 5:27 AM
HI,
by checking the sy-tcode you can put your logic in PBO.
by using the invisible property you can hide the columns in table control you can check column by index.
check the example code.
DATA: waa LIKE LINE OF TAB_CONTROL-cols.
CLEAR waa.
LOOP AT TAB_CONTROL-cols INTO waa.
IF waa-index = 1 OR
waa-index = 2.
waa-invisible = 'X'.
MODIFY TAB_CONTROL-cols FROM waa.
ENDIF.
ENDLOOP.Regards,
‎2006 Nov 23 6:06 AM
Hi,
U can use ST-TCODE in your PBO events.
using this system command you can control the fields..
‎2007 Jul 24 8:36 AM