Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call Transaction in Background for IW52

Former Member
0 Kudos
420

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

14 REPLIES 14

Former Member
0 Kudos
301

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.

0 Kudos
301

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

0 Kudos
301

Hi All...

Can anyone help me please.....!!!!...?????

Regards

Pavan

0 Kudos
301

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...

0 Kudos
301

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

Former Member
0 Kudos
301

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.

Former Member
0 Kudos
301

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.

0 Kudos
301

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

former_member283648
Participant
0 Kudos
301

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.

0 Kudos
301

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.

0 Kudos
301

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.

0 Kudos
301

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>"

0 Kudos
301

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.

0 Kudos
301

How to debug this code while we run this in background mode..???

Is there any specific method..????