Problem in using Business function "RecursiveRelationshipCheck" for F0150

anandr3

Member
Problem in using Business function \"RecursiveRelationshipCheck\" for F0150

Hi,

I have a problem in using the following Business function:

"B0100066 - RecursiveRelationshipCheck"

My input to the business function are
Organisation Structure type (OSTP) = blank
Address number = Child Address number
Parent Address number = Parent Address number
ParentAddress number original = Not assigned any value

The requirement is check that a child should not have 2 parents. My data is
like this:
P1 C1, C2, C3
P2 C1, C4
P3 C5

( P for parent and C for Child )

Everytime the Business Function is called, records are inserted into F0150
table whenever "ERROR STATUS" is Success.
i.e records C1, C2, C3 are inserted for P1 and C4 for P2 and C5 for P3.
But for the pair (P2,C1) I should be getting the "ERROR STATUS" as Error
and record should not be inserted into F0150.
Instead the "ERROR STATUS" is Success.
Is the problem due to "OSTP" being blank and "Parent Address number
original" not assigned any value ?

Please let us know the correct approach of using this business function.

Thanx in advance

Rakesh Anand
 
Back
Top