nerdexam
SAP

C_BOCR_11 · Question #148

You must create a formula in a Crystal report that will evaluate an array, determine if the field value is already present in the array and add the value if it does not exist as an array member. You…

The correct answer is C. Change the assign operators from Crystal to Basic syntax. See the full explanation below for the reasoning.

Question

You must create a formula in a Crystal report that will evaluate an array, determine if the field value is already present in the array and add the value if it does not exist as an array member. You must keep all existing array members when new values are added. There are 900 potential array members. You develop the following formula, but find that it does not work as required:

shared idarray() as number shared rtI as number if onfirstrecord or {Customer.Country} <> previousvalue({Customer.Country}) thenredim idarray(1) rtI := 0 end if if not({Orders.Order ID} in idarray) then rtI := rtI + 1 formula := idarray(rtI) Which modification will make the following formula work correctly?

Options

  • AIncrement a second counter.
  • BRe-declare the variables with a new scope.
  • CChange the assign operators from Crystal to Basic syntax.
  • DAdd another array variable to account for all potential array members.

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    75% (27)
  • D
    14% (5)

Community Discussion

No community discussion yet for this question.

Full C_BOCR_11 Practice