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

Error in Table Control

Former Member
0 Likes
331

Dear All

I am facing a problem while making a table control . This control in based on an Internal Table whose definition goes like this.

TYPES: BEGIN OF TY_GPDET,

SRNO(1) TYPE C,

MATNR LIKE Z6MMAGTREQDETAIL-MATNR,

MAKTX LIKE Z6MMAGTREQDETAIL-MAKTX,

MEINS LIKE Z6MMAGTREQDETAIL-MEINS,

VERPR LIKE Z6MMAGTREQDETAIL-VERPR,

TQUAN LIKE Z6MMAGTREQDETAIL-TQUAN,

NETPR LIKE Z6MMAGTREQDETAIL-NETPR,

NETDT LIKE Z6MMACHLNDETAILS-NETDT,

LGORT LIKE T001L-LGORT,

DTRET LIKE Z6MMAGTREQDETAIL-DTRET,

REFNO LIKE Z6MMAGTREQDETAIL-REFNO,

TRATY LIKE TVTY-TRATY,

PKTNO LIKE Z6MMAGTPASDETAIL-PKTNO,

REMK1 LIKE Z6MMAGTREQDETAIL-REMK1,

REMK2 LIKE Z6MMAGTREQDETAIL-REMK2,

REMKC LIKE Z6MMACHLNDETAILS-REMK1,

REMKS LIKE Z6MMAGTPASDETAIL-REMK1,

EXT1(10) TYPE C,

EXT2(10) TYPE C,

END OF TY_GPDET.

DATA: IT_GPDET TYPE TABLE OF TY_GPDET,

WA_GPDET LIKE LINE OF IT_GPDET.

I am trying to create table through a wizard. But the table is not getting created and it is throwing an error as "in DYNPFIELD_ATTR field length has the invalid value 133" .

Please help. I would appreciate any help on this.

Regards

Prashant Jha

1 REPLY 1
Read only

Former Member
0 Likes
309

Hi,

in PBO and PAI events of the screen where u are creating the table control.

PBO

write.


LOOP  at  IT_GPDET into WA_GPDET with control <table_control>.
module display_data .
endloop.

PAI

loop at it_gpdet.
endloop.

in main program...

module display_data  ouput
move-corresponding WA_GPDET  to WA_GPDET .
endmodule.

now in layout or se51 create the table control.

hope this works!!!

best of luck! !!

thanks

ravi