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

REGARDIND REPORTS.

Former Member
0 Likes
786

Hi experts.

i m new in abap, i m preparing one purchase register report in which i need to display invoices number and material code against one purchase document number. i m fetching invoice from rseg table n material code from ekpo problem is that against one purchase no there are 10 invoices and only 3 materials and i want to display one purchase order in first column and 10 invoices display in second column and 3 materials in third column. my problem is that first 3 material comin in the loop n repated for next 10 iteration.

Moderator message: please use a more descriptive subject line next time.

Edited by: Thomas Zloch on Jun 6, 2010 12:04 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
754

what do you mean by material code?

if you mean material number only.. then why going to EKPO even? every thing is present in rseg..

>BELNR GJAHR BUZEI EBELN EBELP MATNR

this is the format you can get from RSEG .. right?

so a particular BELNR(Inv) and BUZEI(line item of invoice) is linked with particular EBELN(PO) EBELP(INV)... you have to consider these line item numbers defnitely... same line item same PO can be in two invoices as well..(that is why your 10 invoice will repeat the material numbers any how)...

please let me know if you need any more help on this

5 REPLIES 5
Read only

Former Member
0 Likes
754

hi,

In loop clear the field after three times wich contains material code append blank material filed in remaning 7 times.

Jitendra

Read only

Former Member
0 Likes
754

Hi,

u might be using the read statement for getting the material ... check for sy-subrc eq 0 after the read and then asssing the value of materiial. Or else u can show the logic

Read only

Former Member
0 Likes
755

what do you mean by material code?

if you mean material number only.. then why going to EKPO even? every thing is present in rseg..

>BELNR GJAHR BUZEI EBELN EBELP MATNR

this is the format you can get from RSEG .. right?

so a particular BELNR(Inv) and BUZEI(line item of invoice) is linked with particular EBELN(PO) EBELP(INV)... you have to consider these line item numbers defnitely... same line item same PO can be in two invoices as well..(that is why your 10 invoice will repeat the material numbers any how)...

please let me know if you need any more help on this

Read only

0 Likes
754

Hi

In side the loop it seif use READ keyword with two keys Purchasing Document No & IItem

Sartah P G

Read only

0 Likes
754

please tell me first why you need from EKPO!!!