How To Fix SPRX070 - Avoid using tables without surrounding tag for individual lines


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SPRX - Proxy Generation

  • Message number: 070

  • Message text: Avoid using tables without surrounding tag for individual lines

  • Show details Hide details
  • What causes this issue?

    The interface description defined a repetition group (a strictly
    table-type structure):
    <sequence maxOcxurs="unbounded">
    <choice maxOcxurs="unbounded">
    <group maxOcxurs="unbounded">
    We do not recommend this definition because the individual table rows in
    the XML instance do not have a surrounding tag.

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

    Example
    The XML schema contains:
    <element name="Struc">
    <complexType>
    <sequence>
    <element name="Field1" type="string"/>
    <sequence maxOccurs="unbounded">
    <element name="Field2" type="string" minOccurs="0"/>
    <element name="Field3" type="string" minOccurs="0"/>
    </sequence>
    <element name="Field4" type="string"/>
    </sequence>
    </complexType>
    </element>
    A valid XML fragment is as follows:
    <Struc>
    <Field1>xxx</Field1>
    <Field2>yyy</Field2>
    <Field3>zzz</Field3>
    <Field2>xxx</Field2>
    <Field3>yyy</Field3>
    <Field4>zzz</Field4>
    </Struc>
    In this scenario there are several problems for the handling of the
    mapping between ABAP structures and xml data:
    1. If all fields are optional it is impossible to derive all table rows
    uniquely. In the above example, the ABAP table could have 2, 3 or 4
    lines.
    2. If some of the optional fields are missing, the simple transformation
    used for mapping the xml to ABAP will have problems determining when the
    table lines are finished and might even lose the information of <Field4>
    <(>,<)><ZH> ie there is a risk of dataloss. </>
    3. In some situations, e.g. with tables inside tables, some of which
    have no line tags, <ZH>endless loops </>may occur inside the simple
    transformation.

    System Response

    A warning appears for this type.

    How to fix this error?

    Define the repetition groups with
    <element maxOccurs="unbounded" ...>

    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 SPRX070 - Avoid using tables without surrounding tag for individual lines ?

    The SAP error message SPRX070, which states "Avoid using tables without surrounding tag for individual lines," typically occurs in the context of SAP Smart Forms or SAPscript when there is an issue with the structure of the form layout. This error indicates that the system has detected a table structure that is not properly encapsulated within a surrounding tag, which can lead to rendering issues or incorrect output.

    Cause:

    1. Improper Table Structure: The error is usually caused by a table being defined without the necessary surrounding tags. In Smart Forms, each table should be enclosed within a proper structure to ensure that the individual lines are correctly interpreted.
    2. Missing or Incorrect Tags: If the table rows or cells are not properly defined with the required tags, the system may not be able to process them correctly.
    3. Form Design Issues: The design of the Smart Form or SAPscript may not adhere to the required standards for table definitions.

    Solution:

    1. Check Table Structure: Review the Smart Form or SAPscript layout to ensure that all tables are properly defined. Each table should have a surrounding tag that encapsulates the entire table structure.
    2. Add Surrounding Tags: If you find any tables that are not properly enclosed, add the necessary surrounding tags. For example, in Smart Forms, ensure that the table is enclosed within a Table node.
    3. Validate the Form: After making changes, validate the Smart Form or SAPscript to ensure that there are no further errors. You can do this by using the "Check" function in the Smart Forms transaction (SMARTFORMS).
    4. Test the Output: Generate a test output to confirm that the changes have resolved the issue and that the form renders correctly.

    Related Information:

    • SAP Smart Forms Documentation: Refer to the official SAP documentation for Smart Forms to understand the correct structure and syntax for defining tables.
    • SAP Community: Engage with the SAP Community forums for additional insights and solutions from other users who may have encountered similar issues.
    • Debugging Tools: Utilize debugging tools within SAP to trace the execution of the Smart Form and identify where the error is occurring.

    By following these steps, you should be able to resolve the SPRX070 error and ensure that your Smart Form or SAPscript functions correctly.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker