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

Test Run with BAPI_PRICES_CONDITIONS

Former Member
0 Likes
1,182

Hi,

I am using BAPI_PRICES_CONDITIONS in my program to create pricing conditions.

BAPI is working fine and it creates pricing conditions. I can see them in VK13 and in table A9**.

The surprising thing is - this BAPI creates pricing conditions in database, even if I am not calling BAPI_TRANSACTION_COMMIT or COMMIT WORK in my program.

In fact, I need to have two options as below in my program:

1) Test Run --> Just to display the return messages from BAPI (no DB update)

2) Create conditions --> Actual creation in Database

Now the problem is that condition records are created in both of these cases.

So, I am not able to achieve functionality of option-1.

Has anyone faced this problem before or can anyone help me in this?

Awaiting for your valuable input/suggestions.

Thanks & Regards,

Devendra

Hi,

I am using BAPI_PRICES_CONDITIONS in my program to create pricing conditions.

BAPI is working fine and it creates pricing conditions. I can see them in VK13 and in table A9**.

The surprising thing is - this BAPI creates pricing conditions in database, even if I am not calling BAPI_TRANSACTION_COMMIT or COMMIT WORK in my program.

In fact, I need to have two options as below in my program:

1) Test Run --> Just to display the return messages from BAPI (no DB update)

2) Create conditions --> Actual creation in Database

Now the problem is that condition records are created in both of these cases.

So, I am not able to achieve functionality of option-1.

Has anyone faced this problem before or can anyone help me in this?

Awaiting for your valuable input/suggestions.

Thanks & Regards,

Devendra

3 REPLIES 3
Read only

Former Member
0 Likes
870

Hi Davendra,

I need to create pricing conditions and I havebeen trying to use BAPI_PRICES_CONDITIONS, but without success. The BAPI creates registers in KONH and KONP but I can't see anything in transaction VK13. Could you please tell me what do i need to pass to the BAPI so it works correctly? Do you know what A*** tables are related to price condition PR00?

Thanking you in advance,

Nisha

Read only

0 Likes
870

Hi Nisha,

Please make sure that you are passing VARKEY field properly.

It should contain combination of all the required fields. (e.g. Material No. + Sales Org. +... + etc).

Regarding A*** tables for PR00 condition, you can check it in VOK0>Cond. Type>Access Sequences-->PR00

The number in TAB column is the name of A*** table.

Alternatively, you can search in table T682I. The field T682-KOTABNR is the condition table number.

In our system, the tables for PR00 are A004, A005 and A006.

I hope this helps you.

Regards,

Devendra

Read only

Former Member
0 Likes
870