Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

4 Comments
Labels in this area