Field type for Screen Field
Dear all,
Actually i want to store Numeric Value with '+' or '-' sign in module pool's Screen Field.
how can i store that type of data.
currently i m declared as a decimal type variable.
but when value is coming with negative sign in internal table. dum error is occured like this...............
There was a conversion error in the output of fields to the screen.
The formats of the ABAP output field and the screen field may not match.
Some field types require more space on the screen than in the ABAP
program. For example, a date output field on the screen requires two
more characters than the corresponding field in the ABAP program. When
the date is displayed on the screen, an error occurs resulting in this
error message.
Screen name.............. "ZPPI_SCRAP_RECORD"
Screen number............ 9000
Screen field............. "T_ITAB-DIFF"
Error text............... "FX015: Sign lost."
Other data:
Plz help me
Hi Anshuman Singh,
Is there any possiblity to adopt the following logic for your requirement?
Just declare a character field with length of maximum number of digit you want to input plus one.
Now input with '+' or '-' sign.
Before processing this value, check for only numbers except sign.
Now except that sign, assign or write the remaining value to the temprary varibale for processing.
Regards,
R.Nagarajan.
Similar Messages
-
Table for Screen Field Properties
Hi Guys,
I have strange requirement.
Lets say i have designed 5 fields in the Dialog Program. 2 fields belongs to Group1,another 2 fields belongs to Group2 and 3rd field is belongs to group3.
Where can i find those values (I mean which table). I belive it should be Program,screen no and data type.
Note : Groups you can set in Attributes of the field in Dialog Program.
Thanks
PoornaSetting Screen Field Attributes
Every screen field has attributes that you set in the Screen Painter when you define the
screen. At runtime, you may want to change these attributes, depending on what
functions the user has requested in the previous screen. At runtime, attributes for each
screen field are stored in a memory table called SCREEN. You do not need to declare
this table in your program. The system maintains the table for you internally and updates
it with every screen change.
The memory table SCREEN contains the following fields:
Name Length Description
NAME 30 Name of the screen field
GROUP1 3 Field belongs to field group 1
GROUP2 3 Field belongs to field group 2
GROUP3 3 Field belongs to field group 3
GROUP4 3 Field belongs to field group 4
ACTIVE 1 Field is visible and ready for input
REQUIRED 1 Field input is mandatory
INPUT 1 Field is ready for input
OUTPUT 1 Field is for display only
INTENSIFIED 1 Field is highlighted
INVISIBLE 1 Field is suppressed
LENGTH 1 Field output length is reduced
DISPLAY_3D 1 Field is displayed with 3D frames
VALUE_HELP 1 Field is displayed with value help
To activate a field attribute, set its value to 1. To deactivate it, set it to 0. When you set
the ACTIVE attribute to 0, the system suppresses the field and turns off the ready for
input attribute. The user can neither see the field nor enter values into it.
Note
You can define values for each of these attributes in the Attribs. for 1 field section in
the field list of the Screen Painter. If you need more information about attribute
meanings, see BC ABAP/4 Workbench Tools.
Modifying the Screen SAP AG
Setting Screen Field Attributes
32u20134 May 1997
As an example of modifying the screen dynamically, start with transaction tz50
(development class SDWA).
The transaction consists of two screens. In the first screen the user can enter flight
identifiers and either request flight details (by pressing a Display pushbutton) or press the
Change pushbutton to change the data of screen 200.
The field attributes are now set dynamically, according to whether the Display button or
the Change button was selected. In both cases the same screen is now called, but with
different field attributes.
If the same attributes need to be changed for several fields at the same time, these fields
can be grouped together. For example, in order to change the fields in screen 200
dynamically, we assign these fields in the Screen Painter to the group MOD. You can
specify up to four modification groups for each field. The contents of the Groups field
are stored in the SCREEN table.
The changes to the attributes of the fields in this group can be implemented in a PBO
module:
SAP AG Modifying the Screen
Setting Screen Field Attributes
May 1997 32u20135
MODULE MODIFY_SCREEN OUTPUT.
CHECK MODE = CON_SHOW.
L0OP AT SCREEN.
CHECK SCREEN-GROUP1 = u2019MODu2019.
SCREEN-INPUT = u20190u2019.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE.
The memory table SCREEN contains each field of the current screen together with its
attributes.
The LOOP AT SCREEN statement puts this information in the header line of this system
table.
In this example taken from transaction tz50, if the user chooses Display then SCREENINPUT
is set to u20190u2019 and all fields belonging to the MOD group thus become display-only
fields.
Because attributes have been changed, the MODIFY SCREEN statement is used to write
the header line back to the table.
Modifying the Screen SAP AG
Changing Screen Field Attributes with the Function Field Selection -
How to create value request for screen field text box tt1
How to create value request for screen field text box tt1
i have a text box name tt1,
i want f4 help for that .
remember i am asking for screen i.e done from screen layout not selectio-screen.
Thank you,
Regards,
Jagrut Bharatkumar Shukla,Hi,
Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
For Eg,
If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
Regards,
Padmam. -
Set maximum size in Text Form Field Options for a field in bi publisher RTF
Hi All,
How to set maximum size in Text Form Field Options for a field in bi publisher RTF.
I have a RTF whch is having a field in that i need to add some validation condition but after adding certain condition in Add help text tab ,it is not accepting after certain length, how i can increase the length to unlimited,please help me on this
ThnaksForm fields have some restrictions if your are using version lower than 11g.
They can accommodate only 393 chars. You can add the text in both status bar and help key, which can in total consume 393 chars.
If your code logic is more than that, it can be split into multiple form fields as Avinash suggested or you can use sub template logic and handle coding over there. Again in sub template code can be within/outside form fields.
So there is no option for user to increase the size of form field. -
How to make field key for user fields cant be changed after project release
Dear Expert,
How can we make field key for user fields cannot be changed once we release the project/wbs?
Cheers,
NiesDo you mean 'field key' in the project profile in SPRo?
I think after a project is created a change in the field key wont affect the fields in CJ20N..
Can you verify?
Regards
Ramesh -
For some reason it seems that the Field key for User fields is shared between WBS and Network Activity. We use it for WBS-elements, but I want to close the User Fields tab for network activity.
When I try to remove it for ntw activity I get the tab back with a red triangle, saying that fields are necessary...
Any help is greatly apreciated.Anjali, If We Remove the field key from the network profile. This will still display the user filed tab, but the same will be in display mode and having drop down for the user field selection. The movement we select this drop down the filed will become input as per settings.
And I peruse that PS user wanted to delete the tab. Please verify my observation.
With Regards
Nitin P. -
Search help for screen fields in module pool
Hi All,
I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
Pls help ASAP
Thanks,This is how i got.
data:l_shlp type SHLP_DESCR,
l_rc type sy-subrc,
w_DDSHRETVAL type DDSHRETVAL ,
ls_shintf LIKE LINE OF l_shlp-interface,
t_DDSHRETVAL type TABLE OF DDSHRETVAL.
DATA: dyname LIKE d020s-prog,
dynumb LIKE d020s-dnum.
DATA: BEGIN OF dynpfields OCCURS 3.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
SHLPNAME = 'YTESTDMSSB'
SHLPTYPE = 'SH'
IMPORTING
SHLP = l_shlp .
ls_shintf-valfield = 'X'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SNNTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SBRTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SBSTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'ENPTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'PLANT_CODE'.
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
SHLP = l_shlp
DISPONLY = ' '
MAXRECORDS = 500
MULTISEL = 'X'
CUCOL = SY-CUCOL
CUROW = SY-CUROW
IMPORTING
RC = l_rc
TABLES
RETURN_VALUES = t_DDSHRETVAL
IF l_rc = 0.
LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
CASE w_DDSHRETVAL-fieldname.
WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SNNTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SBRTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SBSTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_ENPTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_WERKS'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
ENDCASE.
ENDLOOP.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = dyname
dynumb = dynumb
TABLES
dynpfields = dynpfields.
ENDIF. -
How to change data type for a field?
Hi Experts,
I have one std screen having one field having numeric type. So it will accept only numeric value. Remember I am using standard transaction.
Now my user wants to enter the special character like + or - in that field(having data type numeric).
How i can change the data type for the particular field so that it will also accept + or -?
Plz reply me as earliest as possible.
Thanks in advance.Hi salil ,
u have to change / create Domain of that Data Element.
but u have to check the Implications. i have done the same thing , but that one is Customer defined one , i got nearly 20 short dumps while doing the TP.
regards
Prabhu -
hi all,
i have two problems.
1) When i change input attiribute of input/output field is required , any user command (like exit or back command etc.) doesn't work.
2) i have two different field in my screen lifnr and belnr. but i can't use f4 search help for that fields. i have defined search help in my ztable (SE11) and element list-references (SE51) and fm F4IF_FIELD_VALUE_REQUEST and fm F4IF_INT_TABLE_VALUE_REQUEST. i have put process on valeu-request in flow logic. But when program run , skip this event.
all of them it doesn't work.
what should i do?
thaks for your helps.
Regards.Hi,
try the following code...and change the <.....> according to your program..Do the same thing for the second screen field also.
If you face same problem then please let me know.
module display_f4help input.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = '<tablename>'
fieldname = '<fieldname>'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = '<screen-field name>'
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif. " IF sy-subrc <> 0.
endmodule. " DISPLAY_F4HELP INPUT -
Hi experts
I added a new field to the screen but the font type of this field label is different from the font type of other field labels which are created by SAP.please tell me how to change my field label font.
Thanks
Regards
Giri.Go to the screen painter SE51 and have a look at the Screen attributes for any standard field and compare your field. Go to the Display attributes to be specific.
REgards,
Ravi -
Search help for screen field.
Hi all,
I had created a dataelement(ZZ_XXXXX) usig domain (LAND1). this LAND1 has a value table.
I have created a field on database table. Now when i add this field on screen, I am not getting F4 help for this field.
Can anyone suggest me how to F4 help for this field from the value table.
Thanks in advance.
regards,
NarsiReddy.Hi Narsi,
Make the field as a key field in table or
Create Search Help.
Regards,
Venkat. -
Dynamic naming for screen fields possible?
Hi.
I am trying to loop through some screen fields, and hence need to dynamically name the fields. I use the following codes, but it gave me an error:
IF MAND_CHECK = 'X' AND (TXT_FILE) IS INITIAL.
"TXT_FILE is a variable that contains the name of the screen field.
SET CURSOR FIELD TXT_FILE.
"TXT_FILE is a variable that contains the name of the screen field.
ENDIF.
Error: Fehlerhafter logischer Ausdruck "(TXT_FILE)": Nach "(".......Do the following:
field-symbols: <fs> type any.
assign txt_file to <fs>.
if mand_check eq 'X' and <fs> is initial.
Regards,
Michael -
What should be the data type for a field in ztable?
i am desing a ztable , wht should be the datatype for a field if i want to enter values like -1.5 and -2.5 , negative values with decimals what should be the data type???
declare as P type. TYPE P DECIMALS 1
Type P data allows digits after the decimal point. The number of decimal places is generic, and is determined in the program. The value range of type P data depends on its size and the number of digits after the decimal point. The valid size can be any value from 1 to 16 bytes. Two decimal digits are packed into one byte, while the last byte contains one digit and the sign. Up to 14 digits are allowed after the decimal point. The initial value is zero. When working with type P data, it is a good idea to set the program attribute Fixed point arithmetic.Otherwise, type P numbers are treated as integers.
You can use type P data for such values as distances, weights, amounts of money, and so on.
Also check this link.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
Regards,
Maha -
Field symbols - specifying screen number for screen field.
Hi Experts,
I am working on a field exit for T-Code FBD1. I am using the following code
field-symbols : <fs>.
assign ('(SAPMF05A)BKPF-BUKRS') to <fs>.
My field exit works on screen 300 where as company code is on screen 106. This works fine as there is only one occurance of company code in the program SAPMF05A. There is another data element RF05A-NEWKO which is on both the screens. I want the value in the field on screen 0106. How do I specify the screen number?
Regards,
AbdullahHi!
You cannot specify the screen number in this case. The field symbol will be assigned with the current value in the field (SAPMF05A)RF05A-NEWKO, i.e. the value at runtime when the exit is triggered. Make sure your exit is trigerred when you move from one screen to the next.
Cheers! -
Convert field type on screen..
i have a field on screen of numc type..but i wanted to display 0 on screen field.so i went to screen attributes
and changed the format to char type..now i can display '0' also..but i'm getting error like
" Invalid Field Format (screen error)"..now what should i do to remove the error?Hi Anil,
Can you please advice me how u solved that problem.. because i am also facing the same problem but mine is table control.
Thanks and Regards,
Logu
Maybe you are looking for
-
Fields transferred to payment & contract changes table
Dear all, I'm having 2 problems: 1). In the payment program (F110) we make a selection based on the field XBLNR of the FI document (which contains a datestamp + 'REPP' or 'REOP' depending on periodic or one time RE posting). Payments are split betwee
-
Recording from FMLE to disk - jagged edges and combing..
I'm experimenting with recording straight to hard drive using FMLE 3.2. I have to film a conference using 4 cameras ( Sony A1U's ) The recordings will be required almost immediately so I wont have any options to bring the footage into Premiere Pro an
-
Reading data in HTML page from a Java Stand alone application
hey, i ve read bout how to read html pages using the URL and how to parse them using HTMLeditorkit and stuff.. but i want to read the values tht are updated in the HTML page dynamically and then use them in my java application ... is tht possible ..
-
Filter expressions on hidden fields
I have 11 (eleven) different columns in a Report Builder 3.0 report. There can be multiple rows to this report depending on the date range selected. In those columns/rows, some data is hidden at times depending on another filter expression. The last
-
Getting Total Order Cost for each order
I have a fact table, order lines. There are two dimension tables, customer & Product. For each order i want to display on a pivot table: - the cost of the line. -the cost of the total order. Is this possible? I have been playing with ALL & All excep