<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582201#M262601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;Short text is one of the mandatory field to create the entry sheet. If that is not provided u can use the same short text of the PO (Ask the functional consultant regarding this). Whenever the entries are created it will be stored in ESSR table, so check any old value are there in that table and work accordingly. &lt;/P&gt;&lt;P&gt;          Also first goto transaction ML81N and create a entry sheet manually using the data provided. You u can't able to do that ask ur FC to create an entry sheet with the data provided. Also morining I sent u a sample code. Check that code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;REPORT  ypra_sample42.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_header TYPE bapiessrc,&lt;/P&gt;&lt;P&gt;      i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ws_entrysheet_no TYPE bapiessr-sheet_no,&lt;/P&gt;&lt;P&gt;      i_service TYPE bapiesllc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_service_acc TYPE bapiesklc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_service_text TYPE bapieslltx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_account TYPE bapiesknc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ws_pack_no TYPE packno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_po TYPE bapiekko-po_number,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      po_items TYPE bapiekpo OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      po_services TYPE bapiesll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_po_header OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapiekkol.&lt;/P&gt;&lt;P&gt;DATA: END OF wa_po_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bapi_return_po OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapireturn.&lt;/P&gt;&lt;P&gt;DATA: END OF bapi_return_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: serial_no LIKE bapiesknc-serial_no,&lt;/P&gt;&lt;P&gt;      line_no   LIKE bapiesllc-line_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: bapi_esll LIKE bapiesllc OCCURS 1&lt;/P&gt;&lt;P&gt;                WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_po = '4300000066'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PO_GETDETAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    purchaseorder    = ws_po&lt;/P&gt;&lt;P&gt;    items            = 'X'&lt;/P&gt;&lt;P&gt;    services         = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    po_header        = wa_po_header&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    po_items         = po_items&lt;/P&gt;&lt;P&gt;    po_item_services = po_services&lt;/P&gt;&lt;P&gt;    return           = bapi_return_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_header-po_number = po_items-po_number.&lt;/P&gt;&lt;P&gt;wa_header-po_item = po_items-po_item.&lt;/P&gt;&lt;P&gt;wa_header-short_text = 'Sample'.&lt;/P&gt;&lt;P&gt;wa_header-acceptance = 'X'.&lt;/P&gt;&lt;P&gt;wa_header-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;wa_header-post_date = sy-datum.&lt;/P&gt;&lt;P&gt;wa_header-pckg_no = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;serial_no = 0.&lt;/P&gt;&lt;P&gt;line_no = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bapi_esll-pckg_no = 1.&lt;/P&gt;&lt;P&gt;bapi_esll-line_no = line_no.&lt;/P&gt;&lt;P&gt;bapi_esll-outl_level = '0'.&lt;/P&gt;&lt;P&gt;bapi_esll-outl_ind = 'X'.&lt;/P&gt;&lt;P&gt;bapi_esll-subpckg_no = 2.&lt;/P&gt;&lt;P&gt;APPEND bapi_esll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT po_services WHERE NOT short_text IS INITIAL.&lt;/P&gt;&lt;P&gt;  line_no = line_no + 1.&lt;/P&gt;&lt;P&gt;  CLEAR bapi_esll.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MOVE-CORRESPONDING po_services TO bapi_esll.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; bapi_esll-gr_price = '456'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  bapi_esll-pckg_no = 2.&lt;/P&gt;&lt;P&gt;  bapi_esll-line_no = line_no.&lt;/P&gt;&lt;P&gt;  bapi_esll-service = po_services-service.&lt;/P&gt;&lt;P&gt;  bapi_esll-quantity = po_services-quantity.&lt;/P&gt;&lt;P&gt;  bapi_esll-gr_price = po_services-gr_price.&lt;/P&gt;&lt;P&gt;  bapi_esll-price_unit = po_services-price_unit.&lt;/P&gt;&lt;P&gt;  APPEND bapi_esll.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    entrysheetheader                  = wa_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  testrun                           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    entrysheet                        = ws_entrysheet_no&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENTRYSHEETACCOUNTASSIGNMENT       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   entrysheetservices                = bapi_esll&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  entrysheetsrvaccassvalues         = i_service_acc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    return                            = i_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  entrysheetservicestexts           = i_service_text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENTRYSHEETHEADERTEXT              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                         .&lt;/P&gt;&lt;P&gt;break gbpra8.&lt;/P&gt;&lt;P&gt;LOOP AT i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_wait TYPE bapita-wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_wait = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    wait = ws_wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2006 15:32:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-18T15:32:13Z</dc:date>
    <item>
      <title>BAPI_ENTRYSHEET_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582200#M262600</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;Now i have the requrement to create Service Entry Sheet using the data&lt;/P&gt;&lt;P&gt;1) Purchase Order Number&lt;/P&gt;&lt;P&gt;2) Activity Number&lt;/P&gt;&lt;P&gt;3) Rate&lt;/P&gt;&lt;P&gt;4) Quantity&lt;/P&gt;&lt;P&gt;5) Ext_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other data is given to me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while creating the SES using the above values Iam getting the message 'Short text and number of outline not maintained'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since Iam using this function module first time, iam not understanding it properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:18:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582200#M262600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582201#M262601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;Short text is one of the mandatory field to create the entry sheet. If that is not provided u can use the same short text of the PO (Ask the functional consultant regarding this). Whenever the entries are created it will be stored in ESSR table, so check any old value are there in that table and work accordingly. &lt;/P&gt;&lt;P&gt;          Also first goto transaction ML81N and create a entry sheet manually using the data provided. You u can't able to do that ask ur FC to create an entry sheet with the data provided. Also morining I sent u a sample code. Check that code too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;REPORT  ypra_sample42.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_header TYPE bapiessrc,&lt;/P&gt;&lt;P&gt;      i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ws_entrysheet_no TYPE bapiessr-sheet_no,&lt;/P&gt;&lt;P&gt;      i_service TYPE bapiesllc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_service_acc TYPE bapiesklc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_service_text TYPE bapieslltx OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      i_account TYPE bapiesknc OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ws_pack_no TYPE packno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_po TYPE bapiekko-po_number,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      po_items TYPE bapiekpo OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      po_services TYPE bapiesll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa_po_header OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapiekkol.&lt;/P&gt;&lt;P&gt;DATA: END OF wa_po_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF bapi_return_po OCCURS 1.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE bapireturn.&lt;/P&gt;&lt;P&gt;DATA: END OF bapi_return_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: serial_no LIKE bapiesknc-serial_no,&lt;/P&gt;&lt;P&gt;      line_no   LIKE bapiesllc-line_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: bapi_esll LIKE bapiesllc OCCURS 1&lt;/P&gt;&lt;P&gt;                WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_po = '4300000066'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PO_GETDETAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    purchaseorder    = ws_po&lt;/P&gt;&lt;P&gt;    items            = 'X'&lt;/P&gt;&lt;P&gt;    services         = 'X'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    po_header        = wa_po_header&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    po_items         = po_items&lt;/P&gt;&lt;P&gt;    po_item_services = po_services&lt;/P&gt;&lt;P&gt;    return           = bapi_return_po.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_header-po_number = po_items-po_number.&lt;/P&gt;&lt;P&gt;wa_header-po_item = po_items-po_item.&lt;/P&gt;&lt;P&gt;wa_header-short_text = 'Sample'.&lt;/P&gt;&lt;P&gt;wa_header-acceptance = 'X'.&lt;/P&gt;&lt;P&gt;wa_header-doc_date = sy-datum.&lt;/P&gt;&lt;P&gt;wa_header-post_date = sy-datum.&lt;/P&gt;&lt;P&gt;wa_header-pckg_no = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;serial_no = 0.&lt;/P&gt;&lt;P&gt;line_no = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bapi_esll-pckg_no = 1.&lt;/P&gt;&lt;P&gt;bapi_esll-line_no = line_no.&lt;/P&gt;&lt;P&gt;bapi_esll-outl_level = '0'.&lt;/P&gt;&lt;P&gt;bapi_esll-outl_ind = 'X'.&lt;/P&gt;&lt;P&gt;bapi_esll-subpckg_no = 2.&lt;/P&gt;&lt;P&gt;APPEND bapi_esll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT po_services WHERE NOT short_text IS INITIAL.&lt;/P&gt;&lt;P&gt;  line_no = line_no + 1.&lt;/P&gt;&lt;P&gt;  CLEAR bapi_esll.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MOVE-CORRESPONDING po_services TO bapi_esll.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; bapi_esll-gr_price = '456'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  bapi_esll-pckg_no = 2.&lt;/P&gt;&lt;P&gt;  bapi_esll-line_no = line_no.&lt;/P&gt;&lt;P&gt;  bapi_esll-service = po_services-service.&lt;/P&gt;&lt;P&gt;  bapi_esll-quantity = po_services-quantity.&lt;/P&gt;&lt;P&gt;  bapi_esll-gr_price = po_services-gr_price.&lt;/P&gt;&lt;P&gt;  bapi_esll-price_unit = po_services-price_unit.&lt;/P&gt;&lt;P&gt;  APPEND bapi_esll.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    entrysheetheader                  = wa_header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  testrun                           = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    entrysheet                        = ws_entrysheet_no&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENTRYSHEETACCOUNTASSIGNMENT       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   entrysheetservices                = bapi_esll&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  entrysheetsrvaccassvalues         = i_service_acc&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    return                            = i_return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  entrysheetservicestexts           = i_service_text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENTRYSHEETHEADERTEXT              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                                         .&lt;/P&gt;&lt;P&gt;break gbpra8.&lt;/P&gt;&lt;P&gt;LOOP AT i_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_wait TYPE bapita-wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_wait = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    wait = ws_wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582201#M262601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582202#M262602</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;what ever the fields u r using in the bapi structure check whether there are any conversion routines and which fields are mandatory...I think u know the basic funda in  function module to see which fields are mandatory and which fields are not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Njoy SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravi Vardhan Ganji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 15:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create/m-p/1582202#M262602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-18T15:45:51Z</dc:date>
    </item>
  </channel>
</rss>

