‎2007 Dec 22 5:42 AM
Hi,
I have created internal table in in my prog.populated values to it.in se51 in table control wizard i gave internal table and work area name.when i run my program i am getting only table header.not getting values.I dont know what is the error...If someone knows please help me.
Thank u.
‎2007 Dec 24 9:08 AM
‎2008 Jan 30 5:16 AM
first u write internal table in top include like :
************************************************************
PROGRAM SAPMZTABSTRIP.
DATA: BEGIN OF t_vbak OCCURS 0,
sel type c,
vbeln LIKE vbak-vbeln,
erdat LIKE vbak-erdat,
kunnr LIKE vbak-kunnr,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
maktx LIKE makt-maktx,
name1 LIKE kna1-name1,
ort01 LIKE kna1-ort01,
pstlz LIKE kna1-pstlz,
prodh LIKE vbap-prodh,
END OF t_vbak.
*&spwizard: declaration of tablecontrol 'TABLE_CONTROL' itself
controls: TABLE_CONTROL type tableview using screen 9000.
*&spwizard: lines of tablecontrol 'TABLE_CONTROL'
data: g_TABLE_CONTROL_lines like sy-loopc.
data: OK_CODE like sy-ucomm.
************************************************************
after this now u can write select query in PBO
*********************************************************
module TABLE_CONTROL_change_tc_attr output.
IF T_VBAK IS INITIAL.
SELECT vbeln kunnr
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE t_vbak.
describe table T_VBAK lines TABLE_CONTROL-lines.
ENDIF.
endmodule.
‎2008 Jan 30 9:25 AM
HI
Kavita
yes u only get data in header only u will not get in the internal table
if u want tht data to be in internal table wht u do is
write one module in the flow logic tht is in the PAI.
between chain and endchain
just befor the endchain write one module
module append.
in tht module write this statement
module append.
append work area to internal_table.
endmodule.
sure it works i think u got my point
plzz reward if it is usefull
plzz dont forget to reward.......
for any furthere quiries u can contact me on mutyalasunilkumar@gmail.com