‎2010 Nov 25 9:36 AM
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
‎2010 Nov 25 9:41 AM
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?
‎2010 Nov 25 9:54 AM
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
‎2010 Nov 25 10:39 AM
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
‎2010 Nov 25 10:47 AM
You didn't use the checklist and still expect an answer/solution to your problem?
‎2010 Nov 25 10:54 AM
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.
‎2010 Nov 25 10:57 AM
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
‎2010 Nov 29 9:28 AM
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
‎2010 Nov 29 9:49 AM
I don't think you can upload STATUS through this BAPI. Status is determined automatically based on configuration.
‎2010 Nov 29 10:21 AM
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
‎2010 Dec 08 12:10 PM
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
‎2010 Nov 25 10:47 AM
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