A small logical problem in LSMW for MM01...
I need to create a LSMW for MM01 transaction, wherein I have to check the initial four
digits of the material as 'ORCL'. If initial four digits of the
incoming material are 'ORCL', then create this material as it is.
Else replace these four digits with 'SAPM' (for sap material) while
creating this material.
This will differentiate between materials coming from Oracle and non
oracle system.
I know that I need to create a new rule in the step 5 of LSMW: "Maintain Field Mapping and Conversion Rules", under the ABAP heading.
But, how should the rule proceed??
Pls help me out!!!
awesome! thnks a lot naimesh.... you are tooo goood!
Can you please help me again...??
Now, I need to replace the records which are not 'ORCLXXX' with SAPXXX format. For example, say a record has the material number as ORCL007. This will pass on and created as ORCL007. If a record has the material number as MMMM007, this should be converted to SAPM007.
Should I use fieldsymbols for this, or just replace the strings??
This will be the last, I promise....
Similar Messages
-
Explain how to use standard LSMW for MM01
Can anyone explain how to use standard LSMW for MM01 Tcode.pls explain briefly.
Hi
Create a project using 0020 as method.
Max -
Scheduling problem in LSMW for Sales Order
I am doing LSMW for Sales Order using the BAPI method.
I am able to upload the item details along with their quantities also but the problem that I am now facing is the scheduling problem.I am unable to schedule the item quantities, only the last quantity passed is taken as the final quantity and the consolidated quantity is also getting ignored.
I am using E1BPSCHDL structure, in this structure I am mapping Itm_number , req_date and req_qty(scheduled qty).....
in the structure E1BPSCHDLX, the same fields are mapped as 'X'.
in the structure E1BPSDITM, I am mapping the item info along with the consolidated qty(TARGET_QTY), but this is getting ignored and the last scheduled qty is taken as the final consolidated qty and the rest scheduled qty data is getting rejected.
Please do help... I dont know why this problem is coming... tried n number of alternatives but of no hope... do try to help me
with regards,
Daya.Check the format of your date and check the format expected.
sometimes you can have diff like YYYYMMDD, MM.DD.YYYY,...
Look at the converted data.
Hope this helps,
Erwan -
Hello experts,
We are extending the material to another plant and storage location etc.
so i want to do in lsmw. but it is not working fine .please help me.
First in the lsmw i selected recording and done the recording for mm01.
in the first screen i entered
material abc,industry sector mech engi, material type wfinis and copy from material abc,then i pressed the
enter and i selected the views Sales: Sales Org. Data 1,Sales: Sales Org. Data 2,
Purchasing and Accounting 1.
then i pressed enter and got the screen to enter plant, valuation type , sales org, cist channel. so i enterd
plant ,sale org and dist channel in the organization levels and copy from fields.
then i pressed enter and in the next screen i entered some required data and pressed enter and in another
screen o entered and etc and finally saved . The recording is
successful .then i completed all the lsmw steps when i run the session it is showing the error
at the screen where we enter the orginational levels like plant, sales org etc.
our flat file is a text file and it is in the same order as in
the lsmw.
I approched one senior consultant and he said we cant do lsmw bcuse
the org level screen will be moving every time.
so please kindly help me what to do to analyse this error.
=>Can we debug the lsmw , if so how.
=>In one moment previously 2 days back when i am doing lsmw i got a
error with return code 13, please tell what actually means and where to see this one.
Thank you so much for the replies.Shiva,
First of all its not advisable to use the recording method in lsmw for uploading the material master data. It involves lot of views so if something goes wrong very much difficult to identify the error point, at the same time I will advise you to go with bapi or idoc method to do the same.
When comes to you question regarding the debugging of lsmw you can debug it.
From the usermenu tab take the generate conversion program step into u r list of steps
then execute it and go into the program and put a break point then execute the convert data step directly you will get into the debugging mode you do debug the code. -
Dear all,
I had try upload STPO by LSMW with PO standard object
( Object: 0085, Method: 0001, Program Name: RM06EE10, Program Type: Direct Input),
but 2 error message is come out at the last stage - Start Direct Input Program :
message 24 - "Order type UB is not allowed"
message 6 - "Item category U not allowed".
Do any one has any idea on it ? I can't found out any issue from OSS.
Thanks !
Regards,
EricHI Eric
I hope this is relating to Tcode Me21n in R3 and you want to upload STPOs in R3.
Actually me21n does not support LSMw for some reason.
kindly go through this post .
Re: LSMW For T-code ME21N
we tried in my last project but could not suceed and ultimately we did though program using BAPI.
Regards,
Nimish sheth
pls rewards points for helpful answers. -
Problem in LSMW for Routing. Urgent
Hello all,
I am doing LSMW for Routing. The object attributes are
Object 0170 Routing
Method 0001 Batch inpu
Program name RCPTRA01
Program type B Batch input
The material number MATNR and the plant WERKS is not getting filled up in the initial screen (CA01 tcode). The fields are RC27M-MATNR and RC27M-WERKS. But all other fields are getting filled up.
I have given the structure relation to BI001, BIMPL, BIPKO, BIPFL, BIPPO.
When I checked the program RCPTRA01, I could able to find out the below code which actually passes space to the above fields.
Material
BDC_TAB-FNAM = 'RC27M-MATNR'.
BDC_TAB-FVAL = SPACE.
APPEND BDC_TAB.
CLEAR BDC_TAB.
Werk
BDC_TAB-FNAM = 'RC27M-WERKS'.
BDC_TAB-FVAL = SPACE.
APPEND BDC_TAB.
CLEAR BDC_TAB.
How to go about this.
Awaiting your reply,
Thanks in advance,
BalajiHi,
Im trying to load long text for Operations using the program RCPTRA01 however the screen sequence dosn't even enter the long text area, is there is anything specific that i would have to do to make sure the long text gets in -
Problem in lsmw for purchase order (direct input)
hi friends,
i am trying to upload po using lsmw by direct input method.
only problem is it is not taking delivery date properly.
at the end error message is 'plz enter valid delivery date'.
can any one tell me why it is happning.
thanks
sonuCheck the format of your date and check the format expected.
sometimes you can have diff like YYYYMMDD, MM.DD.YYYY,...
Look at the converted data.
Hope this helps,
Erwan -
Problem with LSMW for tcode BP
HI
I am trying to update some data from flat file to the CRM using lsmw.every step is complted and the batch in put is completed sucess fully but after seeing the BP i cannot find the dataHi
go to settings and idoc In bound processing, have you completed this also?
Reward if helpful
Venkat -
Hi all,
Good day,
While creating material using MM01 transaction,
I have selected the views Basic data 1/2, Sales Org data 1/2, General/Plant data, Foreign Trade, Sales Text.
How to map these fields, they are KZSEL_01, KZSEL_02, KZSEL_04, KZSEL_05, KZSEL_06, KZSEL_07, KZSEL_08, respectively.
All are showing as checkbox.
Regards,
kcClick on Rule and use Constant as Value is 'X'...
X should be captial letter
Thanks
Seshu -
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);
} -
LSMW for uploading data in MM01
Hi,
I have never used LSMW.I have to upload data for material master for MM01 Fields are MATNR MTART LGORT MEINS etc from MARA MARC and MAKT table.I have the records in text file for uploading.
Could you please tell me which step will be good?
Direct i/p I do not want to use.
Batch i/p recording-Please explain me step while recording in MM01.
IDOC which msg type to be used and also port no details.
BAPI Which BAPI should be used?
Rgds,
Raguse LSMW BAPI method
Business Object BUS1001006 Standard material
Method SAVEDATA Create and change materia
Message Type MATMAS_BAPI Create and change materia
Basic Type MATMAS_BAPI02 Create and Change Materia -
HI I HAVE PROBLEM WHEN IAM WRITING BDC FOR MM01
HI,
WHEN IAM WRITING BDC PROGRAM FOR MM01 USING SHDB RECORDING. WHEN I RECORDED SOME VIEWS I MEAN I SCROLLED DOWN AND SELECT THOSE VIEWS.
BUT IT WILL NOT TAKE THOSE VIEWS WHEN I UPLOAD THE DATA THOSE VIEWS ARE NOT SELECTED. PLZ TELL ME HOW COULD I DO THIS.
URGENT PLZ.
THANKS,
MURALI.Hi Murali,
Rather of scrolling down while recording press page down button. as scroll will not get recorded during recording.
The page down function code is P+.
Press page down button on key board while recording.
I had checked it through recording it had worked.
I got BDC_OKCODE = P+ in recording.
This will solve your problem.
Regards
Narin Nandivada -
I have a airport wifi the small one with one port for modem. My Problem is airport wifi works fine however when I power off my IMac then power it up later on It does not show a connection I then have to manual do it my self it's a pain and never happened before I have tried resetting the airport unit but still no luck please help.
Thank you
Roy from maldenHi Roy, this has worked for a few...
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
10.7 & 10.8…
System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
10.5.x/10.6.x/10.7.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed. -
Using Direct input method(LSMW)Can I upload only 3 fields for MM01
Using Direct input method(LSMW)Can I upload only Matnr,mbrsh,mtart fields for MM01.Otherwise I have to give all the mandatory fields.?
Hello TJK,
LSMW will work in the same way as you create normal material master with the transactions, here you are giving the value through flat file and creating material master with program.
You can create only one view with LSMW but you need to give all mandatory field on that particular view, so if you have only these three field as mandatory then yes it is possible, if you have any more field mandatory addition to these fields then it will not work out, during the last step it will throw error saying "maintain the value for field XXX"
Hope this helps.
Regards
Arif Mansuri -
LSMW for material master upload
Hi gurus
i have one problem while uploading material master with LSMW.
I have murged 2 company codes in one so while creating material master system is asking me tax classification data in sales view for 2 country sales org and distrubition channel. I am using sap std LSMW for material master creation.
system is giving me error as " tax classification data not maintained completely".
need your valuable help to solve this problemTax classification data is mandatory field in Sales view of MM01.
Check out you mapping for the tax classification fields. usually classification value is 0 OR 1.
You can first test the values in MM01 Sales View with the legacy data you have and this way you will able to find the mandatory fields also and can see the valid values for the fields.
Remember you may have more than one Tax Classification values depending on the country code.
For that you can add those many columns in legacy data file and map them.
Hope it helps.
Maybe you are looking for
-
Hi All, Can anyone tell me about IDocs and some standard sales reports to talk in Interview? (No need of full stories, just to talk in interviews) Regards Rama Rao
-
DatabaseStructure tag in CRConfig.xml
<p>Hi, </p><p> can anybody tell me what values the databaseStructure tag can have in CRConfig.xml and explain the values?</p><p> <GenericJDBCDriver><br /> <Option>No</Option><br /> <strong><DatabaseStructure>catalogs,schemas,tables</DatabaseStructu
-
I need to run reports from WebLogic. I downloaded Oracle9i Reports - J2EE Thin Client (J2EE Thin Client for BEA). I am stuck on step 10 of Readme: 10. Shut down the existing Weblogic server and restart it using startExamplesServer.cmd on the command
-
Opening Business Partner Master Data is slow
Hello everyone. I seem to have a problem with one of the companies in my SAP installation. I'm using SAP Business One 8.81 PL10 and I have quite a few companies on the server, including a demo db. The server is hosted on a VM that is in compliance wi
-
DVD ROM NOT WORKING AFTER INSTALLING WINDOWS 7
i am using hp dv1050ei with windows 7 ultimate 32bit. before i was having vista. since i have installed 7 on my notebook most of the times my dvd rom doesnt read the dvd. i can hear the sound from drive and light blinks but nothing happnes and it doe