Need help with Customer Exit
HI Guys,
I am trying to create a Customer Exit in Bex on employee number (zempno) and the technical name of my Customer Exit is Zempnum.
What i am trying do is, who ever logs in and executes the query, he should get his relavant data, meaning if the employee login he should get his own data, or if the supervisor logs in he should get all the employess under him.
When i am trying to execute the query i am getting the below error.
Error: Error for variable in customer enhancement ZEMPNUM
Diagnosis:
This internal error is a deliberate termination, since a program status has arisen, that is not allowed to occur.
The error has arisen for variable ZEMPNUM in the customer enhancement .
Procedure:
Please check your customer enhancement.
Procedure for System Administration
Notification Number BRAIN 649
Below is my code
*& Include ZXRSRU01
data : itab like /BIC/AZHRPE00100 occurs 0 with header line .
data : zuid like /BIC/AZHRPE00100-/bic/zempno.
data region type /BIC/OIZCDOTREG1.
break-point.
case I_VNAM.
WHEN 'ZEMPNUM'.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
IF I_STEP = 2. "before the popup
DATA username(20) type c.
username = sy-uname.
break-point.
select single /bic/zempno from /BIC/AZHRPE00100 INTO zuid where /bic/zuserid = username.
if sy-subrc = 0 .
select * from /bic/azhrpe00100 into table itab where /bic/zempno = zuid.
endif.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = ZUID."low value, e.g.200001
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'eq'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDIF.
ENDCASE.
HI,
This is the update code, but still i am getting the same error.
*& Include ZXRSRU01
DATA: L_S_RANGE TYPE RSR_S_RANGESID,
LOC_VAR_RANGE LIKE RRRANGEEXIT. " This is Global
data : itab like /BIC/AZHRPE00100 occurs 0 with header line.
data : temp_zempno like /BIC/AZHRPE00100-/bic/zempno.
*region type /BIC/OIZCDOTREG1,
data : itab_empno like standard table of temp_zempno.
*itab_empno like /BIC/AZHRPE00100-/bic/zempno.
*break-point.
case I_VNAM.
WHEN 'ZEMPNUM'.
IF I_STEP = 1. "After the popup
*break-point.
select single /bic/zempno from /BIC/AZHRPE00100 INTO temp_zempno
where /bic/zuserid = sy-uname.
Check if he is the supervisor for any other employees
add them to the internal table
Check the syntax below.
if sy-subrc = 0 .
if sy-subrc = 0 .
select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspnm = temp_zempno.
*select /bic/zempno from /bic/azhrpe00100 into table itab_empno where /bic/zspno = temp_zempno.
endif.
endif.
*Add Own Employee number to the internal table
*Check the syntax below
Append temp_zempno to itab_empno.
*By now, all the employee numbers are added
to the internal tabe
*now loop at itab_empno and return all the values.
CLEAR L_S_RANGE.
loop at itab_empno into temp_zempno.
L_S_RANGE-LOW = temp_zempno.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
ENDCASE.
Thanks,
kris
Similar Messages
-
Help with Customer exit variable
Hi Guys,
I need your urgent help. I have a requirement where I need to create a variable (on CALDAY) in a report which should use the input value given for another variable (created on CALMONTH). To put in words more clearly, CALMONTH is a variable that is mandatory for input but the CALDAY variable should not appear on the selection screen. I was told that I should write a customer exit to make this happen. So can someone please explain me the process of creating a customer exit and give me the code.
WHEN CALMONTH values are selected to be 07/2006 - 08/2006... CALDAY values should be 07/01/2006 to 08/31/2006.
CALMONTH is user entry, mandatory, range and multiple selection variable.
Early reply is highly appreciated and duely rewarded. Please let me know if I am not clear about the requirement. Thanks a bunch in advance.Let us say, user enters multiple ranges for the month, you would want corresponding date ranges for the same, right?
data : w_date like sy-datum.
case I_VNAM.
when 'ZCALDAY'. " Calday var
loop at i_t_var_range into LOC_VAR_RANGE
where iobjnm = 'ZCALMONTH'.
WA_RANGE-SIGN = 'I'.
wa_date+2(6) = loc_var_Range-low.
wa_date+0(2) = '01'.
wa_range-low = wa_date.
if loc_var_range-high eq space.
WA_RANGE-OPT = 'EQ'.
else.
wa_range-opt = 'BT'.
wa_date+2(6) = loc_var_range-high.
wa_date+0(2) = '01'.
wa_date = wa_date + 31.
wa_date+0(2) = '01'.
wa_date = wa_date - 1.
wa_range-high = wa_date.
endif.
append wa_range to e_t_range. clear wa_range.
endloop.
endcase.
This should do. -
Need help with an "exit door" page
My office has a page on our webserver that serves as an "exit door". It basically tells you when you're leaving our site (they do this because it's a gov't site, and thus rquired) and you have to click on a link to confirm that you want to leave.
The way it works is that when you code a page with a link that needs an exit door, you prepend the url with "exit.cfm?link=" and then the URL. It works adequately on simple URLS that pass no parameters. Where it has a problem is when a URL has GET arguments like ?page=23&item=43.
The original coder used URL.link, which of course only captures the first GET argument. As a work-around, we're required to edit the target URLS being passed to the exit door and replace things like & and # with [amp], [pound], etc. Needless to say, this gets rather tedious, so I decided to have a look at that old exit door page to see what I could do with it.
After playing around a bit, I achieved a reasonable level of success by using the following:
#xmlformat(ListDeleteAt(CGI.QUERY_STRING,1,"="))#
This gives me a properly encoded full URL to use as a link on the exit door page. But there's one problem. If there's a link that contains an anchor (like foo.com#section1) it doesn't capture the anchor. The # and what's after it isn't being passed.
I'm trying to figure out how to make this work. Has anyone else here had to make an exit door, and if so, how did you do yours?Thanks mack. I'm starting to think the answer to this is "it can't be done". Which is probably why my predecessor was replacing &s with [amp]s.
What led me to try to change this was that I was trying to build a regex for Dreamweaver that changed things like & and # to [amp] and [pound], but only when the URL began with the exit door page URL. I was only able to get my regex to replace one occurance of an item per pass, which sort of defeated its purpose. So I decided to change the exit door page instead.
Maybe I'll go back to trying to get the regex to work.
Ian, thanks for your help as well. -
Need help with customizing standard reports in Fusion Applications
Hi,
I have requirement to customize 'Asset Transfer Report' in Oracle Fusion.
This report is a BI Publisher report and Data Model lies in folder '/Share Folders/Financials/Fixed Assets/Tracking/Data Model' and report lies in folder '/Share Folders/Financials/Fixed Assets/Tracking'.
Steps which i have completed
I am trying to customize this report, i followed the below steps
Step 1:-
Copied Data Model into '/Shared Folder/Custom/Financials/Fixed Assets/Tracking/Data Model' and report into '/Shared Folder/Custom/Financials/Fixed Assets/Tracking/'
Step 2:-
Opened task 'Manage Custom Enterprise Scheduler Jobs for Ledger and Related Applications' and created a job with the following details.
Job Definition
Field Name
Value
Display Name
XX Asset Transfers Report
Name
XX_ASSET_TRANSFERS_REPORT
Path
/FA/
Application
Financials Common Module
Description
XX Asset Transfers Report
Job Application Name
FinancialsEss
Enable Submission from Enterprise Manager
Job Type
BIPJobType
Class Name
oracle.xdo.service.client.scheduler.BIPJobExecutable
Default Output Format
Report ID
/Custom/Financials/Fixed Assets/Tracking/Asset Transfers Report.xdo
Priority
Allow Multiple Pending Submissions
False
Enable Submission From Scheduled Processes
Yes
User Properties
Field Name
Value
PDF
.*\.pdf$
jobDefinitionName
FAS430
XML
.*\.xml$
jobPackageName
/oracle/apps/ess/financials/assets/tracking/transfers
EXT_PortletContainerWebModule
Ledger
Since the standard report has the below parameter i have created same set of parameters for the Job which i have created, but i do not know how to assign the list of values to these parameters
Parameter Prompt
Data Type
Page Element
Default Value
Required
Book
String
Text box
Yes
Currency
String
Text box
Yes
Period
String
Text box
Yes
Batch
String
Text box
No
Step 4:-
Now when i navigate to schedule process, when i click Schedule New Process Button in the list of values i can see the job which i created. When i submit the job is completing with error.
When i open the xml file, file is blank and no data is available in the file.
When i open the log file i see the below error
dummy file is deleted
================ BIPJobExecutable Execution Started ============
OutputFile : /u01/APPLTOP/instance/ess/rfd/67068/out/67068.xml
Request ID: 67068 ClassLoader is weblogic.utils.classloaders.GenericClassLoader@1c85c3a finder: weblogic.utils.classloaders.CodeGenClassFinder@1c85cb3 annotation: FinancialsEssApp#V2.0@
RequestId:67068
ReportID : /Custom/Financials/Fixed Assets/Tracking/FLY FA Transfers Report.xdo
Process : BIPDocGen
The bipJobID : 6252
bipJobID is updated to ESSRuntimeService
BIP_STATUS_URL is added to ESSRuntimeService
================ BIPJobExecutable is running in async mode. ============
================ Please check the ess status for more detail info. ============
Am i doing anything wrong while creating the job?
Note :- I created another test data model and report with 'Select SYSDATE from dual' and am able to see the report completing successfully.
Please kindly help, i am failing to meet my deadlines.
Regards,
Prasad RHello Jani Rautiainen,
Thanks a lot for replying my question.
This is the first time i am working with the BI Publisher reports and fusion applications.
My requirement is to add few columns to the standard report with out loosing the functionality.
I was not aware that there is two ways of doing this, i was always copying data model and report to a new folder and trying to create a new job for the report.
As mentioned in the document 7.2.1.4 Using the Customize Feature , i clicked on the more button on my report but i do not see the customize option. Do i need to have any specific role for this to appear in the menu? Please kindly let me know.
Also i see below limitations while customizing report
Limitations
Following are limitations of the Customize report option:
The Customize option is only available through direct access to the BI Publisher server using the /xmlpserver URL (for example:http://hostname.com:7001/xmlpserver). The Customize option is not available through the /analytics URL used to access Oracle Business Intelligence Enterprise Edition.
The Customize option is available only for reports. The Customize option is not available for data models, style templates, or sub templates.To customize data models, style templates or sub templates and insulate them from potential changes from patching: Make a copy of the data model, style template, or sub-template and either rename it or place it in a custom folder. Ensure that you update any reports to point to the customized data model, style template, or sub template.
My requirement is to add few additional columns which needs Data Model to be modified, Can i copy the data model to the custom folder and do my modifications and point this data model in the report(as mentioned in the point 2 in the limitations)? In that case, will the original report submission works?
Regards,
Prasad R -
Need help with custom column in BI Publisher
Hi Guru's
I have started working with BI Publisher Recently and need with below issue
Can you please let me know how can i create a custom column like % based on two existing measures in the report
I tried creating it in obiee report and used that SQL to create BI Publisher Report , but the result column in obiee is not working as expected in BI Publisher,
can some one please help me with this
Thanks a lot in advance.This column can be calculated in BIP RTF template. But if it is a column inside a FOR-loop
then it may need to be calculated slightly different.
Like I said, get the xml data and rtf then send it to me : [email protected]
and will get it fixed for you.
thanks
Jorge -
Need help with custom event from Main class to an unrelated class.
Hey guys,
I'm new to Flash and not great with OOP. I've made it pretty far with google and lurking, but I've been pulling my hair out on this problem for a day and everything I try throws an error or simply doesn't hit the listener.
I'm trying to get my Main class to send a custom event to an unrelated class called BigIcon. The rest of the code works fine, it's just the addEventListener and dispatchEvent that isn't working.
I've put in the relevant code in below. Let me know if anything else is needed to troubleshoot. Thank you!
Main.as
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
var iconLayer_mc:MovieClip = new MovieClip();
public function Main()
Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
addChildAt(iconLayer_mc,0);
placeIcons();
function placeIcons():void
var i:int;
var j:int;
for (i = 0; i < 4; i++)
for (j = 0; j < 5; j++)
//iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i,j);
iconLayer_mc.addChild(placedIcon_mc);
function fl_MouseClickHandler(event:MouseEvent):void
dispatchEvent(new Event("twitchupEvent",true));
BigIcon.as
package
import flash.display.MovieClip;
import flash.events.Event;
import flash.utils.getDefinitionByName;
public class BigIcon extends MovieClip
private var iconImage_str:String;
private var iconRow_int:int;
private var iconColumn_int:int;
public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
iconImage_str = iconImage_arg;
iconRow_int = iconRow_arg;
iconColumn_int = iconColumn_arg;
this.addEventListener(Event.ADDED_TO_STAGE, Setup);
function Setup(e:Event)
this.y = iconRow_int;
this.x = iconColumn_int;
var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
var thisIcon_mc:MovieClip = new ClassReference;
this.addChild(thisIcon_mc);
addEventListener("twitchupEvent", twitchUp);
function twitchUp(e:Event)
this.y += 10;Ned Murphy wrote:
You should be getting an error for the Main.as class due to missing a line to import the Event class...
import flash.events.Event;
My apologies, I should attempt to compile my example code before I ask for help...
Alright, this compiles, gives me no errors, shows my 'book' and 'flowers' icons perfectly when ran, and prints 'addEventListener' to the output window as expected. I get no errors when I press the button, 'dispatchEvent' is output (good), but the 'twitchUp' function is never called and 'EventTriggered' is never output.
How do I get the 'twitchUp' event to trigger?
Main.as
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.events.*;
public class Main extends MovieClip
var iconLayer_mc:MovieClip = new MovieClip();
var iconString_array:Array = new Array(2);
public function Main()
Spin_btn.addEventListener(MouseEvent.CLICK,fl_MouseClickHandler);
addChildAt(iconLayer_mc,0);
buildStringArray();
placeIcons();
function buildStringArray():void
var i:int;
var j:int;
for (i = 0; i < 2; i++)
iconString_array[i] = new Array(3);
for (j = 0; j < 3; j++)
if (Math.random() > .5)
//'flowers' is the name of an illustrator object that has been converted to a MovieClip and is in the library
iconString_array[i][j] = "flowers";
else
//'book' is the name of an illustrator object that has been converted to a MovieClip and is in the library
iconString_array[i][j] = "book";
function placeIcons():void
var i:int;
var j:int;
for (i = 0; i < 2; i++)
for (j = 0; j < 3; j++)
//iconString_array has the names of illustrator objects that have been converted to MovieClips and are in the library.
var placedIcon_mc:BigIcon = new BigIcon(iconString_array[i][j],i*50,j*50);
iconLayer_mc.addChild(placedIcon_mc);
function fl_MouseClickHandler(event:MouseEvent):void
dispatchEvent(new Event("twitchupEvent",true));
trace("dispatchEvent");
BigIcon.as
package
import flash.display.MovieClip;
import flash.events.*;
import flash.utils.getDefinitionByName;
public class BigIcon extends MovieClip
private var iconImage_str:String;
private var iconRow_int:int;
private var iconColumn_int:int;
public function BigIcon(iconImage_arg:String, iconRow_arg:int, iconColumn_arg:int)
iconImage_str = iconImage_arg;
iconRow_int = iconRow_arg;
iconColumn_int = iconColumn_arg;
this.addEventListener(Event.ADDED_TO_STAGE, Setup);
function Setup(e:Event)
this.y = iconRow_int;
this.x = iconColumn_int;
var ClassReference:Class = getDefinitionByName(iconImage_str) as Class;
var thisIcon_mc:MovieClip = new ClassReference;
this.addChild(thisIcon_mc);
addEventListener("twitchupEvent", twitchUp);
trace("addEventListener");
function twitchUp(e:Event)
this.y += 10;
trace("EventTriggered");
Output:
[SWF] Untitled-1.swf - 40457 bytes after decompression
addEventListener
addEventListener
addEventListener
addEventListener
addEventListener
addEventListener
dispatchEvent
[UnloadSWF] Untitled-1.swf
Test Movie terminated. -
Beginner - need help with custom profiles
I've got 30-day demo versions of both Aperture and Lightroom trying to work out which is best for printing using custom profiles I've had done for a selection of textured art papers for use on my Epson R2400. I've read the printing documentation for both products.
In Aperture, I select print from the menu and open the print dialogue window. Then I open the printer settings window choosing the correct media and switching off Epson 'Color Adjustment' and saving the settings. Then I'm selecting my color profile from Aperture's 'ColorSync Profile' option in the print window and making sure 'Black Point Compensation' is selected. Then I'm pressing print.
In Lightroom 2, I select print from the menu and scroll down to the 'Color Management' tab in the print module. Here I'm choosing my custom profile from the drop down list and setting rendering intent as 'Perceptual'. On clicking the print button the default print window opens and I'm switching off Epson 'Color Adjustment' and selecting my preferred paper type. Then I'm pressing print.
Now I will admit that I'm new to printing with profiles and a complete newbie to Aperture and Lightroom. However, my prints from Lightroom are absolutely perfect, but colours are differing in Aperture prints. In particular, prints are slightly lighter and washed-out. I'm wondering if I might be missing a step somewhere in Aperture? It seems strange that both applications follow roughly the same print procedure yet I'm getting different results using the same profiles and images. I'd much rather use Aperture so I'm trying to seek an explanation for the change in colors.
Any suggestions would be appreciated.A lot of people including me have had problems in this area. There may have been some problems but in my case I was so absorbed in trying different solutions it is hard to say what worked when.
This works for me using an HP 9180:
1. In the View drop down select Printing Profile and choose your paper. This step is not critical but can be helpful.
2. select Print Image and we will work through the menu in sequence.
3. Select your printer
4. Click on Print settings
Click on the Cover Page arrows and you will be given a number of other choices. Select Paper Type/Quality. Select your paper and possibly adjust the other values but generally I leave these alone unless i specifically want Borderless printing.
Click save
5. back on the print menu select paper size. I usually select best fit next.
6. Select Colorsync Profile and again select your paper.
7. Keep Black Point clicked on.
8. I find that I need to set my Gamma between 1.10 and 1.20.
9. I usually click on the Loupe and check to see if Sharpening is needed.
10. Adjust scaling and width to your needs.
11. I then Print as I have not found that Previewing helps me to improve my Workflow.
It may all seem straightforward but this now works for me.
When this all started there were many saying how important it was to calibrate the screen, many tried this but is still did not help solve the problem. From what i understand all the Canon printers are capable of giving excellent results with Aperture. i hope that you join the community of satosfied users. Good luck. -
Hi all
Thanks in advance.
1. I have to do sales report based on the below input selection conditions.
How to do it this type of screen validations..
Its well and good if you provide code,
VALID_FROM:
First day(date) of the period 12 months prior to the To-Date period end date. For example if the to-date period end date is 09/30/2005 then the From-date period start date is 10/1/2004.
VALID_TO:
Last date of previous period using the current system date
2. I need to display the sales for 12 fiscal periods. Could you help me out.
Thanks and Regards
M. Shiva ShankarPls search in the forum:
/message/762789#762789 [original link is broken]
Re: Report having last 12 periods - SAP/User Exit
raj -
Need help with custom control. Is this possible?
Okay, here is my problem. I have a picture of a human being (just outlined trace), that breaks the body into parts. (ie left arm, right arm, left lower back, right lower back). I need for each part to be a bolean control if that makes sense? I am trying to replicate a survey that was written for us in visual basic that we dont have the source for, and author is no where to be found. Any ideas?
You could make each of your body parts a separate custom boolean control. Add a series of booleans for each part to your front panel. Customize each control using the instructions here to add a decal to your boolean.
You do not need to save the custom control to a file unless you want to reuse it elsewhere. When all the booleans parts hava a decal, arrange the parts on your front panel.
The nice thing about a decal is that it becomes part of the clickable region for the boolean.
I've attached a crude example...
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness
Attachments:
Use Decals.vi 89 KB -
Need Help With Custom Calculation Script
Hey everyone. I'm using Acrobat Pro X and stumbling a bit on the syntax for the following equation. I need to add the value of "Cell1" & "Cell2" then add the value of "Cell3". However,the value of "Cell3" is entered by the user and specifies a percentage of the sum of "Cell1 & "Cell2". For example: If the user enters "3" into "Cell3" I need the returned value to be 3% of the sum of "Cell1" + "Cell2". If the user enters "9" into "Cell3" I need the returned value for "Cell3" to be 9% of the sum of "Cell1 & Cell2" and the end result needs to be the sum of "Cell1+Cell2+Cell3". In greater detail:
If "Cell1" = $500, "Cell2" = $500 and "Cell3" = "3" then I need the returned value to be $1030.00.
I hope this makes sense. Here's what I have so far but alas, it's not working. Any help would be GREATLY appreciated.
// Get first field value, as a number
var v1 = +getField("Cell1").value;
// Get second field value, as a number
var v2 = +getField("Cell2").value;
// Get processing field value, as a number
//var v3 = +getField("Cell3"/100).value;
// Calculate and set this field's value to the result
event.value = v3+(v1+v2);
Thanks,
SolanI posted an answer but realized it wasn't what you wanted. There is some confusion about what you want for Cell3. On the one hand, you say you want the user to enter a vaule in the field, but them you say you want its value to be calculated based on what the user enters and two other field values. It seems to me Cell3 should be the field that the user enters the percentage and the calculated field's (Cell4) script could then be:
// Get first field value, as a number
var v1 = +getField("Cell1").value;
// Get second field value, as a number
var v2 = +getField("Cell2").value;// Get processing field value, as a number
// Get the percentage
var v3 = +getField("Cell3").value;
// Calculate and set this field's value to the result
event.value = (1 + v3 / 100) * (v1 + v2); -
Need Help with Custom Form Field Backgrounds
I'm tryng to add a custom background image to a file upload
field in a form and it is not displaying correctly in Firefox. Is
there a way to do this? The background shows up fine in other
fields just not in the field that I apply ( type="file" ) to.
Here is a sample of the page:
BroBraBlahBlah Test
siteBackground images in form fields are not reliable....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"PieEyed" <[email protected]> wrote in
message
news:enefqt$80g$[email protected]..
> I'm tryng to add a custom background image to a file
upload field in a
> form and
> it is not displaying correctly in Firefox. Is there a
way to do this? The
> background shows up fine in other fields just not in the
field that I
> apply (
> type="file" ) to.
>
>
Here is a sample of the page:
http://www.brobrablahblah.com/test
> -
hey to all my java Pals =)
i am working on an application right now
and my exit method behaves strangly
when you go to File|Exit
it will say
"this will exit are you sure
if the user says yes it will exit the program but if he says no it wont
but when you close it from the X up the Corner of the screen
it will say
"this will exit are you sure
but regardless of what user chose Yes|NO it will exit
what am i doing wrong thanks
my code
//File | Exit action performed
public void jMenuFileExit_actionPerformed(ActionEvent e) {
int forExit;
forExit = JOptionPane.showConfirmDialog(null,"This will Exit..........!!!!"+"\n"+"Are you Sure?","Exit?",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.INFORMATION_MESSAGE);
System.out.println(forExit);
if(forExit==0){
System.exit(0);
//and for overriding the (X) on corner
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
jMenuFileExit_actionPerformed(null);
}sorry for my spelling its 12 at night and i didnt spell check
Thanks in advancehere is the code
public Frame1() {
addWindowListener(new java.awt.event.WindowAdapter(){
public void windowClosing(java.awt.event.WindowEvent evt){
jMenuFileExit_actionPerformed(null);
});and the exit
public void jMenuFileExit_actionPerformed(ActionEvent e) {
int forExit;
forExit = JOptionPane.showConfirmDialog(null,"This will Exit..........!!!!"+"\n"+"Are you Sure?","Exit?",JOptionPane.YES_NO_CANCEL_OPTION,JOptionPane.INFORMATION_MESSAGE);
System.out.println(forExit);
if(forExit==0){
System.exit(0);
} -
Help with Customer Exit in ECC box
I have created the project successfully, thanks to Mr. V. but now when I go into CMOD and double click on 'INCLUDE ZXRSAU01'. I get the message that says Would you like to create an object? I am trying to put something there that can point CMOD to programs that I will write for each datasource in SE38 individually. How can I accomplish that task? thanks.
Try using this code:
data:l_found,
l_prog_name type sy-repid.
CONCATENATE 'ZBWM_' i_datasource INTO l_prog_name.
PERFORM execute_user_exit IN PROGRAM (l_prog_name)
TABLES I_T_SELECT
I_T_FIELDS
C_T_DATA
C_T_MESSAGES
using i_updmode
changing
l_found
IF FOUND.
if l_found = 'X'.
exit.
endif.
Regards,
Arminder -
Error With Customer Exit Variable
Hi,
I need To Create Customer Exit For Text Variable based on Two Input Variable values.
can any one correct my code Code is written below based on quarter and Fiscalyearvarient.
I have to get calmonth Text value.
I am getting the error as : "I_T_VAR_RANGE" is a table without a header line and therefore has no
Component Called "0PERIV".
DATA : l_s_range TYPE rsr_s_rangesid,
loc_var_range LIKE rrrangeexit.
IF i_step = 2.
CASE i_vnam.
WHEN 'ZTXT_CML' .
CLEAR: l_s_range.
LOOP AT i_t_var_range INTO L_S_VNAM WHERE vnam = 'ZQUAR' AND vnam = '0periv'.
IF i_t_Var_range-0PERIV = 'IE'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '2'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '3'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '4'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ELSEIF i_t_var_range-0PERIV = 'K4'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '2'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '3'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF i_t_var_range-ZQUAR = '4'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ENDIF.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.Hi Supraja,
You would have to declare I_T_VAR_RANGE internal table as the table with an header line.
This you will find in data declaration segment.
ie
DATA : I_T_VAR_RANGE type <table name> WITH HEADER LINE.
or
Create a work area like l_s_var_range.
Use work area while performing operations in your code and later append the record to the table i_t_var_range.
DATA : L_S_VAR_RANGE type i_t_var_range.
Also, i_step = 3 is the right one, because you are processing the customer exit based on the values of the user input of two variables.
Modified code below.
DATA : l_s_range TYPE rsr_s_rangesid.
DATA : L_S_VAR_RANGE type i_t_var_range,
loc_var_range LIKE rrrangeexit.
IF i_step = 3.
CASE i_vnam.
WHEN 'ZTXT_CML' .
CLEAR: l_s_range.
LOOP AT i_t_var_range INTO l_s_var_range WHERE vnam = 'ZQUAR' AND vnam = '0periv'.
IF l svar_range -0PERIV = 'IE'.
IF l_s_var_range -ZQUAR = '1'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '2'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '3'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIFl_s_var_range -ZQUAR = '4'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ELSEIFl_s_var_range -0PERIV = 'K4'.
IF i_t_var_range-ZQUAR = '1'.
l_s_range-low = 'JANUARY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '2'.
l_s_range-low = 'APRIL'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '3'.
l_s_range-low = 'JULY'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ELSEIF l_s_var_range -ZQUAR = '4'.
l_s_range-low = 'OCTOBER'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
ENDIF.
ENDIF.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDCASE.
ENDIF.
Hope it helps,
Best regards,
Sunmit. -
Hi All, I need help with ABAP code for customer exit for formula variable. I have ZVKDATE as formula var from customer exit. user enters date in ZVKEYDT(this is selection type var). I have the below code, I debugged it the l_var_range-low get the date but when I append it to e_t_range the table doesn't gets the date. The report shows the ZVKDATE has empty demarcation. kindly help.
data l_var_range like rrrangeexit.
data: l_s_range type RSR_s_RANGESID.
data: w_day(2) type c,
w_mth(2) type c,
w_year(4) type c.
define append_range_table.
l_s_range-low = &1.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
append l_s_range to e_t_range.
end-of-definition.
*Activities performed before selection screen pop-up window
if i_step = 2.
Calculate the current date based on system date
case i_vnam.
when 'ZVKDATE'.
read table i_t_var_range into l_var_range
with key vnam = 'ZVKEYDAT'.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
w_day = l_var_range-low+6(2).
w_mth = l_var_range-low+4(2).
w_year = l_var_range-low(4).
concatenate w_year w_mth w_day into l_var_range-low.
append l_s_range to e_t_range.
endcase.
endif.
puneetHi,
Check your code again. You are not appending l_var_range but l_s_range. Also I think the concatenate statement should contain l_s_range-low instead of l_var_range-low.
Hope this will help you.
Regards,
Vaibhav
Maybe you are looking for
-
ORA-03106: fatal ....
Hello every body.... I have a problem.. I'm using Oracle 9i (9.2.0.1), then, when I connect with the sqlplus program, I can to connect.. but... IF(I try to connect from an application-Forms/Delphi) THEN -> ORA-03106: fatal two-task communication prot
-
Script servers update and restart
i would like to automate install updates and restart for the servers on scheduled time (or initiate manually for all/groups) that are on GPO option 3 (download updates but let me install). I found couple of discussions from year 2010 and there is a s
-
How to play DVDs in Quicktime Pro
I recently purchased QT, and QTPro. I was trying to transfer DVDs to my 60GB Video ipod, but I cannot even open any movie in Quicktime. Now my goal is just to get a DVD to play in quicktime. I choose file->open file, and select the drive my video is
-
Poll - Large ECC 6.0 system on Linux
Hello, We are analyzing the option of switching from Windows 2008/Oracle platform on Linux and we would like to know if there are large ECC 6.0 systems productive on Linux? We have regularly more than 5000 concurrent users in a system with a consist
-
So many errors trying to download...going insane!
HI, I upgraded to itunes 7 and am having nothing but heartache. First, I was having so many problems with my external hard drive, so I disconnected it. Then, I asked itunes to download the 2nd season of Lost, and am having the worst time getting it t