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

Problems with BAPI_ENTRYSHEET_CREATE

Former Member
0 Likes
461

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

3 REPLIES 3
Read only

Former Member
0 Likes
413

Does wa_am-kostl have the leading zeroes present?

What messages are in the return table?

Rob

Read only

0 Likes
413

ohhh....

do i need to run the function CONVERSION_EXIT_ALPHA_INPUT ??

stupid error

i will try...tks

Read only

0 Likes
413

it didn´t work

i think everything is correct..don´t know what could be the problem.