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

line item wise display data problem

Former Member
0 Likes
1,284

Hello experts,

  If multiple line items are available, value of first line item display for all items.

in purchase register report is there any solution for this to display value as per line item.


regards,


sam

7 REPLIES 7
Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,097

Hi Sam,

Try,

Before passing data's to  internal table check  the condition sy-subrc  is initial.

Hope it helpful,

Regards,

Venkat.

Read only

Former Member
0 Likes
1,097

1 . Check if your work area is getting clear once you append into table.

2. If you have multiple line item with same key while read or Loop.

Hope its help.

Regards.

Palaniyappan,S

Read only

Former Member
0 Likes
1,097

Check sy-subrc whenever you use for all entries in and when displaying values loop on your secondary(item) table and read the header table inside the loop.

Hope it helps

Read only

0 Likes
1,097

it takes only last entry of internal table


READ TABLE it_bset into wa_bset with key txgrp  = wa_bseg-txgrp

                 IF sy-subrc = 0.

               wa_final-exbas = wa_bset-fwbas.

 

                  endif.

Regards,

Sam

Read only

0 Likes
1,097

Hi Sam,

That is right it will take always the last one, It will take always last record because multiple line items may have the same tax group you have to use still more key fields in condition of read table which will validate the record and give you correct line item data.

Regards,

Shadab.

Read only

0 Likes
1,097

Take some more key fields with txgrp like BUZEI.

READ TABLE it_bset into wa_bset with key txgrp  = wa_bseg-txgrp

                                                                               buzei = wa_bseg-buzei.


Regards .

Palaniyappan.S

                                                                              .

Read only

0 Likes
1,097

It takes value to the wa_final-exbas. with txgrp

but the problem is that loop is over bseg so when when loop is  complete for first Belnr it takes last value of wa_bset-fwbas.

and again belnr is same for different line item..