cancel
Showing results for 
Search instead for 
Did you mean: 

an urgent problem

Former Member
0 Kudos

how to define an object reference to the class cl_wd_file_upload .

I define it like this :

data l_upload type ref to cl_wd_file_upload .

but when I execute it , it says that it is a null object.

thx a lot .

Nick.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

thank you , it makes a little sense.

but when I create an object it shows below.

CREATE OBJECT L_UPLOAD

  • EXPORTING

  • ID =

  • VIEW = .

and I want to know what will be filled in the exporting parameters.

I only know the view need to write my own name. what about the ID parameters.

I write like this one below.

CREATE OBJECT L_UPLOAD

EXPORTING

ID = 1

VIEW = 'FILEUPLOAD'.

when I check it , it doesn't know the object . so how can I do?

thank you a lot

best regards.

Nick

Former Member
0 Kudos

View is the reference to your current view and ID refers to the element ID. You can find the ID from the properties tab of your file upload UI element.

Answers (1)

Answers (1)

Former Member
0 Kudos

data l_upload type ref to cl_wd_file_upload .

CREATE OBJECT l_upload.

Please try to use patterns to get the CREATE OBJECT statement as there maybe a constructor involved.

To do this :

1.Click on Patterns

2. Choose radio-button ABAP Objects

3. Choose the option for create object

4. Give l_upload in the 'Instance Name'

5. Give cl_wd_file_upload in 'Class Name'.

This will give you the correct way to call CREATE OBJECT for this particular class.

Hope this helps you.