Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6979931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:56:56+00:00 2026-05-27T17:56:56+00:00

Is there an ABAP custom control with which I can realize syntax highlightning? I

  • 0

Is there an ABAP custom control with which I can realize syntax highlightning? I am using DynPro and not Web Dynpro.

I want to display a textarea which highlights XML code. It would also be great if I could move the cursor to a certain position inside the textarea and therefore inside the code.

Can I do this with cl_gui_textedit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:56:56+00:00Added an answer on May 27, 2026 at 5:56 pm

    You can use the cl_gui_html_viewer class to display XML code in the SAP GUI. This control uses Internet Explorer by default to display HTML content, and is also capable of showing XML content.
    Here’s some quick-and-dirty sample code to get you started. It’s part of a program which has one screen 100, containing a custom control named XMLDEMO (height 27, width 120).

    The report zxmldemo:

    report zxmldemo.
    include zxmldemo_status_0100o01.
    start-of-selection.
      set screen '100'.
    

    And the include zxmldemo_status_0100o01:

    module status_0100 output.
      data xmlstringtable type standard table of char255.
      append '<?xml version="1.0" encoding="ISO-8859-1"?>' to xmlstringtable.
      append '<note><to>Tove</to><from>Jani</from>' to xmlstringtable.
      append '<heading>Reminder</heading>' to xmlstringtable.
      append '<body>Don''t forget me this weekend!</body></note>' to xmlstringtable.
      data container type ref to cl_gui_custom_container.
      create object container
        exporting
          container_name = 'XMLDEMO'.
      data htmlviewer type ref to cl_gui_html_viewer.
      create object htmlviewer
        exporting
          parent = container.
      data url(1024) type c value 'test.xml'.
      htmlviewer->load_data( exporting url = url type = 'text' subtype = 'xml'
                             changing data_table = xmlstringtable ).
      htmlviewer->show_url( url ).
    endmodule.
    

    I don’t think it’s possible to show and move the cursor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there a function in abap can convert digit to word? example: 100 will
There is a conversion process that is needed when migrating Visual Studio 2005 web
There are numerous Agile software development methods. Which ones have you used in practice
There are several shading languages available today like GLSL, HLSL, CG, which one to
There are many string matching algorithms can be used to find a pattern (string)
There's a bug in FireBug: I accidentally clicked where the line numbers are, which
There is a component that I have been using since IE7 and had never
There is a div (form) which opens on the click of a button. There
i have a Web App coded in ABAP / BSP. I´m interested to deliver
There is an application written in PHP which I am converting to Ruby. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.