‎2007 Sep 18 12:08 PM
Hi,
Please let me know if the Data Type- STRG (Char string,variable length) is allowed for RF Screen.
I want to use a field with Defined Len = 1000 CHAR & visible Len = 1.
Pls let me know if you hv some other solution also...
Regards,
Rushikesh
‎2007 Sep 18 12:19 PM
what is it you want to achieve with it ?? that someone fills in one line of 1000 characters in a screen ??
the screen is limited to I believe 50 to 80 characters.
but you can add a memo field to the screen where they can enter a complete tektarea
like
SELECTION-SCREEN PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
initialization.
at selection-screen.
case sy-ucomm.
when 'WERK'.
perform lange_omschrijving.
FORM lange_omschrijving .
CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
EXPORTING
IM_TITLE = 'Lange werkomschrijving'
IM_DISPLAY_MODE = ' '
IM_START_COLUMN = 10
IM_START_ROW = 10
CHANGING
CH_TEXT = i_werkomschr.
ENDFORM. " lange_omschrijving
‎2007 Sep 18 12:19 PM
what is it you want to achieve with it ?? that someone fills in one line of 1000 characters in a screen ??
the screen is limited to I believe 50 to 80 characters.
but you can add a memo field to the screen where they can enter a complete tektarea
like
SELECTION-SCREEN PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
initialization.
at selection-screen.
case sy-ucomm.
when 'WERK'.
perform lange_omschrijving.
FORM lange_omschrijving .
CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'
EXPORTING
IM_TITLE = 'Lange werkomschrijving'
IM_DISPLAY_MODE = ' '
IM_START_COLUMN = 10
IM_START_ROW = 10
CHANGING
CH_TEXT = i_werkomschr.
ENDFORM. " lange_omschrijving
‎2007 Sep 18 12:55 PM
Hi A. de Smidt,
Thnks for replying. I know the RF screen size constraints...
User wants to scan a field having Defined Length more than 1000 but visible length will be 1.
Can i achieve the same using 'CATSXT_SIMPLE_TEXT_EDITOR'.??? and how??
Regards,
Rushikesh
‎2007 Sep 18 3:07 PM
I really can't understand or imagine the use for such a field ?
what do you mean that a user wants to scan a field??
and fill it somehow with a 1000 character data string ??? I guess
please elaborate perhaps the purpose of the programm and selectionscreen
kind regards
arthur
‎2007 Sep 20 7:49 AM
Hi Arthur,
The requirment is as follows...
This is customized screen prog copy of std prog LM47...
There will be a field on screen having Defined length 1000 and Visible Length 1.
User will scan the Range ids for Handling Unit.
The Range ids will hv(Start Serial No1,End Serial no1, and the External HU1, Start Serial No.2,EndSerial No2,External HU 2, like wise...) I hv to take all the no.s between these serial no.s and assign it to the material in the transfer order and confirm it...
For this field i hv to assign Length to be atleast 1000...
Pls suggest some solution....
Regards,
Rushikesh
‎2007 Sep 20 8:43 AM
when you have a standard selection screen you can also define the range you want to include or even give all the numbers in multiple selection . you don't need to build 1 long field for that.
when you have a selection screen field like
so_werks FOR rihafvc-werks MEMORY ID wrk ,
and you press on the purple button on the right you can define the ranges you want to include or select all the values depending on a selection you made with the button multiple selection
kind regards
arthur
‎2007 Sep 20 9:33 AM
‎2007 Sep 20 10:28 AM
I'm not familiar with module pool programs and their impossibilities ??
but I guess the transfer of data or retrieving of data is the same whether youi have a selection screen or not.
in the selection screen all data is gathered in a range. you can also create and fill a range you're self
look at datatype ranges for more info
example
ranges: h_arbid for crhd-objid occurs 0 .
you can now define
h_arbid-option = 'I'.
h_arbid-sign = 'BT'. "means between or EQ for single value
h_arbid-low = 'start 1'.
h_arbid-high = 'start 10'.
append h_arbid.
you can also add more ranges to the same selection.
h_arbid-option = 'I'.
h_arbid-sign = 'BT'. "means between or EQ for single value
h_arbid-low = 'start 20'.
h_arbid-high = 'start 30'.
if you pass it on to you're select statement it is
select * from table where arbid IN h_arbid.
so you get all the records from 1 till 10 and 20 till 30
kind regards
arthur