06-15-2022 6:23 AM
Hello Folks,
Which parameters are mandatory for passing to BAPI_ENTRYSHEET_CREATE in order to create and accept the service entry sheet. I have set 'X' indicator for acceptance at header level. Below are the entries which I am passing
but when I execute the BAPI it shows error.
If I remove the Acceptance indicator then service entry sheet gets created but services are not copied/adopted in SES.
Please advice
Regards,
P
06-15-2022 6:42 AM
Hi Please follow the following example. The working code from me.
You need to pass these values minimum to have successful commit.
Header
wa_header-po_number = po_items-po_number.
wa_header-po_item = po_items-po_item.
wa_header-short_text = po_items-short_text.
wa_header-pckg_no = 1.
wa_header-acceptance = 'X'.
wa_header-ref_doc_no = zmkph-xblnr_ro.
wa_header-doc_date = sy-datum.
wa_header-post_date = sy-datum.
Tables
i_esaa-gl_account = wa_ekkn-sakto. "'0005402000'.
i_esaa-costcenter = wa_ekkn-kostl. "'0002110101'.
ppend i_esaa.
bapi_esll-pckg_no = 1.
bapi_esll-line_no = line_no.
bapi_esll-outl_level = '0'.
bapi_esll-outl_ind = 'X'.
bapi_esll-subpckg_no = 2.
APPEND bapi_esll.
CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
EXPORTING
entrysheetheader = wa_header
testrun = ' '
IMPORTING
entrysheet = ws_entrysheet_no
TABLES
entrysheetaccountassignment = i_esaa
entrysheetservices = bapi_esll
entrysheetsrvaccassvalues = i_service_acc
return = i_return
entrysheetservicestexts = i_service_text.
Regards,
Venkat
06-15-2022 9:48 AM
Hello Venkat,
I have tried using input suggested by you but still I am getting the same error.
06-15-2022 10:15 AM
Are you executing it in SE37 directly?
However, Please take care on
Line No
Package number relations..
06-15-2022 11:11 AM
Yes I am executing SE37 directly.
Kindly let me know what is relation between
Line No
Package number.