cancel
Showing results for 
Search instead for 
Did you mean: 

ACFEXECUTE

Former Member
0 Kudos

Hi experts,

I tried the WD_TEST_APPL_ACFEXECUTE on my system. By now, it works perfect.

In the next step I want to use the code in my own report, to start a spplication on the computer. I copy all the code and the content to my report, compile the code and start the application. Next I have to autorize me. After autorization a errormessage will be showed:

"Folgender Fehlertext wurde im System R3T prozessiert: Adapterfehler im FLOW_LAYOUT "_03" des Views "ZWD4A_MP_CREATE.V_MP_CREATE": Der LayoutData-Typ "MATRIX_DATA" für das Kindelement "_04" ist nicht zulässig."

Has anybode an idea what the misstake I did?

Greats Stephan

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If you copied the example application, it is dynamically creating some of its UI elements in WDDOMODIFYVIEW. This requires setting the layout options in code. Check the layout type of the Root UI element in your view comparied to the one in the SAP sample. They are different - causing problems when you generate the layout options for the child UI elements.

Former Member
0 Kudos

Hi Thomas,

thank you very much. You're right, my layout type from the Root UI element was flow-layout instead of matrix layout.

Now the autorize-window pop up.

in the next step i am using for my button the same code the test application is using in the action BTN_WORD. Additional i have the Windows Word-Path added to my WhiteList. If I start the test application and push the word-button, Windows Word wills start. But unfortunatelly Windows Word doesn't start in my application.

Do you have an idea what i made wrong?

Thanks and greats,

Stephan

Former Member
0 Kudos

Hi Thomas,

i works. i made a misstake myself.

But now i have a further question.

If i start a software, how can i start the software with parameters, p.e. a path for file?

Thanks and greats,

Stephan

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Look at the method signature of the handler class (CL_WDR_ACFEXECUTE_HNDL). On the Execute method there is a parameter called ARGUMENTLIST. This is where you can pass parameters into the command call.

Former Member
0 Kudos

Hi Thomas,

thank you. It works.

But there is still one more problem: Is it possible to start a bat-file? I tried with exe-files, it woks, but now i want to start a bat-file, it daon't work.

Thank you very much.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I've never tried a BAT file before. Techincally the documentation states that we can run executables. BAT files aren't executables, but scripts that are interpreted by CMD.EXE. Have your tried executing CMD and passing the BAT file as a parameter? Or maybe calling the Windows Scripting Host. I have feeling that you would have call the Engine that executes the BAT and not the BAT directly.

Former Member
0 Kudos

Hi,

What is Whitelist here?

Regards,

Lakshmi

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>

> Hi,

> What is Whitelist here?

>

> Regards,

> Lakshmi

The authorized servers and directories are listed in a white list (an administrator stores this information locally using transactions WDR_ACF_WLIST and ACF_WHITELIST_SETUP). If requests for access to directories or communication with servers are sent using HTTP or HTTPS, the control first checks whether this is allowed at all. It then compares the directories or servers in question with the data in the local white list file. It only executes the relevant methods if the authorization is set in the white list.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b91539878a2d67e10000000a42189c/frameset.htm

frank_stdle
Participant
0 Kudos

Hi Stephan,

I am running a BAT file without problems. I ended up using the BAT file since I was unable to execute the program I really wanted to run with more than one parameter.

I download the BAT file to a directory using ACFUPDOWNLOAD, and on the COMPLETED action of the the up-/downloader I execute the BAT file using ACFEXECUTE.

If you are having problems you should look at the JAVA console -- you can activate the console from "Control panel - Java". The console will tell you if the applet doing the up/download and execute is having any problems (for instance missing whilte list entries).

Former Member
0 Kudos

Hi Thomas,

I am looking for your help in my WDA program.

I am need to execute the .exe file. Here I am using ACF execute method.

To execute the .exe i have to pass two arguments  along with application name. But I checked this method having IF_WD_ACFEXECUTE~EXECUTE only one argumentlist.

Please suggest me how i can pass two arguments to execute the file.

I can execute this .exe file via CMD by passing application name and two arguments.

code:

lv_application = 'C:program ......'.

lv_arguments = 'argu1'

lv_arguments = 'argu2'

     wd_this->call_acf_execute( application = lv_application

                           argumentlist = lv_argumentlist ).

Regards,

Rajesh K

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi experts,

once more I have a question about acf and whitelist.

I am using now the acf-command and call a batch-programm. it works.

but now i want to call an other batch-report, it didn't work. I read in this forum i should call the cmd with parameters. Now i am trying to call cmd without parameter. it works. in the next step i want, as a test, to call the calculator as parameter from cmd.

In the Whitelist i made one entry for the report and one for the parameter.

The parameter-entry looks like this:

Whitelist: Fleigs Applikation: CMD Position: 1 Type: String Erlaubnis: legal

Is this ok, because it doesn't work? When i want to use a second parameter, have i use the position 2?

Thanks a lot for helping.

Stephan