Note: OTR : Online Text Repository
12:52 AM
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=111247369
Introduction
The Online Text Repository (OTR) is a central storage location for texts, and services for editing and administering these texts. It first appeared with Business Server Pages in SAP 6.10.
Texts are cross-client workbench objects.
They can be maintained via SOTR_EDIT transaction, and from transactions of workbench object using OTR, which comprise:
They can be translated via SE63_OTR transaction.
They are stored in tables SOTR_HEAD and SOTR_TEXT.
Here are a few function modules to access them:
|
ABAP : how to select folder in abap selection screen?
8:05 PM
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_FOLDER TYPE STRING LOWER CASE DEFAULT 'C:\'.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FOLDER.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
CHANGING
SELECTED_FOLDER = P_FOLDER
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PARAMETERS : P_FOLDER TYPE STRING LOWER CASE DEFAULT 'C:\'.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FOLDER.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
CHANGING
SELECTED_FOLDER = P_FOLDER
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BSP: how to assign object mime to an iview? pdf , image , doc and etc
8:03 PM
Recently i was asked to how to link a pdf to the portal front.
Well It was like 4 years ago i did this and guess what i almost forget. But thanks to Chin Yoon Chan
I kind of relearn back.
Will explain in a brief and high detail way.
1. create a BSP in tcode SE80
2. create the html content (well optional)
3. import object mime (this time is a pdf)
4. create and bsp iview (you can see in the image attached)
5. link the start page to the EXACT location of your mime
6. As normal portal change
link iview to page
link pageto workset
link workset to role
configure img to reflect in the sub area (optional)
Well It was like 4 years ago i did this and guess what i almost forget. But thanks to Chin Yoon Chan
I kind of relearn back.
Will explain in a brief and high detail way.
1. create a BSP in tcode SE80
2. create the html content (well optional)
3. import object mime (this time is a pdf)
4. create and bsp iview (you can see in the image attached)
5. link the start page to the EXACT location of your mime
6. As normal portal change
link iview to page
link pageto workset
link workset to role
configure img to reflect in the sub area (optional)
ABAP : To check numeric or aplhabate value only
8:36 PM
"""""""""
if TEXT_VALUE CO '0123456789.'. "PERFORM THIS STATEMENT IF IS TRUE.
else.
"RETURN ERROR
endif. """""""""
"""""""""
if TEXT_VALUE CO 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
"PERFORM THIS STATEMENT IF IS TRUE.
else.
"RETURN ERROR
endif.
"""""""""
if TEXT_VALUE CO '0123456789.'. "PERFORM THIS STATEMENT IF IS TRUE.
else.
"RETURN ERROR
endif. """""""""
"""""""""
if TEXT_VALUE CO 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
"PERFORM THIS STATEMENT IF IS TRUE.
else.
"RETURN ERROR
endif.
"""""""""
Adobe livecycle designer COMMON crash Problem
12:41 AM
Ever had that problem after so many years and months of using Adobe livecycle and SFP code all of the sudden it went haywired!
Crashed and OLE error!
Frustrated and tried reninstalling
Adobe reader
SAP Gui
Ms SQL server 2008
And livecycle itself.
But no solution
No matter what version.
No matter what problem i believe that the problem lies in the initial folder where the livecycle created the folder under
C:\Documents and Settings\your_user_name\Application Data\Adobe\Designer
your_user_name = this is your username used by your windows.
Solution:-
Just rename your Designer
to Designer_backup
or
you can choose to delete it.
TaDA! problem solved and please do comment if you think my solution works
Crashed and OLE error!
Frustrated and tried reninstalling
Adobe reader
SAP Gui
Ms SQL server 2008
And livecycle itself.
But no solution
No matter what version.
No matter what problem i believe that the problem lies in the initial folder where the livecycle created the folder under
C:\Documents and Settings\your_user_name\Application Data\Adobe\Designer
your_user_name = this is your username used by your windows.
Solution:-
Just rename your Designer
to Designer_backup
or
you can choose to delete it.
TaDA! problem solved and please do comment if you think my solution works

