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

Problem with BAPI_ENTRYSHEET_CREATE

Former Member
0 Likes
2,630

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,243

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

Read only

Former Member
0 Likes
1,243

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

Read only

0 Likes
1,243

Looks like you are still missing out population of the PLN_PCKG field?

Sudha

Read only

Former Member
0 Likes
1,243

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

Read only

Former Member
0 Likes
1,243

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