‎2007 Apr 19 1:26 PM
Hi,
I'm using batch input programs to create contract from the VA41 transaction.
Because there is some changes in specifications, it become difficult to continue this way ( using batch input). So my question is : is there FM or BAPIs I can use to create the same king of contract ?
If it exists, do you please have exemple of source code to show me the different internal tables that need to be filled ?
Regards,
MOrgan
‎2007 Apr 19 1:32 PM
Hi
U can try to use the BAPI_CONTRACT_CREATEFROMDATA or directly the fm SD_SALESDOCUMENT_CREATE (this fm is called by all BAPIs create sales document.
Max
‎2007 Apr 19 1:39 PM
Hi
use the BAPI's
BAPI_CONTRACT_CREATEFROMDATA
BAPI_CUSTOMERCONTRACT_CHANGE
reward if useful
regards,
Anji
‎2007 Apr 19 3:06 PM
Thx,
I tried both SD_SALESDOCUMENT_CREATE and the bapi, each time,
I have the following error message :
please fill the sold to party or the ship-to party.
When I use the VA41 transaction, I fill in sold-to-party field and this correspond to a kunnr type.
So I tried by adding a line in SALES_PARTNER table with the kunnr value but It doesn't work.
Would you please tell wath fields I need to fill in to avoid this error message ?
‎2007 Apr 20 10:23 AM
Ok I found exactly what the problem was : I used to fill in the partners table but it needs to specify partner role. That's all, thx all for help