cancel
Showing results for 
Search instead for 
Did you mean: 

How to Raise alert in XI when a new file reaches application server

Former Member
0 Kudos

Hey guys

i have a requirement in which i need to trigger a piece of ABAP code whenever a new file reaches a specific directory of Application server.

i m using File adapter on receiver side and i want to raise a trigger so that the ABAP code is executed automatically whenever some new file reaches the directory

we are running Win server

thanx

ahmad

Message was edited by:

Ahmad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

How to raise with ABAP program example is here

http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm

Also do with SAP Java Connector (JCo).

Also see

http://help.sap.com/saphelp_nw04/helpdata/en/27/cbdf3b8dc95136e10000000a114084/content.htm

/people/kareemullahshah.quadri/blog/2007/03/08/centralized-transport-status-notifications-using-alert-management

http://help.sap.com/saphelp_nw04/helpdata/en/3f/81023cfa699508e10000000a11402f/content.htm

regards

Chilla

Former Member
0 Kudos

Thanx guys

ahmad

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

It is possible to write a ABAP program to raise alert.and schedule it , In ABAP program we can check the file is existed or not in a specified folder if existes then we can raise Alert.Actually Alerts are maintained by SAP Alert Management only.

So , but not clear , you said you are using the File receiver adapter .

-- onoption is -this can bepossible with OS command .

-- also we can raise alert from Payload itself , why becz i understand whenever you are going to write a file with file adapter then you need to raise an alert right?

so if message is existed i mean data existed then from raise alert and store the file onoption

-- Also you can try calling an ABAP program as the auto-reaction method of the MTE in CCMS

Regards

Chilla

See the below links

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/434fa590-0201-0010-1e9a-c27e6283...

/people/gregor.wolf3/blog/2005/03/05/create-users-in-an-abap-system-with-bapi-ostermiler-java-utilities

prabhu_s2
Active Contributor
0 Kudos

say ur sender is rfc and recv is file....in this case u can build a sync-asyn interface and also depending on the response u can call the proxy for triggering the abap code.

Former Member
0 Kudos

Hey guys

my scenario is very simple,one of our client is sending us Invoices over HTTP in the form of XML,i need to transfer this XML as it is to Application server and then trigger some code which will prompt an ABAP code to process this XML file .

will it be a better idea to write an ABAP code to keep on looking for new files or is there some way XI can trigger the ABAP code?

thanx

ahmad

prabhu_s2
Active Contributor
0 Kudos

simple and more efficient is write an separate abap progm which checks for the file and starts processing. but here u need to have it scheduled it correctly as when the progm is executed and if no files exists then what???? if this is not an issue or a mjor concern write a separate abap prgm

Message was edited by:

Prabhu S

Former Member
0 Kudos

Thanx Prabhu

actually i read some whr on this blog that we can trigger Unix shell script from the receiver communication channel by making use of the "Run Operating system command" options.

cant the same be done in Win server?

thanx

ahmad

prabhu_s2
Active Contributor
0 Kudos

not sure abt the blog but u can try with:

Run Operating System Command Before/After Message Processing - http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

also u can check with:

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

bhavesh_kantilal
Active Contributor
0 Kudos

Ahmad,

You can call OS commands from your receiver file adapter .

What you would need to do is wrtie a script that will tirgger the ABAP report as needed. ( not sure if this is exactly possible though , only a Unix / ABAP expert can confirm if this is possible.)

From your receiver file adapter, you can call this script and if the script can be wrtitten such that it can trger the ABAP report your task will be done.

Regards

Bhavesh

Former Member
0 Kudos

for tht y do uwant XI. from ABAP only we can do it .