2009 May 28 3:11 PM
Hi guys,
Did anybody knows if it is possible to create a purchase contract with conditions and scales using BAPI_CONTRACT_CREATE?
I've been trying but without success... The contract is created but without scales...
Best Regards,
Luís Silva
2009 May 29 2:03 AM
Is your scale value based or quantity based? I think from the BAPI, you have 2 parameters: ITEM_COND_SCALE_VALUE & ITEM_COND_SCALE_QUAN.
Thanks and regards,
Hadiman
2009 May 29 9:40 AM
Hi,
I'm familiar with that 2 parameters...
The question is if you know how to fill it or if you have some sample code...
And more important, if you know if it is possible to create purchase contracts with conditions and scales...
Check this: http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CREATE
In this link says that:
"...Scales are not supported during the creation of outline agreements..."
2009 May 29 9:59 AM
HI,
Can you please check the bellow FM:
BAPI_CONDITION_CONTRACT_CREATE
regards,
Munibabu.K
2009 May 29 10:21 AM
Yes,
I checked but it's not what i was looking for...
That FM does not create price conditions in purchase contract..
I check the FM BAPI_CONDITION_CONTRACT_READ too, and i check that one of the master tables was WCOCOH and that doesn't mean nothing to me...
The conditions tables i nedd are, KONH, KONP, KONM...
Thanks anyway...
2009 May 29 10:26 AM
Hi again,
I made some test using BAPI_CONTRACT_GETDETAIL for a purchase contract that have price conditions, and the BAPI does not return that information...
This is very strange...
Does anybody already worked with this?
2009 May 29 10:35 AM
Forget it...
BAPI_CONTRACT_GETDETAIL work fine...
I just miss 1 input parameter...
call function 'BAPI_CONTRACT_GETDETAIL'
exporting
purchasingdocument = l_ebeln
item_data = 'X'
condition_data = 'X'
2009 May 29 4:40 PM
Hi again,
The problem is solved.
In fact is not possible to create scales using BAPI_CONTRACT_CREATE...
We must change the purchase document after we create it using BAPI_CONTRACT_CHANGE...
Thanks for trying to help.
Best Regards.
2009 Jun 10 8:24 AM
Hi silva,
I'm facing the same problem.
Could u please tell me what all need to be passed in ITEM_COND_SCALE_VALUE and ITEM_COND_SCALE_QUAN tables....
Edited by: Nilesh Kumbhar on Jun 10, 2009 9:25 AM
2009 Sep 01 10:06 AM
2011 Sep 06 8:56 AM
Hi Nilesh,
I'm also facing the same problem, have you got your answer from previous forums.
What all parameters need to pass to BAPIMEOUTITEMSCALEQUAN.
Below are the parameters i'm passing:
gs_bapimeoutitemscalequan-ITEM_NO = '00020'. "item number
gs_bapimeoutitemscalequan-serial_no = '0000319153'. " Condition number
*gs_bapimeoutitemscalequan-COND_COUNT = '01'. " Sequence of conditon number
gs_bapimeoutitemscalequan-line_no = '1'. " Scale line niumberf
gs_bapimeoutitemscalequan-SCALE_BASE_QTY = '0.00'. "scale Quantity
gs_bapimeoutitemscalequan-cond_value = '10.000'. "Scale amount
append gs_bapimeoutitemscalequan to gt_bapimeoutitemscalequan.
and passing gt_bapimeoutitemscalequan to BAPI_CONTRACT_CHANGE with contract number
Please let me know is there any wrong parameters or missing parameter i'm passing.
Regards,
Vamsy..