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

Close

How To Fix WD339 - Choose a document template


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WD - Workflow definition

  • Message number: 339

  • Message text: Choose a document template

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WD339 - Choose a document template ?

    SAP Error Message:
    WD339 - Choose a document template


    Cause:

    The error message WD339 - Choose a document template typically occurs in SAP Web Dynpro applications when the system expects a document template to be selected or assigned but none has been provided. This often happens in scenarios involving document generation, output management, or when working with services that require a predefined template (e.g., Smart Forms, Adobe Forms, or other document templates).

    In other words, the application or process is trying to generate or display a document, but it cannot proceed because the required document template is missing or not specified.


    Common Scenarios:

    • Output Management (e.g., SAP S/4HANA output determination) where a document template is required for printing or emailing.
    • Adobe Forms or Smart Forms integration where the form template is not assigned.
    • Custom Web Dynpro applications that require a document template to be selected before proceeding.
    • Document generation services in SAP Fiori or Web Dynpro applications.

    Solution:

    1. Assign or Select a Document Template:

      • Identify the process or transaction where the error occurs.
      • Ensure that a valid document template is assigned or selected in the configuration or during runtime.
      • For output management, check the output determination procedure and assign the correct form template.
      • For Adobe Forms or Smart Forms, verify that the form is correctly linked to the output type or process.
    2. Check Configuration:

      • In case of output management, verify the output type configuration in SPRO (e.g., Sales and Distribution -> Basic Functions -> Output Control).
      • Ensure that the document template (form) is maintained and active.
    3. Check User Input:

      • If the application expects the user to select a template, ensure that the user selects one before proceeding.
      • Provide clear UI instructions or validations to prevent proceeding without template selection.
    4. Debugging:

      • If the error occurs in a custom Web Dynpro application, debug the code to check where the template selection is expected.
      • Verify that the context node or attribute holding the template information is correctly populated.
    5. Transport and Deployment:

      • Ensure that the document templates are transported correctly between systems (DEV -> QA -> PROD).
      • Missing templates in the target system can cause this error.

    Related Information:

    • Transaction Codes:

      • SPRO - For configuration of output types and form assignments.
      • WE02 / WE05 - For monitoring IDocs if output is triggered via IDocs.
      • SMARTFORMS - To check Smart Forms.
      • SFP - For Adobe Forms.
      • Web Dynpro applications are usually accessed via specific URLs or transactions.
    • Notes and Documentation:

      • Check SAP Notes related to output management and document templates.
      • SAP Help Portal documentation on Output Management and Web Dynpro.
    • Example:

      • In a sales order output scenario, if the output type is configured but no form template is assigned, the system will prompt with WD339 to choose a document template.

    Summary:

    • Cause: No document template selected or assigned where required.
    • Solution: Assign/select the appropriate document template in configuration or at runtime.
    • Check: Output determination, form assignments, user input, and transport of templates.

    If you provide the exact context or transaction where this error occurs, I can help with more specific steps.

    • 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
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant