Skip to Content

Syntax error in substitution "ZXXXX", step "002", FI

Hi Folks,

We had the requirement for substituting the Witholding Tax, so we created a substitution for complete document in the Financial Accounting.

We want the BSEG Table in the form so used the following code. But we are getting the error Syntax error in substitution "ZXXXX", step "002". "Exit U109 has the incorrect type Message no. GB027 "

  exits-name  = 'U109'.
  exits-param = c_exit_param_class.
  exits-title = TEXT-904.  " User Exit to calculate WHT
  APPEND exits.


FORM u109 USING bool_data TYPE gb002_015
          CHANGING b_result.

ENDFORM.

IN GGB1

Please help me on this :)

Regards,

Sushanth

capture.jpg (22.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 28 at 09:01 AM

    Hi,

    C_EXIT_PARAM_FIELD should be used instead of

    C_EXIT_PARAM_NONE.

    https://wiki.scn.sap.com/wiki/display/ERPFI/Creating+user+exits+for+substitutions

    kr

    NIco

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 28 at 12:39 PM

    Dear Sushanth,

    Check the param that you are passing to the exits-param. It should be c_exit_param_none or value '0000'.

    Also check if you have included the Title Declaration in the FORM get_exit_titles:

    Best regards,

    Gabriel Coleti

    Add comment
    10|10000 characters needed characters exceeded

  • May 24 at 06:29 AM

    Hi All,

    Thanks for the help. There were some configuration issues. We solved it. Here are the snippets.

    In GGB1 we used only exit instead of Field.

    And the code is as follows.

      exits-name  = 'U109'.
      exits-param = c_exit_param_class.
      exits-title = TEXT-904.  " User Exit to calculate WHT
      APPEND exits.
    
    FORM u109 USING bool_data TYPE gb002_015.
    
    ENDFORM.
    Add comment
    10|10000 characters needed characters exceeded