Anyabap program coding or logic for public calender changes for every year
Hi currently i am developing abap extract program for public calender changes - can anybody help me in coding or the logic or any function module for that
In SAP (SPRO) we have standard configuration to create/ change public holiday calander, usually this config done by Time management cosultants/PS/MM/SD functional consultants.
Thanks
Sparta
Similar Messages
-
How-to-tick-automatically-adjust-clock-for-daylight-saving-changes-for-domain-users
hi
please help me
I am using windows 2008 as a domain controller with windows XP & windows 7 as a client.
how-to-tick-automatically-adjust-clock-for-daylight-saving-changes-for-domain-users
Thanks in Advance
my mail: [email protected]Some more information would be nice (how many computers are in the domain?), but I think I have what you're looking for.
What you need to do is change a registry key in the client computers. It's located in the registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation
The string name is DynamicDaylightTimeDisabled and the value for this item is
0 (Kind of weird - by entering 0, you're saying "No, I DON'T want to DISable daylight savings time).
Of course, you'll need to deploy this registry information to the clients from the server. There are several ways to do it, but the first one I'd try is to create a registry preference item on the server and deploy it as a GPP.
This link explains how to do this:
http://technet.microsoft.com/en-us/library/cc753092.aspx -
BADI For Commitment Item Change for Service PO
Hi All,
I want to change the commitment item in the PR on change of Material Group . I used the BADI ME_PROCESS_REQ_CUST for changing the commitment item and its working fine for all types of PR except Service PR .
In service PR , its changing the commitment item only on clicking the Account Assigment button because at this instant only the BADI is getting trigger .
I want to change the commitment item without clicking the Account Assigment button (on pressing enter or at saving time ) .
Is there any way ?
Thanks
Manik L DhakateWe are using User Exit MEREQ EXIT_SAPLMEREQ_010
In our PR creation for ME51n, we are validating the Person through HR Org structure at the Point of Key in his Cost Center, whether he belong to his Department cost center, we use this User Exit MEREQ EXIT_SAPLMEREQ_010. If he doesnu2019t not belong, the message pop up as u201C Please use your department cost centeru201D. This works very good in case of NB Document Type (Non stock & Materials).
We have customized ZCPR (Service PRs), but for service PRs, the place where we enter Account Assignment is Different screen, either it is planned or unplanned service, the system take you to another separate screen to key in Cost Center & GL, here the validation is not happening,
Please suggest & advice us, we tried in this BADI : ME_PROCESS_REQ_CUST, we can fix it. Any User Exit or BADI for Service PRu2019 -
Bapi For creation and change for Vendor Master and Customer Master
I am looking for BAPI to create and change Vendor Master and Customer Master which will not take me to standard SAP transaction but will work in the background
Explanation: BAPI to delete material (BAPI_MATERIAL_DELETE) take you to standard SAP screen of T-Code MM06 but BAPI to create material (BAPI_MATERIAL_SAVEDATA) creates material in the background i.e. does not take you to standard SAP screen of T-Code MM01
So in my case (i.e. to create and change Vendor Master and Customer Master ) I want BAPI which would work like BAPI to create material (BAPI_MATERIAL_SAVEDATA)For general information,to find BAPIs associated with any business object :
Transaction : BAPI - choose alphabetical tab - Find customer - (right side choose - tools - create bapi list and search ) , you will get all the BAPIs associated with this particular business object
Mathews -
What notes are requiered for Infotype 0077 changes for veteran status?
I am in component SAP_HR,release 500, Support Package SAPKE50051. We want to be able to read the new veteran status in IT 0077. I verified the tables PA0077 and I have the new table structure of VETS1 through VETS12, but the screen in PA20 only shows under Veteran Status:
Special disabled veteran
Vietnam-era veteran
Other veteran
Non-veteran.
Please advise which notes need to be applied for the IT 0077 to be sen correctly in PA20. I also need to know if there are any notes that need to be applied for the VET-100 report.
ThanksWhether these entries are appearing in T588M table, this table it Configuring the User Interface.
This looks to me like a responsibilty of Functional person though and also not sure that applying Note will solve can be the solution for this.
Let me know what do you think.
Regards
Shital -
Events vanished for a single month of every year
All events in the month of October of every year ever since I started using iCal have vanished from iCal in my computer. I still have them on my iPod and am not syncing Calendars since I noticed this. How can I get every month of every year to show every event I have recorded?
Hi,
I have seen similar issues with particular timezones. What timezone are you using in iCal?
John M -
To enable Log Changes For Views
Hi,
How to enable Log Changes for Views?
Regards,
SantoshHi Santhosh,
There is no seperate indicator for 'Log Data Changes' for Views. Changes will be automatically logged. Create a sample view, add 2 fields first and activate it. then add 1 more field and activate it. Now goto UTILITIES - > ACTIVATION LOG. you can find the changes here. if it is helpful assign points -
Activating Program Management for Public Sector
Hello everyone,
We are currently implementing an E-Governance solution for a municipal corporation, in SAP. Our licenses include ECC 6.0 and SAP CRM 2007. Additionally, we have purchased a single component of SAP for Public Sector, namely Program Management for Public Sector, which is enabled by SAP CRM.
We have tried extensively to find out detailed information about this solution (Program Management for Public Sector), however besides a few lines of general information, not much else is available publicly.
We request to provide us information on how to activate Program Management for Public Sector, and if possible to guide us on where to obtain valid documentation.
Any asistance in this regard wil be much appreciated.
Regards,
Shiv SahgalHi, you can get information under CRM component, have a look at SAP help portal, CRM for industries -> Public Sector
http://help.sap.com/saphelp_crmscen70/helpdata/en/4a/9eb12521864ff0a82cdc2a373d5d89/frameset.htm
Or in the help portal under SAP Business Suite -> SAP Customer Relationship Management, you will find relevant documentation regarding your CRM release.
Regards
César -
The logical problem in turnover in for ?
Welcome
wrote this code, everything is true but there is a logical problem to be solved first idea of this program is a moving train to the contrary, it can stop and operated once again and that can add cars and locomotives and can delete it but there is a problem when adding that the train carriages have remained stable cart after the first turnover Thus ...
THAT shows us the error ..
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Train extends JFrame implements ActionListener{
private boolean check = false;
private boolean stopped = true;
private boolean add = false;
private int trainPlace = 0;
private int INDEX_START = 0;
public int speed = 300;
private ImageIcon CurrentImage ;
private boolean front=true, back=false ;
private int carrNum = 0 ;
private JPanel screen, area , controlroom;
private JButton[][] street;
public JButton[] keybord;
private String s[] = {"Start","Back","Fast","Slow","Add Carriage","Delete Carriage","Rest","Check","Desiners"};
private ImageIcon images[][] ={{
new ImageIcon("images/UpRight.jpg"),
new ImageIcon("images/RightDown.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/NoTrack.jpg"),
{new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/DownRight.jpg"),
new ImageIcon("images/Horiz.jpg"),
new ImageIcon("images/RightDown.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/UpRight.jpg"),
new ImageIcon("images/Horiz.jpg"),
new ImageIcon("images/RightUp.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/DownRight.jpg"),
new ImageIcon("images/RightUp.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/NoTrack.jpg"),
new ImageIcon("images/NoTrack.jpg")}};
private ImageIcon frontImagesTrain[]={
new ImageIcon("images/TrainDown.jpg"),
new ImageIcon("images/TrainDown.jpg"),
new ImageIcon("images/TrainLeft.jpg"),
new ImageIcon("images/TrainLeft.jpg"),
new ImageIcon("images/TrainDown.jpg"),
new ImageIcon("images/TrainLeft.jpg"),
new ImageIcon("images/TrainUp.jpg"),
new ImageIcon("images/TrainUp.jpg"),
new ImageIcon("images/TrainUp.jpg"),
new ImageIcon("images/TrainUp.jpg"),
new ImageIcon("images/TrainRight.jpg"),
new ImageIcon("images/TrainDown.jpg"),
new ImageIcon("images/TrainRight.jpg"),
new ImageIcon("images/TrainDown.jpg")};
private ImageIcon trackImagesTrain[]={
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/RightUp.jpg"),
new ImageIcon("images/Horiz.jpg"),
new ImageIcon("images/UpRight.jpg"),
new ImageIcon("images/RightUp.jpg"),
new ImageIcon("images/DownRight.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/Vert.jpg"),
new ImageIcon("images/UpRight.jpg"),
new ImageIcon("images/RightDown.jpg"),
new ImageIcon("images/DownRight.jpg"),
new ImageIcon("images/Horiz.jpg"),
new ImageIcon("images/RightDown.jpg")};
private ImageIcon carrinImagesTrain[]={
new ImageIcon("images/Carriage1Down.jpg"),
new ImageIcon("images/Carriage1Down.jpg"),
new ImageIcon("images/Carriage1Left.jpg"),
new ImageIcon("images/Carriage1Left.jpg"),
new ImageIcon("images/Carriage1Down.jpg"),
new ImageIcon("images/Carriage1Left.jpg"),
new ImageIcon("images/Carriage1Up.jpg"),
new ImageIcon("images/Carriage1Up.jpg"),
new ImageIcon("images/Carriage1Up.jpg"),
new ImageIcon("images/Carriage1Up.jpg"),
new ImageIcon("images/Carriage1Right.jpg"),
new ImageIcon("images/Carriage1Down.jpg"),
new ImageIcon("images/Carriage1Right.jpg"),
new ImageIcon("images/Carriage1Down.jpg")};
private int[]frontPath={13, 18,17,16,21,20,15,10,5,0,1,6,7,8};
private int[]frontPath2={8, 13,18,17,16,21,20,15,10,5,0,1,6,7};
private ImageIcon icon;
private JLabel labelInfo;
public Train () {
screen = new JPanel(new GridLayout(1,1));
Font f =new Font ("Sanserif",Font.BOLD,18);
labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
labelInfo.setFont(f);
screen.setBackground(Color.red);
screen.add(labelInfo);
getContentPane().add(BorderLayout.NORTH,screen );
street = new JButton[5][5];
area = new JPanel (new GridLayout(5,5));
for(int r=0; r<5; r++)
for (int c=0; c<5; c++){
street[r][c] = new JButton("", images[r][c]);
area.add(street[r][c]);
getContentPane().add(BorderLayout.CENTER,area );
keybord = new JButton[9];
controlroom = new JPanel(new GridLayout(5,2));
// ActionHandler handler = new ActionHandler();
for (int i=0; i <9; i++)
keybord[i] = new JButton(s);
keybord[i].addActionListener(this);
controlroom.add(keybord[i]);
keybord[i].setEnabled(false);
keybord[7].setEnabled(true);
getContentPane().add(BorderLayout.SOUTH,controlroom );
public void moveTrainFront(){
int trainPlace1 = trainPlace;
try{
if (trainPlace == frontPath.length-1) trainPlace = 0;
else trainPlace ++;
if (carrNum == 0 )
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
int r = frontPath[trainPlace1]/5;
int c = frontPath[trainPlace1] - r * 5;
street[i][j].setIcon(frontImagesTrain[trainPlace]);
street[r][c].setIcon(trackImagesTrain[trainPlace1]);
else
int i1 = frontPath[trainPlace]/5;
int j1 = frontPath[trainPlace] - i1 * 5;
street[i1][j1].setIcon(frontImagesTrain[trainPlace]);
int trainPlace2 = trainPlace;
for (int z = 1; z <= carrNum; z++)
if (trainPlace2 - z < 0) trainPlace2 = 13;
int i2 = frontPath[trainPlace2 - z]/5;
int j2 = frontPath[trainPlace2 - z] - i2 * 5;
street[i2][j2].setIcon(carrinImagesTrain[trainPlace2 - z]);
int r1 = frontPath[trainPlace1 - carrNum]/5;
int c1 = frontPath[trainPlace1 - carrNum] - r1 * 5;
street[r1][c1].setIcon(trackImagesTrain[trainPlace1 - carrNum]);
}catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
// Move train Back
public void moveTrainBack(){
int trainPlace1 = trainPlace;
try{
if (trainPlace == 0) trainPlace = 13;
else trainPlace--;
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
int r = frontPath[trainPlace1]/5;
int c = frontPath[trainPlace1] - r * 5;
street[i][j].setIcon(frontImagesTrain[trainPlace]);
street[r][c].setIcon(trackImagesTrain[trainPlace1]);
}catch(ArrayIndexOutOfBoundsException aiex){System.out.println("the array out of index");}
public void setRest(){
setStop(true);
setSpeed(300);
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(trackImagesTrain[trainPlace]);
trainPlace = 0;
i = frontPath[trainPlace]/5;
j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(frontImagesTrain[0]);
public void setCheck (boolean c)
int i = frontPath[trainPlace]/5;
int j = frontPath[trainPlace] - i * 5;
street[i][j].setIcon(frontImagesTrain[0]);
check = c ;
public boolean getCheck (){ return check ;}
public void setSpeed (int s){speed = s ;}
public int getSpeed(){return speed;}
public void setStop(boolean s){stopped = s ;}
public boolean getStop(){return stopped ;}
public void setBack(boolean s){back = s ;}
public boolean getBack(){return back;}
public void setAdd(){carrNum++ ;}
public boolean getAdd(){return add;}
// Action
public void actionPerformed(ActionEvent e){
if(e.getSource()==keybord[0])//Start
if (stopped)
keybord[0].setText("Stop");
setStop(false);
labelInfo.setText("Running");
else
{ setStop(true);
keybord[0].setText("Start");
labelInfo.setText("Stop");
if(e.getSource()==keybord[1])//Front And Back
if (!back)
setBack(true);
keybord[1].setText("Front");
labelInfo.setText("Back");
else
setBack(false);
keybord[1].setText("Back");
labelInfo.setText("Front");
} else if (e.getSource()==keybord[2])//Fast
if (speed <= 0)
labelInfo.setText("You've arrived the maximum speed : " + getSpeed());
else { setSpeed(speed - 10);
labelInfo.setText("The Train speed is slow down to : " + getSpeed());
else if(e.getSource()==keybord[3])//Slow
{setSpeed(speed + 10);
labelInfo.setText("The Train speed is pulled up to : "+getSpeed());
else if(e.getSource()==keybord[4]) //ADD carrin
setAdd();
labelInfo.setText("Add Carriage");
//setStop(false);
else if(e.getSource()==keybord[5]) //Delete carrin
labelInfo.setText("Delete Carrin");
else if(e.getSource()==keybord[6]) //Rest
setRest();
labelInfo.setText("Rest");
else if (e.getSource()==keybord[7]) //Check
setCheck(true);
keybord[7].setEnabled(false);
keybord[0].setEnabled(true);
keybord[1].setEnabled(true);
keybord[2].setEnabled(true);
keybord[3].setEnabled(true);
keybord[4].setEnabled(true);
keybord[5].setEnabled(true);
keybord[6].setEnabled(true);
keybord[8].setEnabled(true);
labelInfo.setText("The Train is Checked");
else if(e.getSource()==keybord[8]) //desiners
String x = "";
labelInfo.setText("Desiners About");
JOptionPane.showMessageDialog(null,"The Progect is Under The Auspices of:"
+ "\n??" + "\n" + "\n ??" +
"\n ??" + "\n??" + "\n ??" + "\n" + "\n" + "\n?? " + "\n C 2007"); }
This main ..
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.lang.Thread;
public class TestTrain{
public static void main(String[]args){
Train train = new Train ();
MoveTrain mt = new MoveTrain(train);
train.setTitle("Train");
train.setSize(421,550);
train.setVisible(true);
train.addWindowListener (
new WindowAdapter (){
public void windowClosing(WindowEvent e ){
System.exit(0);
mt.start();
}This Threads
import java.lang.Thread;
public class MoveTrain extends Thread {
Train train ;
public MoveTrain (Train train){
this.train= train;
public void run(){
while(!train.getCheck());
while (train.getCheck()){
try {sleep (train.getSpeed()); }
catch (InterruptedException e ){System.out.println("unknown error");}
if (!train.getStop())
if(!train.getBack())
{train.moveTrainFront();
else train.moveTrainBack();
}This Link image icon ..
http://www.geocities.com/alhairan_2003/as/777/UpRight.jpg
http://www.geocities.com/alhairan_2003/as/777/Vert.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainUp.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainRight.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainLeft.jpg
http://www.geocities.com/alhairan_2003/as/777/TrainDown.jpg
http://www.geocities.com/alhairan_2003/as/777/Train.jpg
http://www.geocities.com/alhairan_2003/as/777/RightUp.jpg
http://www.geocities.com/alhairan_2003/as/777/RightDown.jpg
http://www.geocities.com/alhairan_2003/as/777/NoTrack.jpg
http://www.geocities.com/alhairan_2003/as/777/Horiz.jpg
http://www.geocities.com/alhairan_2003/as/777/DownRight.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Up.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage3Down.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Up.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage2Down.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Right.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Left.jpg
http://www.geocities.com/alhairan_2003/as/777/Carriage1Down.jpg
thanks :)String[] car1Names = {
"Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
};The first image name should be "Carriage1Up" but it is missing in your directory.
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.ImageIO;
import javax.swing.*;
public class MC6 implements Runnable, ActionListener {
JLabel[] grid;
BufferedImage[] trackImages;
BufferedImage[] trainImages;
BufferedImage[][] carImages;
int[] imageKeys;
int[] trackKeys;
int[] forwardKeys;
int[] reverseKeys;
int keyIndex = 0;
int carCount = 0; // [0 - 3]
boolean goingAhead = true;
boolean changeDirections = false;
Thread thread = null;
boolean moving = false;
final int DELAY = 1000;
public MC6() {
loadImages();
public void actionPerformed(ActionEvent e) {
String ac = e.getActionCommand();
if(ac.equals("START"))
changeDirections = false;
start();
if(ac.equals("STOP"))
stop();
if(ac.equals("FORWARD") || ac.equals("REVERSE"))
changeDirections = true;
if(ac.equals("ADD CARRIAGE"))
carCount += (carCount+1 <= 3) ? 1 : 0;
if(ac.equals("REMOVE CARRIAGE")) {
int carIndex = getCarIndex(carCount);
int trackIndex = trackKeys[carIndex];
int imageIndex = imageKeys[carIndex];
grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
carCount -= (carCount-1 >=0 ) ? 1 : 0;
public void run() {
while(moving) {
// Clear track in preparation for next advance.
if(changeDirections) {
clearTrack();
// Adjust keyIndex by one increment in the direction of travel
// to allow it to return it to its current position after the
// next advance in position (further below).
advance();
goingAhead = !goingAhead;
changeDirections = false;
} else {
// Replace last car with track image before train advances.
int carIndex = getCarIndex(carCount);
int trackIndex = trackKeys[carIndex];
int imageIndex = imageKeys[carIndex];
grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
// Move to next position on the track.
advance();
// Set locomotive.
setLocomotive();
// Set the cars following the locomotive.
setCars();
try {
Thread.sleep(DELAY);
} catch(InterruptedException e) {
System.out.println("interrupted");
stop();
private int getCarIndex(int carNumber) {
int n = carNumber;
int index;
if(goingAhead) {
index = keyIndex-n;
if(index < 0)
index += trackKeys.length;
} else {
index = (keyIndex+n) % trackKeys.length;
return index;
private void advance() {
keyIndex = goingAhead ?
(keyIndex+1 > trackKeys.length-1) ? 0 : keyIndex+1
(keyIndex-1 < 0) ? trackKeys.length-1 : keyIndex-1;
private void clearTrack() {
// Remove all cars from track before direction change.
for(int j = 0; j < carCount; j++) {
int carIndex = getCarIndex(j+1);
int trackIndex = trackKeys[carIndex];
int imageIndex = imageKeys[carIndex];
grid[trackIndex].setIcon(new ImageIcon(trackImages[imageIndex]));
private void setLocomotive() {
int trackIndex = trackKeys[keyIndex];
int imageIndex = goingAhead ? forwardKeys[keyIndex]
: reverseKeys[keyIndex];
grid[trackIndex].setIcon(new ImageIcon(trainImages[imageIndex]));
private void setCars() {
for(int j = 0; j < carCount; j++) {
int carIndex = getCarIndex(j+1);
int trackIndex = trackKeys[carIndex];
int imageIndex = goingAhead ? forwardKeys[carIndex]
: reverseKeys[carIndex];
grid[trackIndex].setIcon(new ImageIcon(carImages[j][imageIndex]));
private void start() {
if(!moving) {
moving = true;
thread = new Thread(this);
thread.setPriority(Thread.NORM_PRIORITY);
thread.start();
public void stop() {
moving = false;
if(thread != null)
thread.interrupt();
thread = null;
private void loadImages() {
String[] trackNames = {
"UpRight", "RightDown", "Vert", "DownRight", "Horiz", "RightUp", "NoTrack"
String[] trainNames = { "TrainUp", "TrainLeft", "TrainDown", "TrainRight" };
String[] car1Names = {
"Carriage1Down", "Carriage1Left", "Carriage1Down", "Carriage1Right"
String[] car2Names = {
"Carriage2Up", "Carriage2Left", "Carriage2Down", "Carriage2Right"
String[] car3Names = {
"Carriage3Up", "Carriage3Left", "Carriage3Down", "Carriage3Right"
trackImages = getImages(trackNames);
trainImages = getImages(trainNames);
BufferedImage[] car1Images = getImages(car1Names);
BufferedImage[] car2Images = getImages(car2Names);
BufferedImage[] car3Images = getImages(car3Names);
carImages = new BufferedImage[][]{ car1Images, car2Images, car3Images };
private BufferedImage[] getImages(String[] ids) {
BufferedImage[] images = new BufferedImage[ids.length];
for(int j = 0; j < ids.length; j++) {
String path = "images/" + ids[j] + ".jpg";
try {
images[j] = ImageIO.read(new File(path));
} catch(IOException e) {
System.out.println("Read error for " + path +
": " + e.getMessage());
images[j] = null;
return images;
private JPanel getCenterComponent() {
imageKeys = new int[] {
0, 1, 3, 4, 1, 2, 5, 4, 0, 5, 3, 2, 2, 2
trackKeys = new int[] {
0, 1, 6, 7, 8, 13, 18, 17, 16, 21, 20, 15, 10, 5
forwardKeys = new int[] {
0, 3, 2, 3, 3, 2, 2, 1, 1, 2, 1, 0, 0, 0
reverseKeys = new int[] {
1, 0, 1, 1, 0, 0, 3, 3, 0, 3, 2, 2, 2, 2
grid = new JLabel[25];
JPanel panel = new JPanel(new GridLayout(5,0));
for(int j = 0; j < grid.length; j++) {
ImageIcon icon;
int index = getIndexForValue(j);
if(index != -1) {
icon = new ImageIcon(trackImages[imageKeys[index]]);
} else {
icon = new ImageIcon(trackImages[6]);
grid[j] = new JLabel(icon);
panel.add(grid[j]);
return panel;
private int getIndexForValue(int value) {
for(int j = 0; j < trackKeys.length; j++) {
if(value == trackKeys[j])
return j;
return -1;
private JPanel getControls() {
String[] ids = {
"Start", "Stop", "Forward", "Reverse", "Add Carriage", "Remove Carriage"
JPanel panel = new JPanel(new GridLayout(0,2));
for(int j = 0; j < ids.length; j++) {
JButton button = new JButton(ids[j]);
button.setActionCommand(ids[j].toUpperCase());
button.addActionListener(this);
panel.add(button);
return panel;
public static void main(String[] args) {
MC6 test = new MC6();
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(test.getCenterComponent());
f.getContentPane().add(test.getControls(), "Last");
f.pack();
f.setLocation(200,100);
f.setVisible(true);
} -
Holiday Calender upload for new year
Hi All,
There is a requriement to upload the Holiday Calender for 2009. They have provided me the calender i.e for example:
25 Dec Christmas - applicable for areas - Banglore, Mumbai, delhi only.
Please let me know how to upload the new calender in system, because the calenders available for abovre areas is valid upt 2020. So how to upload the new calender.
Also what all config apart from Public Holiday calender we need to do in system.
Appreciate if you guys can help on this.
Thx & Regds,
nithiHow many holiday calendars you have?
How many holidays you have?
Untill unless you don't many don't use upload programs ok.
Please follow the above Msgs too.
If you have different calenders for all the differnt places go and create new Holiday calender applicable for the current year or whatever you need (For example if you don't have holidays which dates from calender year to calender year)
Once you create holiday calender make it is assigned to work schedule and all.
Then you need to Genrate the work shedule for the next year then only Work schedule will be create as per new holiday calender
Best Regards -
What are the minimum SAP processes for public sector ?.
Dear Expert
I would understand that SAP Public Sector - Business Process has the following key:
Shared Services
Human Capital Management
Government Purchases
Formulation of Public Sector Accounting and Budget
Social Services
Social Security
Government Programs
Tax and Revenue Management
Public Safety
Organizational Management
Organizational Support
For an implementation in SAP Public Sector, I found several solutions are:
- Solutions - SAP Business Suite
- Software SAP Customer Relationship Management
- Software ERP SAP
- SAP Product Lifecycle Management
- SAP Supply Chain Management
- SAP Supplier Relationship Management
If we select SAP ERP Software. From the above processes. ¿Is it correct to have at least the formulation of Public Sector Accounting and implemented budget? or ¿Is it OK to implement all processes for the public sector? I'm very confusing ...
Please, could you explain SAP Procurement public sector solutions? or do you have a link on this advice?
All recommendations are welcome.
Thank you very much for your support and recommendations
Dear SAP
SAP Sector Público – Tiene los siguientes Procesos de Negocios :
Servicios Compartidos
Gestión del Capital Humano
Compras de Gobierno
Formulación de Contabilidad del Sector Público y Presupuesto
Servicios Sociales
Seguridad Social
Programas de Gobierno
Impuestos e Ingresos de Gestión
Seguridad Pública
Gestión Organizacional
Apoyo Organizacional
Para una implementación. SAP Sector Público tienen varias soluciones y son:
- Soluciones - SAP Business Suite
- Software SAP Customer Relationship Management
- Software ERP SAP
- SAP Product Lifecycle Management
- SAP Supply Chain Management
- SAP Supplier Relationship Management
Si seleccionamos SAP ERP Software. De los procesos mencionados anteriormente. ¿Es correcto, tener por lo menos el proceso de formulación de Contabilidad del Sector Público y Presupuesto implementado? o ¿Debería ponerse en práctica o implantarse todos los procesos del sector público?
Por favor, ¿podría explicar Adquisiciones SAP para soluciones del sector público?
Todas sus recomendaciones serán bienvenidas.
Muchas gracias por su apoyo y recomendacionesDear,
I found this information and it is good:
Procurement for Public Sector - Public Sector - SCN Wiki
PPS -Procurement for Public Sector- enhancements - Supplier Relationship Management - SCN Wikiii
La solución SAP Procurement for Public Sector (SAP PPS)
Características generales son:
La fase de preparación
La fase de licitación
La fase de ejecución del contrato
El valor de la solución SAP Procurement for Public Sector (SAP PPS) - SRM 7.0-based PPS Architecture
1. Solución completa para todo el ciclo de vida de una contratación
publica, como la gestión de pliegos.
2. Gestión de contratos eficaz para garantizar mas transparencia,control y auditabilidad.
3. Integración con Contabilidad presupuestaria (Funds Management)
4. Posibilidad de gestionar contrataciones más complejas electrónicamente.
5. Simplificar la arquitectura de sistemas y reducir así el coste de integración. SAP PPS - Firma digital.
6. Menos modificaciones funcionales en proyectos de implantación.
Thanks -
Java Card 2.2.2 draft is out for public review
A draft for the upcoming release of the Java Card Specification is available for public review.
The Java Card 2.2.2 Specification will provide numerous enhancements to the award-winning Java Card platform. In particular it will include specific support for contactless communication and ID cards :
* enhancements to ease the management and increase interoperability of contactless cards.
* additional cryptography and security features
* utility APIs for memory-efficient applet development
Java Card technology v2.2.2 is ready for the next generations of smart card standards, and is fully backward-compatible with previous versions.
New features in Java Card 2.2.2 :
* Utility APIs for TLV, BCD, short, int
* ISO7816-based Extended length APDU support
* Support for up to 20 logical channels
* External memory access API
* Multiple Interfaces management
* Additional cryptography algorithms : HMAC-MD5, HMAC-SHA1, SHA-256 and Korean Seed
* Signature with message recovery
* Partial message digest
* Standardized Biometrics API
Please direct your comments on this draft at [email protected] Feedback received before December 15th will be considered for the final version of the specification. For more information on the Java Card Platform Specification v2.2.2, Public Review Draft, refer to the release notes on http://java.sun.com/products/javacard/RELEASENOTES_jcspecsp.htmlThe Installer and the Applet Deletion Manager are implemented in the JCRE and GlobalPlatform. On-card the Card Manager manages the content management, communication and the related security. JCRE specifies how it has to handle installation and deletion, but leaves room for different implementations. To the outside world, on a GP card, the Installer/ADM is the Card Manager with a specific AID.
Installer and ADM are optional. For instance a Java Card Static product does not need an Installer/ADM.
JCOP cards have the Installer/ADM fully implemented. It uses the GP functionality. The CM has to be selected to install or delete a package/applet. -
Urgent: Doubt in coding a logic
Hi Experts,
I have a doubt in coding a logic . The bussiness requirement is that i have to capture a string of alphabets and check for particular alphabet in particular position and then process the rest of the logic.
the logic is given below , can anyone suggest me coding for this logic .Its very urgent . points will be rewarded.
Logic:
If 1st letter is D then
If 3rd letter of DPVERSION is:
A --> Asia (like DPA0202)
C --> EMEA (like DPC0111)
L --> Latin America LA (like DPL0502)
N --> North America NA (like DPN0408)
W --> EMEA (like DPW0207)
D then
if 4th letter is:
A --> Asia (no example yet)
C --> EMEA (no example yet)
L --> Latin America LA (no example yet)
N --> North America NA (like DPDN01TH)
W --> EMEA (like DPDW09TH)
End If
End If
Else if 1st letter is X then:
If 2nd letter of DPVERSION is:
A --> Asia (no example yet)
C --> EMEA (XEHC_RTF)
L --> Latin America LA (no example yet)
N --> North America NA (XNFAB_RTF)
W --> EMEA (no example yet)
End If
End If
Thanks in advance
KumaranHi, I think you can adopt offset logic.
assign character value to a variable like string+2(3) = char
then use case statement
case char
when 'A'
write ASIA
when--
End case.
Like this u can approach .
Hope this helps
Regards
Pavan -
Change public share access to read only for public and full access to selected users
Hi, new to the community just purchased a recertified WDMyCloud 2TB after my 2 years old MyBookLive 2TB HD died due to accidental power cable unplugging. I've got everything setup including MiniDLNA by following instructions on this forum and everything is working exactly as I want it to except public share. I want public share to be set to read only access for public and full access to certain users (just myself at the moment) and having a "upload" folder within this share with full public access to everything in this folder would be a bonus. I tried login in to ftp with root user and removing write permission for public but that blocks me out as well. I'm sure it's possible by doing some majic on SSH but I wouldn't have a clue so hoping someone here would be able to help me out.
Mr_Khan wrote:
What i want is public to have read only access to file server. Public as in users who do not have a user account on mycloud. E.g someone who connects to to my home network for the first time and is able to browse and download content from public share. I'm aware of being able to set indivual access to shares for users like full access, read only and no access but public users won't have a user account.Through the My Cloud UI interface what you seek to do is not possible. The public share like all other share folders are an all or nothing affair when using the adminstration UI. When using the administration UI you do not have granular control on shared folders to limit non users to read only access or set permission levels for subfolders. The workaround to do what you seek and have the public folder set for read only is to change the folder settings via SSH. It may take some work to set the folder security so that users can read/write to the public folder while the guests only have read access. However, if you reboot the WD My Cloud or update the WD My Cloud firmware those settings may be reset back to the default settings where the entire public folder is read/write for all. There are way to prevent this but again it will take a bit of coding to do so via SSH. See this link (even though its for the WD My Book Live) for a starting point on how to use SSH to change the permission levels on the public folder. Another option if one doesn't go the SSH route is to turn off public sharing for the public folder then create a "guest" user account and give that "guest" account read only access to the public folder while all other user accounts have full read/write access. -
Program to collect user u2013 transaction execution data for past period
Hi Experts
We are developing a program to collect user u2013 transaction execution data for past period ( 3 months-1 year ). We are getting required User and Tcode output but unable to find exact count per tcode ( executed by respective user).
We have following count components available in SAPWL_WORKLOAD_GET_STATISTIC / SWNC_COLLECTOR_GET_AGGREGATES
COUNT , DCOUNT ( Dialog count for transaction ) , UCOUNT , BCOUNT , ECOUNT, SCOUNT ,LUW_COUNT .
Out of which LUW_COUNT -Logical Units of Work comes close to no ot time transaction was executed but itu2019s even not the exact count as one transaction code can have more than one LUW .
Does anyone have idea about how to get the right count .
Thanks
VaniIf audit log is enabled in SM19 for transaction criteria all, you can get the transaction history executed by the users. But may need more space on audit file system if this is enabled for all users. May be you can archive once in 3 months into ZIP files and can unzip whenever you need.
Maybe you are looking for
-
Can I use any SATA hard drive with an iMac?
Hi, I'm a PC user from birth, and want to purchase an iMac, but the 500gb-1tb isn't enough storage for what I currently have on my PC (I have 4x 250gb hard drives, plus I'd need more room for the Mac OS). My question is, can I use any HD in the iMac,
-
'File in Use' message is received when one user is in the report and another user tried to open the excel template. how to make excel template shared for multiple users so the users don't see the 'File in Use' message?
-
HT5957 how can i use air drop on iphone 4?
how can i use air drop on iphone 4?
-
Is there any way to STOP TB from sending updates every couple of weeks (and BTW this has slowed down/crashed TB increasingly in the past couple of months) UNTIL they fix this really irritating bug of randomly changing fonts and sizes when writing a m
-
IPhone 5 silent button damaged? iPhone vibrates constant when I put it to silence.
As the title says. I have had this problem for a couple of weeks. When I turn the silent button on, my iPhone vibrates constantly. It even signals its turning off and on silence mode repeatedly. I dont know how or why it happened, it might have happe