Is it a real Q10? need help!
hi everyone! sorry for my poor English at first! I need yours help!
I buy a q10 from online store in China. The store owner told me they sell the real unbox uk edition Q10 and then I buy one.
when I receive the phone that they send to me I find a little different with others UK Q10.(sticker is different)
thank you! sorry for my bad camera!!
Like stated above, look at the phone rather than the sticker. I opened many Q10 boxes and not all of the stickers are the same. Some simply peeled off without showing the security imprint, whereas others worked correctly.
Similar Messages
-
Memopad Entries from OS 5 not transferred to Q10 - need help
Hello, I have transferred all my data from os 5 (bb8900) to q10 using bb link. I cannot see my memopad entries on the Remember App and at the same time the notes added on the address book entries were not transfered (only names and phone numbers). How can I send them to the Q10 easily?
Any help appreciated!
RegardsSystem requirements for Snow Leopard (Mac OS X 10.6) can be found here. It appears that your MacBook meets those requirements.
1. If your MacBook is able to read the PC formatted external hard drive now, it should have no trouble doing so once the OS has been updated, but be sure (by calling the manufacturer) that the drive does not have any issues with Snow Leopard. Some did.
2. Use an application such as Bombich software's Carbon Copy Cloner to make a backup of your hard drive.
3. You should always maintain a backup of your important data. Not doing so is an invitation to data loss.
4. Fortunately Time Machine provides an easy way of doing backups without having to think about it constantly. There are other solutions but this one is built in to the operating system.
5. No.
6. If you do a normal install of the OS there should be no loss of those applications. No need to extra backups, just do a clone of the internal hard drive onto your external first.
7. If you have a MacBook it has an internal display. That's what you look at when you are working on it. Don't worry about this one.
8. The only dumb questions are the ones you fail to ask. Feel free to ask more, that's what Apple Support Communities is all about.
Best of luck. -
Too many real instruments; Need help bouncing tracks
Hello, I've been using GarageBand to record a demo for my band. Unfortunately, I've hit my peak number of real instrument tracks. I have a lot of tracks that are the same (well, not EXACTLY the same, but the same musical part), where one is panned left and the other is panned right. Is there a way I can take tracks like these and bounce them down to one stereo track without losing quality or the panning of the tracks? Thanks a ton.
-KevinI use an external FireWire drive which I move between machines and rooms, thus I plug in to the iBook and record, unplug and plug into the iMac and mix.
You could copy the files (they'll be huge) over ethernet, or airport (You could get a cheap hub or router for hooking the machines up. In fact, CompUSA has a 4 port (and wireless) router on sale this week for $4.99 <sic> after rebate), or perhaps burn them to CD-RW/DVD-RW.
how many more tracks do you think I'd be able to get out of my iMac G5
I'm not sure. I think the max I have done so far was 36 (that got pared down to 34). I guess some day I'm going to have to try this myself, see how far I can actually get. I remember doing a simple none Real World test months ago (I'm sure the post is gone by now <sigh>) in which I simply compared my iBook's internal drive an an external drive.
Unfortunately in trying to make the test doable in a reasonable amount of time I only recorded 1 minute tracks, and I'm sure that's a factor, but I seem to recall getting more than 40 with GB(1) and the external drive. -
Now i have tryied everything i need help getting premier pro trial real help pls!
now i have tryied everything i need help getting premier pro trial real help pls!
Hi,
Are you facing issues installing Premiere pro trial?
Please mention your operating system.
Error(If you're getting any)
Thank you,
Mohd Naseem -
Need Help on Real Application Testing (RAT) installation and configarations
Hi Folks,
We are expecting an opportunity across RAT implementation in near future and our team is trying explore on RAT and need help in installation and configurations .Am looking for some RAT
contacts ,please help me..
Thanks,
Jay.Q1
I have not had a space issue in the RAT capture files that caused a database issue when space ran out.
Q2
You will miss anything you filtered the capture on, anything that errored during the capture
Capture will also not get and to be aware of
Direct Path Load (SQL Loader)
Shared server (Oracle MTS)
Oracle Streams & Advanced Replication Streams
Non-PL/SQL based Advanced Queuing (AQ)
Flashback queries
OCI-based Object Navigation
Non SQL-Based Object Access
Distributed transactions, remote describe/commit operations (will be replayed as local transactions)
Q3
I typically use DB Replay for an overall work load perspective, SPA for SQL Level.
For example I will to a DB replay find from my reports SQL that needs a further look see and use SPA from there.
or potentially use SPA to focus on the SQL itself and not concern myself the the whole workload until I am ready.
Q4
Set the SCN for when capture is started, have the replay database be recovered to that SCN prior to any replay operation. No real need to shutdown, done this many times with success.
Q5
Typically I will filer any grid control agent or other agent software activities from the capture for sure.
Q6
Your Capture Report does not show anything?
Q7
You can extract and load AWR with the following packed procedures
sys.dbms_swrf_internal.awr_extract
sys.dbms_swrf_internal.awr_load -
I have a REAL problem that I need help with
many thanks to kglad for all his help last week with a problem but it hasn't fully sorted it out. I have a site with 908 buttons. Basically a person clicks a button, makes a donation (through paypal) and then that button gets their name displayed when the mouse hovers over it. Essentially the button becomes the property of the person who makes the donation. The problem I need help with is how to disable each button when someone clicks it. Disabling a button isn't the problem. I need it disabled only when the person has made a valid donation. Each button has a unique instance name (b001 - b908). There must be a way.
Many thanks in advance.I can't get this to work at all. At this stage, I'm considering a complete restructure of the site in dreamweaver.
I would love to be able to complete it in actionscript though as I would be learning something new.
When a user clicks a button, and goes through the paypal process, I need the clicked button to be disabled.
It has to be such that it gets disabled only when a user has made a donation through paypal. For example, plenty
of people may just click on the buttons as they are checking the site out, without any intention of using the paypal
facility. This is just human nature. Obviously, I don' t want any buttons disabled under these circumstances.
I was thinking, do I need a statement such as .......... "on returning from paypal, disable the clicked button"
Or is it just a case of......... "on returning from paypal, remove the event handler"
Or is it something completely different, I require, (please don't say a brain would be helpful).
Is there some generic code out there that could help me out please. -
first of all, who has heard of the game called zuul? It is a very boring text based game I am currently having the pleasure of improving.
Basically, you are in a room, that is connected to a bunch of other rooms and depending on the room you are in, you have different exists and different items in the room.
The goal is to navigate through the collection of Rooms and there is no real win condition, It is more for learning then for actually playing.
You navigate by a series of commands such as: go (direction)( as in "direction of exit", NSEW), quit, a few other odd bits.
ex: go south, quit, go west etc
The game has several classes: Game, Command, CommandWords, Item, Parser, Room.
Obviously Game is the main central head conch, (it is not the super class.)
Game makes use of Item, Room, Parser, and Command.
Item is the class that deals with the number of items in the Room.
Room is the class that deals with the rooms the player will navigate to and from.
Command reads in the commands such as "go-(direction)" or "quit".
Parser makes everybody understand each other by using both Command and CommandWords.
CommandWords is a list of commands such as "go", "quit" etc.
The problem I am having right now is to allow a player to move through the rooms while holding a certain item. The item has to come from the rooms and the player should be able to drop it.
So I have to add two new commands: take and drop. The problem is that I have been asked to do this without creating a new class. Otherwise I would have just created class Player and be done with it. So I am trying to figure out whose responsibility should it be to take care of the take and drop command. I have done some preliminary work in class Game, it is the take(Command command) and drop() methods.
I have also a few questions concerning other aspects of the project, I have listed their locations here:
1. The take() method in class Game, the for-each loop, a complier error with ArrayList
2. class Parser, a general question about the string tokenzier
If you want to see how the game is suppose to run, just comment out the bodies of take() and drop(). Not the declaration. Everything else works.
I shall now provide the code to all classes. I wish there were an option to upload a zip file, then you don't have to read through all the codes and copy&paste all the codes. The complier I am using is BlueJ. And the SDK version is 1.6. With the exception of class Game, everything else can be assumed to be error free.
Thank you for your time,
Davy
class Game
import java.util.*;
* This class is the main class of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game. Users
* can walk around some scenery. That's all. It should really be extended
* to make it more interesting!
* To play this game, create an instance of this class and call the "play"
* method.
* This main class creates and initialises all the others: it creates all
* rooms, creates the parser and starts the game. It also evaluates and
* executes the commands that the parser returns.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
public class Game
private Parser parser;
private Room currentRoom;
private Room previousRoom;
private Stack<Room> previousRooms;
* Create the game and initialise its internal map.
public Game()
createRooms();
parser = new Parser();
* Create all the rooms and link their exits together.
private void createRooms()
Room outside, theatre, pub, lab, office;
// create the rooms
outside = new Room("outside the main entrance of the university");
theatre = new Room("in a lecture theatre");
pub = new Room("in the campus pub");
lab = new Room("in a computing lab");
office = new Room("in the computing admin office");
// create some items
Item desk, chair, beer, podium, tree;
desk = new Item("desk", "student desk",10);
chair = new Item("chair", "student chair",5);
beer = new Item("beer", "glass of beer", 0.5);
podium = new Item("podium", "lecture podium", 100);
tree = new Item("tree", "a tree", 500.5);
// put items in some of the rooms
outside.addItem(tree);
theatre.addItem(desk);
theatre.addItem(chair);
theatre.addItem(podium);
pub.addItem(beer);
pub.addItem(beer);
office.addItem(desk);
lab.addItem(chair);
lab.addItem(beer);
// initialise room exits
outside.setExit("east", theatre);
outside.setExit("south", lab);
outside.setExit("west", pub);
theatre.setExit("west", outside);
pub.setExit("east", outside);
lab.setExit("north", outside);
lab.setExit("east", office);
office.setExit("west", lab);
currentRoom = outside; // start game outside
previousRooms = new Stack<Room>(); // no rooms on the stack
previousRoom = null;
* Main play routine. Loops until end of play.
public void play()
printWelcome();
// Enter the main command loop. Here we repeatedly read commands and
// execute them until the game is over.
boolean finished = false;
while (! finished) {
Command command = parser.getCommand();
finished = processCommand(command);
System.out.println("Thank you for playing. Good bye.");
* Print out the opening message for the player.
private void printWelcome()
System.out.println();
System.out.println("Welcome to the World of Zuul!");
System.out.println("World of Zuul is a new, incredibly boring adventure game.");
System.out.println("Type 'help' if you need help.");
System.out.println();
System.out.println(currentRoom.getLongDescription());
* Given a command, process (that is: execute) the command.
* @param command The command to be processed.
* @return true If the command ends the game, false otherwise.
private boolean processCommand(Command command)
boolean wantToQuit = false;
if(command.isUnknown()) {
System.out.println("I don't know what you mean...");
return false;
String commandWord = command.getCommandWord();
if (commandWord.equals("help")) {
printHelp();
else if (commandWord.equals("go")) {
goRoom(command);
else if (commandWord.equals("look")) {
look(command);
else if (commandWord.equals("eat")) {
eat(command);
else if (commandWord.equals("back")) {
back(command);
else if (commandWord.equals("stackBack")) {
stackBack(command);
else if (commandWord.equals("take")){
take(command);
else if (commandWord.equals("drop")) {
drop(command);
else if (commandWord.equals("quit")) {
wantToQuit = quit(command);
// else command not recognised.
return wantToQuit;
// implementations of user commands:
* Print out some help information.
* Here we print some stupid, cryptic message and a list of the
* command words.
private void printHelp()
System.out.println("You are lost. You are alone. You wander");
System.out.println("around at the university.");
System.out.println();
System.out.println("Your command words are:");
System.out.println(parser.getCommands());
* Try to go to one direction. If there is an exit, enter the new
* room, otherwise print an error message.
* @param command The command entered.
private void goRoom(Command command)
if(!command.hasSecondWord()) {
// if there is no second word, we don't know where to go...
System.out.println("Go where?");
return;
String direction = command.getSecondWord();
// Try to leave current room.
Room nextRoom = currentRoom.getExit(direction);
if (nextRoom == null) {
System.out.println("There is no door!");
else {
previousRooms.push(currentRoom);
previousRoom = currentRoom;
currentRoom = nextRoom;
System.out.println(currentRoom.getLongDescription());
* "Look" was entered.
* @param command The command entered.
private void look(Command command)
if(command.hasSecondWord()) {
System.out.println("Look what?");
return;
System.out.println(currentRoom.getLongDescription());
* "Eat" was entered.
* @param command The command entered.
private void eat(Command command)
if(command.hasSecondWord()) {
System.out.println("Eat what?");
return;
System.out.println("You have eaten and are no longer hungry!");
* "Back" was entered.
* @param command The command entered.
private void back(Command command)
if(command.hasSecondWord()) {
System.out.println("Back what?");
return;
if (previousRoom==null) {
System.out.println("Can't go back.");
return;
// push current room on stack (for stackBack)
previousRooms.push(currentRoom);
// swap current and previous rooms (for back)
Room temp = currentRoom;
currentRoom = previousRoom;
previousRoom = temp;
// You could replace the previous three lines with the following
// which use the stack to get the previous room
// but note that this makes "back" dependent on "stackBack".
// (If you do it this way you no longer need "temp".
// currentRoom = previousRoom;
// previousRoom = previousRooms.peek();
System.out.println("You have gone back:");
System.out.println(currentRoom.getLongDescription());
* "StackBack" was entered.
* @param command The command entered.
private void stackBack(Command command)
if(command.hasSecondWord()) {
System.out.println("StackBack what?");
return;
if (previousRooms.isEmpty()) {
System.out.println("Can't go StackBack.");
return;
// set previous room (for "back")
previousRoom = currentRoom;
// set new current room (using stack)
currentRoom = previousRooms.pop();
System.out.println("You have gone StackBack:");
System.out.println(currentRoom.getLongDescription());
* allows a player to take something from the room
* @param command
private void take(Command command){
String a;
a=command.getSecondWord();
for (Item i:currentRoom.items()) { //a for each loop, since the room's items are kept in a list, but this gives a //compiler error, it doesn't work because items is an ArrayList, but I need a way to pick up the item. I thought that if //given the item's name, I could run a check through the room's ArrayList of items via a for-each loop
if (a==i.getName()) {
removeItem (i);
return;
* allows a player to drop an item in the room
* @param command
private void drop(Command command) {
if(command.hasSecondWord()) {
System.out.println("drop what?");
return;
//add item method is suppose to be used here
* "Quit" was entered. Check the rest of the command to see
* whether we really quit the game.
* @param command The command entered.
* @return true, if this command quits the game, false otherwise.
private boolean quit(Command command)
if(command.hasSecondWord()) {
System.out.println("Quit what?");
return false;
else {
return true; // signal that we want to quit
}class Room
import java.util.*;
* Class Room - a room in an adventure game.
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
* A "Room" represents one location in the scenery of the game. It is
* connected to other rooms via exits. For each existing exit, the room
* stores a reference to the neighboring room.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
* @author L.S. Marshall
* @version 1.03 October 25, 2007
public class Room
private String description;
private HashMap<String, Room> exits; // stores exits of this room.
// The items in the room
private ArrayList<Item> items;
* Create a room described "description". Initially, it has
* no exits. "description" is something like "a kitchen" or
* "an open court yard".
* @param description The room's description.
public Room(String description)
this.description = description;
exits = new HashMap<String, Room>();
items = new ArrayList<Item>();
* Define an exit from this room.
* @param direction The direction of the exit.
* @param neighbor The room to which the exit leads.
public void setExit(String direction, Room neighbor)
exits.put(direction, neighbor);
* Gives a short description of the room.
* @return The short description of the room
* (the one that was defined in the constructor).
public String getShortDescription()
return description;
* Return a description of the items in the room
* (Note that this could be combined with getLongDescription, but
* this way shows better cohesion, and could avoid code duplication
* for future enhancements.)
* @return A description of the items in this room
public String getItemsDescription()
String s = new String();
if (items.size()==0)
s += "There are no items in this room.\n";
else {
s += "The item(s) in the room are:\n";
for (Item item : items ) {
s += item.getInfo() + "\n";
return s;
* Return a description of the room in the form:
* You are in the kitchen.
* Exits: north west
* and information on the items in the room
* @return A long description of this room
public String getLongDescription()
String s = "You are " + description + ".\n" + getExitString() + "\n";
s += getItemsDescription();
return s;
* Return a string describing the room's exits, for example
* "Exits: north west".
* @return Details of the room's exits.
private String getExitString()
String returnString = "Exits:";
Set<String> keys = exits.keySet();
for(String exit : keys) {
returnString += " " + exit;
return returnString;
* Return the room that is reached if we go from this room in direction
* "direction". If there is no room in that direction, return null.
* @param direction The exit's direction.
* @return The room in the given direction.
public Room getExit(String direction)
return exits.get(direction);
* Adds the given item to the room.
* @param item The item to be added
public void addItem(Item item)
items.add(item);
* Removes an item if the person picks it up
* @param item the item to be removed
public void removeItem (Item item)
items.remove(item);
}class Item
* This represents an item in a room in zuul.
* @author L.S. Marshall
* @version 1.00 October 9, 2007
public class Item
// The description of the item
private String description;
// The weight of the item
private double weight;
private String name;
* Constructor for objects of class Item
* @param desc description of the item
* @param weight the weight of the item
public Item(String name, String desc, double weight)
description = desc;
this.weight = weight;
this.name=name;
* Returns a string representing this item
* @return string representing this item
public String getInfo()
return ("Item: " + description + ", weighs " + weight + ".");
* returns the name of the string
* @ return the name in a string
public String getName()
return ( name );
}class Command
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
* This class holds information about a command that was issued by the user.
* A command currently consists of two strings: a command word and a second
* word (for example, if the command was "take map", then the two strings
* obviously are "take" and "map").
* The way this is used is: Commands are already checked for being valid
* command words. If the user entered an invalid command (a word that is not
* known) then the command word is <null>.
* If the command had only one word, then the second word is <null>.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
public class Command
private String commandWord;
private String secondWord;
* Create a command object. First and second word must be supplied, but
* either one (or both) can be null.
* @param firstWord The first word of the command. Null if the command
* was not recognised.
* @param secondWord The second word of the command.
public Command(String firstWord, String secondWord)
commandWord = firstWord;
this.secondWord = secondWord;
* Return the command word (the first word) of this command. If the
* command was not understood, the result is null.
* @return The command word.
public String getCommandWord()
return commandWord;
* @return The second word of this command. Returns null if there was no
* second word.
public String getSecondWord()
return secondWord;
* @return true if this command was not understood.
public boolean isUnknown()
return (commandWord == null);
* @return true if the command has a second word.
public boolean hasSecondWord()
return (secondWord != null);
}class Parser
import java.util.Scanner;
import java.util.StringTokenizer;
//I read the documentation for String Tokenizer, and I have a few questions relating to a pet project of mine. The //project is to build a boolean algebra simplifer. I would give it a boolean expression and it will simplify it for me.
//Which is very similar to what this class does. The documentation mentioned a delimiter for separating the tokens.
//yet I see none here, is the delimiter at default, the space between the words? and if I were to set manually //delimiters, how do I do that?
//Once I read in the string, should it be Parser's job to execute the boolean simplification part? According the RDD,
//it shouldn't, but doing so would keep everything in fewer classes and therefore easier to manage, wouldn't it?
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
* This parser reads user input and tries to interpret it as an "Adventure"
* command. Every time it is called it reads a line from the terminal and
* tries to interpret the line as a two word command. It returns the command
* as an object of class Command.
* The parser has a set of known command words. It checks user input against
* the known commands, and if the input is not one of the known commands, it
* returns a command object that is marked as an unknown command.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
* @author L.S. Marshall
* @version 1.01 October 9, 2007
public class Parser
private CommandWords commands; // holds all valid command words
private Scanner reader; // source of command input
* Create a parser to read from the terminal window.
public Parser()
commands = new CommandWords();
reader = new Scanner(System.in);
* Command returns the command typed by the user.
* @return The next command from the user.
public Command getCommand()
String inputLine; // will hold the full input line
String word1 = null;
String word2 = null;
System.out.print("> "); // print prompt
inputLine = reader.nextLine();
// Find up to two words on the line.
Scanner tokenizer = new Scanner(inputLine);
if(tokenizer.hasNext()) {
word1 = tokenizer.next(); // get first word
if(tokenizer.hasNext()) {
word2 = tokenizer.next(); // get second word
// note: we just ignore the rest of the input line.
// Now check whether this word is known. If so, create a command
// with it. If not, create a "null" command (for unknown command).
if(commands.isCommand(word1)) {
return new Command(word1, word2);
else {
return new Command(null, word2);
* Returns a list of valid command words.
* @string list of valid command words
public String getCommands()
return commands.getCommandList();
}class CommandWords
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
* This class holds an enumeration of all command words known to the game.
* It is used to recognise commands as they are typed in.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
* @author L.S. Marshall
* @version 1.01 October 9, 2007
public class CommandWords
// a constant array that holds all valid command words
private static final String[] validCommands = {
"go", "quit", "help", "look", "eat", "back", "stackBack",
"take", "drop",
* Constructor - initialise the command words.
public CommandWords()
// nothing to do at the moment...
* Check whether a given String is a valid command word.
* @param aString the command word
* @return true if it is, false if it isn't.
public boolean isCommand(String aString)
for(int i = 0; i < validCommands.length; i++) {
if(validCommands.equals(aString))
return true;
// if we get here, the string was not found in the commands
return false;
* Return a string containing all valid commands.
* @return string of all valid commands
public String getCommandList()
String s="";
for(String command: validCommands) {
s += command + " ";
return s;
right, sorry, that was thoughtless of me.
class Parser
import java.util.Scanner;
import java.util.StringTokenizer;
//I read the documentation for String Tokenizer, and I have a few questions relating to a pet project of mine. The //project is to build a boolean algebra simplifer. I would give it a boolean expression and it will simplify it for me.
//Which is very similar to what this class does. The documentation mentioned a delimiter for separating the tokens.
//yet I see none here, is the delimiter at default, the space between the words? and if I were to set manually //delimiters, how do I do that?
//Once I read in the string, should it be Parser's job to execute the boolean simplification part? According the RDD,
//it shouldn't, but doing so would keep everything in fewer classes and therefore easier to manage, wouldn't it?
* This class is part of the "World of Zuul" application.
* "World of Zuul" is a very simple, text based adventure game.
* This parser reads user input and tries to interpret it as an "Adventure"
* command. Every time it is called it reads a line from the terminal and
* tries to interpret the line as a two word command. It returns the command
* as an object of class Command.
* The parser has a set of known command words. It checks user input against
* the known commands, and if the input is not one of the known commands, it
* returns a command object that is marked as an unknown command.
* @author Michael Kolling and David J. Barnes
* @version 2006.03.30
* @author L.S. Marshall
* @version 1.01 October 9, 2007
public class Parser
private CommandWords commands; // holds all valid command words
private Scanner reader; // source of command input
* Create a parser to read from the terminal window.
public Parser()
commands = new CommandWords();
reader = new Scanner(System.in);
* Command returns the command typed by the user.
* @return The next command from the user.
public Command getCommand()
String inputLine; // will hold the full input line
String word1 = null;
String word2 = null;
System.out.print("> "); // print prompt
inputLine = reader.nextLine();
// Find up to two words on the line.
Scanner tokenizer = new Scanner(inputLine);
if(tokenizer.hasNext()) {
word1 = tokenizer.next(); // get first word
if(tokenizer.hasNext()) {
word2 = tokenizer.next(); // get second word
// note: we just ignore the rest of the input line.
// Now check whether this word is known. If so, create a command
// with it. If not, create a "null" command (for unknown command).
if(commands.isCommand(word1)) {
return new Command(word1, word2);
else {
return new Command(null, word2);
* Returns a list of valid command words.
* @string list of valid command words
public String getCommands()
return commands.getCommandList();
} -
Need help in storing data from JList into a vector
need help in doing the following.-
alright i click a skill on industryskills Jlist and press the add button and it'll be added to the applicantskills Jlist. how do i further store this data that i added onto the applicantskills JList into a vector.
here are the codes:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.text.*;
import java.util.*;
import java.util.Vector;
import javax.swing.JScrollPane.*;
//import javax.swing.event.ListSelectionListener;
public class Employment extends JFrame
//declare class variables
private JPanel jpApplicant, jpEverything,jpWEST, jpCENTRE, jpEAST, jpAddEditDelete,
jpCentreTOP, jpCentreBOT, jpEastTOP, jpEastCENTRE, jpEastBOT,
jpBlank1, panel1, panel2, panel3, panel4,jpBottomArea,
jpEmptyPanelForDisplayPurposes;
private JLabel jlblApplicantForm, jlblAppList, jlblName, jlblPhone,
jlblCurrentSalary, jlblPassword, jlblDesiredSalary,
jlblNotes, jlblApplicantSkills, jlblIndustrySkills,
jlblBlank1, jlblBlank2, ApplicantListLabel,
NotesListLabel, ApplicantSkillsLabel,
IndustrySkillsLabel,jlblEmptyLabelForDisplayPurposes;
private JButton jbtnAdd1, jbtnEdit, jbtnDelete, jbtnSave, jbtnCancel,
jbtnAdd2, jbtnRemove;
private JTextField jtfName, jtfPhone, jtfCurrentSalary, jtfPassword,
jtfDesiredSalary;
private JTabbedPane tabbedPane;
private DefaultListModel /*listModel,*/listModel2;
String name,password,phone,currentsalary,desiredsalary,textareastuff,NotesText;
String selectedname;
final JTextArea Noteslist= new JTextArea();;
DefaultListModel listModel = new DefaultListModel();
JList ApplicantSkillsList = new JList(listModel);
private ListSelectionModel listSelectionModel;
JList ApplicantList, /*ApplicantSkillsList,*/ IndustrySkillsList;
//protected JTextArea NotesList;
//Vector details = new Vector();
Vector<StoringData> details = new Vector<StoringData>();
public static void main(String []args)
Employment f = new Employment();
f.setVisible(true);
f.setDefaultCloseOperation(EXIT_ON_CLOSE);
f.setResizable(false);
}//end of main
public Employment()
setSize(800,470);
setTitle("E-commerce Placement Agency");
Font listfonts = new Font("TimesRoman", Font.BOLD, 12);
JPanel topPanel = new JPanel();
topPanel.setLayout( new BorderLayout() );
getContentPane().add( topPanel );
createPage1();
createPage2();
createPage3();
createPage4();
tabbedPane = new JTabbedPane();
tabbedPane.addTab( "Applicant", panel1 );
tabbedPane.addTab( "Job Order", panel2 );
tabbedPane.addTab( "Skill", panel3 );
tabbedPane.addTab( "Company", panel4 );
topPanel.add( tabbedPane, BorderLayout.CENTER );
public void createPage1()//PAGE 1
/*******************TOP PART********************/
panel1 = new JPanel();
panel1.setLayout( new BorderLayout());
jpBottomArea = new JPanel();
jpBottomArea.setLayout(new BorderLayout());
jpApplicant= new JPanel();
jpApplicant.setLayout(new BorderLayout());
Font bigFont = new Font("TimesRoman", Font.BOLD,24);
jpApplicant.setBackground(Color.lightGray);
jlblApplicantForm = new JLabel("\t\t\t\tAPPLICANT FORM ");
jlblApplicantForm.setFont(bigFont);
jpApplicant.add(jlblApplicantForm,BorderLayout.EAST);
panel1.add(jpApplicant,BorderLayout.NORTH);
panel1.add(jpBottomArea,BorderLayout.CENTER);
/********************************EMPTY PANEL FOR DISPLAY PURPOSES*************************/
jpEmptyPanelForDisplayPurposes = new JPanel();
jlblEmptyLabelForDisplayPurposes = new JLabel(" ");
jpEmptyPanelForDisplayPurposes.add(jlblEmptyLabelForDisplayPurposes);
jpBottomArea.add(jpEmptyPanelForDisplayPurposes,BorderLayout.NORTH);
/*****************************************WEST*********************************/
jpWEST = new JPanel();
jpWEST.setLayout( new BorderLayout());
//Applicant List
listModel2=new DefaultListModel();
ApplicantList = new JList(listModel2);
listSelectionModel = ApplicantList.getSelectionModel();
listSelectionModel.addListSelectionListener(new SharedListSelectionHandler());
JScrollPane scrollPane3 = new JScrollPane(ApplicantList);
ApplicantList.setPreferredSize(new Dimension(20,40));
scrollPane3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollPane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
ApplicantListLabel = new JLabel( "Applicant List:");
jpWEST.add(ApplicantListLabel,"North");
jpWEST.add(scrollPane3,"Center");
jpBottomArea.add(jpWEST,BorderLayout.WEST);
/*********CENTRE*********/
jpCENTRE = new JPanel();
jpCENTRE.setLayout(new GridLayout(2,1));
jpCentreTOP = new JPanel();
jpBottomArea.add(jpCENTRE,BorderLayout.CENTER);
jpCENTRE.add(jpCentreTOP);
jpCentreTOP.setLayout(new GridLayout(6,2));
//Creating labels and textfields
jlblName = new JLabel( "Name:");
jlblBlank1 = new JLabel ("");
jtfName = new JTextField(18);
jlblBlank2 = new JLabel("");
jlblPhone = new JLabel("Phone:");
jlblCurrentSalary = new JLabel("Current Salary:");
jtfPhone = new JTextField(13);
jtfCurrentSalary = new JTextField(7);
jlblPassword = new JLabel("Password:");
jlblDesiredSalary = new JLabel("Desired Salary:");
jtfPassword = new JTextField(13);
jtfDesiredSalary = new JTextField(6);
//Add labels and textfields to panel
jpCentreTOP.add(jlblName);
jpCentreTOP.add(jlblBlank1);
jpCentreTOP.add(jtfName);
jpCentreTOP.add(jlblBlank2);
jpCentreTOP.add(jlblPhone);
jpCentreTOP.add(jlblCurrentSalary);
jpCentreTOP.add(jtfPhone);
jpCentreTOP.add(jtfCurrentSalary);
jpCentreTOP.add(jlblPassword);
jpCentreTOP.add(jlblDesiredSalary);
jpCentreTOP.add(jtfPassword);
jpCentreTOP.add(jtfDesiredSalary);
//Noteslist
jpCentreBOT = new JPanel();
jpCentreBOT.setLayout( new BorderLayout());
jpCENTRE.add(jpCentreBOT);
jpBlank1 = new JPanel();
// Noteslist = new JTextArea(/*Document doc*/);
JScrollPane scroll3=new JScrollPane(Noteslist);
scroll3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scroll3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
NotesListLabel = new JLabel( "Notes:");
jpCentreBOT.add(NotesListLabel,"North");
jpCentreBOT.add(scroll3,"Center");
jpCentreBOT.add(jpBlank1,"South");
jpBottomArea.add(jpCENTRE,BorderLayout.CENTER);
/**********EAST**********/
//Applicant Skills Panel
//EAST ==> TOP
jpEAST = new JPanel();
jpEAST.setLayout( new BorderLayout());
jpEastTOP = new JPanel();
jpEastTOP.setLayout( new BorderLayout());
ApplicantSkillsLabel = new JLabel( "Applicant Skills");
JScrollPane scrollPane1 = new JScrollPane(ApplicantSkillsList);
scrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
ApplicantSkillsList.setVisibleRowCount(6);
jpEastTOP.add(ApplicantSkillsLabel,"North");
jpEastTOP.add(scrollPane1,"Center");
jpEAST.add(jpEastTOP,BorderLayout.NORTH);
jpBottomArea.add(jpEAST,BorderLayout.EAST);
//Add & Remove Buttons
//EAST ==> CENTRE
jpEastCENTRE = new JPanel();
jpEAST.add(jpEastCENTRE,BorderLayout.CENTER);
jbtnAdd2 = new JButton("Add");
jbtnRemove = new JButton("Remove");
//add buttons to panel
jpEastCENTRE.add(jbtnAdd2);
jpEastCENTRE.add(jbtnRemove);
//add listener to button
jbtnAdd2.addActionListener(new Add2Listener());
jbtnRemove.addActionListener(new RemoveListener());
//Industry Skills Panel
//EAST ==> BOTTOM
jpEastBOT = new JPanel();
jpEastBOT.setLayout( new BorderLayout());
String[] data = {"Access97", "Basic Programming",
"C++ Programming", "COBOL Programming",
"DB Design", "Fortran programming"};
IndustrySkillsList = new JList(data);
JScrollPane scrollPane = new JScrollPane(IndustrySkillsList);
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
IndustrySkillsLabel = new JLabel( "Industry Skills:");
jpEastBOT.add(IndustrySkillsLabel,"North");
jpEastBOT.add(scrollPane,"Center");
jpEAST.add(jpEastBOT,BorderLayout.SOUTH);
//BOTTOM
jpAddEditDelete= new JPanel();
jbtnAdd1= new JButton("Add");
jbtnEdit= new JButton("Edit");
jbtnDelete= new JButton("Delete");
jbtnSave= new JButton("Save");
jbtnCancel= new JButton("Cancel");
jpAddEditDelete.add(jbtnAdd1);
jpAddEditDelete.add(jbtnEdit);
jpAddEditDelete.add(jbtnDelete);
jpAddEditDelete.add(jbtnSave);
jpAddEditDelete.add(jbtnCancel);
jbtnEdit.addActionListener(new EditListener());
jbtnDelete.addActionListener(new DeleteListener());
jbtnEdit.addActionListener(new EditListener());
jbtnAdd1.addActionListener(new Add1Listener());
jbtnCancel.addActionListener(new CancelListener());
jpBottomArea.add(jpAddEditDelete,BorderLayout.SOUTH);
public void createPage2()//PAGE 2
panel2 = new JPanel();
panel2.setLayout( new GridLayout(1,1) );
panel2.add( new JLabel( "Sorry,under construction" ) );
public void createPage3()//PAGE 3
panel3 = new JPanel();
panel3.setLayout( new GridLayout( 1, 1 ) );
panel3.add( new JLabel( "Sorry,under construction" ) );
public void createPage4()//PAGE 4
panel4 = new JPanel();
panel4.setLayout( new GridLayout( 1, 1 ) );
panel4.add( new JLabel( "Sorry,under construction" ) );
public class Add1Listener implements ActionListener
public void actionPerformed(ActionEvent e)
name = jtfName.getText();
password = jtfPassword.getText();
phone = jtfPhone.getText();
currentsalary = jtfCurrentSalary.getText();
int i= Integer.parseInt(currentsalary);
desiredsalary = jtfDesiredSalary.getText();
int j= Integer.parseInt(desiredsalary);
StoringData person = new StoringData(name,password,phone,i,j);
// StoringData AppSkillsList = new StoringData(listModel);
details.add(person);
// details.add(AppSkillsList);
listModel2.addElement(name);
jtfName.setText("");
jtfPassword.setText("");
jtfPhone.setText("");
jtfCurrentSalary.setText("");
jtfDesiredSalary.setText("");
// NotesList.setText("");
public class Add2Listener implements ActionListener
public void actionPerformed(ActionEvent e)
String temp1;
temp1 = (String)IndustrySkillsList.getSelectedValue();
listModel.addElement(temp1);
public class RemoveListener implements ActionListener
public void actionPerformed(ActionEvent e)
int index = ApplicantSkillsList.getSelectedIndex();
listModel.remove(index);
public class EditListener implements ActionListener
public void actionPerformed(ActionEvent e)
jtfName.setEditable(true);
jtfPassword.setEditable(true);
jtfPhone.setEditable(true);
jtfCurrentSalary.setEditable(true);
jtfDesiredSalary.setEditable(true);
Noteslist.setEditable(true);
jbtnAdd2.setEnabled(true);
jbtnRemove.setEnabled(true);
jbtnSave.setEnabled(true);
jbtnCancel.setEnabled(true);
public class DeleteListener implements ActionListener
public void actionPerformed(ActionEvent e)
int index1 = ApplicantList.getSelectedIndex();
listModel2.remove(index1);
public class SaveListener implements ActionListener
public void actionPerformed(ActionEvent e)
public class CancelListener implements ActionListener
public void actionPerformed(ActionEvent e)
jtfName.setText("");
jtfPassword.setText("");
jtfPhone.setText("");
jtfCurrentSalary.setText("");
jtfDesiredSalary.setText("");
public class SharedListSelectionHandler implements ListSelectionListener
public void valueChanged(ListSelectionEvent e)
selectedname =ApplicantList.getSelectedValue().toString();
StoringData selectedPerson = null;
jtfName.setEditable(false);
jtfPassword.setEditable(false);
jtfPhone.setEditable(false);
jtfCurrentSalary.setEditable(false);
jtfDesiredSalary.setEditable(false);
Noteslist.setEditable(false);
jbtnAdd2.setEnabled(false);
jbtnRemove.setEnabled(false);
jbtnSave.setEnabled(false);
jbtnCancel.setEnabled(false);
for (StoringData person : details)
if (person.getName1().equals(selectedname))
selectedPerson = person;
jtfName.setText(person.getName1());
jtfPassword.setText(person.getPassword1());
jtfPhone.setText(person.getPhone1());
//String sal1 = Integer.parseString(currentsalary);
// String sal2 = Integer.parseString(desiredsalary);
// jtfCurrentSalary.setText(sal1);
// jtfDesiredSalary.setText(sal2);
break;
// if (selectedPerson != null)
}Quit posting 300 line programs to ask a question. We don't care about your entire application. We only care about code that demonstrates your current problem. We don't want to read through 300 lines to try and find the line of code that is causing the problem.
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.
Here is a simple SSCCE. Now make your changes and if you still have problems you have something simple to post. If it works then you add it to your real application.
Learn to simplify your problem by simplifying the code.
import java.awt.*;
import javax.swing.*;
public class ListTest2 extends JFrame
JList list;
public ListTest2()
String[] numbers = { "one", "two", "three", "four", "five", "six", "seven" };
list = new JList( numbers );
JScrollPane scrollPane = new JScrollPane( list );
getContentPane().add( scrollPane );
public static void main(String[] args)
ListTest2 frame = new ListTest2();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.setSize(200, 200);
frame.setLocationRelativeTo( null );
frame.setVisible( true );
} -
New to Indesign and need help on layout
Hi there
I have a small invitaiton business and have recently started using Indesign (steep learning curve). I have designed a wedding suite for a bride and it is ready to go off to the printers. My problem is i have recently changed printers and these guys print on size SRA3 and charge for set up costs if I dont supply all my setup in this size.
I dont know how to do this! Is there a simple way i can take my one invitation and place it multiple times on a SRA3 setup without copying and pasting. Plus all my crop marks and bleeds need to line up.
ANy help would be really appreciated.
thanks
NerissaI really did not want to say more about this but your attitude is ....
Who are you that you think you know every printers setup and requirements, who are you to say that a person must not go to there prefered printer for work.
What the hell does a car got to do with printing, NOTHING. Keep on topic!
You say modern workflow, so your saying every print shop in every town in every country has exactly the same equipment as your printer has and whats needed to handle your unprofessional approach to laying out graphics, wake up will ya every print house in every town can be different your arrogance in assuming every print house can reproduce your improperly prepared graphics is just going to cause trouble.
Refering back to the original post. I did not see the name of the printer they where sending the job to, do you know them personally to insist that your way is the best way to reproduce the job. NO!
You do not know them yet you jumped on my suggestion and it was only a suggestion that could lead to an idea for getting the job done. You called it BS yet every working day at my work I follow that sort of work flow for a number of reason. No it is not modern Yes it does work everyday.
You thinking that your way is the only way is no help to anyone in here.
This forum is for everyone, if I take the time to suggest something so be it, it is not your job to judge if my suggestion is wrong.
Be a help not a hinderance and keep your arrogance outta the forum.
P Taz:
Bob's main problem is this modern workflow chip on his shoulder, not everyone has the latest and greatest hardware and software. Adobe is printing longer then I care to think back on, and they have many different ways of doing this job and many of these are still in use. Modern is all fine and dandy if you have it.
I am not happy with using obsolete processes but that is what I have to work with. I absorb a lot that is said in these forums not all I can use yet but its good to see the changes in technology. Everyone as a designer has to keep in mind the Printshop that is printing there work
I never came in here with the intention to revert people, I only suggested a way to get a job done even you do not know what equipment the printer has to reproduce the OP problem. How in gods name can a suggestion be wrong for this forum even you have fallen for bob's inability to realise there are still people out in the real world not using the most modern workflow equipment and these people need help.
It is no good you just saying update update update. The job needs doing with what they have, later when money permits or whatever then talk to them about modern workflows.
And lastly goes out my appology to the original poster, I am very sorry this has gone as far as it has.
Bob... Lighten up! -
I need help getting a Novatel Wireless Merlin S720 to work on my G4 PB
I need help with "Sprint Mobile Broadband Card Novatel Wireless Merlin S720.
I have a Mac PowerBook G4 running 10.4.8 as follows:
Machine Name: PowerBook G4
Machine Model: PowerBook3,3
CPU Type: PowerPC G4 (2.1)
Number Of CPUs: 1
CPU Speed: 667 MHz
L2 Cache (per CPU): 256 KB
Memory: 1 GB
Bus Speed: 133 MHz
Boot ROM Version: 4.2.9f1
I was told by a "Sprint PCS Level 2" Tech that if
I got one of the "Sprint" cards that I would have to
set it up on a "Windows" Laptop and then call a
"Sprint PCS Level 2" tech and have them walk me
through setting it up on my PowerBook G4...
I purchased a "PanTech PX500"... set it up on my
"Windows" laptop and called to be told that I should
have purchased a "Novatel S720" and the the "PanTech"
would NOT work in my Powerbook...
I took the "PanTech" back and finally (after of month of looking
for one in a Sprint Store to no avail) ordered on from Sprint's
Tel-Sales unit...
When it arrived I set it up on my "Windows" laptop and called
back to a Sprint Level 2 Tech... I got a tech that was very helpful,
however, was NOT able to get the "Novatel S720" to work... He
told me I should have purchased a "PanTech PX500"!!!
This morning I went to a "Sprint Store" and was told that they had
sold several "Novatel S720's" to Mac owners and suggested that
I keep the "Novatel S720" and even though they could not set it up
on my Mac... they suggested that I call back to another Level 2 tech...
Is there anyone out there that can help me get this working???
Many Thanks In Advance!!!
THX
JohnI went to the Sprint Store in St Peters MO and one of the Sprint
Associates told me that she had sold several Sprint cards including
20 or so S720's to a customer of her's..
A large graphics house based in St Louis.
She emailed the Senior VP there and ask that he contact me
if he could/would help...
I received an email from him in less than 4 hours and he
directed me to their in-house tech dept!
I called and talked to the person that he had directed me to
and that person told me that it was a little tricky... You have to do
some modification of the "Code" in the Kernel...
He said if would bring my Mac & the card over the next day
at 10AM it would take him about 10 minutes to get me up and
running!!!
I ask what the charge would be??? He said... "The Boss is a
real Mac Guy... Just Bring it over and we'll get you fixed
up!!! It's a Mac thing!!!"
It works Great!!! I've used it in several areas around the MidWest
and my next road trip will include IN, IL, MO (KC), KY, TN, AL, FL,
GA and SC... That will be the test!!!
I'm finding that I'm able to get on line with the Sprint Card in places
that I don't get very good Sprint PCS Cel service...Must be the
Sprint/NEXTEL combination!
I've been a Mac owner/user/teacher since early '84... It's
GREAT to me a Mac Person!!!
Thanks for your reply and taking the time to help!!!
THX
John -
Guys needed your help with my real racingHD game app it's not working properly even after paying for it I don't know why it's not working having trouble with it cause it won't star smooth need help guys
Read Mitch's post on the sad ipod in this thread:
http://discussions.apple.com/message.jspa?messageID=2369954#2369954 -
HI gurus,
I AM KISHORE i am SD consultant.here my client is asking to create some programmes. i need help in simple programmes so that as per that i can change the fiels as per my requirement.
i am in real big problem now .i know these are very simple programmes but i don't know ABC of programming.
can some one help me in this regard. this ABAP help is needed for me only for some time.
the requirement:
create program which will produce list with:
Materia number; Material description ; Valuation class, Standard price with curency and unit.
Select conditions:
Material number,
Plant,
Material type as mandatory
Material Group as mandatory,
LP/KD/MIP (LABOR) as mandatory,
Replenishment strategy (TEMPB) as mandatory,
Valuation class,
Flag for deletion-Client Level with initial value <> X (only materials without flag for deletion)
Simple List is enough
reagrds
kishoreHi
Eventhough i cant fullfill your complete requirement. I'm giving u a report performed by me in which most of the fields are covered ask any of abaper to make modifications in this report and change it to accordingly ur requirement. I think it will solve 80% of ur work
* tables
TABLES: ekko,ekbe,ekpo,ekkn,konh,konv,esll,ekbz,rseg,lfa1,j_1ipart1,
j_1igrxref.
TYPE-POOLS: slis.
*data definituon
DATA:
wa_ekko LIKE ekko,
wa_ekbe LIKE ekbe,
wa_ekkn LIKE ekkn,
wa_konp LIKE konp,
wa_ekpo LIKE ekpo,
wa_rbkp LIKE rbkp,
wa_j_1ipart1 LIKE j_1ipart1,
wa_j_1igrxref LIKE j_1igrxref,
wa_rseg LIKE rseg OCCURS 0 WITH HEADER LINE.
DATA: ws_vakey LIKE konh-vakey,
ws_kbetr LIKE konp-kbetr,
ws_kbetr1 LIKE konp-kbetr,
ws_kbetr2 LIKE konp-kbetr,
ws_ecs LIKE j_1igrxref-ecs,
ws_ebelp LIKE ekbz-ebelp,
ws_ebeln LIKE ekko-ebeln,
ws_belnr LIKE ekbe-belnr,
ws_beznk LIKE rbkp-beznk,
ws_wrbtr_f LIKE ekbz-wrbtr,
ws_rmwwr LIKE rbkp-rmwwr,
ws_rbkp_benz.
*internal tables
DATA: BEGIN OF int_outtab OCCURS 0,
lifnr LIKE ekko-lifnr, " vend no
name1 LIKE lfa1-name1, " vend name
werks LIKE ekpo-werks, " plant
ebeln LIKE ekko-ebeln, " po no
knumv LIKE ekko-knumv,
ebelp LIKE ekbe-ebelp,
matnr LIKE ekpo-matnr, " mat no
txz01 LIKE ekpo-txz01, " mat desceiption
kostl LIKE ekkn-kostl, " cost center
ps_psp_pnr LIKE ekkn-ps_psp_pnr, " WBS element
netwr LIKE ekpo-netwr,
" basic value (po)
kbetr LIKE konp-kbetr,
" excise value (po)
kwert_i LIKE konv-kwert,
" insurance value (po)
kwert_f LIKE konv-kwert,
" frieght value (po)
kwert_t LIKE konv-kwert,
" vat/tax value (po)
kwert_o LIKE konv-kwert,
" others (po)
kwert_total LIKE konv-kwert,
" total (po)
ecs LIKE j_1igrxref-ecs,
" excise (ap)
wmwst1 LIKE rbkp-wmwst1,
" tax amount (ap)
wrbtr_f TYPE ekbz-wrbtr,
" freight (ap)
wrbtr TYPE ekbz-wrbtr,
beznk LIKE rbkp-beznk,
" Unplanned cost (ap)
refwr_g TYPE ekbe-refwr,
" gross (ap)
rmwwr LIKE rbkp-rmwwr,
" Actual Invoice Total (ap)
buzei LIKE ekbz-buzei, "item for material doc
gjahr LIKE ekbe-gjahr,
tax LIKE ekbe-wrbtr, " tax (ap)
actual_total LIKE ekbe-wrbtr,
* belnr LIKE rseg-belnr,
belnr LIKE ekbe-belnr,
vakey LIKE konh-vakey,
cpudt LIKE ekbe-cpudt,
budat LIKE ekbz-budat,
belnr_ekbz LIKE ekbz-belnr, "to get excise value
* aedat LIKE ekpo-aedat,
bedat LIKE ekko-bedat,
waers LIKE lfm1-waers, " currency
END OF int_outtab.
DATA: int_konv LIKE konv OCCURS 0 WITH HEADER LINE,
* int_ekbe LIKE ekbe OCCURS 0 WITH HEADER LINE,
int_ekbz LIKE ekbz OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF int_konh OCCURS 0,
knumh LIKE konh-knumh,
kschl LIKE konh-kschl,
vakey LIKE konh-vakey,
END OF int_konh.
DATA: BEGIN OF int_konp OCCURS 0,
knumh LIKE konp-knumh,
kschl LIKE konp-kschl,
kbetr LIKE konp-kbetr,
END OF int_konp.
DATA: BEGIN OF int_ekkn OCCURS 0,
ebeln LIKE ekkn-ebeln,
ebelp LIKE ekkn-ebelp,
kostl LIKE ekkn-kostl,
ps_psp_pnr LIKE ekkn-ps_psp_pnr,
END OF int_ekkn.
DATA: BEGIN OF int_outtab1 OCCURS 0,
exbed LIKE j_1igrxref-exbed,
ecs LIKE j_1igrxref-ecs,
END OF int_outtab1.
DATA: BEGIN OF int_ekbe OCCURS 0,
ebelp LIKE ekbe-ebelp,
refwr LIKE ekbe-refwr,
wrbtr LIKE ekbe-wrbtr,
shkzg LIKE ekbe-shkzg,
END OF int_ekbe.
DATA: BEGIN OF int_total OCCURS 0,
ebeln LIKE ekko-ebeln,
ebelp LIKE ekbe-ebelp,
actual_total LIKE ekbe-wrbtr,
END OF int_total.
DATA: BEGIN OF int_excise OCCURS 0,
ebeln LIKE ekko-ebeln,
kbetr LIKE konp-kbetr,
END OF int_excise.
DATA: BEGIN OF int_rseg OCCURS 0,
ebeln LIKE rseg-ebeln,
ebelp LIKE rseg-ebelp,
lfbnr LIKE rseg-lfbnr,
matnr LIKE rseg-matnr,
lfgja LIKE rseg-lfgja,
belnr LIKE rseg-belnr,
ecs LIKE j_1igrxref-ecs,
beznk LIKE rbkp-beznk,
wrbtr_f LIKE ekbz-wrbtr,
rmwwr LIKE rbkp-rmwwr,
END OF int_rseg.
DATA: BEGIN OF int_rbkp OCCURS 0,
belnr LIKE rbkp-belnr,
beznk LIKE rbkp-beznk,
rmwwr LIKE rbkp-rmwwr,
tcode LIKE rbkp-tcode,
END OF int_rbkp.
****ALV list definintion
DATA: ws_cat TYPE slis_t_fieldcat_alv ,
int_cat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: g_container TYPE scrfname VALUE 'BCALV_GRID_DEMO_0100_CONT1',
g_custom_container TYPE REF TO cl_gui_custom_container.
*selection-screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 19(23) text-002.
SELECT-OPTIONS: s_lifnr FOR ekko-lifnr obligatory.
*PARAMETERS:p_lifnr LIKE ekko-lifnr .
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 25(17) text-006.
*PARAMETERS:p_ebeln LIKE ekko-ebeln obligatory.
SELECT-OPTIONS:s_ebeln FOR ekko-ebeln .
SELECTION-SCREEN END OF LINE.
*SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 25(23) text-003.
*PARAMETERS:p_ekorg LIKE ekko-ekorg.
*SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 25(20) text-004.
*PARAMETERS:p_werks LIKE ekpo-werks obligatory.
*SELECT-OPTIONS: S_werks FOR ekpo-werks obligatory.
SELECTION-SCREEN END OF LINE.
*SELECTION-SCREEN BEGIN OF LINE.
*SELECTION-SCREEN COMMENT 25(23) text-005.
*SELECT-OPTIONS:s_bedat FOR ekko-bedat.
*SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM get_data.
PERFORM field_catalog.
PERFORM display_data.
END-OF-SELECTION.
*& Form get_data
* text
FORM get_data.
* start of Vender details
***vender no, vender name, po no,service/mat no, service/mat description
SELECT ekko~lifnr ekko~ebeln ekko~knumv ekko~bedat
ekpo~werks ekpo~matnr ekpo~txz01 ekpo~werks
ekpo~netwr
* ekpo~aedat
ekbe~ebelp ekbe~belnr
lfa1~name1
INTO CORRESPONDING FIELDS OF TABLE int_outtab
FROM ( ( ( ekko
JOIN ekbe ON ekbe~ebeln = ekko~ebeln AND
ekbe~vgabe = '2' )
JOIN ekpo ON ekpo~ebeln = ekko~ebeln AND
ekpo~ebelp = ekbe~ebelp )
JOIN lfa1 ON lfa1~lifnr = ekko~lifnr )
WHERE
* ekko~lifnr = P_lifnr AND
* ekko~ebeln IN S_ebeln AND
** ekpo~werks IN S_werks AND
ekbe~vgabe = '2'.
***WBS/Cost center
SELECT ebeln ebelp kostl ps_psp_pnr FROM ekkn INTO int_ekkn
FOR ALL ENTRIES IN int_outtab
WHERE ebeln = int_outtab-ebeln AND
ebelp = int_outtab-ebelp.
APPEND int_ekkn.
ENDSELECT.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln OR int_outtab-ebelp.
LOOP AT int_ekkn WHERE ebeln = int_outtab-ebeln AND
ebelp = int_outtab-ebelp.
IF int_ekkn-kostl <> ' '.
MOVE int_ekkn-kostl TO int_outtab-kostl.
ELSE.
MOVE int_ekkn-ps_psp_pnr TO int_outtab-kostl.
" int_outtab-ps_psp_pnr.
ENDIF.
ENDLOOP.
MODIFY int_outtab.
ENDON.
ENDLOOP.
*end of Vender details*****
*******Start of calculation of PO
*****Excise calculation of po
LOOP AT int_outtab.
CONCATENATE int_outtab-werks int_outtab-lifnr int_outtab-matnr INTO
ws_vakey.
MOVE ws_vakey TO int_outtab-vakey.
MODIFY int_outtab.
ENDLOOP.
LOOP AT int_outtab.
* ON CHANGE OF int_outtab-ebeln OR int_outtab-vakey.
ON CHANGE OF int_outtab-ebelp.
SELECT knumh kschl vakey FROM konh INTO int_konh
* FOR ALL ENTRIES IN int_outtab
WHERE vakey = int_outtab-vakey AND
datab <= int_outtab-bedat AND
datbi > int_outtab-bedat AND
( kschl = 'JMOP' OR kschl = 'JEC1' ).
SELECT knumh kschl kbetr FROM konp INTO int_konp
WHERE knumh = int_konh-knumh .
IF int_konp-kschl = 'JMOP'.
ws_kbetr = int_konp-kbetr / 1000 * int_outtab-netwr.
ws_kbetr1 = ws_kbetr.
ENDIF.
IF int_konp-kschl = 'JEC1'.
ws_kbetr2 = int_konp-kbetr / 1000 * ws_kbetr1.
ENDIF.
ws_kbetr = ws_kbetr + ws_kbetr2.
ENDSELECT.
ENDSELECT.
ENDON.
* ENDON.
MOVE ws_kbetr TO int_outtab-kbetr.
MODIFY int_outtab.
CLEAR: ws_kbetr, ws_kbetr1, ws_kbetr2.
ENDLOOP.
LOOP AT int_outtab.
* ON CHANGE OF int_outtab-ebeln OR int_outtab-vakey.
int_excise-kbetr = int_outtab-kbetr.
int_excise-ebeln = int_outtab-ebeln.
APPEND int_excise.
* ENDON.
ENDLOOP.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln.
LOOP AT int_excise WHERE ebeln = int_outtab-ebeln.
ws_kbetr = ws_kbetr + int_excise-kbetr.
ENDLOOP.
ENDON.
int_outtab-kbetr = ws_kbetr.
MODIFY int_outtab.
CLEAR ws_kbetr.
ENDLOOP.
***** Insurance, Freight,Vat/ST, Other, Total***********
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebelp OR int_outtab-ebeln.
CLEAR int_konv.
SELECT * FROM konv INTO CORRESPONDING FIELDS OF int_konv
WHERE knumv = int_outtab-knumv AND
kposn = int_outtab-ebelp AND
( ( kschl <> 'RA00' )
AND ( kschl <> 'RA01' ) AND ( kschl <> 'RB00' )
AND ( kschl <> 'PBXX' ) AND ( kschl <> 'PB00' )
AND ( kschl <> 'RC00' ) AND ( kschl <> 'RL01' )
AND ( kschl <> 'ZC00' ) AND ( kschl <> 'ZA00' )
AND ( kschl <> 'ZA01' ) AND ( kschl <> 'HB01' )
AND ( kschl <> 'ZBED' ) AND ( kschl <> 'ZAED' )
AND ( kschl <> 'ZSED' ) AND ( kschl <> 'ZAE1' )
AND ( kschl <> 'ZSE1' ) AND ( kschl <> 'ZCEX' )
AND ( kschl <> 'ZPRO' ) AND ( kschl <> 'ZTRD' )
AND ( kschl <> 'ZPK4' ) AND ( kschl <> 'ZSTX' )
AND ( kschl <> 'ZASS' ) AND ( kschl <> 'ZJCD' )
AND ( kschl <> 'HB00') ).
APPEND int_konv.
ENDSELECT.
ENDON.
ENDLOOP.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebelp OR int_outtab-knumv.
LOOP AT int_konv WHERE kposn = int_outtab-ebelp AND
knumv = int_outtab-knumv.
* lifnr = int_outtab-lifnr.
***** tax
IF ( ( int_konv-kschl = 'NAVS' ) OR ( int_konv-kschl = 'NAVM' )
int_outtab-kwert_t = int_outtab-kwert_t + int_konv-kwert.
ELSE.
*****freight
IF ( ( int_konv-kschl = 'FRA1' ) OR ( int_konv-kschl = 'FRB1'
OR ( int_konv-kschl = 'FRC1'
int_outtab-kwert_f = int_outtab-kwert_f + int_konv-kwert.
ELSE.
*****insurance
IF ( ( int_konv-kschl = 'ZGIN' ) OR ( int_konv-kschl =
'ZIN2' ) ).
int_outtab-kwert_i = int_outtab-kwert_i + int_konv-kwert.
ELSE.
****others
IF NOT ( ( int_konv-kschl = 'NAVS' ) OR (
int_konv-kschl = 'NAVM' )
OR ( int_konv-kschl = 'FRA1' ) OR (
int_konv-kschl = 'FRB1' )
OR ( int_konv-kschl = 'FRC1' ) OR (
int_konv-kschl = 'ZGIN' )
OR ( int_konv-kschl = 'ZIN2' ) OR (
int_konv-kschl = 'RA00' )
OR ( int_konv-kschl = 'RA01' ) OR (
int_konv-kschl = 'RB00' )
OR ( int_konv-kschl = 'PBXX' ) OR (
int_konv-kschl = 'PB00' )
OR ( int_konv-kschl = 'RC00' ) OR (
int_konv-kschl = 'RL01' ) ).
int_outtab-kwert_o = int_outtab-kwert_o +
int_konv-kwert.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
****total
int_outtab-kwert_total = int_outtab-kwert_t
+ int_outtab-kwert_f
+ int_outtab-kwert_i
+ int_outtab-kwert_o
+ int_outtab-netwr.
ENDON.
MODIFY int_outtab.
ENDLOOP.
******End of calculation of PO
*start of calculation for actual payment
*****Excise
sort int_outtab by ebelp ebeln.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebelp OR int_outtab-ebeln.
SELECT * FROM rseg INTO CORRESPONDING FIELDS OF int_rseg
* FOR ALL ENTRIES IN int_outtab
WHERE ebeln = int_outtab-ebeln AND
ebelp = int_outtab-ebelp.
APPEND int_rseg.
ENDSELECT.
ENDON.
ENDLOOP.
sort int_rseg by ebelp lfbnr matnr.
LOOP AT int_rseg.
ON CHANGE OF int_outtab-ebelp OR int_rseg-lfbnr OR int_rseg-matnr OR
int_rseg-lfgja.
SELECT * FROM j_1ipart1 INTO wa_j_1ipart1
WHERE mblnr = int_rseg-lfbnr AND
mjahr = int_rseg-lfgja AND
matnr = int_rseg-matnr.
ON CHANGE OF wa_j_1ipart1-mblnr OR wa_j_1ipart1-zeile.
SELECT * FROM j_1igrxref INTO wa_j_1igrxref
WHERE mblnr = wa_j_1ipart1-mblnr AND
zeile = wa_j_1ipart1-zeile.
IF sy-subrc EQ 0.
ws_ecs = ws_ecs + wa_j_1igrxref-exbed + wa_j_1igrxref-ecs.
ENDIF.
ENDSELECT.
ENDON.
ENDSELECT.
ENDON.
MOVE ws_ecs TO int_rseg-ecs.
MODIFY int_rseg TRANSPORTING ecs.
CLEAR: ws_ecs.
ENDLOOP.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln.
LOOP AT int_rseg WHERE ebeln = int_outtab-ebeln.
ws_ecs = ws_ecs + int_rseg-ecs.
ENDLOOP.
ENDON.
MOVE ws_ecs TO int_outtab-ecs.
MODIFY int_outtab TRANSPORTING ecs.
CLEAR ws_ecs.
ENDLOOP.
******unplanned costs and actual_invoice_total
SORT int_rseg BY belnr.
LOOP AT int_rseg .
ON CHANGE OF int_rseg-belnr.
SELECT belnr beznk rmwwr tcode FROM rbkp INTO int_rbkp
WHERE belnr = int_rseg-belnr .
APPEND int_rbkp.
ENDSELECT.
ENDON.
ENDLOOP.
SORT int_rseg BY belnr.
SORT int_rbkp BY belnr.
LOOP AT int_rseg.
ON CHANGE OF int_rseg-ebeln OR int_rseg-belnr.
LOOP AT int_rbkp WHERE belnr = int_rseg-belnr.
IF int_rbkp-tcode = 'MR8M'.
int_rbkp-rmwwr = int_rbkp-rmwwr * ( - 1 ).
int_rbkp-beznk = int_rbkp-beznk * ( - 1 ).
ENDIF.
ws_beznk = ws_beznk + int_rbkp-beznk.
ws_rmwwr = ws_rmwwr + int_rbkp-rmwwr.
ENDLOOP.
ENDON.
MOVE ws_beznk TO int_rseg-beznk.
MOVE ws_rmwwr TO int_rseg-rmwwr.
MODIFY int_rseg.
CLEAR: ws_rmwwr, ws_beznk.
ENDLOOP.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln.
LOOP AT int_rseg WHERE ebeln = int_rseg-ebeln.
ws_beznk = ws_beznk + int_rseg-beznk.
ws_rmwwr = ws_rmwwr + int_rseg-rmwwr.
ENDLOOP.
ENDON.
MOVE ws_beznk TO int_outtab-beznk.
MOVE ws_rmwwr TO int_outtab-rmwwr.
MODIFY int_outtab.
CLEAR: ws_rmwwr, ws_beznk.
ENDLOOP.
*freight of actual payment
sort int_rseg by belnr ebelp.
LOOP AT int_rseg.
ON CHANGE OF int_rseg-belnr or int_rseg-ebelp..
SELECT * FROM ekbz INTO CORRESPONDING FIELDS OF int_ekbz
WHERE ebeln = int_rseg-ebeln AND
belnr = int_rseg-belnr AND
ebelp = int_rseg-ebelp AND
vgabe = '2' .
IF int_ekbz-shkzg = 'H'.
int_ekbz-wrbtr = int_ekbz-wrbtr * ( - 1 ).
ENDIF.
int_rseg-wrbtr_f = int_rseg-wrbtr_f + int_ekbz-wrbtr.
ENDSELECT.
ENDON.
MODIFY int_rseg.
CLEAR int_rseg-wrbtr_f.
ENDLOOP.
sort int_rseg by ebelp.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln OR int_outtab-ebelp.
LOOP AT int_rseg WHERE ebeln = int_outtab-ebeln AND
ebelp = int_outtab-ebelp.
ws_wrbtr_f = ws_wrbtr_f + int_rseg-wrbtr_f.
ENDLOOP.
ENDON.
MOVE ws_wrbtr_f TO int_outtab-wrbtr_f.
MODIFY int_outtab TRANSPORTING wrbtr_f.
CLEAR ws_wrbtr_f.
ENDLOOP.
**tax and gross amt of actual payment
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebelp OR int_outtab-ebeln.
" or int_outtab-belnr.
SELECT ebelp refwr wrbtr shkzg FROM ekbe INTO int_ekbe
WHERE ebelp = int_outtab-ebelp AND
ebeln = int_outtab-ebeln AND
vgabe = '2' .
IF int_ekbe-shkzg = 'H'.
int_ekbe-refwr = int_ekbe-refwr * ( - 1 ).
int_ekbe-wrbtr = int_ekbe-wrbtr * ( - 1 ).
ENDIF.
int_outtab-refwr_g = int_outtab-refwr_g + int_ekbe-refwr.
int_outtab-tax = int_outtab-tax + ( int_ekbe-wrbtr -
int_ekbe-refwr ).
ENDSELECT.
ENDON.
MODIFY int_outtab.
CLEAR int_outtab-refwr_g.
CLEAR int_outtab-tax.
ENDLOOP.
****total
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebelp OR int_outtab-ebeln.
int_outtab-actual_total = int_outtab-actual_total
+ int_outtab-ecs
+ int_outtab-wrbtr_f
+ int_outtab-tax
+ int_outtab-beznk
+ int_outtab-refwr_g.
int_total-actual_total = int_outtab-actual_total.
int_total-ebelp = int_outtab-ebelp.
int_total-ebeln = int_outtab-ebeln.
APPEND int_total.
ENDON.
ENDLOOP.
*end of calculation for actaul payment
*************Modification in internal table*****
LOOP AT int_outtab.
IF int_outtab-ebelp = ws_ebelp AND
int_outtab-ebeln = ws_ebeln.
int_outtab-netwr = 0.
MODIFY int_outtab.
ENDIF.
ws_ebelp = int_outtab-ebelp.
ws_ebeln = int_outtab-ebeln.
ENDLOOP.
LOOP AT int_outtab.
IF int_outtab-netwr IS INITIAL.
DELETE int_outtab INDEX sy-tabix.
ENDIF.
ENDLOOP.
LOOP AT int_outtab.
ON CHANGE OF int_outtab-ebeln.
LOOP AT int_total WHERE ebeln = int_outtab-ebeln.
int_outtab-actual_total = int_outtab-actual_total
+ int_total-actual_total.
ENDLOOP.
ENDON.
MODIFY int_outtab.
ENDLOOP.
LOOP AT int_outtab.
SELECT SINGLE * FROM lfm1 INTO CORRESPONDING FIELDS OF int_outtab
WHERE lifnr = int_outtab-lifnr.
MODIFY int_outtab.
ENDLOOP.
********** end of modification*********
ENDFORM. "get_data
*& Form field_catalog
* text
FORM field_catalog.
***vender no
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'LIFNR'.
int_cat-reptext_ddic = 'Vender No'.
APPEND int_cat TO ws_cat.
*vender name
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'NAME1'.
int_cat-reptext_ddic = 'Vender Name'.
APPEND int_cat TO ws_cat.
** PO No
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'EBELN'.
int_cat-reptext_ddic = 'PO No'.
APPEND int_cat TO ws_cat.
** Mat No
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'MATNR'.
int_cat-reptext_ddic = 'Mat No'.
APPEND int_cat TO ws_cat.
** Matdescription
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'TXZ01'.
int_cat-reptext_ddic = 'Mat description'.
APPEND int_cat TO ws_cat.
**WBS/Cost center
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KOSTL'.
int_cat-reptext_ddic = 'WBS/Cost center'.
APPEND int_cat TO ws_cat.
**Currency
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'WAERS'.
int_cat-reptext_ddic = 'Currency'.
APPEND int_cat TO ws_cat.
**Basic
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'NETWR'.
int_cat-reptext_ddic = 'Basic'.
APPEND int_cat TO ws_cat.
**Excise
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KBETR'.
int_cat-reptext_ddic = 'Excise'.
APPEND int_cat TO ws_cat.
**Insurance
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KWERT_I'.
int_cat-reptext_ddic = 'Insurance'.
APPEND int_cat TO ws_cat.
**Frieght
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KWERT_F'.
int_cat-reptext_ddic = 'Frieght'.
APPEND int_cat TO ws_cat.
**VAT/ST
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KWERT_T'.
int_cat-reptext_ddic = 'VAT/ST'.
APPEND int_cat TO ws_cat.
**Other
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KWERT_O'.
int_cat-reptext_ddic = 'Others'.
APPEND int_cat TO ws_cat.
**Total
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'KWERT_TOTAL'.
int_cat-reptext_ddic = 'Total'.
APPEND int_cat TO ws_cat.
***Excise
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'ECS'.
int_cat-reptext_ddic = 'Excise'.
APPEND int_cat TO ws_cat.
*****Freight
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'WRBTR_F'.
int_cat-reptext_ddic = 'Freight'.
APPEND int_cat TO ws_cat.
*****Tax
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'TAX'.
int_cat-reptext_ddic = 'Tax'.
APPEND int_cat TO ws_cat.
***Unplanned Del Cost
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'BEZNK'.
int_cat-reptext_ddic = 'Unplanned Del Cost'.
APPEND int_cat TO ws_cat.
****Gross
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'REFWR_G'.
int_cat-reptext_ddic = 'Gross'.
APPEND int_cat TO ws_cat.
**Total
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'ACTUAL_TOTAL'.
int_cat-reptext_ddic = 'Total'.
APPEND int_cat TO ws_cat.
**Actual Invoice Total
int_cat-tabname = 'INT_OUTTAB'.
int_cat-fieldname = 'RMWWR'.
int_cat-reptext_ddic = 'Actual Invoice Total'.
APPEND int_cat TO ws_cat.
ENDFORM. "field_catalog
*& Form display_data
* text
FORM display_data.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = 'Z_MM_TEST1'
it_fieldcat = ws_cat[]
TABLES
t_outtab = int_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "display_data
Reward for all helpfull answers
Regards
Pavan -
Need help identifying controller information in hyperdraw
Hello,
Sorry if this is a dumb questions, but I'm in the middle of a project and need help ASAP. In one of my tracks (Real Guitar) there is some form of controller information present at the start of the track and I have no clue what it is! Is there a preference/key command that shows all data in hyperdraw, and then lets you select it (similar to the way the matrix editor works if you double click in the background, and then click on a specific note?)
Thanks in advance for any help you can provide!Jonathan,
I use the method that Jim suggested. I have the "H" key programmed for autodefine. (I've also got another two keys programmed to simply turn hyperdraw on and off for the selected region(s)). Autodefine is very cool. If there are, say, 4 different controllers in the track, hitting H the first time will show you the lowest-numbered controller; hit it again and it shows you the next higher number controller, and so on. The controller number is displayed in the lower LH area of the hyperdraw display for each region.
If a track contains controller information for multiple channels, you'll see two numeric values in the lower LH corner -- the controller number and MIDI channel for that controller, separated by a comma. -
I need help removing a background from a picture. My boss wants some t-shirts made but the only image I have is one with a tie-dye background and I need it to just be the black and white that is on the image. I have been trying for 2 weeks to do this and I can get real close but it leaves the colors around the edges and I need this gone. Any ideas? Anyone that can help me out? I have the original photo and the one with almost everything removed if someone can help me fine tune the rest that would be great.
You've done all the hard work and are almost there!
Starting with your b/w rendition, duplicate the background layer, and shut off the visibility of the background layer. Work on background copy layer
Go to Enhance menu>convert to black and white>vivid landscape style
Open a blank layer between the background and background copy layers and fill this layer with white
Make the background copy layer active and use the eraser tool to clean up a few smudges on the background copy layer
Open a blank layer at the top of the stack, and press CTRL+SHIFT+ALT+E to create a stamp visible layer
With the rectangular marquee tool, make a rectangular block selection of "DRIVE-IN THEATRE" and place this on its own layer (CTRL+J). Make the blending mode multiply, then duplicate this layer 3-4 times.
For the text on the bottom, suggest that you erase this and replace the information with the type tool. -
I need help Centering a div box to a background image using dreamweaver cs5.5.
I need help Centering a div box to a background image using dreamweaver cs5.5. Everything shift left when viewing on different size monitors? See what I mean at
www.woodlandhospice.comHave you looked at your page with images disabled?
I urge you to re-think this approach to web design because images of text are not indexed by search engines, screen readers or translators. Given the demographic group your site is targeting, you really need to ensure maximum web accessibility for all users.
Navigation, headings and descriptions all need to be in real text -- not images of text.
Ken is right. Absolute positioning is pure poison for such a simple layout. My advice is to start over with one of the pre-built Starter Pages in DW. Go to File > New > Blank page > HTML. Select a layout from the 3rd column and hit CREATE button.
Nancy O. -
I was changing things on my computer and I am not a real wiz at this stuff. My safari when I open it now shows https with a lock on it. I need help on removing this and also my google is missing from the address bar. Anyone know what I have done?
Safari 6
URL address bar and Google search bar are combined into one bar now.
Apple calls it Smart Search Field.
There is no more a separate Google search bar.
https with lock icon means that information entered in the bar is encrypted for the purpose of security.
For details: http://support.apple.com/kb/PH11893
Maybe you are looking for
-
Authorization for opening & Closing posting periods - OB52
Hi, Is there any way to set authorization for opening & closing of posting periods in OB52? My scenario: I have 2 company codes - A & B assigned to 2 different posting period variant - say PPA & PPB. The user belonging to CoCd A should not be able to
-
Is it possible to use Snow Leopard on Mountain Lion iMac with Virtualbox ?
I've been lucky recently, with people giving the perfect solutions for me so I try again. But, this one is a tough one: How to run a virtual Snow Leopard on a new iMac ? I got a 2013 iMac with Mountain Lion (10.8.5 now) so, totally incompatible with
-
Including image in SharePoint survey answer and hiding elements only work on the first page
Hi All, I would like to add some text/remove some text etc on a sharepoint survey page. Which i have done using jquery/jscript. But unfortunately it only works on the first page. Any ideas how i can get it to work on all the pages? See a sample he
-
Receiver type error in EDI_AGREE_PARTNER_INSERT
Hello all, I'm using EDI_AGREE_PARTNER_INSERT to add entries to EDPP1. The parameters I am passing are as follows: MANDT = PARNUM = 200002 PARTYP = KU CLASS= MATLVL= A TEST= ARCHI
-
How can I set my Ipod Classic to play the next podcast rather than repeating same one
I have several episodes of a podcast on my Ipod Classic. I would like to set it so that when one finishes, the next episode starts. How can I do this?