‎2007 Apr 13 8:17 AM
Hi All,
When my program is trying to accept a Service Entry Sheet, which is created using BAPI_ENTRYSHEET_CREATE, it is displaying an error 'Error in updating'.
I read somewhere in this forum that to overcome this problem, we have to decacivate a user exit on ML81N. Could anyone tell me what exactly is that user exit?
Regards,
Vinny
‎2007 Apr 13 9:39 AM
Not sure abt the exit, but the time I faced that error, it was because I had not populated the fields correctly. Please make sure that the Outline number (OUTL_NO), Plan package (PLN_PCKG) and line number (PLN_LINE) are populated on the line item.
Also make sure that the service header line exists, with extrow 0.
Hope this helps.
Sudha
‎2007 Apr 13 10:11 AM
Hi,
Thanks a lot for the reply.
Still im not able to clear the error 'Error during update'.
Im passing following parameters to BAPI_ENTRYSHEET_CREATE.
Refresh iEsll.
Refresh iEskn.
***To populate Header Data of Entry Sheet
Clear wEssr.
wEssr-po_number = wSes-ebeln.
wEssr-po_item = wSes-ebelp.
wEssr-short_text = wSes-txz01.
wEssr-location = wSes-dlort.
wEssr-person_int = sy-uname.
wEssr-pckg_no = 1.
wEssr-doc_date = sy-datum.
wEssr-post_date = sy-datum.
wEssr-acceptance = cX.
wEssr-fin_entry = cX.
***To populate Services Data of Entry Sheet
Clear wEsll.
wEsll-pckg_no = 1.
wEsll-line_no = 1.
wEsll-ext_line = 0.
wEsll-outl_level = '0'.
wEsll-outl_no = '1'.
wEsll-outl_ind = cX.
wEsll-subpckg_no = c2.
wEsll-pln_line = 123.
wEsll-short_text = wSes-ktext1.
wEsll-quantity = wSes-menge.
wEsll-base_uom = wSes-meins.
wEsll-gr_price = wSes-tbtwr.
wEsll-tax_code = wSes-mwskz.
Append wEsll To iEsll.
***To populate Account Assignment Data of Entry Sheet
Clear wEskn.
wEskn-pckg_no = '1'.
wEskn-network = wSes-nplnr.
wEskn-activity = wSes-vornr.
wEskn-gl_account = wSes-sakto.
Append wEskn To iEskn.
Could you please let me know where i am doing wrong.
Thanks once again.
Regards,
Vinny
‎2007 Apr 13 10:26 AM
Looks like you are still missing out population of the PLN_PCKG field?
Sudha
‎2007 Apr 16 6:32 AM
Hi,
Still im not able to update the status of Service Entry Sheet to 'Accept'.
The fm bapi_entrysheet_create returns the Entry Sheet number, but it also returns the message 'Error during update'. Please let me know whether there is any other way to accept the Service Entry Sheet.
Regards,
Vinny
‎2007 Oct 09 8:53 AM
Hi all,
I have the same issue. I can create a entry sheet with the bapi BAPI_ENTRYSHEET_CREATE and get it accepted using the flag BAPIESSRC-ACCEPTANCE of the header.
But after use the enhancement SRVEDIT in order to do a custom validation i get the following error during the creation of the entry sheet: "E SE 214 Error during update".
Anybody has solved the issue? Anyone knows another user exit to use in the moment of save the changes of the entry sheet?
Thanks and regards,
Aaron