cancel
Showing results for 
Search instead for 
Did you mean: 

Comparing two structures

Former Member

Hi All,

I have to compare two structures of same type and find the fields in which there are different values. Please let me know how can i do this?

Thanks in Advance,

Phani.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Phani,

I think <b>COMPARE_STRUCTURE_DATA</b> will be helpful to you

You can also check the following Function modules:-

/SAPPCE/JVA_COMPARE_STRUCTURES

CATSXT_COMPARE_STRUCTURES

FVD_API_COMPARE_STRUCTURES

RKE_COMPARE_ERKRS_STRUCTURE

SVRS_COMPARE_STRUCTS

Regards,

Sameena

Canet_1976
Explorer
0 Kudos

Dear sameena attarwala.

Your answer is correct because I've used CATSXT_COMPARE_STRUCTURES SAP FM

on it tells me how many fields are diferents and also the value.

Thanks for sharing.

King regards.

Answers (2)

Answers (2)

Lakshmant1
Active Contributor
0 Kudos

Hi Phani,

Check FM's COMPARE_TABLES and

COMPARE_STRUCTURE_DATA

Thanks

Lakshman

Former Member
0 Kudos

Phani,

Can you explain a little more with a example, what exactly are you trying to do?

Regards,

Ravi

Former Member
0 Kudos

Hi Ravi,

lets suppose that there are two local structures of type VBAP and both consists of same information with different item categories or quantity or ... i have to find out which of the fields in the structures are not having same values.

hope i am clear now.

Regards,

Phani

Message was edited by: Phani Kumar