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

BAPI_CONTRACT_CREATEFROMDATA not generating Billing plan

Former Member
0 Likes
1,817

Hi All,

I am Using Bapi BAPI CONTRACTCREATEFROMDATA

for creating Contract instead transaction VA41 .

It is working fine but Billing plan is not getting generated thru this BAPI .

Preeti.

10 REPLIES 10
Read only

Former Member
0 Likes
1,342

i think you have to submit the program SDFPLA02, after the success of the bapi to update the billing plan.

Transaction code for Billing plan update is OVBT

Read only

0 Likes
1,342

Hi Vijay.

Thanks for your reply i tried with your reply still the billing plan is not getting generated .

Pls can you tell me any other solution

Read only

0 Likes
1,342

did you see the functions used in side the mentioned in the above program. and how are you doing it exactly..

Read only

0 Likes
1,342

Hi Preeti,

Please check the type of PARTN_NUMB u r passing., i think it should work properly,. if you can put a break-point at that particular point you would come to know the exact reason..

Best Regards,

Shravanthi Reddy

Read only

0 Likes
1,342

also check whether u r using BAPI_TRANSACTION_COMMIT.

Read only

Former Member
0 Likes
1,342

Hi Preeti ,

Did you get the reply for this . Please let me know if you have solution for it , Iam also getting the same problem .

Thanks ,

Vivek Shukla

Read only

0 Likes
1,342

HI.

I have the same problem now, if you found the good solution answer me plaise.

Read only

Former Member
0 Likes
1,342

To update contracts we have successfully the following function modules (BAPI's):

1. 'BAPI_SALESDOCUMENT_CHANGE'

2. 'BAPI_CUSTOMERCONTRACT_CHANGE'

but to update the Billing plan for every position, it was not possible to use these, instead we used the following function modules:

1. 'SD_SALES_DOCUMENT_READ' - Reads the contract.

2. 'SD_SALES_BILLINGPLAN_READ' - Reads the billing plan for a position

3. 'SD_SALES_BILLINGPLAN_CHANGE' - Updates the billing plan.

4. 'SD_SALES_DOCUMENT_SAVE' - Saves the contract

5. 'BAPI_TRANSACTION_COMMIT' - commits changes to the database.

Check the function modules in function group V45A for other functionality!

I hope this will help you to find a sollution!

Read only

Former Member
0 Likes
1,342

did u got solution? if not then tell i send sample code i got solution

Read only

0 Likes
1,342

Dear Guest,

Can you send the code of changing bapi_customercontract_change.

i am changing bill block status in billin plan in material item based on start and end date.

i am very greatful to you.