Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix SMARTFORMS428 - Parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE are not specified


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SMARTFORMS - Smart Forms - Form Builder

  • Message number: 428

  • Message text: Parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE are not specified

  • Show details Hide details
  • What causes this issue?

    One of the parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE has to be
    specified.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Specify the parameter I_STYLE_LANGUAGE and leave the parameter
    I_STYLE_VARIANT empty if you want a variant that is assigned to the
    specified language to be returned.
    If the parameter I_STYLE_VARIANT is filled, the variant specified (if
    it exists) is returned.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SMARTFORMS428 - Parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE are not specified ?

    The SAP error message SMARTFORMS428 indicates that the parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE are not specified when calling a Smart Form. This typically occurs when you are trying to print or display a Smart Form that requires specific style parameters, but they have not been provided in the function module call.

    Cause:

    1. Missing Parameters: The function module for the Smart Form is being called without the necessary parameters for style variant and language.
    2. Incorrect Function Module Call: The function module might be called incorrectly, or the parameters might not be passed properly.
    3. Default Values Not Set: If the Smart Form is designed to use specific styles and languages, and these are not set as defaults, the error will occur.

    Solution:

    To resolve this error, you need to ensure that the parameters I_STYLE_VARIANT and I_STYLE_LANGUAGE are correctly specified when calling the Smart Form. Here are the steps to do this:

    1. Identify the Function Module: Determine which function module is being used to call the Smart Form. This is usually SSF_FUNCTION_MODULE_NAME followed by the Smart Form name.

    2. Check Parameter Passing: When calling the Smart Form, ensure that you are passing the I_STYLE_VARIANT and I_STYLE_LANGUAGE parameters. For example:

      DATA: lv_function_name TYPE rs38l_fnam,
            lv_style_variant TYPE tdsstylen,
            lv_style_language TYPE tdsstylen.
      
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'YOUR_SMARTFORM_NAME'
        IMPORTING
          fm_name            = lv_function_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      
      IF sy-subrc = 0.
        CALL FUNCTION lv_function_name
          EXPORTING
            control_parameters = control_parameters
            output_options     = output_options
            user_settings      = 'X'
            i_style_variant    = lv_style_variant
            i_style_language   = lv_style_language
          IMPORTING
            job_output_info    = job_output_info
          EXCEPTIONS
            formatting_error   = 1
            internal_error     = 2
            send_error         = 3
            user_cancelled     = 4
            OTHERS             = 5.
      ENDIF.
    3. Set Default Values: If applicable, set default values for the style variant and language in the Smart Form settings or in the calling program.

    4. Check Smart Form Configuration: Ensure that the Smart Form itself is configured to use the specified styles and languages. You can do this by checking the Smart Form in transaction SMARTFORMS.

    5. Testing: After making the necessary changes, test the Smart Form again to ensure that the error is resolved.

    Related Information:

    • Smart Forms Documentation: Review the SAP documentation for Smart Forms to understand how styles and languages are managed.
    • SAP Notes: Check for any relevant SAP Notes that might address specific issues related to Smart Forms and this error message.
    • Debugging: If the issue persists, consider debugging the program to trace how the parameters are being passed and identify any discrepancies.

    By following these steps, you should be able to resolve the SMARTFORMS428 error and successfully call your Smart Form with the required parameters.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author