Import of data via DIH in Beas with an external shortcut

  • Updated

How to execute the import of a DIH planned activity outside of beas

 

You can create new shortcut in the desktop with an additional parameter as per image below:

 mceclip0.png

In this example, the parameters used are:

 user=manager pw=1234 task=16

Note: the task number is the ID of the planned activity the you can retrieve from the beas manage server screen

mceclip1.png

 

The important part comes now:

 In the activity set up in the beas manage server, you will need to activate the execution of scripts for each import definition

mceclip2.png

In order to obtain the correct setting for the execution of the scripts, you'll need to retrieve the system default ones by running the beas debug.

 

Here’s the step by step guide for how to do this:

 

  1. stop the beas service linked to the planned activities
  2. Set only the activity you wish to run from outside beas as “active”
  3. Highlight the stopped service
  4. open the beas debugger (ctrl+shift+i) - set it to lvl 3
  5. start the local beas server from the SAP Menu bar: Tools --> Web Server

 This will execute the activity.

 In the debug, search for the line that reports the execution of the script linked to import definitions

 mceclip3.png

 and

 mceclip4.png

 You need to copy only this part:

  1. object=ue_importdef=importtask=OITM -- Item_update
  2. object=ue_importdef=importtask=OITM -- Item_insert

 Then you'll go back to the planned activity and set it as inactive

in the Execution tab you'll insert those scripts with <cr_lf>:

mceclip5.png

  

With this configurations you can then just make double click on the created short-cut in the desktop (as per first steps of this article) and it will be run as if called from the Beas Server.

 

Additional note:

 You can create a new task in the windows task scheduler to run the shortcut with your custom parameters at a specific time interval

 

Note: This way of executing the planned activity will not trigger the file move from the import folder.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.