BDC session for FB60 (Create vendor invoice) not successful

Question: Hi Experts,

I am trying to capture transaction FB60 (Create Vendor Invoice) using transaction SHDB for writing an RFC for a legacy system. When trying to change the company code for FB60 transaction, it requires to press F7 to pop up a dialog box for entering the company code.

However, the code generated doesn't seem able to capture the F7 and the pop-up dialog box. When trying to process the captured code, a message "Field BKPF-BUKRS . does not exist in the screen SAPMF05A 1100" appears and error "Select a valid function" is encounted.

I would like to know if there's any method this error can be fixed. Or if any other way the dialog box can be skipped.

Thanks in advance.

Best regards,
Monica Tang

Answer:
Don't use FB60 for BDC, use FB01.

Answer:
Hi,
while recording, do Edit->Change company code (F7) first, before you proceed and it will be reflecting in your recording. you may call this option, only if the company code changes from record to record.
Ren
Copyright ?2007 - 2008 www.jt77.com