‎2010 Dec 30 4:55 PM
Hi,
I am using that function to fill several lines in a document.
He puts the lines but the field costcenter - kostl is the same to every line but i am sending diferent kostl's in the function.
It apears that he choses random number in the table sendt in the function and puts to every line.
What could be the problem??
i am using the code:
LOOP AT it_am INTO wa_am WHERE xblnr = wa_am_i-xblnr
AND txz01 = wa_am_i-txz01.
counter = counter + 1.
it_eskn-pckg_no = pac.
it_eskn-gl_account = it_account-g_l_acct.
it_eskn-costcenter = wa_am-kostl.
it_eskn-serial_no = counter.
it_eskn-counter = counter.
APPEND it_eskn.
CLEAR v_quant.
it_eskl-percentage = ( wa_am-tbtwr / v_quant ) * 100."wa_am_h-mkntm.
it_eskl-pckg_no = pac.
it_eskl-line_no = counter.
APPEND it_eskl.
ENDLOOP.
CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
EXPORTING
entrysheetheader = wa_header
testrun = mode
IMPORTING
entrysheet = num
TABLES
entrysheetaccountassignment = it_eskn
entrysheetservices = it_esll
entrysheetsrvaccassvalues = it_eskl
return = it_return.
in table it_eskn there are 100 lines with diferent kostl.
tks in advanced
‎2010 Dec 30 5:11 PM
Does wa_am-kostl have the leading zeroes present?
What messages are in the return table?
Rob
‎2010 Dec 30 5:15 PM
ohhh....
do i need to run the function CONVERSION_EXIT_ALPHA_INPUT ??
stupid error
i will try...tks
‎2010 Dec 30 6:23 PM
it didn´t work
i think everything is correct..don´t know what could be the problem.