Application Development 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: 

Append record in field symbol

Former Member
0 Kudos

Hello Experts,

Please have a look at below code .

Code:

loop at <LT_ITAB> ASSIGNING <ls_itab> .

ASSIGN COMPONENT 'DOMVALUE' OF STRUCTURE <ls_itab > TO <ls_itab1>.

READ TABLE lt_itab_1

INTO ls_itab_1

WITH KEY table_line = <ls_itab1>.

IF ls_valid_partner_fct EQ 'YY' .

DELETE <lt_partner_functions>.

ENDIF .

endloop .

I need to delete the record which is working fine ,but the record which is deleted need to be inserted back at row1 of table <LT_ITAB> .Please tell me how to do that.

Regards,

Sharad

1 REPLY 1

alejandro_bindi
Active Contributor
0 Kudos

There's missing code...where did you assign the <lt_partner_functions> field symbol and which type does it have? In case this field symbol and <LT_ITAB> have the same structure, you would do this (before deletion):


INSERT <lt_partner_functions> INTO <LT_ITAB> INDEX 1.

Otherwise you'll need to copy the data to a structure first and then insert that structure to <LT_ITAB>...

Just a comment, is it really needed to use all this field symbols? I mean, they improve performance in certain cases, but they should not be overused as they're more prone to errors...

Regards

Edited by: Alejandro Bindi on Sep 23, 2008 11:27 AM