Автор Тема: забыл как длину строки считать...  (Прочитано 14132 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Skif

  • Jr. Member
  • **
  • Сообщений: 726
  • Репутация: +10/-0
  • YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
забыл как длину строки считать...
« : Июль 06, 2009, 01:44:06 pm »
напомните плз ;)

Оффлайн Uukrul

  • SAP ECC 6.0 Ehp(*)
  • Administrator
  • Epic Member
  • *****
  • Сообщений: 3 809
  • Репутация: +47/-0
  • Пол: Мужской
  • YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
    • Sapforum.BIZ
Re: забыл как длину строки считать...
« Ответ #1 : Июль 06, 2009, 02:22:07 pm »
You are not allowed to view links. Register or Login
напомните плз ;)

Function func Return value
charlen  - Length of the first character of arg in the code page used: 1 for non-Unicode single-byte code; 1 or 2 for non-Unicode double-byte code; 1 for Unicode with single Unicode characters; 2 for Unicode with double unicode characters;

dbmaxlen
- Maximum length of a string defined in the ABAP Dictionary (RAWSTRING, SSTRING, STRING). If the string is unlimited, the constant abap_max_db_string_ln or abap_max_db_rawstring_ln is returned from the type group ABAP.

numofchar - Same as for the function strlen, except that in this case when a non-Unicode double-byte code is used, a character that occupies 2 bytes is only counted once.

strlen - Number of characters in arg; blanks at the end of data objects with a fixed length are not counted, although they are counted in type string data objects. If you use a non-Unicode double-byte code, a character that occupies 2 bytes is counted twice.

xstrlen - Number of bytes in arg.

Ну тебя интересует strlen писать типа так len = strlen( <строка> ). Пробелы после скобок обязательны  ;)

Оффлайн Skif

  • Jr. Member
  • **
  • Сообщений: 726
  • Репутация: +10/-0
  • YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: забыл как длину строки считать...
« Ответ #2 : Июль 06, 2009, 04:10:42 pm »
You are not allowed to view links. Register or Login
Function func Return value
charlen  - Length of the first character of arg in the code page used: 1 for non-Unicode single-byte code; 1 or 2 for non-Unicode double-byte code; 1 for Unicode with single Unicode characters; 2 for Unicode with double unicode characters;

dbmaxlen
- Maximum length of a string defined in the ABAP Dictionary (RAWSTRING, SSTRING, STRING). If the string is unlimited, the constant abap_max_db_string_ln or abap_max_db_rawstring_ln is returned from the type group ABAP.

numofchar - Same as for the function strlen, except that in this case when a non-Unicode double-byte code is used, a character that occupies 2 bytes is only counted once.

strlen - Number of characters in arg; blanks at the end of data objects with a fixed length are not counted, although they are counted in type string data objects. If you use a non-Unicode double-byte code, a character that occupies 2 bytes is counted twice.

xstrlen - Number of bytes in arg.

Ну тебя интересует strlen писать типа так len = strlen( <строка> ). Пробелы после скобок обязательны  ;)
да-да - strlen - почти как в с ;)
мда склероз прогрессирует ;)
немного доделал ZRHPROFL0
роль юзера (standart role в HR) обозначается как ZmndSIDкод_должности. соотвественно юзеры генеряться/обновляются только в предназнченных системах с предназначенной в них ролью.



Sapforum.Biz

Re: забыл как длину строки считать...
« Ответ #2 : Июль 06, 2009, 04:10:42 pm »