<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069724#M1355352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too difficult for me to see the problem. Could you check your parameters against the detailed description of the [BAPI_ENTRYSHEET_CREATE wiki|http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATE&lt;EM&gt;with&lt;/EM&gt;mulit-accounting]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Sep 2009 17:56:07 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2009-09-14T17:56:07Z</dc:date>
    <item>
      <title>BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069719#M1355347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the question was already posted before but since I haven't found the answer to it, here it is again.&lt;/P&gt;&lt;P&gt;We need to create a new service entry sheet and we are using the FM BAPI_ENTRYSHEET_CREATE. It is important to remark that the field header-acceptance should be EMPTY. We are passing all the tables and it is creating the entry sheet, but the thing is that it's creating it without any service item.&lt;/P&gt;&lt;P&gt;So if anyone knows how to fix this I would really appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 13:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069719#M1355347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069720#M1355348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you passed all three table parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We create a service entrysheet with line items with saved status. Probably you might missing some fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_ENTRYSHEET_CREATE'                            &lt;/P&gt;&lt;P&gt;     exporting  entrysheetheader            = w_header            &lt;/P&gt;&lt;P&gt;                testrun                     = testrun             &lt;/P&gt;&lt;P&gt;                no_commit                   =  testrun           &lt;/P&gt;&lt;P&gt;     importing  entrysheet                  = w_sheet_no     &lt;/P&gt;&lt;P&gt;     tables     entrysheetservices          = i_services             &lt;/P&gt;&lt;P&gt;                entrysheetaccountassignment = i_accountasignment           &lt;/P&gt;&lt;P&gt;                entrysheetsrvaccassvalues   = i_srvaccess&lt;/P&gt;&lt;P&gt;                return                      = i_return.             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 14:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069720#M1355348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069721#M1355349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your replay, yes we are passing all three tabs and still the entry sheet is created without service line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 14:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069721#M1355349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T14:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069722#M1355350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is probably how you fill the parameters, so could you explain what fields you fill with what value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 15:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069722#M1355350</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-14T15:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069723#M1355351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how we fill the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
w_header-po_number = w_po_items-po_number.
w_header-po_item = w_po_items-po_item.
w_header-begdate = sy-datum.
w_header-enddate = sy-datum.
w_header-pckg_no = '1'.
w_header-person_int = sy-uname.
w_header-person_ext = sy-uname.
w_header-short_text = 'Sample'.  
w_header-accasscat  = 'K'.
w_header-doc_date = sy-datum.
w_header-post_date = sy-datum.
w_header-ref_doc_no = 'Sample'.
w_header-ref_doc_no_long = 'Sample'.
*REMEMBER WE DO NOT WANT THE FIELD ACCEPTANCE = X.

* Assume we read first line of table ESLL for that PO item
w_bapi_esll-pckg_no = 1.
w_bapi_esll-line_no = line_no.
w_bapi_esll-outl_level = '0'.
w_bapi_esll-outl_ind = 'X'.
w_bapi_esll-subpckg_no = '2'.
w_bapi_esll-quantity = w_po_services-quantity.
APPEND w_bapi_esll
    TO i_bapi_esll.

w_account_values-line_no = line_no. 
w_account_values-serial_no = '1'.
w_account_values-quantity = w_po_services-quantity.
APPEND w_account_values to i_bapi_eskl.

* Assume we read the following lines of ESLL
  line_no = line_no + 1.

  CLEAR w_bapi_esll.
  w_bapi_esll-pckg_no = '2'.
  w_bapi_esll-line_no = line_no.
  w_bapi_esll-service = w_po_services-service.
  w_bapi_esll-quantity = w_po_services-quantity.
  w_bapi_esll-gr_price = w_po_services-gr_price.
  w_bapi_esll-price_unit = w_po_services-price_unit.
  w_bapi_esll-short_text = w_po_services-short_text.
  w_bapi_esll-outl_ind = space.
  w_bapi_esll-pln_pckg = '2'.
  w_bapi_esll-pln_line = line_no.

  APPEND w_bapi_esll
      TO i_bapi_esll.

w_account_values-line_no = line_no. 
w_account_values-serial_no = '1'.
w_account_values-quantity = w_po_services-quantity.
APPEND w_account_values to i_bapi_eskl.

* Assume we read the line in table EKKN
  w_bapi_eskn-costcenter = w_ekkn-kostl.
  w_bapi_eskn-gl_account = w_ekkn-sakto.
  w_bapi_eskn-order      = w_ekkn-ebeln.
  w_bapi_eskn-pckg_no    = '1'.  
  w_bapi_eskn-serial_no  = '1'.
  APPEND w_bapi_eskn to i_bapi_eskn.


CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
  EXPORTING
    entrysheetheader    = w_header
    testrun                 = space
  IMPORTING
    entrysheet           = v_entrysheet_no
  TABLES
    entrysheetaccountassignment = i_bapi_eskn
    entrysheetservices                  = i_bapi_esll
    entrysheetsrvaccassvalues    = i_bapi_eskl
    return                                        = i_bapi_return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 17:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069723#M1355351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-14T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE creates sheet without service line.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069724#M1355352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Too difficult for me to see the problem. Could you check your parameters against the detailed description of the [BAPI_ENTRYSHEET_CREATE wiki|http://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATE&lt;EM&gt;with&lt;/EM&gt;mulit-accounting]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2009 17:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-creates-sheet-without-service-line/m-p/6069724#M1355352</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-09-14T17:56:07Z</dc:date>
    </item>
  </channel>
</rss>

