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

Create instance of a class

kumud
Active Contributor
0 Likes
673

Hi Experts,

I am debugging a program wherein the following statement is encountered

DATA: lv_reffield1(100). " Reference Field 1

lv_reffield1 = '(SAPLICL_POLS_BDT)GO_TREE1'

How do I interpret this statement. What does it do?

Thanks,

Kumud

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
561

Such field will later be used in some field symbol to access external program's data object.

Once you read [SAP exist and people who love them|http://www.scribd.com/doc/7070662/SAP-Exits-and-the-People-Who-Love-Them] you will understand this concept.

Regards

Marcin

Hi Experts,

I am debugging a program wherein the following statement is encountered

DATA: lv_reffield1(100). " Reference Field 1

lv_reffield1 = '(SAPLICL_POLS_BDT)GO_TREE1'

How do I interpret this statement. What does it do?

Thanks,

Kumud

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
562

Such field will later be used in some field symbol to access external program's data object.

Once you read [SAP exist and people who love them|http://www.scribd.com/doc/7070662/SAP-Exits-and-the-People-Who-Love-Them] you will understand this concept.

Regards

Marcin

Read only

kumud
Active Contributor
0 Likes
561

Hi Marcin,

Thanks for the reply.

So, is this the way to override changes done in the methods of a class.

What are the specific scenarios leading to usage of such statements?

I am not able to open the link provided. Is there any other way to view the same?

With Regards,

Kumud

Read only

0 Likes
561

So, is this the way to override changes done in the methods of a class.

Not really sure what you mean by this. This technique is mostly used accross user exits where there is a function or subroutine call (customer or user exit), wherein you would like to access data object of calling program (main program). This way you can not only access this data but also are able to change its content depending on the requirement.

As long as you think of methods of a BAdI you should be able to use this technique also there.

As for the document, type in the google "sap user exists and people who love them" and enter the first link found. I think reading this will certainly shed a light on the topic.

Regards

Marcin