2016 Mar 05 11:22 AM
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
2016 Mar 05 6:01 PM
Hi Sam,
Try,
Before passing data's to internal table check the condition sy-subrc is initial.
Hope it helpful,
Regards,
Venkat.
2016 Mar 07 5:06 AM
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
2016 Mar 07 7:02 AM
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
2016 Mar 09 6:35 AM
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
2016 Mar 09 6:48 AM
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.
2016 Mar 09 6:55 AM
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
.
2016 Mar 09 7:01 AM
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..