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

How to use the compare statement

Former Member
0 Likes
1,434

Hi All,

Can anyone tell me how to compare the Internal table entries with the entries in the standard table,

Also if the entries matches between the internal table & the standard table than how to generate the

excel sheet with those entries.

Thanks in Advance

Parag

Hi All,

Can anyone tell me how to compare the Internal table entries with the entries in the standard table,

Also if the entries matches between the internal table & the standard table than how to generate the

excel sheet with those entries.

Thanks in Advance

Parag

3 REPLIES 3
Read only

Former Member
0 Likes
686

Hi Parag,

If Internal table line type and Standard table line type are equal you can compare directily with their work areas.

otherwise, You may use Read table Itab into wa COMPARING <fields> .

if sy-subrc = 0 ,append your records to another table (or delete records from Internal table which or not required i.e. when sy-subrc ne 0)

Then down load the file Using 'GUI_DOWNLOAD' by '.CSV' extension.

Regards,

Raghava.Channooru.

Read only

Former Member
0 Likes
686

Pls clarify your question..In internal table from where are you picking the data. Are you inserting the data into internal table and then want to append in standard table (from which you want to compare for duplicacy) or from somewhere else?

Read only

ThomasZloch
Active Contributor
0 Likes
686

I think this is the fourth time I'm locking or deleting this particular issue of yours.

If I see it one more time here then I will hand your ID over for further investigation.

Do your own work and only post specific problems here.

Study the rules of engagement.

Thomas