cancel
Showing results for 
Search instead for 
Did you mean: 

Syntaxis Error in routine - TRCS 0HR_PA_1 -> CUBE 0PA_C01

Former Member
0 Kudos

HI,

When I try to active transformation TRCS 0HR_PA_1 -> CUBE 0PA_C01, I have syntaxis errors with routines. Do you know why it happens?


The field "RECORD" is unknown, but there are the following fields with similar names: "RECORD_ALL" and "G_RECORD_NO".

(Please, see the attached file)

Thanks and regards,

Berta

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Did u find a solution for this issue

Former Member
0 Kudos

Could you please share the start and end routine code.

Former Member
0 Kudos

Hi Shyam!

This is the syntaxis error:

IF G_RECORD_NO <> RECORD.

    G_RECORD_NO = RECORD.

    CLEAR: EMPLOYEE_MD, PERSON_MD.

    CLEAR: EMPLOYEE_WA, PERSON_WA.

  ENDIF.

  PERFORM CALCULATE_ULTIMO

          USING SOURCE_FIELDS-CALDAY+0(6)

                 RECORD

                 RECORD_ALL

                 SOURCE_SYSTEM

          CHANGING ULTIMO

                   RETURNCODE.

If I change manually "RECORD" to "SOURCE_FIELDS-RECORD", the syntaxis routine is correct,

IF G_RECORD_NO <> SOURCE_FIELDS-RECORD.

    G_RECORD_NO = SOURCE_FIELDS-RECORD.

    CLEAR: EMPLOYEE_MD, PERSON_MD.

    CLEAR: EMPLOYEE_WA, PERSON_WA.

  ENDIF.

  PERFORM CALCULATE_ULTIMO

          USING SOURCE_FIELDS-CALDAY+0(6)

                 SOURCE_FIELDS-RECORD

                 RECORD_ALL

                 SOURCE_SYSTEM

          CHANGING ULTIMO

                   RETURNCODE.

I would like to know if there is a sap note because I have the same problem when I try to activate another transformations.

Thanks,

Berta

Former Member
0 Kudos

Have you define any local variable record in the definition area