cancel
Showing results for 
Search instead for 
Did you mean: 

message mapping

Former Member
0 Kudos

hi all.

here iam dealing with file to rfc.

in message mapping i need to check file body with trailer info.

i.e i need to count all records with trailer record.

and i need to check contract amounts in file body with trailer amount.

how we can check in message mapping.

can u explain me clearly.

iam very greatful if any body answered this question.

waiting for u r response.

bye.

regards.

seeta ram.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Seeta

For counting you can use a function 'count' in Statistics Functions in Graphical Mapping.

records --> ( count ) -


> target field for counter

This will return no of records.

Regards

Former Member
0 Kudos

thanks for u r answer but if any mismatch occurs

i just need to set flag field to N Otherwise to Y and map this field with bapi table field how we can do this.

please its very urgence for me to solve.

waiting for u r answer.

bye.

regards.

seeta ram.

Former Member
0 Kudos

Hi

To look for mismatch you will have to check with If function from Boolean Function group.

If correct then assign 'constant' Y

If not then assign 'constant' N to flag at target which you want to map with bapi table

This constant function you can use from Function group Constants.

Thanks and Regards

Former Member
0 Kudos

hi thanks for u r answer

but can u just tell me how we can count all records and how we can handle if condition and i need to compare sum of all amounts .

how we can do it if its possible with UDF can u just send me the sample code.

waiting for u r answer.

bye.

regards.

seeta ram.