Application Development 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: 

How to read data from Structures???

Former Member
0 Kudos

Hi All,

I have a problem in purchase order, how we can read data from strucuture?

eg.MEPO1211 is a strucutre I wanna to fetch data from it, but how?

or how can we locate the table from the strucutre???

PLZ HELP ME OUT>>>>>>>>>>

Thanx in advance .....

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

Structures can not store data. So it is not possible to fetch data from them.

Try to analyse the transaction or go through where used list of structure to see what are the tables.

7 REPLIES 7

Former Member
0 Kudos

Hello,

Structures can not store data. So it is not possible to fetch data from them.

Try to analyse the transaction or go through where used list of structure to see what are the tables.

Former Member
0 Kudos

Hi,

You can't read data from structures as they don't store any data. they are just the defination in the DDIC.

The best way is just find which field you want, now this field will be linked to some data element, see the where used list of this field and just look for table fields, you will get the list of tables.

Reward points if useful.

Regards,

Atish

Former Member
0 Kudos

Hi ,

As far as PO data is considered,

Header data can be found in table: EKKO

Item level data can be found in table EKPO.

Anything related to account assignment - EKKN.

If u need any other data pertaining to PO, do get back.

Regards,

Viji

Former Member
0 Kudos

Hi

Structures don't contain data so you cannot get data from them.

In PO you can do one thing. Goto Se38 Transaction and Standard Program SAPMF06P, Display. There is an include INCLUDE FM06PF01 Navigate to this include. there find the statement INCLUDE FM06PF01_LESEN . Double clicking it will take you to the Subroutine LESEN.

There you can follow the statements to see how header data and item data are retreived from EKKO(Header) and EKPO(Item) Tables. Additional data is got through the Function Modules

Regards

Vijai

*Reward Point if useful

Former Member
0 Kudos

the struture is a mixture of 2 table

<b>EKKO </b> ->Purchasing Document Header

<b>EKPO </b> -> Purchasing Document Item

reward points if it is usefull ..

Girish

Former Member
0 Kudos

Dear,

when u retrieving the data from database, structures like what ur mentioned act as an interfaces.

For examples u take BAPI structures used to read data from the local internal tables. Finally u can view bapi structures only.

Regards

Former Member
0 Kudos

hi all,

Can anyone gimme the sample report for the Purchase Order report for

Smartform and SAPScript?

Thanx in advance