07-07-2007 3:16 PM
Hello Gurus,
This is the requirement-----I have created a flat file.From this file data is passed to BAPI (bapi_contract_create). When i am passing the data it is not creating a contract .
Thanks,
Indra Karan.C
07-07-2007 8:38 PM
Hi indrakaran reddy,
analyse the errors returned. A BAPI will run through the same logic as the online transaction. That means if you get errors calling the function and you do noz get those errors in online transaction, then parameters are not the same.
The Order does not get created in case of any type E errors because they would take you back to a acreen in online mode.
Regards,
Clemens
07-07-2007 3:35 PM
First create data manually in transaction ,if it is creating the record then it would be problem at coding.
You need to use BAPI_TRANSACTION_COMMIT after BAPI_CONTRACT_CREATE FM
Reward points if helpful
Thanks
Seshu
07-07-2007 3:52 PM
Hello Seshu,
In transaction ME31k the contract has been created. But when i am passing the same data to the BAPI (bapi_contract_create). It is showing some errors in the return parameter.
I have even used BAPI_TRANSACTION_COMMIT after the FM BAPI(bapi_contract_create).
Thanks,
Indra Karan.C
07-07-2007 4:18 PM
I used BAPI_CONTRACT_CREATE FM and i had some errors ,eventhough it created the record.
contracts are being created despite being this error. You may also get "Vendor address not found" error as well...but contracts would be created!
I have searched in service.sap.com and nothing found .
if not then try to use alternative method .
Thanks
Seshu
07-07-2007 5:26 PM
Hello Seshu,
Even for me record was created. But getting invalid document number # 2. I am trying to open the document number # 2 in transaction.It is said that it doesn't exist.I have even checked in the table ekko. But it doesnt exist. Can you give me a solution.
Thanks,
Indra Karan.C
07-07-2007 8:38 PM
Hi indrakaran reddy,
analyse the errors returned. A BAPI will run through the same logic as the online transaction. That means if you get errors calling the function and you do noz get those errors in online transaction, then parameters are not the same.
The Order does not get created in case of any type E errors because they would take you back to a acreen in online mode.
Regards,
Clemens
07-03-2013 2:03 PM
Hi IndraKaran,
Please let us know what data ur getting from file and where ur passing to the BAPI structures.
Generally, when creating contract using BAPI_CONTRACT_CREATE there will be many issues which may come across header, item, validity, conditions and condition scales.
So if any of the structures are filled with ur data and correcponding structures X could be any issue.
Please get us more information that we can analyse.
Thanks & Regards,
Goldie
07-03-2013 5:08 PM
Hi Indrakaran reddy,
Check the below link your problem will solve
Regards,
Gurunath