How to set cursor in perticular field Table Maintence generator?
Hi
All
I have created a table with 2 fields Start_date and End_date. Now my requirement is i have to validate the both date field as Start_Date must be LESS than or EQUAL to End_Date. In table maintenance maintenance generator i have created a event VALIDATE_DATE in event 21. Its validating perfectly. The issue is after the ERROR message the Cursor is going to the key field. I want to set the cursor at End_Date field.
I used
data:ly_pos type i.
IF NOT start_date LE end_date.
SET CURSOR FIELD 'TABLE_NAME-END_DATE' LINE sy-linno OFFSET lv_pos.
MESSAGE exxx(MsgClass).
ENDIF.
Its working for the FIRST time i am entering the new data. Next time the cursor going to the KEY field. I have been asked not to write code in SE80. Anyhow i have to set the cursor in table maintenance maintenance generator event.
Can anybody help?
Hi Sourav,
Please follow the below method:
Go to Maintainance Screen (where you want the cursor setting). Goto Status - > Remember the screen name -> Double click on Program name.. Open Object list and expant Screen Tree -> double click on the same screen Number -> Go to its first tab attributs -> Change Mode -> Do F4 on Cursor Position field -> Choose the field where you want the cursor.
But this way will always set the cursor at the HardCoded Field Name.
Thanks,
Preyansh
Similar Messages
-
How to set cursor to text field from message box in swing
I am working Text Field validations in a swing application. when incorrect information is entred in text field a Message is displayed. When I click on OK button on message box I want to set the cursor position to that particular text field for which thet message is displayed.
theOffendingTextfield.requestFocusInWindow();may need to be wrapped in a Swingutilities.invokeLater,
and if you want the text highlighted (so you can just type in new text)
theOffendingTextfield.requestFocusInWindow();
theOffendingTextfield.selectAll(); -
How to set cursor after submit via selection-screen
hi guys,
i would like to set cursor to certain field, after submit via selection-screen.
eg.
SUBMIT z_mm_kbr_gr_label_01
VIA SELECTION-SCREEN
WITH p_mblnr = p_mblnr
WITH p_zeile = p_zeile
WITH p_gjahr = p_gjahr
WITH p_ccode = p_ccode
WITH p_dcode = p_dcode
WITH p_crt = p_crt
WITH p_print = p_print.
i want to set cursor field 'p_ccode' after going back to
z_mm_kbr_gr_label_01. the program always go to the first field on the screen whatever i do.
may i know how to do this?
thanks.Hi,
Please try like below .
at selection-screen output.
SET CURSOR FIELD 'P_CCODE' . -
How to set DDL lock for a table
OCI,how to set DDL lock for a table?
Oracle acquires a dictionary lock automatically on behalf of any DDL transaction requiring it. Users cannot explicitly request DDL locks. Only individual schema objects that are modified or referenced are locked during DDL operations. The whole data dictionary is never locked
DDL locks fall into three categories: exclusive DDL locks, share DDL locks, and breakable parse locks.
see this link
http://www.sc.ehu.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/b10743/consist.htm#i5281 -
How to set focus programmatically in a table ?
Sir,
How to set focus programmatically in a table using javascript?
Is it document.getElementById('form1:table1:i:column1').focus(); ?
Thanks
StephenRepost
-
How to set default value of a table using sequence number
Dear all,
Does any body know that how to set default value of a table
using sequence number.
But I don't want to use trigger to do that.
Please help!!!!
EldonAndrew is essentially correct. You can get around the trigger,
but not the sequence, if (and this may be a very big if) you can
guarantee that every time an insert is done into the table, from
whatever source, the statement looks something like
INSERT INTO tbl VALUES (sequence.nextval,other_columns_values) -
Hi all,
Hoow to make the table maintence generator?
what is the use of function group in that?
rg,Ajaytable maintanance Generator is used to manually
input values using transaction sm30
follow below steps
1) go to se11 check table maintanance check box under
attributes tab
2) utilities-table maintanance Generator->
create function group and assign it under
function group input box.
also assign authorization group default &NC& .
3)
select standard recording routine radio in table
table mainitainence generator to move table
contents to quality and production by assigning
it to request.
4) select maintaience type as single step.
5) maintainence screen as system generated numbers
this dialog box appears when you click on create
button
6) save and activate table
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
reward if useful,
regards,
anji -
How to set cursor at the first line in a table control?
Hi,
I have a customized infotype screen where a table control is being used to input new values.The tab control has 30 lines.Now, the problem is that when the screen is displayed, the cursor always starts at 8th or 4th line.The behaviour is not very consistent.I tried the following statement in the PBO, but no effect.
SET CURSOR FIELD P9417-ZCOUNTRY LINE 1. ( P9417-ZCOUNTRY is the name of the tab control field where i want to set the cursor ).This is the last statement in the PBO.
Can someone please tell me why still I am not able to set the cursor at the first line? I have infact noticed that , in the debugging mode , sometimes the cursor starts at the first line.Please help. ThanksI have got a new requirement on this now. If the table control does not have any records , then the cursor position should be on the first row.Otherwise, if it already has some records, then the cursor should be at the first empty row.I wrote the code like below.
if sy-ucomm = 'INSERT'.
set cursor 'P9714-ZCOUNTRY' line 1.
else if sy-ucomm eq 'CHANGE'.
describe table itab lines fill.
fill = fill + 1.
set cursor 'P9714-ZCOUNTRY' line fill.
endif.
I am facing a strange problem now.The table control has some 10 rows when you see the screen for the first time.If the number of records already present is less than 10, I am able to position the cursor on the first empty row.But if the number is say 15, then the cursor position goes to eighth or fourth line or sometimes the first line.
Is there any way to display the last few records , ie, if there are 15 records , is there any way to display the last five rows when I see the screen for the first time, rather than showing the first 10 records?How can I position the cursor at the first empty row, when there are more records?
Thanks in advance..good answers will be rewarded.
Mahesh -
How to set cursor in table control?
I have a table control (Screen 300) to display invoice number and amount. For some checks we have around 200 invoices to be displayed. When user enters the invoice number in invoice text box and click on OK, it should highlight the invoice number and amount row or set the cursor position.
I have another problem.
Screen 300 is being called from Screen 200. When the user clicks on OK in 300, 300 is getting closed. Acutally it should be displayed with Cusor position or highlighted row.
I appreaciate your help ... ThanksI believe that you can use the SET CURSOR statement to do the first part of your requirement. Something like this should work:
SET CURSOR FIELD w_field LINE w_line.
Here's the info from SAP help:
Effect
: The cursor is positioned on the screen element whose name is contained in upper case in field. The data object field must be character-type and flat. The screen layout or a table control is scrolled in the display so that the screen element on which the cursor is positioned is visible. If the specified screen element is not found, the statement is ignored.
If the specified screen element is part of a table control or a step loop, the line of the table control or group of the step loop in which the cursor is positioned on the specified screen element must be specified using the addition LINE. For the data object line, the type i is expected. If there is no line or group for the value of line, or the addition LINE is not specified, the statement is ignored. The statement is also ignored if the addition LINE is specified and the screen element is not part of a table control or step loop.
I hope this helps.
- April King -
How to SET CURSOR FIELD my_field in my_REPORT_PROG.?
Hi Experts,
If the user do not enter a value in one field( NOT mandatory field) on the selection screen of my_report_prog. I wanna,
1- To throw message - am getting by throwing as STATUS message
2 - wanna keep CURSOR on that particlar field in order to input the value by the user - am using SET CURSOR FILED my_filed----
> but NOT working????????
So, pls. let me know that How to get it done?
thanqhi,
try the following code.you will get the cursor in the same field if you use status message or information message.
selection-screen:begin of block b with frame title text-001.
parameters:a type i.
selection-screen:end of block b.
at selection-screen.
if a <> 3.
message s000(0) with 'hi this is chaitu'.
endif.
after showing the message the cursor is at a.
please rewards points if useful. -
How to Get Cursor Position in a Table
Hi Experts,
I have a table, with input fields. I have a button to add as many rows as I want. For the second column I have
a OVS. Now assume I have added 3 rows and I want to edit the first row again. So I click the first row and click
on the OVS selector, and finally when I select a value in the OVS it comes to the Third row, that is the row
with the Lead Selection. How do I get it to come in the first row?Hi Murli,
If I understand your requirement correctly, you have table which has OVS for one field. If this problem is only because of leadselection you can disable the lead selection by setting selectionMode property of the table to none. Try it out once.
But I guess the problem might be different, you can try like this.
Create a child node for the table node with Cardinality 1...1 Singleton false
Create the attribute and impliment OVS and bind this to your second column of the table.
Regards,
Siva -
How to set image size in a table view
Hi,
I've just built a small VC application showing some process chain logs in a table view. For the different status types Error, Warning and Success I show the well-known traffic light icons. But up to now I haven't found out how to set the image size in a table view (height & width field is greyed out for the table). Any ideas? Or is it just not possible?
Thanks for your help,
HeikoHello Heiko,
I don't know, if it is possible, but I would say,
it's not implemented yet. Maybe you can change the picture size and use then the pictures, that might be a workaround, if you can't change the height and width in VC.
Best Regards,
Marcel -
How to set db schema in fact tables
Hi!
I have one mapping with one table(table1) pointing to one fact table (fact1).
This fact table has two dimensions located in two different schemas. I already deployed those dimensions and tables and its ok.
My problem is: when I open the mapping editor and ask to generate the mapping to create the package to populate the fact table,
I can see why I can not deploy it (PL/SQL: ORA-00942: table or view does not exist).
My query is: SELECT (fields) FROM schema.table1, table2 ,table3 WHERE....
I cant set the schema property from my table (table1), but I cant´t do the same with the table2 and table3 (both tables related to dimensions). i don´t have this option!
I don´t understand why this happen because both dimensions are ok. They are in two different modules and the locations are ok too.
I understand that the mapping needs the dimension keys to populated the fact table, but I really don´t know how to set this schema property. If i can´t do that,
i don´t know how to "fix" this problem. If a can´t set this schema property, how can I deploy this mapping whitout this???!!!!
I´m using the 10.2 version.
Thanks o lot!!!!!!!!!!!This is what really happens in my example.
Look the "Generation Results" :
SELECT
/*+ ORDERED NO_MERGE("INGRP1") */
"TEMP_TABLE"."Value1" "Value1",
"TEMP_TABLE"."Value2" "Value2",
"DIMENSION1"."ID" "ID",
"DIMENSION2"."ID" "ID"
FROM
"SCHEMA"."TEMP_TABLE" "TEMP_TABLE", -> I CANT SET THIS schema
"DIMENSION1" "DIMENSION1", -> i can´t do the same here
"DIMENSION2" "DIMENSION2" -> i can´t do the same here
WHERE
( "DIMENSION1"."DIMENSION_KEY" = "DIMENSION1"."ID" ) AND
( "DIMENSION1"."ID" IS NOT NULL ) AND
( "DIMENSION2"."DIMENSION_KEY" = "DIMENSION2"."ID" ) AND
( "DIMENSION2"."ID" IS NOT NULL ) AND
( "DIMENSION1"."key" = "TEMP_TABLE"."key" ) AND
( "DIMENSION2"."key" = "TEMP_TABLE"."key" )
I already tried to use 3 DB-Modules but I have the same problem. :o(
I don´t know what to do!!!!!!! -
Set cursor on error field in selection screen
Hi ALL,
How to place the cursor on a particular selection screen field?I am doing validation if validation fails for a particular field the program should give error mesg and the cursor should place on the error field only but it's going to the Ist field on the selection can somebody tell me how do this? I tried with set cursor field <fieldname) but not working I am doing validations on at-selection screen.
Thanks&Regard
maheshHi chandrasekhar find my code below
this code i am writing under at selection-screen.
*& Form Z_VALIDATE_TVKOV
FORM z_validate_tvkov .
DATA: i_vtweg LIKE vbak-vtweg.
IF NOT s_vtweg-low IS INITIAL.
SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
WHERE vtweg = s_vtweg-low.
IF sy-subrc <> 0.
set cursor FIELD 'S_VTWEG-LOW'.
MESSAGE e000(z_sd) WITH text-052.
ENDIF.
ENDIF.
IF NOT s_vtweg-high IS INITIAL.
SELECT SINGLE vtweg FROM tvkov INTO i_vtweg
WHERE vtweg = s_vtweg-high.
IF sy-subrc <> 0.
MESSAGE e000(z_sd) WITH text-052.
ENDIF.
ENDIF.
ENDFORM. " Z_VALIDATE_TVKOV -
How to set space between the fields in SearchPG- Display issue
Hi Friends
I Have created a searchPG with a QueryRN , In my searchPG i have some display issue after running the page its looks like this
For Example assue its a page with 3 field and one table region
Employee no
Employee name
Phone no
ResulttableBut i want my searchPG should hav some space between two field as shown below
Employee no
Employee name
Phone no
ResulttablePlease adviice me
I appreciate all ur advice
Thanks
A.THi Peddi
In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
Thanks
AT
Maybe you are looking for
-
Need code for calculation of amount field(DMBTR)of BSEG table conditionally
Hi all, I am selecting data for fields belnr(A/c doc.), dmbtr(Amount), hkont(G/L acc) from bseg cluster table giving the particular value for hkont in the selection screen.now there are some records fetched out of which there are few records in whic
-
After a system reboot, Firefox would not open. I opened the task manager, and saw that Firefox was using alot of memory, and was using 50% of the CPU. I ended the process, and restarted. The situation just repeated several time. I uninstalled Firefox
-
Form Field Mode in Acrobat X Standard?
My company is currently using Acrobat 9 Pro to design forms and we're constantly using the "Add or Edit Form Fields" function. We also resize, and modify the properties of each form field in "Form Field mode". Are these features found in Acrobat X St
-
SPOOL not generated while smartform is executed in Background
Hi I have issue while creating spool for smartform in background.Its works fine in foreground and i m able to view the outpt. But in background it should generate a spool but it is not generating? I have given the ouput options to supress the dialog
-
Replacement SIM no confirmation/text
Hey, I ordered a new nano SIM as I've changed from the Iphone 4 to Iphone 5, I filled out the form & It said It'd be sent in the post less than 48 hours after the form was sent/processed & I'd recieve a text saying it's been sent. I haven't, and I re