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

Exporting Parameters while creating objects

Former Member
0 Likes
1,927

Hi,

While creating objects to a class,we can see few parameters with the object created.Any idea about where the parameters are coming from and what are the values to be passed for it should be helpful.

For ex:

I am creating a object for CL_DD_DOCUMENT.

CREATE OBJECT e_dyndoc_id

EXPORTING

STYLE =

BACKGROUND_COLOR =

BDS_STYLESHEET =

NO_MARGINS =

.

I am able to see BDS_STYLESHEET in attributes.

But where I can see the other parameters?How to set the values for those parameters?

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
1,456

possibel styles:

'ALV_GRID'.

'ALV_TO_HTML'.

'TREE'.

'STAND_ALONE'.

taken from the local class implemented within CL_DD_DOCUMENT

how to reach this code.

go to the source view of the constructor method of cl_dd_document.

double click on method "initialize_document"

double click on method "get_gui_properties"

in the following statement there.

call method resources->get_gui_properties

now you will see these styles.

Regards

Raja

10 REPLIES 10
Read only

Former Member
0 Likes
1,456

Hi,

Look at the method CONSTRUCTOR of the class.

Regards,

Rao A

Read only

0 Likes
1,456

Hi,

Any idea about the values to be given to parameter.I am able to see the type of values given.

For ex:How to find out , we need to ALV_GRID in style parameters.

  • Creating the document

CREATE OBJECT o_document

EXPORTING

STYLE = 'ALV_GRID'.

Message was edited by: Jayanthi Jayaraman

Read only

0 Likes
1,456

Hi,

Try the 'Class Documentation' button in the application toolbar in SE24.

Regards,

Rao A

Read only

0 Likes
1,456

Hi,

Thanks for reply,But most of them are not in ENglish.

Read only

0 Likes
1,456

Go to freetranslation dot com, cut and paste the text and choose translation from German to English.

Regards,

Rao A

Read only

0 Likes
1,456

Hi,

Useful site.When I click on documentation,it is saying that 'Documentation not found in english'.I am not able to see the German docuemtnaion.

I am not able to logon using GE,since that is not in my system.

Read only

athavanraja
Active Contributor
0 Likes
1,457

possibel styles:

'ALV_GRID'.

'ALV_TO_HTML'.

'TREE'.

'STAND_ALONE'.

taken from the local class implemented within CL_DD_DOCUMENT

how to reach this code.

go to the source view of the constructor method of cl_dd_document.

double click on method "initialize_document"

double click on method "get_gui_properties"

in the following statement there.

call method resources->get_gui_properties

now you will see these styles.

Regards

Raja

Read only

0 Likes
1,456

Hi ,

I am able to find out the values thro' the source code of the method.But is it the only way to find out the possible values for a parameter in a class?I don't think we can see the possible values for all other parameters of all the classes.

Read only

0 Likes
1,456

Hi

No other way except by seeing the documentation in English.

Read only

0 Likes
1,456

.<i><b>But is it the only way to find out the possible values for a parameter in a class?</b></i>

No. It only in this particular case. but in general the possible values for class parameter is same like in other cases where its maintained in domain level or at check table.

Regards

Raja