Skip to Content

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:

/1BCWDY/B_QM6OMFHU365KFYNR6UXO

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.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply