Handle user entry in a cell
Hello;
i have implemented the event of data entry in a cell by method handle_data_changed. After the process i want to clear the entry if it s not correct but the data stays fixed in the cell. What should i clear?
Thx
Ai
Hello Ali
Please make a copy of sample report BCALV_EDIT_03 and add the following coding (surrounded by
$Comment) in the event handler method HANLDE_DATA_CHANGED:
method handle_data_changed.
data: ls_good type lvc_s_modi.
error_in_data = space.
semantic checks
Identify columns which were changed and check input
against output table gt_outtab or other new input values of one row.
Table er_data_changed->mt_good_cells holds all cells that
are valid according to checks against their DDIC data.
No matter in which order the input was made this table is
ordered by rows (row_id). For each row, the entries are
sorted by columns according to their order in the fieldcatalog
(not the defined order using field COL_POS but the order
given by the position of the record in the fieldcatalog).
The order is relevant if new inputs in several columns of
the same row are dependent. In this example,
method 'ch_new_plane_v_new_seatsocc' needs only to be called
once since we know that the corresponding check is already done
when checking column PLANETYPE (see also method 'check_seatsocc').
*§5.Loop over table MT_GOOD_CELLS to check all values that are
valid due to checks according to information of the DDIC.
loop at er_data_changed->mt_good_cells into ls_good.
case ls_good-fieldname.
check if column PLANETYPE of this row was changed
when 'PLANETYPE'.
call method check_planetype
exporting
ps_good_planetype = ls_good
pr_data_changed = er_data_changed.
check if column SEATSOCC of this row was changed
when 'SEATSOCC'.
call method check_seatsocc
exporting
ps_good = ls_good
pr_data_changed = er_data_changed.
endcase.
endloop.
*§7.Display application log if an error has occured.
if error_in_data eq 'X'.
call method er_data_changed->display_protocol.
*$Comment: Reset the value of the cell containing false values
CALL METHOD er_data_changed->modify_cell
EXPORTING
I_ROW_ID = ls_good-row_id
I_TABIX =
I_FIELDNAME = ls_good-fieldname
i_value = ' '. " clear fault value
*$Comment
endif.
endmethod.[/code]
Call the report and change a single plane type (e.g. from 747-400 to 747-401) and then press ENTER.
Regards
Uwe
Similar Messages
-
Transferring User-Entry Cells from Excel Files
Hello,
I apologize in advance if this is a question better answered in a Microsoft Excel forum, but I saw some really good discussions here, and I think my question applies just as much to Acrobat.
I work at a college and we create a lot of excel files -- one for each student. I'd like to be able to create excel files with fields that would accept user-entered data, then save this excel file as a PDF so that the user-entry fields are preserved. I can't seem to figure out a way to do this, but I'd like to avoid having to go into each PDF with Acrobat after the fact to add the appropriate fields to each form.
If not that, is there a way to change acrobat settings such that the user will be allowed, using Reader, to enter text anywhere on the form (without altering the text that's already there)?
Thanks so much for your time and thoughts!
-DevinThere is not a built-in way to convert from Excel to PDF so that the cells are automatically converted to form fields in Acrobat with the data retained.
To allow Reader users to add text to a PDF, it needs to be enabled for commenting (Tools > Typewriter > Enable Typewriter too in Adobe Reader, for example), which allows Reader to add text using the Typewriter tool. Or "Comments > Enable for Commenting and Analysis in Adobe Reader", which allows other types of comments (e.g., Text Box) to be added with Reader.
If the layout is static, you can import data exported from Excel and fill fields in a PDF form. The data file needs to be a text file in tab-delimited format, with the PDF field names provided in the first row, and subsequent rows being the corresponding field data. You can import in Acrobat using: Forms > Manage Form Data > Import Data. When you select the text file, it will promt you to import a row of data from the text file. -
Hi All,
We have queries in which a scaling factor of 1 Crore is applied. Query is developed in 7.0 and front end used for analysis is 3.x.
Is there any way to make the scaling factor a user entry field..like a variable entry ?
Please let me know if you have any pointers.
Thanks in Advance,
AmritaHi,
I am not sure if you can make it a User Entry Variable or not.
Yes, the user can set the scaling factor. He needs to select the Key figure where he wants the Scaling Factor.
For 3.x front-end
Rt click on Key Figure --> Enhanced Menu --> Properties.
here, he will find the scaling factor.
For 7.0 front-end
Rt click on Key Figure --> Properties --> Data Cell --> Number Format.
here, he will find the scaling factor.
Hope this solves your problem. -
AP Aging report - key date for user entry
Hi All,
We have a requirement to calculate aging buckets like 0-30,31-60,61-90...etc.
I know the key date for this report is created on net due date in SAP standard report.
In standard SAP report , key date is always a system date(SY-DATUM).
What we need for this report is , we need to get all the invoices which are outstanding as of that date(the date which user enters).
If user enters today's date(08/28/07) , he should get all the invoices outstanding till that date in aging buckets and if user enters some date in the past like 07/26/07, he should get all the invoices outstanding as of that date.
Can someone Pls tell me if aging buckets are calculated based on a user entry ?
Regards,
KumarHi Voodi,
Aging in the standard report is being calculated like below...
1.For open items
Posting date<key date
Item status = O
2.Posting date < keydate and clearing date > key date and net due date with offsets on keydate ( key date + 1 - keydate+30 --- for 1-30 days) like wise for all aging buckets.
in this scenarion , key date is always system date ie today's date.
But user wants to get all the invoices based on his user entry...
is this possible with the same standard key date variable or do we need implement any other logic???
Regards,
Kumar -
Check user entry in Customer Exit Variable in i_step2
Hi Folks,
at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
Thanks for all replies.
BR,
MaikHi there,
It is possibel depending on what you wish to accomplish.
You can create two variables for the same characteristic.
The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
But for validating you could throw an error message based on the variable input ready.
Diogo. -
Hi All,
I have a query wherein I want to have a user entry but do not want the query result to be affected by it.
The details of the query are such that in this query I am calculating Sales actuals by posting period (selecting constant months to make a quarter) and sales commitment by a normal characteristic Fiscal quarter.
Is it possible that I have a user entry for quarter and have that quarter (selected by the user) displayed in the query but at the same time display the entire data of the query?
Please advise.
Thanks and warm regards,
SharmishthaHi Anil,
In rows I have CGL Branch (user netry/multiple values), organizational division(zdivision/user entry) and sales district. In th columns I have Previous to previous year's sales(SALDR NOTECASH restricted with fiscal year/ user entry variable with offset -2) similarly I have previous year's sales. Then I have current year's Q4 sales. For this I have restricted the same key figure with fiscal year/user entry and posting period=jan,feb,mar). This is because ZBDMIS1 does not have ZFIQUART1(fiscal quarter). Then similarly I have to calculate for all the quarters of the current year. Alongside I also have to calculate the commitments for all the quarters. For this I created a cube in which I included ZFIQUART1 (and loaded thru flat file), as customer will give data in quarter. Finally I made query on the multiprovider. Now, in the query I created a new selection for commitment of Q1 and restricted Sales Commitment Value with fiscal quarter = quarter1 and similarly for all quarters.
But the values of the Sales Commitment val is not coming at all.
Also I wanted to put quarter as user entry. (just as a display of the selected quarter in columns, we don't want it to filter the data)
Thanks and warm regards,
Sharmishtha -
Current date as deafult for Calender Day and user entry
Hello All,
There is a select option for Calender Day for a BW query.
This Calender Day should have a default as Current Date and User entry is also possible.
I have used a Customer exit and written the following code under i_step = 1
data: v_currdt like sy-datum.
clear: v_currdt, vfl_range.
if i_step = 1.
vfl_range-sign = 'I'.
vfl_range-opt = 'EQ'.
v_currdt = sy-datum.
vfl_range-low = v_currdt.
append vfl_range to e_t_range.
endif.
Please inform if this code is incorrect, because I am not able to see the date at all.
Cheers,
KPHi
Check with this code!
Implemented for the same function as you require.-
if i_step = 1.
case i_vname.
WHEN 'ZZZZZZ'.
IF i_step = 1.
REFRESH e_t_range.
CLEAR l_s_range.
l_date1 = sy-datum.
L_S_RANGE-LOW = l_date1.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
endcase.
endif.
Regards
M.A -
How to Handle user Session in JSP
Help me,
How to handle user session in JSP.......Prakash_Pune wrote:
tell me some Debugging tech. so i can overcome from my problem.....Do you use an IDE? Any IDE ships with a decent debugger where in you can just execute the code step by step, explore the current variable values and check what exactly is happening. For example Eclipse or IntelliJ. If you don´t use an IDE, then just place some System.out.println() or Logger.debug() statements at strategic locations printing the variables of relevance so that you can track in logs what exactly is happening.
or tell any other way to find is my page is thread safe or not...Just write correct code and narrow the scope of the variables as much as possible. If you for example assigned the user object to a static variable or as a servlet´s instance variable, then exactly the same user object would be used everywhere in the application. That kind of logical things. -
How do we handle User exits in XML Publisher
Hi,
Can anyone tell me how do we handle user exits in XML Publisher ?
Thanks,
Kiran.Do tyou mean the original Oracle Reports user exits ?
If so then the flexfield ones are handled in the data template, check the user guide. Format currency should be called in the template layer. You do not need srw.init with data templates.
Regards, Tim -
How can we handle user defined exceptions in ejbStore() of entity bean
Accroding to my knowledge in ejbStore we can not handle user defined exceptions. Can anybody help on this????
In my case I am calling a method from ejbsotre() . In that method i wanted to put some checks according to that i wanted to throw exceptions.
In this case how would I handle exceptions.
Can you suggest in this case,please !!! -
User entry variable with exclude values
Hello All,
I created a user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable. When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below. Any useful input will be awarded
Diagnosis
Variable &V1& is used in the query in such a way, that an optional entry is not possible.
For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
System response
Procedure
If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
Procedure for System AdministrationHello ,
I did try creating a variable with the foll details:
Variable Type : User Entry / Default Value
Variable Represents : Multiple Single values
Variable entry optional
When I run the query it converts my variable to mandotary entry. but I want to have optional user entry variable.
Any help will be awarded -
How to show all the user entry variables in a workbook.
Hi,
My user need to see in the workbook all variables he had entered in the variable entry popup at the openning of the workbook.
I know how to show all the variables, included the hardcoded variable in the query (with a text element, select the checkbox "Display All Statics Filters"), but I need only the user entry variables.
There is a way to print only these variables?
Thank youThanks, but the problem is that this workbook is my Global default workbook used for all the queries. So I only want the user entry variables visible automaticly.
There is a way to do that ?
For information, i'm using Netweaver 7.
Thank you -
How to Enable the LOV to query for partial user entries in af:query in an ADF search form
Hi guys,
I have faced one issue in creating a search form in ADF, in that I have used af:query and table region. and I have attached an lov vo to the base vo for the list of values and given UI hint as Input values with List of values. Now the issue is that I have given auto submit property as true so when I give some value suppose "Jan-14" and tab out it gives me all the correct results. but if I give like "Jan%" and then tab out then it does not give me any value. Could you kindly help me with some solution. I am using Jdev 11.1.1.6.0.
Thanks,
TanmoyTo enable the LOV to query for partial user entries, we can trap the 'LaunchPopupListener' event and add custom code there. Within the af:query component, just wondering how can we set property the 'LaunchPopupListener' for the search criteria ?
-
How to handle user defined exception from C#?
Hi:
I have some PL/SQL code that will throw a user defined exception if certain conditions are met. How do I handle user defined exceptions if this procedure/function is being called from C#? C# can handle a normal Oracle SQL error (e.g. ORA-XXXX) because they are defined in the proper class, but how do I get it to know about my user defined exception? Does anyone have any links to examples of doing this?
Thanks.Hi Gaff,
Is there a particular problem you're having doing this? It works as normal for me...
Cheers
Greg
PLSQL
=========
create or replace procedure throwsomething as
begin
raise_application_error(-20001,'kaboom');
end;
ODP
=====
class Program
static void Main(string[] args)
using (OracleConnection con = new OracleConnection())
con.ConnectionString = "user id=scott;password=tiger;data source=orcl";
con.Open();
using (OracleCommand cmd = new OracleCommand())
cmd.CommandText = "begin throwsomething;end;";
cmd.Connection = con;
try
cmd.ExecuteNonQuery();
catch (OracleException oe)
Console.WriteLine("caught " + oe.Message);
OUTPUT
========
caught ORA-20001: kaboom
ORA-06512: at "SCOTT.THROWSOMETHING", line 3
ORA-06512: at line 1 -
How to handle user exits in Standalone BIP 10.1.3.4.1
Hi,
I tried converting our Oracle 11i (6i reports) report to BI Publisher. Our user exits calls are commented by the BIPBatchConversionUtility.
Wondering how can we handle user exits part to set the organization id and input the key flexfield information.
Any help would be greatly appreciated.
Thanks in advance.
Thanks & Regards,
Rama Krishna. PTry using BI Publisher beforeReport trigger to set values needed to be set.
Regards,
Gareth
Maybe you are looking for
-
Since upgrading my iphone 4 to IOS6, apps keep opening and closing on their own
Since upgrading my iphone 4 to IOS6, apps keep opening and closing on their own and the wrong ones open when another is pressed. I've tried a full reset but still the same thing...HELP PLEASE :-(
-
HI We are using Payment Order and through EBS we clear the vendor open items as after payment run system generate the payment order number but vendor open items remain open. For Bank Transfer BTC is NTRF. But for all the check which are also enchashe
-
Hi, I'm workin on a prototyp based on the netweaver developer studio preview. after i've steped to the several tutorial for webservices und webdynpro. I've implemented a ejb/webservice combination for selecting a insurance contract from our databases
-
Video Player crashing when trying to play videos
I have some videos downloaded to my iPad. Some of them play fine. However a lot of them will not play - when I try to play them the app crashes. I have tried restarting my iPad, deleting the videos and re-downloading them, and closing everything to m
-
Help! Help! is what need. Verizon has buried and spliced all the cables in the neighborhood. But still has not made it live WHY??? I've tried calling and cannot get a real answer only the standard "it should be coming soon. It's been well over 6 mon