05-12-2005 6:33 PM
Hi,
Please help me the process of bringing price using sales document contract.
We can do using Customer, please explain similar using Contract.
Krishna.
05-12-2005 6:48 PM
Hi Krishna,
What exactly is your requirement? Are you trying to read pricing data of the contract or are you trying to simulate the pricing in a contract?
I am not sure I understood your statement that you can do this by cutomer. Please explain.
Srinivas
05-13-2005 1:06 PM
Hi Srinivas,
I want the Sales document pricing.
For this i need the procedure of bringing the data.
05-13-2005 4:49 PM
Here is a sample code to get the conditions in all its details. This one is for header conditions, but if you have them at item level, you need to do the same but give an item number instead of '000000' that I have in here.
DATA: comm_head_i LIKE komk,
comm_head_e LIKE komk,
i_skomv LIKE komv OCCURS 0 WITH HEADER LINE,
i_tkomv LIKE komv OCCURS 0 WITH HEADER LINE,
i_skomp LIKE komp OCCURS 0 WITH HEADER LINE,
i_skonh LIKE konh OCCURS 0 WITH HEADER LINE,
i_skonp LIKE konp OCCURS 0 WITH HEADER LINE,
i_skonm LIKE konm OCCURS 0 WITH HEADER LINE,
i_skonw LIKE konw OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'SD_SALES_PRICING_INFORMATION'
EXPORTING
* I_POSNR = '000000'
i_read_doc = 'X'
i_vbeln = p_vbeln
IMPORTING
e_komk = comm_head_i
* E_KOMP =
* TABLES
* FXKONV =
* FTKOMV =
.
CALL FUNCTION 'PRICING_GET_CONDITIONS'
EXPORTING
comm_head_i = comm_head_i
read_conditions = 'X'
IMPORTING
comm_head_e = comm_head_e
TABLES
skomv = i_skomv
tkomv = i_tkomv
skomp = i_skomp
skonh = i_skonh
skonp = i_skonp
skonm = i_skonm
skonw = i_skonw.
Regards,
Srinivas