Skip to Content
Author's profile photo Bal Mahmoudou

Scan webdynpro generated report( search any text)

Scan webdynpro generated report

Here a little report for searching any text or string in a webdynpro  component( including all views and assistance class)

Sometimes it is useful to find a given OTR id or text used in a WD component.

My requirement was to extract all OTR used in a WD component for mass translation.

Step 1: Create Selection screen:

Selection screen allow user to enter WD component and text to be found

Step 2: Get technical object related to WD component

Following tables will be used to get technical data :

·         WDY_WB_GENINFO : contains programs names for all WD object( comp controller,views..)

·         WDY_COMPONENT: link between  assistance class and WD component

Step 3: Call standard report RS_ABAP_SOURCE_SCAN

Report RS_ABAP_SOURCE_SCAN is provided by SAP for scanning report, class, package and so on…).

Field  WDY_WB_GENINFO-GUID contain the id of program, however we should add prefix ‘/1BCWDY/B_’ at the beginning of that field.This will looks like:


Step 4: Submit standard report

SUBMIT rs_abap_source_scan
WITH p_class IN p_class “assistance class

                WITH repname IN rename   “id of generated program
WITH sstring IN sstring   “string to search

Source code:

Complete source code in the attachment below.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member


      Very useful document.Thanks for sharing.



      Author's profile photo Holger Pakirnus
      Holger Pakirnus

      Just what I've looked for - issued only few days ago. You've read my mind 😎

      Many thanks for sharing!


      Author's profile photo Bal Mahmoudou
      Bal Mahmoudou
      Blog Post Author

      you're welcome Holger.

      Author's profile photo Joyanta Pradhan
      Joyanta Pradhan

      Is the attachment removed or missed? 🙂