Application Development 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: 

BAPI_ENTRYSHEET_CREATE

Former Member
0 Kudos

Hi

I am trying to create service entry sheet using BAPI_ENTRYSHEET_CREATE, but it is creating only header of the service sheet and not the line items. It also gives me an error message saying 'Error in Update'.

Please tell me if there is any other bapi to be used for creating the line items or this bapi will suffice.

Thanks & Regards

Deepti

4 REPLIES 4

messier31
Active Contributor
0 Kudos

Hi Deepti,

Just to confirm are you passing entries in table parameter

ENTRYSHEETSERVICES

ENTRYSHEETSRVACCASSVALUES

waiting for your input

Former Member
0 Kudos

Hi Pankaj

Yes, I am passing values in ENTRYSHEETSERVICES &

ENTRYSHEETSRVACCASSVALUES.

Waiting for ur reply

Thanks & Regards

Deepti

Former Member
0 Kudos

Populating header structure

lw_header-po_number = lw_final-ebeln.

lw_header-po_item = lw_final-ebelp.

lw_header-acceptance = lw_final-acceptance.

lw_header-fin_entry = lw_final-fin_indi. (*only if it is the final entry sheet for that line item )

lw_header-doc_date = sy-datum.

lw_header-post_date = sy-datum.

lw_header-short_text = lw_final-txz01.

lw_header-pckg_no = lw_final-packno.

  • Populating table services

  • Line one

lw_bapiesllc-pckg_no = lw_final-packno.

lw_bapiesllc-line_no = c_line_no.

lw_bapiesllc-outl_ind = c_outl_ind.

lw_bapiesllc-subpckg_no = lw_final-hpackno.

APPEND lw_bapiesllc TO li_bapiesllc.

CLEAR: lw_bapiesllc.

  • Line two

lw_bapiesllc-pckg_no = lw_final-hpackno.

lw_bapiesllc-line_no = c_line_no + 1.

lw_bapiesllc-ext_line = c_line_no.

lw_bapiesllc-service = lw_final-srvpos.

lw_bapiesllc-matl_group = lw_final-matkl.

lw_bapiesllc-quantity = lw_final-menge.

APPEND lw_bapiesllc TO li_bapiesllc.

CLEAR: lw_bapiesllc.

use the statement SET UPDATE TASK LOCAL b4 u call the bapi so that the particular service order does not get locked when passing mulitiple line for the same PO .

any clarifications mail me. make sure that the account assignment is done during the PO creation else u need pass it here in tables eskl

Former Member
0 Kudos

Deepti, Did you resolove this issue? We are having the same problem in our system. BAPI creates the header, no lines. And we cannot find the problem.