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

how to call classes..

Former Member
0 Likes
604

Hi ,

requirement is as follows:

To send a message for ECC to XI by APO use the following o/b proxy objects.

Class - ZSCMCO_MIAPODEPLOY_POST_REQUES

Structure - ZSCM_DEPLOYMENT_REQUEST_OUT

The field REQUEST_TYPE to be populate with the values u201CZDEPLOY_END_AMu201D or u201CZDEPLOY_END_PMu201D as per logic.(Refer UK:C1296635 FS Page No:5 Section 2.3. ii.)

The fields REQUEST_DATE & REQUEST_TIME to be populate with system Date & Time.

Use u201Cexecute_asynchronousu201D method to send message from APO to XI.

could you please suggest me how to use class in the report .

Thanks.

Puneet.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
580

Hi,

The class should be called as follows.

Goto pattern (push button) on the report.

-> then select ABAP Objects Patterns radio button

-> Select Call method radio Button.

-> Give your class name and the Method name

->Click Ok

you will get the class similar to the function module.

by default you will get the instance as ME.

But you have to change it as var1.

where ,

var1 TYPE REF TO class name.

Regards,

Uma.

Hi,

The class should be called as follows.

Goto pattern (push button) on the report.

-> then select ABAP Objects Patterns radio button

-> Select Call method radio Button.

-> Give your class name and the Method name

->Click Ok

you will get the class similar to the function module.

by default you will get the instance as ME.

But you have to change it as var1.

where ,

var1 TYPE REF TO class name.

Regards,

Uma.

3 REPLIES 3
Read only

Former Member
0 Likes
580

Hi,

Please can u explain the thing more clearly as what is ur actual requirement and what exactly do u want?

If ur requirement is to call classes then use this declaration to call classes.

DATA: <ANY USER DEFINED NAME> TYPE REF TO <ACTUAL CLASS NAME U WANT TO REFER>.

Regards,

Ameet

Edited by: Ameet Jassani on Dec 5, 2008 12:07 PM

Read only

Former Member
0 Likes
580

hi to use class in report program you write as

DATA: <ANY USER DEFINED NAME> TYPE REF TO <ACTUAL CLASS NAME >.

start at-selection.

***implement class **

and create object for that class..

Read only

Former Member
0 Likes
581

Hi,

The class should be called as follows.

Goto pattern (push button) on the report.

-> then select ABAP Objects Patterns radio button

-> Select Call method radio Button.

-> Give your class name and the Method name

->Click Ok

you will get the class similar to the function module.

by default you will get the instance as ME.

But you have to change it as var1.

where ,

var1 TYPE REF TO class name.

Regards,

Uma.