Skip to Content
0
Former Member
Oct 24, 2013 at 12:31 PM

ABAP Logic - tables with different format

29 Views

I have no idea why my topic has been deleted so I am posting again.

Moderators: if there was a problem with my topic, please let me know.

I still have issues. I am gonna try to explain better this time.

I need to compare data that comes from an interface.

Data from SAP have this format in table:

TYPES: BEGIN OF lt_A,

nachn TYPE pad_nachn,

vorna TYPE pad_vorna,

stras TYPE pad_stras,

pstlz TYPE pstlz_hr,

ort01 TYPE pad_ort01,

END OF lt_A.

Data from table that is created with after I receive data from interface

TYPES: BEGIN OF lt_b,

name TYPE string,

vorname TYPE string,

strasse TYPE string,

haus_nr TYPE int4,

haus_nr_zusatz TYPE string,

plz TYPE string,

ort18 TYPE string,

END OF lt_b.

I need now to create another table to store only data that matches.

Criteria is: If name, last name, Street, PLZ and ORT from table 1 = table 2, populate table 3.

If they are not equal, message INCORRECT and do not populate table 3.

I am struglying to create table 3 as the other 2 tables have complete differente format. Can someone please help?

Thank you,

F