Skip to Content
avatar image
Former Member

BAPI_ENTRYSHEET_CREATE - Quantity Doubled In ESLL Table

Dear All,

My Requirement: I am creating service entry sheet(Planned & Multiple) through BAPI 'BAPI_ENTRYSHEET_CREATE' and I fallowed the SAP Note# 420334. Its is creating succesfully.

Suppose my PO Quantity is 2Nos and I created service entry for 1Nos, When I checked in ML81N trancation code it is showing the Quantity as 1Nos. But in ESLL table ACT_MENGE field is showing 2Nos.

When I am going to create another service entry sheet it is through an erroe 'E SE 149 Service: quantity 2.000 exceeds quantity 1.000 in purchase order'.

But actually service entry sheet created for only quantity 1Nos.

Could you please any one suggest on this will be rewarded as its very criticle.

Thanks and best regards,

Yohan Kanna

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 19, 2017 at 06:11 AM

    hello,

    could you paste your code here of the bapi call

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2017 at 06:31 AM

    Dear Venkat,

    Please find below the table data and code to fill the Header & Item Data.

    ls_entrysheetheader-ext_number = 'INVOICENUMBER'.

    ls_entrysheetheader-pckg_no = '111565'.

    ls_entrysheetheader-short_text = 'Multiple Srivice Planned'.

    ls_entrysheetheader-po_number = '4617000081'.

    ls_entrysheetheader-po_item = '00010'.

    ls_entrysheetheader-acceptance = ' '.

    ls_entrysheetheader-doc_date = '19.06.2017'.

    ls_entrysheetheader-post_date = '19.06.2017'.

    ls_entrysheetheader-ref_doc_no = 'REFDOCNUMBER'.

    ls_entrysheetservices-pckg_no = '0000111565'.

    ls_entrysheetservices-line_no = '0000000001'.

    ls_entrysheetservices-outl_ind = 'X'.

    ls_entrysheetservices-subpckg_no = '111566'.

    append ls_entrysheetservices to lt_entrysheetservices.

    clear: ls_entrysheetservices.

    ls_entrysheetservices-pckg_no = '0000111565'.

    ls_entrysheetservices-line_no = '0000000001'.

    ls_entrysheetservices-ext_line = '0000000010'.

    ls_entrysheetservices-service = '3000127'.

    ls_entrysheetservices-quantity = '1.0000'.

    ls_entrysheetservices-base_uom = 'AU'.

    ls_entrysheetservices-gr_price = '90,000.00'.

    ls_entrysheetservices-short_text = 'MANAGEMENT CONSULTANT SERVICES'.

    ls_entrysheetservices-pln_pckg = '0000111450'.

    ls_entrysheetservices-pln_line = '0000000002'.

    append ls_entrysheetservices to lt_entrysheetservices.

    clear: ls_entrysheetservices,ls_ses_crt_itm.

    ls_entrysheetservices-pckg_no = '0000111565'.

    ls_entrysheetservices-line_no = '0000000002'.

    ls_entrysheetservices-ext_line = '0000000020'.

    ls_entrysheetservices-service = '3000236'.

    ls_entrysheetservices-quantity = '1.0000'.

    ls_entrysheetservices-base_uom = 'AU'.

    ls_entrysheetservices-gr_price = '90,000.00'.

    ls_entrysheetservices-short_text = 'TRAVEL CHARGES FOR IT CONSULTANT'.

    ls_entrysheetservices-pln_pckg = '0000111450'.

    ls_entrysheetservices-pln_line = '0000000003'.

    append ls_entrysheetservices to lt_entrysheetservices.

    clear: ls_entrysheetservices,ls_ses_crt_itm.

    call function 'BAPI_ENTRYSHEET_CREATE'

    exporting entrysheetheader = ls_entrysheetheader

    testrun = 'X'

    importing entrysheet = lv_entrysheet

    tables entrysheetservices = lt_entrysheetservices

    return = lt_return.

    Add comment
    10|10000 characters needed characters exceeded