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 updating contract data.

Former Member
0 Likes
2,069

Hi,

I am using BAPI_CONTRACT_CREATEFROMDATA. I am using BAPICTR structure to update the header level contract data .

In the FM documentation, it is mentioned as that structure is used for both header and item contract data. But it is not at all getting updated for both header and item.

Any soln for this.

Regards

Uma

11 REPLIES 11
Read only

Former Member
0 Likes
1,530

Checklist:

1. am i using BAPI_TRANSACTION_COMMIT?

2. do i have any error messages?

3. did i analyse those error messages?

4 did i solve the error mesasges?

5. do i know a mind-reading course for the readers of my post?

6. should i post a part of my code?

7. did i read this checklist?

8. did i do all that is in this checklist?

Read only

Former Member
0 Likes
1,530

Hi,

Please use the below BAPI to create or change the contract data(VA41/VA42)

BAPI_CONTRACT_CREATEFROMDATA

BAPI_CUSTOMERCONTRACT_CHANGE

I have used these and they worked for me. Let me know what data are you updating?

To update the Billing Plan with the details of Billing Start date and Billing cycle. The following function modules will be used to update the billing plan.

'SD_SALES_DOCUMENT_READ'

'SD_SALES_BILLINGPLAN_READ'

'SD_SALES_BILLINGPLAN_CHANGE'

'SD_SALES_DOCUMENT_SAVE'

Hope this helps

Regards

Shiva

Read only

0 Likes
1,530

Hi Shiva,

In VA41 , under contract header details, In the contract tab I have to upload the data. So I am using BAPICTR structure.

But it is not getting updated. For ex : some of the fields in the contract data tab are Contract start date , end date, Installation date , and also the termination details..

This is my problem.

Regards

Uma

Read only

0 Likes
1,530

You didn't use the checklist and still expect an answer/solution to your problem?

Read only

0 Likes
1,530

Are you passing the values to the structure CONTRACT_DATA_INX ? You have to fill the structure fields of CONTRACT_DATA_INX with 'X' (the fields for which you have passed value in CONTRACT_DATA_IN structure) except the field ITM_NUMBER. For the field ITM_NUMBER, both structure will hold the same value.

Read only

0 Likes
1,530

Hi As suggested above, Fill the structures below with the details.

CONTRACT_DATA_IN STRUCTURE BAPICTR OPTIONAL

CONTRACT_DATA_INX STRUCTURE BAPICTRX OPTIONAL

This will work

Hope this helps

Regards

Shiva

Read only

0 Likes
1,530

Hi Vinod,

Thanks for ur reply. It is very helpful..

More over like CONTRACT DATA , I need to upload the STATUS tab in header details . Which structure fields i can use , using the same BAPI. (More important for user status field in status tab.)

I checked but i didnt find the structure for this.

Regards

Uma

Read only

0 Likes
1,530

I don't think you can upload STATUS through this BAPI. Status is determined automatically based on configuration.

Read only

0 Likes
1,530

hi Vinod,

My user needs that. While creation of contract he needs to upload the status also.

Is thr any FM or any solution for this.

Regards

Uma

Read only

0 Likes
1,530

Hi Vinod,

It is working.. But the header text is not getting upload properly. If I am giving two datas in the structure contract_text, only one data is getting uploaded..

Regards

Uma

Read only

Former Member
0 Likes
1,530

Check the following WIKI'S link run successful and also update header level and item level

<<link removed by moderator>>

Edited by: kishan P on Nov 25, 2010 4:20 PM