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.
Selection screen allow user to enter WD component and text to be found
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
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
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
Complete source code in the attachment below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 |