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

Structure Enhancement

Former Member
0 Likes
723

Hi Experts,

When i do Extended Syntax check to a pgm i am getting Priorty2 error like this:

"After a structure enhancement, assignment or comparison may no longer be permitted"

which i have to resolve..Can any body let me know how to solve this?

T_EXTENSIONIN LIKE BAPIPAREX OCCURS 0 WITH HEADER LINE.

CLEAR T_EXTENSIONIN.

T_EXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.

Hi Experts,

When i do Extended Syntax check to a pgm i am getting Priorty2 error like this:

"After a structure enhancement, assignment or comparison may no longer be permitted"

which i have to resolve..Can any body let me know how to solve this?

T_EXTENSIONIN LIKE BAPIPAREX OCCURS 0 WITH HEADER LINE.

CLEAR T_EXTENSIONIN.

T_EXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.

2 REPLIES 2
Read only

Former Member
0 Likes
482

Hio ravi,

try using initialisation event for doing the assignment.

keerthi

Read only

Former Member
0 Likes
482

Hi,

Substitute T_EXTENSIONIN-VALUEPART1 assignment with this piece of code.

DATA: BEGIN OF T_DNTAB OCCURS 0.

INCLUDE STRUCTURE DNTAB.

DATA: END OF T_DNTAB.

data: temp(284) type c.

data fname(50) type c.

data temp1 type string.

CALL FUNCTION 'NAMETAB_GET'

EXPORTING

langu = sy-langu

tabname = 'BAPE_VBAK'

TABLES

nametab = t_dntab.

loop at i_dntab.

concatenate '<workarea for the table>' '-' t_dntab-fieldname into fname.

assign (fname) to <fs1>.

move <fs1> to temp1.

concatenate temp temp1 into temp.

endloop.

T_EXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.

T_EXTENSIONIN-VALUEPART1 = temp.

*******************************Reward points if found useful**********************

Regards,

Kriththika.