2007 Dec 13 9:47 AM
Hi Guys,
I am working in FI (CML) module. I have created a bdc which uploads data and creates a contract. As soon as the contract is created a contract number is automatically generated.
Then I have to launch another bdc for a transaction (disbursement) where I enter that contract number which has just been created and carry on.
The problem is as soon as the contract no is created i run other trans and i am unable to determine what contract no has been created. Though that trans should automatically show the newly created contract no but it does not. Instead it shows the old one.
Is there a F.M or something which enables me to know the contract no that has just been created.
(The Tcode for contract creation & disbursement is: FNV1 & FNVD)
Thanks,
JG
(Let me know if I am posting in the wrong forum. Should I post in ERP Financials)
2007 Dec 14 6:32 PM
2007 Dec 14 6:32 PM
2007 Dec 15 2:28 PM
Thanks a lot for your reply.
Can you give an example. I would be grateful for that.
2007 Dec 20 6:20 PM
this is a simple test program for ur understanding.
PARAMETERS: p_vbeln LIKE vbak-vbeln.
SET PARAMETER ID 'AUN' FIELD p_vbeln.
******
do like this for ur requirement.
2007 Dec 20 9:54 PM
When you did the BDC, all the messages that are raised in the transaciton will be returned via the table BDCMSGCOLL. There will be a message in here that gives you the contract number. Check where it is and use that in your second transaction. Are you using session method or call transaction?
2007 Dec 21 11:39 AM
Hello Guys,
I will surely try and I think it will solve the problem.
Thanks,
JG