메뉴 건너뛰기

SAP 한국 커뮤니티

누가 물어봐서 찾아봤는데.. 안될 것 같지만, 혹시 고수께서 알고 계실까 해서 올립니다.


textpool 타입에 아예 색깔 관련 속성은 없어서 불가능하지 싶습니다만;;


 


 


참고로 dynamic 하게 설정하는걸 찾았는데.. 참조로 한 번 보실분을 위해서..


 


 



Text Elements



Text elements allow you to store texts without hard-coding them in your program. You can maintain text elements outside the program in which they are used (choose Goto → Text elements in the Editor). They are particularly important for texts in applications that will be translated into other languages.
All programs (including include program) have a title. Other text elemen are assigned to the associated main program.

ABAP has the following kinds of text element:




  • Program title

  • List heading

  • Column heading

  • Selection texts (for texts belonging to selection criteria and program parameters)

  • Text symbols (constant texts)




The construction of text elements is defined by the structure TEXTPOOL. It contains the following fields:



ID:
A single character, representing the text element type. You can use the following values:

R - Program title
T - List heading
H - Column heading
S - Selection text
I - Text symbol



KEY:
Key field, which may contain the following values, depending on the type of the text element:

H - Number of a row with columns
-headings (001 - 004)
S - max. 8 character name of a selection
criterion or program parameter
I - 3 character number for a text symbol

The field is empty for program titles and list headings.



ENTRY:
Text of the text element (maximum 255 characters)



LENGTH:
Length of the text


Example


The following table displays some typical values for text elements:




































ID KEY ENTRY LENGTH
H 001 Name Age 10
I 100 Tax 10
R , Test program 12
S CUST Customer 8
T , Sales 10


Notes



  1. LENGTH determines the total available length for the text. If the text is to be translated into other languages, you should choose a value of LENGTH that is greater than the length required in the original language, to allow for translations that are longer than the original language version.


  2. You can address text elements in two ways, either using TEXT-xxx or using '...'(xxx). Here, xxx stands for the number, and ... for the text of the text symbol.

    The first form requires that there is already a text for number xxx. If there is not, the output is empty.

    The second form improves the readability of the program. The text in inverted commas should correspond to the text stored under the text symbol. If it does not, the system uses the text stored for the text symbol. Exception: If there is no text saved under number xxx, the text in inverted commas is used.

    Example: Text symbol number 001 has the text 'Please enter your name'. The following commands:

    WRITE: / TEXT-001,
    / 'Please enter your name'(001),
    / 'What is your name?'(001).

    all have the same output: "Please enter your name".

    You can compare the texts used in the program with the texts stored as text symbols by choosing "Goto → Text elements → Compare text symbols" in the Editor.


  3. If you set a LENGTH for the text element that is longer than the text itself, this is interpreted as though the text had trailing spaces up to the specified LENGTH. This means that if you use the notation '...'(xxx), the text between the inverted commas must have trailing zeros up to the length LENGTH. Otherwise, the text stored under the text symbol will not correspond with the text in inverted commas (see note 2).

    Example: Suppose text symbol number 036 has the contents 'Name', and length 10. The following statement: folgende Befehl

    WRITE: / SY-VLINE, TEXT-036, SY-VLINE,
    / SY-VLINE, 'Tax '(036), SY-VLINE,
    / SY-VLINE, 'Tax'(036), SY-VLINE.

    would then output "| Tax |" three times. In particular, in the third line, the text symbol number 036 is output in length 10, and not the three-character text "Tax". If you compare the text elements (see note 2), the text symbols in the second and third lines are flagged as being different.



  4. You should not use text symbols in subroutines that have more than one main program, since this leads to redundant text and unnecessary translation.
    Instead, you should store these portions of code in subroutine pools.



 

번호 제목 글쓴이 날짜 조회 수
5090 <img src=2.gif>키값이 다른대도 insert가 안되네염.뭐가 잘못되었는지 알려주세염 [4] 꼬마호랑이 2010.10.22 1234
5089 [요청]메지지 처리에 관한 도움말 관련에 대해 문의드립니다. [3] 풍뎅이 2008.01.29 1235
5088 <img src=3.gif border=0>[요청]SAP사에서 만든 프로그램이 아닌 유저들이 만든 프로그램은 주로 어디서 찾을 수 있나요? [1] 비안개 2008.09.16 1235
5087 <b>[완료]</b>where조건 구문에러 나는데요..아무리 보아도 맞는것 같은데.... [6] 예슬짱 2009.01.19 1235
» <img src=2.gif border=0>selection screen 의 text element에 색깔 넣기 [2] 정군 2009.04.07 1235
5085 [요청]필터링 관련, 로직 관련 질문 입니다(파일 첨부) [1] file 슈퍼아밥퍼가되련다 2008.08.12 1236
5084 <img src=3.gif border=0>EKKO-ADRNR에 데이터가 없을시 주소명 취득 어떻게 해야하나요? [2] 레몬과자 2009.04.21 1236
5083 <img src=2.gif border=0>네이티브 SQL에서 명시적인 COMMIT 처리 방법??? [2] 궁그미 2009.06.08 1236
5082 <img src=2.gif>sap query 이벤트 거는 방법 쫌 갈켜주세요 [1] 아밥고지를 찾아서 2009.12.17 1236
5081 <img src=2.gif>[빠른답변요청]loop 돌릴때 안의 조건 써주는 것이 헷갈려서 그러는데요 [4] 오렌지겅주님 2010.09.07 1236
5080 <img src=2.gif>스크롤바를 클릭하면 메세지 창이 뜸니다;; [1] 아밥초보 2010.10.29 1236
5079 <b>[완료]</b>스탠다드 테이블에서 데이타가 존재하는 지만 체크할때? [5] 김지성 2008.02.25 1237
5078 <b>[완료]</b>두 인터넬 테이블간의 데이터 이동에 관한 질문입니다 [3] 아밥어렵네요 2008.09.11 1237
5077 <b>[완료]</b>스마트폼 관련 질문입니다...(페이지 관련) [3] 좋아 2008.10.28 1237
5076 <b>[완료]</b>RFC펑션 질문좀 하겠습니다. 수동적이 아닌 다이나믹하게. [4] 쭈니 2008.12.18 1237
5075 [요청]alv에서의 possible entries 질문입니다. [2] file 참참참 2009.01.15 1237
5074 <img src=3.gif border=0>Function ALV 편집-내부테이블에 반영 문제.. [3] JiruMi 2009.09.14 1237
5073 <img src=2.gif>ALV 에서 컬럼헤딩 텍스트 길이가 50 정도 되는데, 잘려서 나오네요. 방법이 없나요? [1] 푸른창공 2009.11.19 1237
5072 <img src=3.gif>Hierarchy 구조에서 체크박스 이벤트 문의 [1] file 버미! 2009.12.09 1237
5071 HINT 튜닝을 통한 쿼리 속도 개선 문의 드려요 [1] HANAMANA 2020.06.02 1237