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

Fetching data from a Structure

Former Member
0 Likes
1,336

Hi all,

Am working on a ABAP report - customer receivable agewise report. I want to fetch ZTERM & SUMZA from a structure RF42B...How should i work on the program to acheive this.

Urgent!

Regards,

Asha.

7 REPLIES 7
Read only

Former Member
0 Likes
887

You can get that values in KNVV table

Read only

0 Likes
887

hii

I can get ZTERM from knvv but how can i get SUMZA ??

Regards

asha

Read only

0 Likes
887

Tell me Transaction code.

Read only

0 Likes
887

the transaction code is FD11..

Read only

Former Member
0 Likes
887

u cant fetch data from structure,

u can only hold data .

Read only

Former Member
0 Likes
887

HI

The structure will not have any data..It is a just a template..You need to select the data from the database table

The structure will only have data if it has been loaded elsewhere, such as if the structure was populated by a function call or BAPI.

If not, you will have to load data into the structure using SQL Select or by calling the approriate function call/method/BAPI etc.

If the structure already has data, you access that data by referencing the structure name and the component

e.g.

w_field = struct-field1.

This will load the value of the component field "field1" in structure "struct" into a separate work field "w_field".

This is how you refer to components of a structure.

structure_name-component_name

Consequently, you should not use a dash "-" in the name of a field or structure. If you need to separate words in the name use an underscore "_".

If you do attempt to use the dash "-" in the name of a field or structure in a Unicode program, you will get a warning message.

Read only

Former Member
0 Likes
887

This message was moderated.