Skip to Content
0
May 25, 2012 at 09:10 AM

Not able to get complete data from FBL5N Data via SUBMIT statement

173 Views

Hi ,

we have one requiment that is, we have to capture the data(output) of the FBL5N T.code,

We are getting data back from FBL5N, Here what is the issue is,but not fully..some data is missing.....

in final internal table we need Order number, booking unit, Currency values....etc....

Can any please give any clues on this how to achive this...

For this we have written below code:

SUBMIT rfitemar (report name for FBL5N)
WITH dd_kunnr-low = s_kunrg-low
WITH dd_kunnr-high = s_kunrg-high
WITH dd_bukrs-low = 'AN01' "s_bukrs-low

WITH dd_bukrs-high = 'AN04'"s_bukrs-high

WITH X_AISEL = 'X'
WITH so_budat-low = s_fkdat-low
WITH so_budat-high = s_fkdat-high
WITH X_NORM = 'X'
* WITH PA_VARI = '/RANGA' EXPORTING LIST TO MEMORY
AND RETURN.


CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = gt_list_tab

EXCEPTIONS
not_found = 1
OTHERS = 2.


CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
list_index = -1
TABLES
listasci = gt_ascitab

listobject = gt_list_tab

EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.