Is there a transaction code to set BUKRS for Batch Session?

Question:
Dear all gurus,
Some transactions (e.g. ABAVN) pops up a window for the user to enter a company code if it had not already been entered. However when running the batch session in the background, the session would not be processed correctly due to an extra screen popping up asking for company code. If we were to record the company code pop up as well, problem arises when we run the session online, cause, if the user had already keyed in the company code once, then the window would not pop up again in the online session.
I found that this problem is quite similar to the setting of controlling area. There is a function K_KOKRS_SET_BATCHINPUT which solved the problem. Was wondering if any guru out there can help with BUKRS instead?
Thanks...
Answer:
system will ask u to input co. code/controlling area only if the parameter id is not set. If u want to input the co. code in each screen, then you have to set parameter id for BUKRS to initial.
Other alternative is to click on 'change company codes' for each transaction.
Regards,
rakesh
Answer:
try this BAPI_ASSET_RETIREMENT_POST

More Articles:

LSMW for Uploading of Class Characteristics Master?
problems with long text?
Read Header-line of itab.?
Processing Internal Tables?
abap code?
Data for Partner Function in table KNVP?