Application Development and Automation 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: 
Read only

Ignoring Optional parameter during OLE method calling

Former Member
0 Likes
385

Hi guys,

I got a problem:

Application.Workbooks.OpenXML(Filename, Stylesheets, LoadOption) here's a defination from Microsoft help.

Stylesheets and LoadOption are optional parameters.

ABAP calling:

CALL METHOD OF workbooks 'OpenXML'

EXPORTING #1 = filename

#2 = '3'

#3 = 2 .

How can ignore parameter #2(Stylesheets) in the calling statement? I found no documentation about calling functions ignoring some optional parameters. Normaly there's posibility to explicitely define passing parameter, for example:

Application.Workbooks.OpenXML _

Filename:="customers.xml", _

LoadOption:=xlXmlLoadImportToList

With kind regards

Long.

1 REPLY 1
Read only

Former Member
0 Likes
316

UP