Skip to Content
Former Member
May 09, 2007 at 09:29 AM

Company Code not defined



I have copied the standard program behind FB60 and created a new transaction named ZFB60. There is no change in the code except that I have added a field on the main screen.

Now the problem is when I run my transaction, it pops a dialog box and asks me

for the Company code. After entering that, it takes me to the main screen where when I enter fields 'Vendor' , 'Invoice date' and 'Reference', it gives me an error "Company code is not defined". But if with the same set of data I execute the original transaction FB60, it gives me no error.

My problem is that can any one tell me, why this error is coming, when I have made no changes to the original code. The only change that I have made is adding a field in the tablecontrol that comes on the main screen.

Can anyone help me?

Points assured for helpful answers.