‎2005 Mar 29 11:38 AM
hello!
i created through userexit a bi.
i need to run the bi every time a session name is created.
i tried to use program rsbdcsub and create a variant with the session name. through sm36 create a job that run every 3 minutes and runs the program rsbdcsub, if a session name has been created so it will do the bi and if not so nothing happens.
when i try to run prog rsbdcsub for test with f8 and i put only the session name it runs but i get the following error in sm35 'Field LIKP-TRAID. does not exist in the screen SAPMV50A 2000'. if i run the session directly from sm35 in foreground it runs successfully.
when i put a target host i get the following message 'cannot close job'
please tell me what is the problem???
thanks
‎2005 Mar 29 1:04 PM
Hi,
I can imagine 2 things.
1st: sometimes the system variables sy-batch and/or sy-binpt are used to enable/display fields on dynpros and related to this, it would describe why your session reacts differently running online or in batch in background.
2nd: May be you missed an entry in a transportation related field which led to a deactivation of the field. Or there is no transport assigned to the delivery and so, the field is not active for input...
In your situation I would investigate my 2nd approach first. I am not sure wether it's correct or not, but may be it gives you an idea.
regards
Siggi
‎2005 Mar 29 5:29 PM
Another reason could be that there could be controls used in this transaction and a BI will not work with controls in the background. Check if there are any controls used in there and if so, your alternative has to be a BAPI or a function module.
Are you doing this for collective processing of deliveries?
Regards,
Srinivas
‎2005 Apr 05 1:34 PM
Hi Srinivas Adavi
Thank you for your reply.
What is control? i have no idea?
i am trying to update transaction VL02N outbound deliveries.
I tried looking for a bapi or a fm before i used the bi but i couldnt find.
there is bapi change outbound delivery but it exist in 47
and i use 46.c .
i tried to find fm also without any success.
if you have any idea i will be thankful
thanks
yifat
‎2005 Mar 29 6:19 PM
Hi Yifat,
You have not mentioned which transaction you are trying to run using Batch Input. My guess is that you using VL01N or VL02N and the field LIKP-TRAID exist on a subscreen that you need to choose explicitly if you want to populate it.
Other note, instead of scheduling the job for every 3 minute you can schedule the job based on an event. After closing the session in your program, you can trigger this event (which will eventually execute this job).
Regards,
Sanjeev