Problem in INCOTERMS.......
Please provide me with the reasons why INCOTERMS is always defined in Sold
to Party & not Ship to party.
See, If a SO is made to particular Customer of (New Delhi) having numbers
of ship to address which are at far locations like faridabad, Agra Etc,
then
in sale order sold to party has to be one but ship to party should be the
deciding factor for Incoterms Pick Up.
But i guess this doesn't happens???
Incoterms Picked up from SOLD TO PARTY.
Please tell why so???
HI sailesh,
That is SAP standard.. If you want togive based on Ship to.. you can do with user exit MV45AFZZ..
Reward if it helps...
Ramki
Similar Messages
-
Problem in Incoterms determination in CRM 7.0
Hi,
In CRM 7.0, after entering sold to party and sales area data, the incoterms are not getting determined, eventhough they are maintaiend in sold to party sales area data. But, once I enter an Item, then they are getting determined.
Could you please let me know, why it is happening in this way.
in CRM 6.0, once the header data is entered, the Incoterms are getting determined perefectly.
Thanks,
SandeepHello Sandeep,
There is no functionality change, it is the standard behavior since old release. Please check the FM CRM_SHIPPING_PARTNER_CHANGE_EC, there is the following coding:
CALL FUNCTION 'CRM_SHIPPING_READ_OW'
EXPORTING
iv_ref_guid = lv_ref_guid
iv_ref_kind = lv_ref_kind
IMPORTING
es_shipping_wrk = lu_shipping_wrk
EXCEPTIONS
entry_does_not_exist = 1
OTHERS = 2.
IF sy-subrc NE 0.
IF lv_ref_kind EQ gc_object_kind-orderadm_h.
EXIT.
ENDIF.
Here system checks if there is an existing shipping set, if not (which indicates that it is a new creation) and it is a header reference, system exits the FM.
Then after the product is entered, again via this call back FM, system calls FM CRM_SET_HEAD_CREATE_FROM_ITEM to create the header shipping set data.
Hope this could be helpful.
Best regards,
Maggie -
Hi,Gurus
I have a problem about incoterms in PO.
In my company, there are three kinds of planned delivery costs,freight,insurance charge and customs clearance charge.
They will be calculated as conditions as po creation.
For example,Freight is defined as the following ratio:
|IncoTerms|Freight Ratio
| EXW | 0.958%
| FOB | 1.829%
I firstly entered incoterms FOB while PO creation, the ratio 1.829% was correctly carried out.
and then not to save the PO,but change the incoterms from FOB into EXW right now,
I found the condition item Freight still holds the older value,1.829%, in item detail.
In one words,Changing incoterms will not lead to conditions re-calculation.
Anyone could give me suggestion?Thanks.
As well known,
Incoterms is a head-level field in purchase order.
My purchase order should calculate the planned delivery costs,freights,insurance charges,which are based incoterms.
The calculation logic is Freight = Item's net order value * rate.
ex.
1.PO item net order value = 1000 USD
2.Case1: Incoterms = FOB,Freight rate = 1.829%
3.Case2: Incoterms = EXW,Freight rate = 0.928%
Create PO:
PO incoterm is FOB, so the planned freight = 1000 * 1.829% = 18.29 USD
Change PO incoterms
Changed PO incoterms form FOB into EXW, so the planned freight = 1000 * 0.928% = 9.28 USD
Now, my problem is that the above item's freight can not be automatically calculated again after incoterms was changed in PO head.
By the way,
Incoterms(INCO1) field is in Communication Header for Pricing(KOMK),not in Pricing Communication Item(KOMP).
MOVE I_KOMK TO E_KOMK. was added into User-exit LMEKO001.
Edited by: Mic chen on Aug 19, 2009 3:41 AM -
Problem with BAPI_SALESORDER_CHANGE ("Enter part 2 of the incoterms")
Hi,
I have a problem when I try to create Sales Order and change it with BAPI_SALESORDER_CHANGE.
Logic of my program is
1. Use BAPI_SALESDOCUMENT_COPY to copy data from Billing to Create SO
2. Use BAPI_SALESORDER_CHANGE to unblock Billing Block in Sales Order Created from step1
Problem occurs in step 2. Returning Bapi Error Message that "Enter part 2 of the Incoterms". I already check that after step 1 Sales Order already have incoterm2. And in step 2, I didn't send input parameter 'X' to update fiend incoterm2 (Table order_header_inx1).
I debug BAPI_SALESORDER_CHANGE and found that my error came from function 'SD_SALES_ITEM_MAINTAIN'. I think that this function is used for update item. I couldn't see why it gave me that error about INCOTERMS2 which is in header.
Have anyone ever been through the same problem before?
Thanks,
PavinI just found the cause of this problem and want to share in this topic.
Here is the process of BAPI_SALESORDER_CHANGE that cause my problem.
BAPI_SALESORDER_CHANGE -> SD_SALESDOCUMENT_CHANGE -> SD_SALES_ITEM_MAINTAIN -> perform vbkd-inco1_pruefen(sapfv45k) -> RV_INCOTERMS_CHECK
My problem occurs in Function RV_INCOTERMS_CHECK because value in field VBKD-INCO2 is missing. This case only happen when I try to create CFR SO with reference from EXW Billing.
Hope it's useful.
Regards,
Pavin
Edited by: Pavin P. on Apr 30, 2009 5:15 AM -
Incoterms in Create Shipment VT01N
Hello,
While creating Shipment(VT01N) wrt to Outbound Delivery(VL02N),the Incoterms are not getting copied in Create Shipment (VT01N).
Following which users are creating Shipment Costs(VI01) without giving Incoterms. In MIRO,it is creating problems, finding what were the actual incoterms (TOP customer to pay to the transporter or FOR company to pay to the transporter.
Is there any copy control link from Out Del. to Shipment? But we found none in SPRO.Kindly suggest.
Regards
SubratDear Subrat,
There is a field to maintain copying routine in the shipment document which will control the copy of the data from the delivery to the shipment document ,based on this you can copy the delivery data to shipment document.
Go through this path
SPRO->Logistics Execution>Transportation>Shipments>Click on Define Shipment types system will give you what are shipment types maintaining then select your shipment type go into the details of the shipment in the detail screen you can find the field Copy routine under Proposal tab here you check what routine you are maintaining
Maintain the Routine "9" Stamdard then try
If not come try with other routine even the other routines also not full filled then copy the standard one then create new one with ABAPer help in the VOFM transaction.
I hope it will help you
Regards,
Murali. -
Hi all,
iam getting a problem regarding pricing.
When i make a Sales doc. with reference to an invoice,
everything is being copied from invoice to the sales doc.-customer, material and its no. , sales area, payment terms, incoterms, and material qty. also.
But the pricing of the invoice is not getting copied on to the sales doc.
I have maintained all checks available in the sales doc. type and the item category of the sales doc. type i.e
Pricing: X
and then in OVKK , i have maintained the doc. pric. procedure of the sales doc. type with the pricing procedure of the invoice
and again in the copy control measures, i have maintained
Pricing type: D
But i still not able to copy pricing procedure from the invoice to the Sales doc.
I want the soltn. urgently.
Thanks in advance
Souravrun VTAF for your sales doc type/bil type
and check item category
set flag for "update doc flow"
and pricing type B -
Incoterms on Item level is not updated on STO.
Issue: they have created a STO with wrog incoterm, now the issue is that the Incoterms on PO--> Item level is not updated if Incoterms on Header level is changed. I suggested them to change incoterm on item level manually, but user is saying the problem is that SAP doesn't change automatically Incoterms on item level if Incoterms on Header level are changed??
What user is saying..Is this correct? or any thoughts/solution to fix this issue?
Can anyone suggest me on this?
Thanks & Regards
Suresh BabuHI,
Try this link
How Incoterms gets defaulted for STO
Regards
KK -
Incoterms not to be diff from item
I need to be able to fulfill a customer requirement wherein Incoterms in the sales document header is not allowed to be different from the item. Where do I tweak the system to fulfill the requirement?
hi,
maintain the incoterm in the customer master data .
and in the pricing procedure maintain the condition type KF00 AND maintain the condition records for the same incoterms you are using in the customer master data.
hope this will solve your problem
Pls reward points if the answer is helpful
REgards,
Murali -
Advice with Incomplete procedure for Freight Condition re.Certain incoterms
Hi
I need some advice on how to create an Incomplete procedure for a specfic freight accrual.
BUT i only require it to be incomplete for certain Incoterms ........
For example i have not entered freight condition record, and the customers incoterm is CIF, - i wish for this sales order to be flagged as incomplete
However for a different sales order I have not entered a freight condition record, and the customers' incoterm is EXW, - I wish for this order to be clased as OK and Complete, as a Freight accrual is not required against EXW incoterm orders
Has anyone come across this problem before ? - if so how have they rectified this ?
Any help/ advice would be much appreciated
TonyHi,
You can just write a routine with the help of abaper in VOFM.
And assign that routine in requirement field in the pricing procedure for that condition type.
To create a new routine in VOFM please go through the belo wlink.
http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf
Hope this will resolve your issue.
Regards,
Krishna O -
Hello,
from January 1 on, a new version ( 2010 ) of Incoterms will replace the existing version 2000. But the old version could still be used. For existing contracts, INCOTERMS 2000 will continue to apply even if performance of the contract will be made in 2011.
New Incoterms are added, ohterones disapear. That is not the problem. But three ( FOB, CFR and CIF ) changes their meaning. So it could be necessary to add the version in each PO. But there is no field 'version' for INCOTERMS in SAP.
How, are you handle this ?
Thanks for your replies,
RudolfWhat we can see as an issue for new Incoterms 2010 is that it seems that DAP can replace both DDU and DES.
An important aspect will be the location. Based on it we will be able to tell whether the goods are to be delivered to the destination port or to destination plant.
But at the moment there is no logic as such defined for location field (Incoterms2). First of all it is free text (as you said you have developments to check location masterdata). But even if that is masterdata based, additional logic to calculate freight costs etc. needs to be built based on that change.
That is why I personally find it really strange that they plan to merge different incoterms into one..
Regards,
Dominik Modrzejewski
Edited by: Dominik Modrzejewski on Nov 19, 2010 11:14 AM -
I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
Thank you in advance,
LeftyThis was one solution from the socket programming forum, have you tried this??
public Thread MyThread extends Thread{
boolean active = true;
public void run(){
ss.setSoTimeout(90);
while (active){
try{
serverSocket = ss.accept();
catch (SocketTimeoutException ste){
// do nothing
// interrupt thread
public void deactivate(){
active = false;
// you gotta sleep for a time longer than the
// accept() timeout to make sure that timeout is finished.
try{
sleep(91);
}catch (InterruptedException ie){
interrupt();
} -
A problem with Threads and MMapi
I am tring to execute a class based on Game canvas.
The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
The MIDI tone "Stammers".
How to over come the problem?
Thanks in advance
Kobi
See Code example below:
import java.io.IOException;
import java.io.InputStream;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
public class MainScreenCanvas extends GameCanvas implements Runnable {
private MainMIDlet parent;
private boolean mTrucking = false;
Image imgBackgound = null;
int imgBackgoundX = 0, imgBackgoundY = 0;
Player player;
public MainScreenCanvas(MainMIDlet parent)
super(true);
this.parent = parent;
try
imgBackgound = Image.createImage("/images/area03_bkg0.png");
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
catch(Exception e)
System.out.println(e.getMessage());
* starts thread
public void start()
mTrucking = true;
Thread t = new Thread(this);
t.start();
* stops thread
public void stop()
mTrucking = false;
public void play()
try
InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
player = Manager.createPlayer(is, "audio/midi");
player.setLoopCount(-1);
player.prefetch();
player.start();
catch(Exception e)
System.out.println(e.getMessage());
public void run()
Graphics g = getGraphics();
play();
while (true)
tick();
input();
render(g);
* responsible for object movements
private void tick()
* response to key input
private void input()
int keyStates = getKeyStates();
if ((keyStates & LEFT_PRESSED) != 0)
imgBackgoundX++;
if (imgBackgoundX > 0)
imgBackgoundX = 0;
if ((keyStates & RIGHT_PRESSED) != 0)
imgBackgoundX--;
if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
* Responsible for the drawing
* @param g
private void render(Graphics g)
g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
this.flushGraphics();
}You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
Regds,
SD
N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM -
Hi all,
I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
Below you can find the code
import java.lang.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class intervals extends MIDlet implements CommandListener
public Display ekran;
private SweepCanvas sweeper;
private Form rundy;
private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
private long czas,x;
private Command exitCommand;
private Command addRound;
private Command delRound;
private Command start;
private TextField repeat;
private Form odliczanie;
private Alert ostrz;
Licznik thread;
String test;
StringItem test1;
int parz,i,j,k;
static int l;
int ilrund;
int ilpowt;
Item sec;
long sec1;
public intervals()
rundy = new Form("Interwały sportowe");
exitCommand = new Command("Wyjście", Command.EXIT, 2);
addRound = new Command("Dodaj","Dodaj rundę", Command.ITEM,1);
delRound = new Command("Usuń","Usuń ostatnią rundę", Command.ITEM,1);
start = new Command("Start", Command.ITEM,1);
odliczanie = new Form("Odliczanie");
TextField dodaj(TextField kolej)
kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
if(rundy.size()==0)
rundy.insert(rundy.size(),kolej);
else
rundy.insert(rundy.size()-1, kolej);
return kolej;
void odliczanie(TextField round)
monitor m=new monitor();
k=Integer.parseInt(round.getString());
ekran.setCurrent(odliczanie);
thread=new Licznik(k,odliczanie);
thread.start();
ekran.setCurrent(rundy);
public void startApp()// throws MIDletStateChangeException
rundy.deleteAll();
repeat = new TextField("Podaj ilość powtórzeń",null,1,TextField.NUMERIC);
rundy.addCommand(addRound);
rundy.addCommand(exitCommand);
rundy.setCommandListener(this);
Canvas obrazek = new MyCanvas();
ekran = Display.getDisplay(this);
ekran.setCurrent(obrazek);
czas=System.currentTimeMillis();
while (System.currentTimeMillis()<czas+1000)
continue;
ekran.setCurrent(rundy);
public void pauseApp()
public void destroyApp(boolean unconditional)
notifyDestroyed();
public void commandAction(Command c, Displayable s)
if (c == exitCommand)
destroyApp(false);
notifyDestroyed();
else if(c==addRound)
if(rundy.size()==0)//Sprawdzenie ilości elementów w celu poprawnego wyświetlania liczby rund w formie
parz=1;
else
parz=rundy.size();
switch(parz)
case 1:
round0=dodaj(round0);break;
case 2:
round1=dodaj(round1);break;
case 3:
round2= dodaj(round2);break;
case 4:
round3=dodaj(round3);break;
case 5:
round4=dodaj(round4);break;
default:
ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
ostrz.setTimeout(3000);
ekran.setCurrent(ostrz);
if(rundy.size()==1)
rundy.append(repeat);
rundy.addCommand(start);
rundy.addCommand(delRound);
else if(c==delRound)
if(rundy.size()!=0)
rundy.delete(rundy.size()-2);
if (rundy.size()==1)
rundy.deleteAll();
if(rundy.size()==0)
rundy.removeCommand(delRound);
rundy.removeCommand(start);
else if(c==start)
ilrund=rundy.size()-1;
if(this.repeat.size()>0)
ilpowt=Integer.parseInt(this.repeat.getString());
ekran = Display.getDisplay(this);
for (i=1; i<=ilpowt;i++)
odliczanie= new Form("Odliczanie");
for (j=0;j<ilrund;j++)
switch(j)
case 0:
odliczanie(round0);
break;
case 1:
odliczanie(round1);
break;
case 2:
odliczanie(round2);
break;
case 3:
odliczanie(round3);
break;
case 4:
odliczanie(round4);
break;
case 5:
odliczanie(round5);
break;
case 6:
odliczanie(round6);
break;
case 7:
odliczanie(round7);
break;
case 8:
odliczanie(round8);
break;
class Licznik extends Thread
int czas1,k;
Form forma;
monitor m;
public Licznik(int k,Form formap)
czas1=k;
forma=formap;
public synchronized void run()
while(czas1>0)
forma.deleteAll();
forma.append("Czas pozostały (s): "+czas1);
try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
czas1--;
if(czas1<=0)
m.put();
}and monitor class
public class monitor
boolean busy=false;
synchronized void get()
if(!busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
notify();
synchronized void put()
if(busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
busy=true;
notify();
}Can anybody help me with this?Groovemaker,
Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
Daniel -
Problem with threads within applet
Hello,
I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
this thread is running in endless loop.
he is doing something and go to sleep on and on.
the problem is,
when I refresh my IE6 browser I see more than 1 thread.
for debug matter, I did the following things:
inside the thread, sysout every time he goes to sleep.
sysout in the singleton constructor.
sysout in the singleton destructor.
the output goes like this:
when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
The destructor never works (no output there).
I don't understand what is going on.
someone can please shed some light?
thanks.
btw. I am working with JRE 1.1
this is very old and big applet and I can't convert it to something new.Ooops. sorry!
I did.
public void start() {
public void stop() {
public void destroy() {
try {
resetAll();
Configuration.closeConnection();
QuoteItem.closeConnection();
} finally {
try {
super.finalize();
} catch (Throwable e) {
e.printStackTrace();
} -
Problem with Threads and a static variable
I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
Code functionality:
A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
The problem as far I understand is:
Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
Thanks,
B.D.
Code:
private static volatile boolean bChanged = false;
private static Thread objMainProcess;
protected static void Init(){
objMainProcess = new Thread() {
public void run() {
while( objMainProcess == Thread.currentThread() ) {
GetState();
objMainProcess.setDaemon( true );
objMainProcess.start();
public static void initStatusTimer(){
if(objTimer == null)
objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
public void actionPerformed( java.awt.event.ActionEvent evt){
SetState();
private static void SetState(){
if( objMainProcess == null ) return;
synchronized( objMainProcess ) {
bChanged = true;
try{
objMainProcess.notify();
}catch( IllegalMonitorStateException e ) {}
private static boolean GetState() {
if( objMainProcess == null ) return false;
synchronized( objMainProcess ) {
if( bChanged) {
SendMessage();
bChanged = false;
return true;
try {
objMainProcess.wait();
}catch( InterruptedException e ) {}
return false;
}Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
Again as you said, There is a reason I can't call sendMessage() inside setState().
The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
Thanks,
B.D.
Maybe you are looking for
-
Help me please I'm working on this HP Pavilion g7, windows 8.1 laptop The laptop is powered on but won't boot up; I have got this error messages Boot device not found please Install an operating system on your hard disk. Hard Disk (3F0) For more info
-
hi, all i call the web service in abap report. there is a runtime error that is "Method 'nr1:put-messagesRequest' not implemented: method name or namespace not recognized".
-
Rename with enter doesn't work!
i got the problem that i since few days don't rename my iTunes Tracks with the Enter Key. I must be go to the Information or make a shortcut with cmd & Enter ! But I know that works usually only with the enter key to rename a song Can somebody please
-
Import and export parameters.
Hi Experts, If I am using import n export parameters for getting data from a different program into my main program, do i have to declare the variables again in the second program. For ex: The main report has the following piece of code: data: int1 t
-
Change a label in page when webpart properties are changed
Hi can anyone please tel me how to Change label in page when webpart properties are changed Nishanthi N