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

Abap Code to Delete the Duplicate Entries in Datasource

Former Member
0 Likes
415

hI Friends I have a code that I am writing to delete the duplicate entries from CRM Custom Datasource but it is throwing me error that INVERNO The specified type has no structure and therefore no component called INVERNO Should i define the structure please correct my code below so that it will work to delete the duplicate entries

Please help

Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source

Case i_DATASOURCE.

when 'ZZ_DS_CUSTOM_CRM_VALUES'.

Sort C_T_DATA by INVERNO ZMKT_TYP.

*write this Statement.

DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INVERNO ZMKT_TYP.

endcase.

Thanks

Soniya

null

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
361

Hi

It means there's no field called INVERNO:

Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source

Case i_DATASOURCE.

when 'ZZ_DS_CUSTOM_CRM_VALUES'.

<b>*Sort C_T_DATA by INVERNO ZMKT_TYP. <------</b>

Sort C_T_DATA by INTRENO ZINS_TYP.

*write this Statement.

DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INTRENO ZINS_TYP.

endcase.

Max

Hi

It means there's no field called INVERNO:

Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source

Case i_DATASOURCE.

when 'ZZ_DS_CUSTOM_CRM_VALUES'.

<b>*Sort C_T_DATA by INVERNO ZMKT_TYP. <------</b>

Sort C_T_DATA by INTRENO ZINS_TYP.

*write this Statement.

DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INTRENO ZINS_TYP.

endcase.

Max

1 REPLY 1
Read only

Former Member
0 Likes
362

Hi

It means there's no field called INVERNO:

Data: l_s_ZOXD530051 like ZOXD530051. ***Extract Structure of Data source

Case i_DATASOURCE.

when 'ZZ_DS_CUSTOM_CRM_VALUES'.

<b>*Sort C_T_DATA by INVERNO ZMKT_TYP. <------</b>

Sort C_T_DATA by INTRENO ZINS_TYP.

*write this Statement.

DELETE ADJACENT DUPLICATES FROM C_T_DATA COMPARING INTRENO ZINS_TYP.

endcase.

Max