Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating Scales in BAPI_CONTRACT_CREATE

Former Member
0 Likes
2,675

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

10 REPLIES 10
Read only

hadiman_ngoei
Product and Topic Expert
Product and Topic Expert
0 Likes
2,003

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

Read only

0 Likes
2,003

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..."

Read only

Former Member
0 Likes
2,003

HI,

Can you please check the bellow FM:

BAPI_CONDITION_CONTRACT_CREATE

regards,

Munibabu.K

Read only

0 Likes
2,003

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...

Read only

0 Likes
2,003

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?

Read only

0 Likes
2,003

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'

Read only

0 Likes
2,003

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.

Read only

0 Likes
2,003

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

Read only

0 Likes
2,003

Solved.

Read only

0 Likes
2,003

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..