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

Issue While creating Business Objects in SWO1

Former Member
0 Likes
1,199

Hi all,

I just want to add a FM to my Business Object.

In the FM, when i define the import and export parameters using "TYPE" the FM is working fine. But while adding that method to a Business Object in SWO1, an error is raised. The details are -

Data type xxxx cannot be used for methods

Message no. OL403

Diagnosis

You tried to create a method in the BOR with a data type that is not supported. Only data elements and structures are allowed as reference types for parameters in the BOR.

But when i use "LIKE" in place of "TYPE", everything is working fine. Why i want to use "TYPE" in place of "LIKE" is that "LIKE" as typing for parameters is obsolete.

Please suggest the reason for the same.

Thanks,

Deb

Hi all,

I just want to add a FM to my Business Object.

In the FM, when i define the import and export parameters using "TYPE" the FM is working fine. But while adding that method to a Business Object in SWO1, an error is raised. The details are -

Data type xxxx cannot be used for methods

Message no. OL403

Diagnosis

You tried to create a method in the BOR with a data type that is not supported. Only data elements and structures are allowed as reference types for parameters in the BOR.

But when i use "LIKE" in place of "TYPE", everything is working fine. Why i want to use "TYPE" in place of "LIKE" is that "LIKE" as typing for parameters is obsolete.

Please suggest the reason for the same.

Thanks,

Deb

3 REPLIES 3
Read only

Former Member
0 Likes
757

hii,

OOPs dont support 'LIKE' concept.

Read only

tushar_shukla
Active Participant
0 Likes
757

Deb,

TYPE is not supported in BOR method. You may check the following link for more information:

http://help.sap.com/saphelp_nw70/helpdata/EN/c5/e4ac39453d11d189430000e829fbbd/frameset.htm

Read only

Former Member
0 Likes
757

Thanks Tushar