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

Getting data from CM InfoType

Former Member
0 Likes
469

Hi,

I have the following code.

NODES: STUDENTDATA.

data begin of p1702 occurs 10.

include STRUCTURE p1702.

data END OF p1702 VALID BETWEEN begda and endda.

*INFOTYPES: 1702.

data wa like line of p1702.

GET STUDENTDATA.

PROVIDE * FROM p1702 BETWEEN p1702-begda and p1702-endda.

WRITE: / p1702-prdni.

ENDPROVIDE.

I also try the loop

loop at p1702 into wa.

WRITE: / wa-prdni.

endloop.

However, for some reason no data gets loaded into my internal table. I use logical database RHIQ_STUDENT_LDB

P.S. I am new to InfoTypes

Thank you.

1 ACCEPTED SOLUTION
Read only

suresh_datti
Active Contributor
0 Likes
436

Did you remove the comment on *INFOTYPES: 1702 & check?

ie use INFOTYPES: 1702.

~Suresh

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
437

Did you remove the comment on *INFOTYPES: 1702 & check?

ie use INFOTYPES: 1702.

~Suresh

Read only

0 Likes
436

Suresh,

Yes, I tried that. Did not work either. The code runs fine...no errors, just no data gets returned.

Andrei