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

BDC for contract

Former Member
0 Likes
904

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)

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
800

set parameters ids using SET and Get statemetns in program.

5 REPLIES 5
Read only

Former Member
0 Likes
801

set parameters ids using SET and Get statemetns in program.

Read only

0 Likes
800

Thanks a lot for your reply.

Can you give an example. I would be grateful for that.

Read only

0 Likes
800

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.

Read only

Former Member
0 Likes
800

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?

Read only

0 Likes
800

Hello Guys,

I will surely try and I think it will solve the problem.

Thanks,

JG