on 03-14-2007 6:26 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
/people/gregor.wolf3/blog/2005/03/05/create-users-in-an-abap-system-with-bapi-ostermiler-java-utilities
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
for tht y do uwant XI. from ABAP only we can do it .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.