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

table control wizard

Former Member
0 Likes
460

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.

3 REPLIES 3
Read only

Former Member
0 Likes
427

hi,

Data coming in unternal table? first check that.....

Read only

Former Member
0 Likes
427

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.

Read only

Former Member
0 Likes
427

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