Application Development 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: 

BAPI_PRICES_CONDITIONS

Former Member
0 Kudos

Hi All

I am trying to use this function module (BAPI_PRICES_CONDITIONS )

to create sales deal condition records.

I tried executing directly using SE37 transaction.

But i was not succesful.

Please let me know, whether if any one have used the same and what are the main values to be passed for the function module.

Regards

Madhan Doraikannan

16 REPLIES 16

Former Member
0 Kudos

Hello Madhan,

Could you please elaborate on what you mean by "I was not successful" ? You should have received some message in the return table.

All the table parameters to this BAPI are mandatory. I hope you have observed that.

Regards,

Anand Mandalika.

0 Kudos

HI Anand Mandalika

I ment to say that the return table didnot fetch any values.

I beleive that this FM will work, if we load normal condition records.

I beleive we need to take some special care, when we load SALES DEAL Condition records.

Regards

Madhan Doraikannan

0 Kudos

Hello Madhan,

The BAPI you are talking about is not even RFC enabled. I guess it is still not meant for use. In the meanwhile, you can check out the other Function Modules of the Function Group CND_PRICES_INBOUND (to which this <i>BAPI</i> belongs).

Regards,

Anand Mandalika.

christian_wohlfahrt
Active Contributor
0 Kudos

Hi Madhan,

you need additional commit work. Write small test program and add FM BAPI_TRANSACTION_COMMIT

or use SHIFT+F8 in transaction SE37 to create a test sequence.

Have also a look at thread

for some additional tipps after condition creation.

Regards,

Christian

0 Kudos

Hi Christian

Thanks for your suggestion and the link.

I had already gone through the link.

But if we execute directly via SE37, we should get some return values.

I am not getting those.

I thought of experimenting before using the same in code

Please let me know, your thoughts on the same.

Regards

Madhan Doraikannan

christian_wohlfahrt
Active Contributor
0 Kudos

Hi,

so simple ($tmp) program with two function modules (/ commit work) will be good playground.

This BAPI is not released, neither document. If it doesn't bring results easily, you can just switch to BDC on transaction XK15 (same behaviour as VK11, except for easier entry screen).

Then you will also have some basic checks (sales org existing...) and it's not to slow (by using 20 sessions parallel )

Regards,

Christian

0 Kudos

Hi Christian

Thanks for the suggestion.

But un-fortunately we cannot use VK11 or XK15 for SALES DEAL

Since the Sales deal field is set to display mode.

This is standard SAP functionality

Regards

Madhan Doraikannan

Former Member
0 Kudos

Hi All

Thanks for valid inputs / suggestions.

I am 90% suceesful by using BAPI_PRICES_CONDITIONS.

I am getting the values in accosisted KONH,KONP and releavant AXXX table.

But unfortunately i am not able to see the same in VB23 transaction.

Regards

Madhan Doraikannan

0 Kudos

Hi!

You can have different customizing for sales deals. It's not even necessary to have any sales deal number in condition key.

Now you can compare condition determination for sales deal condition created by VB22 and by BAPI in analysis of condition overview in VB23. Especially: is sales deal number filled for BAPI-condition in access?

If not, are you using a additional pricing condition for sales deal number determination in beforehand?

Regards,

Christian

0 Kudos

Hi Chirstian

Thank u very much

This seems to be good suggestion and also looks more config oriented.

I will check with function consultants

Regards

Madhan Doraikannan

0 Kudos

Hi Madhan,

We need to load Sales Deals using VB22, so I was looking into creating a program. Found the BAPI function mod., then found your thread on the SDN.

Was wondering if you still have some notes from your Sales Deal program.

I'm trying to figure out the various fields that will need to be populated.

Appreciate any help.

Thanks,

Jaideep

0 Kudos

Hi Madan,

i have to migrate the data t.code : VK11 using BAPI.

1. it is possible to migrate Price master data in BAPI

2. and which function module going to be used.

Thanks for your advanced help.

Amudha.

Former Member
0 Kudos

Edited by: Sumesh Nair on Feb 15, 2008 1:38 PM

Former Member
0 Kudos

Hello,

yesterday only i worked on this bapi and i was succeded in it. The Operation field in the TI_BAPICONDCT, component type- MSGFN, this field is available in all the tables like KONH, KONP, and your pricing Condition table . Until You put the value u will not see the record in VB23 and the values are

003-Delete: Message contains objects to be deleted

004-Change: Message contains changes

005-Replace: This message replaces previous messages

009-Original: First message for process

023-Wait/Adjust: Data should not be imported

018-Resend

and hope you have given the condition record number manually. please check the konh table and take the last+1 number for your condition record purpose. still find the problem please reply me i will try to help you out.i have used the this bapi for updating the pricing condition records

0 Kudos

Hi Jagadeep

Thanks for the reply.

Since BAPI_PRICES_CONDITIONS is not released, we decided not to use the same and we took a different approach

Regards

MD

0 Kudos

Hi Madhan,

If you have solved this problem, can you please sedn me the solution, as iam also facing the same issue.

Regards,

Sasi