Hi Experts,
We have a requirement to process a custom transaction depending on the output of FBL5N - which should include the 'Customer' fields.
We developed a ABAP program with the following lines
submit rfitemar using selection-set 'TEST_SERV' exporting list to memory and return.
*Example Code (Retrieving list from memory)
data begin of itab_list occurs 0.
include structure abaplist.
data end of itab_list.
types: begin of ty_list,
fiiler(4),
date(10),
filler2,
doc_no(10),
filler3,
ref(16),
filler4,
billdoc(9),
filler5,
payt(4),
filler6,
ty(2),
filler7,
net_date(10),
filler8,
rcd(3),
filler9,
lcamt(12),
filler10,
lcurr(5),
filler11,
amt_doc(18),
filler12,
curr(5),
filler13,
text(35), "SGTXT
dummy(100),
end of ty_list.
data: it_list type table of ty_list,
wa_list type ty_list.
*data: vlist type table of string.
call function 'LIST_FROM_MEMORY'
tables
listobject = itab_list
exceptions
not_found = 4
others = 8.
call function 'LIST_TO_ASCI'
exporting
list_index = -1
tables
listasci = it_list
listobject = itab_list
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.
In the Internal Table IT_LIST we are able to get all the fields except the 'Customer Field' -
Attached are the screen shots 1. without customer field 2. when selected the layout /SCHARGE then we are able to see the customer field in the output.
The issue is in the ABAP program we are unable to get the Customer FIeld - but when we run the transaction FBL5N - with a layout selected then we are able to see the Customer field in the output.
Please let us know if any ideas as how to get the layout value passed in the ABAP program - if any other ideas.
Regards,
Rafi