2006 Nov 14 6:14 AM
Hi All..
When i execute my BDC (Call Transaction) in foreground, the code will update IW52 screens without any errors/warnings.
But if we schedule this in background, the IW52 screens are not getting updated.
Even there are no Errors observed.
We have used the syntax as follows..
CALL Transaction IW52 using it_bdcdata MODE 'N' messages into it_bdcmsg.
Can anyone help me how to rectify it and make it to execute successfully in background mode..??
Your Help will be highly appreciated..
Regards
Pavan
2006 Nov 14 6:20 AM
CALL Transaction IW52
using it_bdcdata
MODE 'N'
UPDATE 'A' <- Also add this and check..
messages into it_bdcmsg.
even though it is not updating...reply to this ...i will give u one more method.
Ramesh.
2006 Nov 14 6:50 AM
Hello Friends...
I am running a call Transaction code in Background mode.
I am facing Error message..
If i run the same in foreground, it is working fine...
Error Message is "No Batch Input data for screen <SAPNV screen No>"
Expecting your guidence in this case...
Regards
Pavan
Message was edited by:
Pavan Sanganal
2006 Nov 14 7:34 AM
Hi All...
Can anyone help me please.....!!!!...?????
Regards
Pavan
2006 Nov 16 4:29 AM
Hello Friends...
I am running a call Transaction code in Background mode.
I am facing Error message..
If i run the same in foreground, it is working fine...
Error Message is "No Batch Input data for screen <SAPNV screen No>"
Expecting your guidence in this case...
2006 Nov 16 4:35 AM
Have u tried using BAPI's?
Try this BAPI for Notif Change
<b>BAPI_ALM_NOTIF_DATA_MODIFY</b>
Functionality
You can use this BAPI to change the header, the items, causes, actions, tasks, and partners of a maintenance- or service notification.
See the BAPI documentation for more details in SE37 GOTO->Documentation.
Regards
- Gopi
2006 Nov 16 4:45 AM
Hi Pavan
As u might know, typically this error message comes when you do not pass data to some screen field. In your case whe nyou run the BDC in foreground it will prompt you for field values but when you are executing the BDC in background then you need to provide these values from some internal table or some other value source.
Hope this helps.
2006 Nov 16 4:46 AM
Hi Pavan
As u might know, typically this error message comes when you do not pass data to some screen field. In your case whe nyou run the BDC in foreground it will prompt you for field values but when you are executing the BDC in background then you need to provide these values from some internal table or some other value source.
Hope this helps.
2006 Nov 16 5:11 AM
Sandeep and All,
I am not giving any inouts manually during foreground..
If i just press F8, the code will get executed perfectly..!!!
Can any one explain me how to incorporate (with little syntx piece) the BAPI idea given by Gopi..??
Regards
Pavan
2006 Nov 16 5:16 AM
Hi Pavan,
Do the following.
Run your BDC program with following statment. to see which field prevents it from getting executed fully.
CALL Transaction IW52 using it_bdcdata MODE 'E' messages into it_bdcmsg.
I guess your recording was not full. Or you are using an order type which u havent used while recording and it requires some extra input.
2006 Nov 16 5:21 AM
Hi Balachandran..
We have been creating Notifications by running some other code.
Now with the current code, we are making changes in the Notifications.
The flat file containing the relevant data will be in Application Server.
We have used the statement....
CALL TRANSACTION 'IW52' USING it_bdcdata MODE 'N'
MESSAGES INTO it_bdcmsg.
2006 Nov 16 5:27 AM
Ok pavan,
See here is the catch. If you are supplying notification numbers and then try to figure out for which numbers it fails and then see the notification type for the successfull one and the failed one. If it fails for all the notifications then try to change the type for "N" to "E" to see how it runs. I belive some field is there in the screen on question which has customizing setting to appear only in foreground. so if you run in "E" mode, you can find out the culprit field.
2006 Nov 16 5:37 AM
Balachandran,
If i run the code with any of the mode (A, N, E), the Notifications are getting updated without any descrepency.
Even if we debug in the foreground, no errors/warnings appaears..
We have checked the code with mode (A, N, E) in the background too..
System is prompting same error ..
Error Message is "No Batch Input data for screen <SAPNV screen No>"
2006 Nov 16 5:42 AM
In this situation what i would do is, go to the screen which is being promted and then see what are the fields i am passing and make sure all of them are set as visible in background mode also in customizing. because i have faced similar situation and got the customizing changed once.
2006 Nov 16 5:53 AM
How to debug this code while we run this in background mode..???
Is there any specific method..????