Contract service account assignment K
When creating a service contract it is compulsory to enter an account assignment category. Why is it necessary to enter account assignment category K (cost centre) when the expenditure will be effectuated when creating contract release purchase orders and not when creating a contract.
Hi,
The standard Account assignment category "U" is NOT ALLOWED on POs.
Someone MAY have changed the settings on your account assignment category "U" (in which case it is no longer an unknown account assignment category, it is simply a known one with a key of "U".
Are you saying that you already use account assignment category "U" on POs?
If so please check the following
Go to SPRO MM > Purchasing > Account assignment > Maintain account assignment categories and click on the details for account assignment category "U". Then check the content of the "consumption posting" field. This should be "U", if it has been changed to "v" then it is no longer standard.
Steve B
Similar Messages
-
Dear all,
I mistakenly gave wrong gl account when i created a service po and i have also done service entry sheet. So what i did was i revoked the service entry sheet and deleted the same. So when i came to the same service PO and tried to change the GL account, it was in grey colour. I am unable to change. Please suggest me how i can change the gl account?
Thanks & Regards,
A.Anandarajan.hi,
You cann't change the GL Account,once you have made the Service PO.The best way is that you must delete the item line through Tcode ME22N, by selecting that row and by clicking on delete button,then create a new line or create a new Service PO and then enter the correct GL account,then save that service PO And proceed further.
Regards
Manish Joshi -
While doing service in service po we get account assignment error pls help
while doing services in service po we get error account assignment error (se181) pls help to resolve
Hi,
a service line can be never saved WITHOUT the account assignment details (except acc. ***. category U in in the PO item).
In case the table ESLL will have entry but the accounting tables eskl has got no entry or has entries with deletion flag, it would be an inconsistent situation.
You can set on the screen SAPLMLSK 0200 the deletion flag (ESKL-LOEKZ) for your service account assignment, but without entering a new account assignment information the system would not allow you to leave this screen. When you set the deletion flag for service line in the account assignment detail screen, you must enter right afterwards a new account assignment information in order to leave the screen without the error message 06 408.
Regards,
Edit -
Service PO Account assignment Error
Hello All
We have created Service PO with 10 line items ( Cost centre K ) & Deleted all the line & again restored the same but in service line deletion indicator is still there in each line.
During removal of deletion indicator it is giving error Please specify valid account assignment, for all the line items account assignment is there & cost centre & GL account is given
Please suugest
Regards
RajeshHi,
a service line can be never saved WITHOUT the account assignment details (except acc. ***. category U in in the PO item).
In case the table ESLL will have entry but the accounting tables eskl has got no entry or has entries with deletion flag, it would be an inconsistent situation.
You can set on the screen SAPLMLSK 0200 the deletion flag (ESKL-LOEKZ) for your service account assignment, but without entering a new account assignment information the system would not allow you to leave this screen. When you set the deletion flag for service line in the account assignment detail screen, you must enter right afterwards a new account assignment information in order to leave the screen without the error message 06 408.
Regards,
Edit -
Multiple Account Assignment issue with BAPI_PO_CREATE1 for service POs
Whle creating service PO through BAPI_PO_CREATE1, The account assignments at the service line items were not being added correctly at the item level, instead they are getting split further wrt tax jurisdiction. This is occuring when an item have multiple service line items with mutltiple account assignments.
The sample code is below, and the all the internal tables and structure were related to BAPI_PO_CREATE1. Tried with BADI ME_TAX_FROM_ADDRESS and User Exit enhancement SAPL2012, which were not helpful for this particular scenario.
Item Details
W_BAPI_ITEM-PO_ITEM = 1.
W_BAPI_ITEMX-PO_ITEM = 1.
W_BAPI_ITEM-ITEM_CAT = D.
W_BAPI_ITEMX-ITEM_CAT = 'X'.
W_BAPI_ITEM-ACCTASSCAT = K.
W_BAPI_ITEMX-ACCTASSCAT = 'X'.
W_BAPI_ITEM-PLANT = USMP. Tax Jurisdiction code 3604931001
W_BAPI_ITEMX-PLANT = 'X'.
W_BAPI_ITEM-MATL_GROUP = IT37.
W_BAPI_ITEMX-MATL_GROUP = 'X'.
W_BAPI_ITEM-QUANTITY = 1.
W_BAPI_ITEMX-QUANTITY = 'X'.
W_BAPI_ITEM-PRICE_UNIT = 1.
W_BAPI_ITEMX-PRICE_UNIT = 'X'.
W_BAPI_ITEM-PO_UNIT = LE.
W_BAPI_ITEMX-PO_UNIT = 'X'.
W_BAPI_ITEM-NET_PRICE = 100.
W_BAPI_ITEMX-NET_PRICE = 'X'.
W_BAPI_ITEM-PCKG_NO = 3456.
W_BAPI_ITEMX-PCKG_NO = 'X'.
W_BAPI_ITEM-PREQ_NAME = RTPTS02.
W_BAPI_ITEMX-PREQ_NAME = 'X'.
APPEND W_BAPI_ITEM TO IT_BAPI_ITEM.
APPEND W_BAPI_ITEMX TO IT_BAPI_ITEMX.
Delivery address details - Tax Jurisdiction 3305923401
W_BAPI_ADDRDEL-PO_ITEM = 1.
W_BAPI_ADDRDEL-NAME = COR.
W_BAPI_ADDRDEL-NAME_2 = Chairman.
W_BAPI_ADDRDEL-BUILD_LONG = 1001R
W_BAPI_ADDRDEL-CITY = plainview.
W_BAPI_ADDRDEL-STREET = old country road.
W_BAPI_ADDRDEL-POSTL_COD1 = 11803.
W_BAPI_ADDRDEL-COUNTRY = US.
W_BAPI_ADDRDEL-REGION = NY.
APPEND W_BAPI_ADDRDEL TO IT_BAPI_ADDRDEL.
First Account Assignment - 3310300441
W_BAPI_POACNT-SERIAL_NO = 1.
W_BAPI_POACNTX-SERIAL_NO = 1.
W_BAPI_POACNTX-SERIAL_NOX = 'X'.
W_BAPI_POACNT-CREAT_DATE = 11/03/2010.
W_BAPI_POACNTX-CREAT_DATE = 'X'.
W_BAPI_POACNT-QUANTITY = 0.75.
W_BAPI_POACNTX-QUANTITY = 'X'.
W_BAPI_POACNT-DISTR_PERC = 75.
W_BAPI_POACNTX-DISTR_PERC = 'X'.
W_BAPI_POACNT-NET_VALUE = 75 .
W_BAPI_POACNTX-NET_VALUE = 'X'.
W_BAPI_POACNT-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEMX = 'X'.
W_BAPI_POACNT-GL_ACCOUNT = 641099.
W_BAPI_POACNTX-GL_ACCOUNT = 'X'.
W_BAPI_POACNT-COSTCENTER = 10010394.
W_BAPI_POACNTX-COSTCENTER = 'X'.
W_BAPI_POACNT-CO_AREA = 1234.
W_BAPI_POACNTX-CO_AREA = 'X'.
APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
Second Account Assignment
W_BAPI_POACNT-SERIAL_NO = 2.
W_BAPI_POACNTX-SERIAL_NO = 2.
W_BAPI_POACNTX-SERIAL_NOX = 'X'.
W_BAPI_POACNT-CREAT_DATE = 11/03/2010.
W_BAPI_POACNTX-CREAT_DATE = 'X'.
W_BAPI_POACNT-QUANTITY = 0.25.
W_BAPI_POACNTX-QUANTITY = 'X'.
W_BAPI_POACNT-DISTR_PERC = 25.
W_BAPI_POACNTX-DISTR_PERC = 'X'.
W_BAPI_POACNT-NET_VALUE = 25 .
W_BAPI_POACNTX-NET_VALUE = 'X'.
W_BAPI_POACNT-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEM = 1.
W_BAPI_POACNTX-PO_ITEMX = 'X'.
W_BAPI_POACNT-GL_ACCOUNT = 641099.
W_BAPI_POACNTX-GL_ACCOUNT = 'X'.
W_BAPI_POACNT-COSTCENTER = 10010393.
W_BAPI_POACNTX-COSTCENTER = 'X'.
W_BAPI_POACNT-CO_AREA = 1234.
W_BAPI_POACNTX-CO_AREA = 'X'.
APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
Service Item detials
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-SUBPCKG_NO = 3457.
W_BAPI_SERVICE-LINE_NO = 1.
W_BAPI_SERVICE-PCKG_NO = 3456.
W_BAPI_SERVICE-EXT_LINE = 0000000000.
W_BAPI_SERVICE-QUANTITY = 0.
W_BAPI_SERVICE-BASE_UOM = 0.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 0.
W_BAPI_SERVICE-SHORT_TEXT = 0.
W_BAPI_SERVICE-MATL_GROUP = 0.
W_BAPI_SERVICE-DISTRIB = 0.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-LINE_NO = 2.
W_BAPI_SERVICE-PCKG_NO = 3457.
W_BAPI_SERVICE-EXT_LINE = 0000000010.
W_BAPI_SERVICE-QUANTITY = 10.
W_BAPI_SERVICE-BASE_UOM = STD.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 5.
W_BAPI_SERVICE-SHORT_TEXT = Cabling Services1.
W_BAPI_SERVICE-MATL_GROUP = IT37.
W_BAPI_SERVICE-DISTRIB = 2.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
W_BAPI_SERVICE-OUTL_IND = 'X'.
W_BAPI_SERVICE-LINE_NO = 3.
W_BAPI_SERVICE-PCKG_NO = 3457.
W_BAPI_SERVICE-EXT_LINE = 0000000020.
W_BAPI_SERVICE-QUANTITY = 10.
W_BAPI_SERVICE-BASE_UOM = STD.
W_BAPI_SERVICE-PRICE_UNIT = 0.
W_BAPI_SERVICE-GR_PRICE = 5.
W_BAPI_SERVICE-SHORT_TEXT = Cabling Services2.
W_BAPI_SERVICE-MATL_GROUP = IT37.
W_BAPI_SERVICE-DISTRIB = 2.
APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
Service Account assignment details
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 2.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 1. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 100 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 3.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 1. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 50 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
W_ACC_SERVICE-PCKG_NO = 3457.
W_ACC_SERVICE-LINE_NO = 3.
W_ACC_SERVICE-SERNO_LINE = 1.
W_ACC_SERVICE-SERIAL_NO = 2. "Account Assignment Link
W_ACC_SERVICE-NET_VALUE = .
W_ACC_SERVICE-QUANTITY = 50 .
W_ACC_SERVICE-PERCENTAGE = 50 .
APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
EKKN table entries:
When created thru ME21N with the same set of data,which is expected
ZEKKN MENGE NETWR SAKTO KOSTL
01 0.750 75.00 0000641099 0010010394
02 0.250 25.00 0000641099 0010010393
But through BAPI_PO_CREATE1, the below split is being done with respect to Tax Jurisdiction code.
01 0.500 50.00 0000641099 0010010394
02 0.250 25.00 0000641099 0010010394
03 0.250 25.00 0000641099 0010010393
Please advice the solution.
PS: there were different tax jurisdiction codes were being determined.
Plant, Cost Center and Delivery Address.Hi,
To commit BAPI or to run it properly , you need to fulfill all required data for BAPI.
You can go to BAPI documentation to check for mandetory parameters and also check with Function consultant for more data and confifuration/
Reward if useful! -
Hi All,
I'm using BAPI_REQUISITION_CREATE to create the PR . The PR is created successfully with service lines. The service lines for PR item has to be assigned to different account assignment. My problem is that account assignment is not getting assigned to the service line for multiple account assignment cases, instead the account assignment is blank for the sevice line.
Here is part of my code.
For Account Assignment
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-g_l_acct = '0000630010'.
t_requisitionaccoun-cost_ctr = '0801112560'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00010'.
t_requisitionaccoun-serial_no = '02'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
t_requisitionaccoun-preq_item = '00020'.
t_requisitionaccoun-serial_no = '01'.
t_requisitionaccoun-cost_ctr = '0801111710'
t_requisitionaccoun-g_l_acct = '0000610090'.
append t_requisitionaccoun
For Service account Assignment
*<b>PR item 10</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
Service item 2
t_requisitionsrvaccass-pckg_no = '0000000002'.
t_requisitionsrvaccass-line_no = 3.
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '02'
APPEND t_requisitionsrvaccass.
*<b>PR item 20</b>
Service item 1
t_requisitionsrvaccass-pckg_no = '0000000004'.
t_requisitionsrvaccass-line_no = 2. " line 1 is the header for service
t_requisitionsrvaccass-serno_line = '01'.
t_requisitionsrvaccass-quantity = '10'
t_requisitionsrvaccass-serial_no = '01'
APPEND t_requisitionsrvaccass.
With this code, what I get is the blank account assignment for PR item 10 and correctly filled account assignment for PR item 20.
Does anyone done this before and can give me some help. Thanks.Hi, can you send me an example of this BAPI.
I have the same requeriment, i'm new with bapis
thanks -
Hi,
Currently I'm facing an error "In case of account assignment, please enter acc. assignment data for item" when create a Purchase Order using BAPI_PO_CREATE1. The condition of the data that need to pump into the system is that this PO is an open item PO where does not require a metarial code for input, but it will pump in Short Text and Material Group. Other than that, the account assignment category is "K" and the item category is "9".
Below is the coding that I have implemented.
IF wa_temp_upr1-waers IS NOT INITIAL.
MOVE wa_temp_upr1-waers TO wa_header-currency.
wa_headerx-currency = abap_true.
ENDIF.
MOVE: wa_temp_upr1-lifnr TO wa_header-vendor,
wa_temp_upr1-unsez TO wa_header-collect_no,
wa_temp_upr1-bukrs TO wa_header-comp_code,
sy-datum TO wa_header-doc_date,
sy-langu TO wa_header-langu,
'KTN1' TO wa_header-purch_org,
wa_temp_upr1-bkgrp TO wa_header-pur_group,
wa_temp_upr1-zterm TO wa_header-pmnttrms.
wa_headerx-collect_no = abap_true.
wa_headerx-po_number = abap_true.
wa_headerx-comp_code = abap_true.
wa_headerx-vendor = abap_true.
wa_headerx-doc_date = abap_true.
wa_headerx-langu = abap_true.
wa_headerx-purch_org = abap_true.
wa_headerx-pur_group = abap_true.
wa_headerx-pmnttrms = abap_true.
IF wa_temp_upr1-meins IS NOT INITIAL.
MOVE wa_temp_upr1-meins TO zunit_e.
CALL FUNCTION 'CONVERSION_EXIT_CUNIT_INPUT'
EXPORTING
INPUT = zunit_e
LANGUAGE = 'E'
IMPORTING
OUTPUT = zunit_e.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ELSE.
MOVE zunit_e TO wa_temp_upr1-meins.
ENDIF.
MODIFY it_upr1 FROM wa_temp_upr1.
ENDIF.
ADD 10 TO line_item.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'SERVICE'
IMPORTING
NUMBER = pckg_no.
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_temp_upr1-matnr
IMPORTING
OUTPUT = wa_po_item-material.
MOVE: line_item TO wa_po_item-po_item,
wa_temp_upr1-ewerks TO wa_po_item-plant,
wa_temp_upr1-lgort TO wa_po_item-stge_loc,
wa_temp_upr1-matnr TO wa_po_item-material,
wa_temp_upr1-menge TO wa_po_item-quantity,
wa_temp_upr1-peinh TO wa_po_item-price_unit,
wa_temp_upr1-netpr TO wa_po_item-net_price,
wa_temp_upr1-meins TO wa_po_item-po_unit,
wa_temp_upr1-afnam TO wa_po_item-preq_name,
wa_temp_upr1-eeind TO wa_po_item-price_date,
' ' TO wa_po_item-gr_ind,
'X' TO wa_po_item-ir_ind,
'X' TO wa_po_item-prnt_price,
' ' TO wa_po_item-distrib.
wa_po_item-acctasscat = 'K'.
MOVE pckg_no TO wa_po_item-pckg_no.
wa_po_itemx-pckg_no = abap_true.
IF wa_temp_upr1-bismt IS INITIAL.
MOVE: wa_temp_upr1-short_text TO wa_po_item-short_text,
wa_temp_upr1-matl_group TO wa_po_item-matl_group,
'9' TO wa_po_item-item_cat.
wa_po_itemx-short_text = abap_true.
wa_po_itemx-matl_group = abap_true.
wa_po_itemx-item_cat = abap_true.
wa_potext-po_item = wa_po_item-po_item.
wa_potext-text_id = 'F01'.
APPEND wa_potext TO it_potext.
ENDIF.
MOVE wa_po_item-po_item TO wa_po_itemx-po_item.
wa_po_itemx-plant = abap_true.
wa_po_itemx-po_itemx = abap_true.
wa_po_itemx-stge_loc = abap_true.
IF wa_po_item-material IS NOT INITIAL.
wa_po_itemx-material = abap_true.
ENDIF.
wa_po_itemx-quantity = abap_true.
wa_po_itemx-price_unit = abap_true.
wa_po_itemx-net_price = abap_true.
wa_po_itemx-po_unit = abap_true.
wa_po_itemx-preq_name = abap_true.
wa_po_itemx-price_date = abap_true.
wa_po_itemx-acctasscat = abap_true.
wa_po_itemx-gr_ind = abap_true.
wa_po_itemx-distrib = abap_true.
wa_po_itemx-part_inv = abap_true.
APPEND wa_po_item TO it_item.
APPEND wa_po_itemx TO it_itemx.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = wa_temp_upr1-kostl
IMPORTING
OUTPUT = wa_temp_upr1-kostl.
wa_account-costcenter = wa_temp_upr1-kostl.
ADD 1 TO l_acc.
ADD 10 TO v_po_item.
MOVE v_po_item TO wa_account-po_item.
MOVE '01' TO wa_account-serial_no.
APPEND wa_account TO it_account.
wa_accountx-costcenter = abap_true.
MOVE v_po_item TO wa_accountx-po_item.
MOVE '01' TO wa_accountx-serial_no.
wa_accountx-SERIAL_NOX = abap_true.
wa_accountx-po_itemx = abap_true.
APPEND wa_accountx TO it_accountx.
*********** services
wa_services-pckg_no = pckg_no.
wa_services-line_no = '0000000001'.
wa_services-outl_ind = 'X'.
wa_services-subpckg_no = pckg_no + 1.
wa_services-quantity = wa_temp_upr1-menge.
wa_services-base_uom = wa_temp_upr1-meins.
wa_services-price_unit = wa_temp_upr1-peinh.
wa_services-gr_price = wa_temp_upr1-netpr.
IF wa_temp_upr1-short_text IS NOT INITIAL.
wa_services-short_text = wa_temp_upr1-short_text.
ENDIF.
APPEND wa_services TO it_services.
CLEAR: wa_services,
val_lin.
wa_services-pckg_no = pckg_no + 1.
wa_services-line_no = '0000000002'.
wa_services-quantity = wa_temp_upr1-menge.
wa_services-base_uom = wa_temp_upr1-meins.
wa_services-price_unit = wa_temp_upr1-peinh.
wa_services-gr_price = wa_temp_upr1-netpr.
IF wa_temp_upr1-short_text IS NOT INITIAL.
wa_services-short_text = 'SERVICE 1'.
ENDIF.
IF NOT wa_temp_upr1-matl_group IS INITIAL.
wa_services-matl_group = wa_temp_upr1-matl_group.
ENDIF.
APPEND wa_services TO it_services.
************* service account assignment
wa_services_acc-pckg_no = pckg_no + 1.
wa_services_acc-line_no = '0000000002'.
wa_services_acc-serno_line = '01'.
wa_services_acc-quantity = wa_temp_upr1-menge.
wa_services_acc-serial_no = '01'.
wa_services_acc-net_value = wa_temp_upr1-netpr.
APPEND wa_services_acc TO it_services_acc.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
POHEADER = wa_header
POHEADERX = wa_headerx
TESTRUN = pa_test
NO_PRICE_FROM_PO = 'X'
IMPORTING
EXPPURCHASEORDER = va_ebeln
EXPHEADER = wa_expheader
TABLES
RETURN = it_return
POITEM = it_item
POITEMX = it_itemx
POACCOUNT = it_account
POACCOUNTX = it_accountx
POSERVICES = it_services
POSRVACCESSVALUES = it_services_acc
POTEXTITEM = it_potext.
I have done some search regarding this error and try to implemented it, but still does not working.
example website that i found for this error is:
David Klein's Corner: SAP Purchase Order Creation Error via BAPI - "In case of account assignment, please enter acc…
PO Upload through BAPI_PO_CREATE1 - Problem in Service Item
Currently my system is using: SAP_APPL SAPKH60604
I am really stuck on this error. Hope you all can help me on this matter.
Thanks.Hi,
Filling the service line have the problem,
while filling the services we must follow correct order,
Here You entering the new services, first manually create purchase order after that observe the table
'ESLL' and use the FM;-' MS_FETCH_SPEC_FOR_LIST' how the services are inserting after that you also follow the same order.
if service entries are created before the creation of the PO.
then follow as bellow....
SELECT * FROM esll INTO TABLE lt_esll WHERE packno = wa_tmp_spec-packno.
IF sy-subrc = '0'.
LOOP AT lt_esll.
CLEAR : lt_poservices.
lt_poservices-pckg_no = lt_esll-packno .
lt_poservices-line_no = lt_esll-introw .
lt_poservices-ext_line = lt_esll-extrow .
lt_poservices-outl_level = lt_esll-rang .
lt_poservices-outl_no = lt_esll-extgroup .
lt_poservices-outl_ind = lt_esll-del .
lt_poservices-subpckg_no = lt_esll-sub_packno .
lt_poservices-service = lt_esll-srvpos .
lt_poservices-edition = lt_esll-ausgb .
lt_poservices-ssc_item = lt_esll-stlvpos .
lt_poservices-ext_serv = lt_esll-extsrvno.
lt_poservices-quantity = lt_esll-menge .
lt_poservices-base_uom = lt_esll-meins .
lt_poservices-ovf_tol = lt_esll-uebto .
lt_poservices-ovf_unlim = lt_esll-uebtk .
lt_poservices-gr_price = lt_esll-tbtwr .
lt_poservices-from_line = lt_esll-frompos .
lt_poservices-to_line = lt_esll-knt_introw.
lt_poservices-short_text = lt_esll-ktext1 .
lt_poservices-distrib = lt_esll-vrtkz .
lt_poservices-pers_no = lt_esll-pernr .
lt_poservices-wagetype = lt_esll-lgart .
lt_poservices-con_pckg = lt_esll-knt_packno.
lt_poservices-con_line = lt_esll-knt_introw .
lt_poservices-matl_group = lt_esll-matkl .
lt_poservices-taxjurcode = lt_esll-txjcd.
lt_poservices-tax_code = lt_esll-mwskz .
lt_poservices-date = lt_esll-sdate .
APPEND lt_poservices TO lt_poservices[].
CLEAR lt_esll.
ENDLOOP.
ENDIF.
CALL FUNCTION 'MS_FETCH_SPEC_FOR_LIST'
EXPORTING
spec_packno = wa_tmp_spec-packno
* ONLINE_DATA = ' '
* IMPORTING
* LIMIT =
TABLES
servicetab = lt_ml_esll1
* LIMITTAB =
EXCEPTIONS
no_specification_exist = 1
OTHERS = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
LOOP AT lt_ml_esll1 INTO DATA(ls_ml_esll1).
CLEAR : lt_poservices.
lt_poservices-pckg_no = ls_ml_esll1-packno .
lt_poservices-line_no = ls_ml_esll1-introw .
lt_poservices-ext_line = ls_ml_esll1-extrow .
lt_poservices-outl_level = ls_ml_esll1-rang .
lt_poservices-outl_no = ls_ml_esll1-extgroup .
lt_poservices-outl_ind = ls_ml_esll1-del .
lt_poservices-subpckg_no = ls_ml_esll1-sub_packno .
lt_poservices-service = ls_ml_esll1-srvpos .
lt_poservices-edition = ls_ml_esll1-ausgb .
lt_poservices-ssc_item = ls_ml_esll1-stlvpos .
lt_poservices-ext_serv = ls_ml_esll1-extsrvno.
lt_poservices-quantity = ls_ml_esll1-menge .
lt_poservices-base_uom = ls_ml_esll1-meins .
lt_poservices-ovf_tol = ls_ml_esll1-uebto .
lt_poservices-ovf_unlim = ls_ml_esll1-uebtk .
lt_poservices-gr_price = ls_ml_esll1-tbtwr .
lt_poservices-from_line = ls_ml_esll1-frompos .
lt_poservices-to_line = ls_ml_esll1-knt_introw.
lt_poservices-short_text = ls_ml_esll1-ktext1 .
lt_poservices-distrib = ls_ml_esll1-vrtkz .
lt_poservices-pers_no = ls_ml_esll1-pernr .
lt_poservices-wagetype = ls_ml_esll1-lgart .
lt_poservices-con_pckg = ls_ml_esll1-knt_packno.
lt_poservices-con_line = ls_ml_esll1-knt_introw .
lt_poservices-matl_group = ls_ml_esll1-matkl .
lt_poservices-taxjurcode = ls_ml_esll1-txjcd.
lt_poservices-tax_code = ls_ml_esll1-mwskz .
lt_poservices-date = ls_ml_esll1-sdate .
APPEND lt_poservices TO lt_poservices[].
CLEAR ls_ml_esll1.
ENDLOOP.
CLEAR : lt_poservices.
*& Filling the po service values internal table from service internal table
LOOP AT lt_poservices[] INTO lt_poservices WHERE gr_price GT 0.
READ TABLE lt_ml_esll1 INTO wa_msll WITH KEY packno = lt_poservices-pckg_no
introw = lt_poservices-line_no
extrow = lt_poservices-ext_line..
IF sy-subrc EQ 0.
CLEAR lt_posvalues.
lt_posvalues-pckg_no = wa_msll-packno.
lt_posvalues-line_no = wa_msll-introw.
lt_posvalues-quantity = wa_msll-menge.
* lt_posvalues-net_value = wa_msll-netwr.
lt_posvalues-serno_line = '01'.
lt_posvalues-serial_no = '01'.
* lt_posvalues-percentage = '100'.
APPEND lt_posvalues TO lt_posvalues[].
CLEAR : wa_msll.
ENDIF.
ENDLOOP.
note:- if it is correct give points -
Error message "SE 518 No account assignment exists for service li ne 000000
Hi All,
Customer is using SRM 7.0 Self-Service procurement
Shopping cart created with multiple service items, once it approved. We get the Error message "SE 518 No account assignment exists for service li ne 0000000000" in Shopping cart Monitor. Could you please help me here why this issue happening.
FYI:- Same user created another shopping cart with same data, this error not occurred. This error is happening a while not regular for the same item ordering.
Could you please help me on this what may be issue here?
Appreciated your help in Advanced.
Cheers
RajHi Raj,
Have you already tried the notes below?
499626 FAQ: BAPIs in the service procurement
1472036 Limit PO with account assignment can not be transferred
1140132 Error SE 518 when creating purchase order with contract
1557395 SE 518 error message for service items during PO creation
1226132 SE518 Error message from back-end system for service item
Best regards,
Christian Zeuch -
BAPI_PO_CHANGE "No account assignment for service 0000010" SE 518 Error
Hi Friends,
I am using BAPI_PO_CHANGE to add new line item with service data to purchase order.
For one scenario BAPI give me above error is "No account assignment for service 0000010" SE 518 .
basically when i pass outline aggrement and contract item to bapi i am getting this error.....according to my observation in outline agrement account assignment is maintain as 'U' but i want to pass outline agrement as 'K' or 'N' so i am passing this into BAPI parameters ,however i feel somewhere it is getting conflict so it giving above error...
Please guide,
Thanks & Regards,
BhaskarHi Seini,
Thanks for reply ..
I have pass contract number to BAPI ....and i also pass cost center and GL account to account assignment but still bapi giving same error.....I am totally stuck into this i tried a lot with different options..for other scenario BAPI works fine but when I pass contract number with account assignment 'U' and I want to change this 'U' to 'K' or 'N' for this I pass account assignment to PO line item but BAPI fails in this perticular scenario. -
SE 518 No account assignment exists for service li ne 0000000000 error
Hello all,
We have raised a Shopping cart for a service with reference to a contract with the account assignments item category "D" and account assignment category "P". the product type is 02 for the service. The shopping cart saves fine however when trying to transfer to create the PO in the backend we are getting the error "SE 518 No account assignment exists for service li ne 0000000000"
we have checked all the notes below:
1064139 already implemented.
1222877 already implemented.
767284 failed to correct the error.
1140132 should be in our system but has been removed by note 1226132. I have checked all the other notes but they do not seem relevant in our scenario. Does anybody have any idea as to how we should solve this problem?
ThanksHi Andrew!
There are other notes related to this issue. Please verify if they can help you.
1244427 SE518 error in external requirement service shoppin
1236355 BAPI_PO_CREATE1:Purchase Order created with ref. to
1226132 SE518 Error message from back-end system for servic
1030206 BAPI: Multiple service type items cannot be created
1398742 Error message SE 518 PO transfer to backend
Best regards,
Christian Zeuch -
BAPI Error: No account assignment exists for service line 0000000000
I am using BAPI : BAPI_PO_CREATE1 to create a PO.
I am getting this error while creating PO "No account assignment exists for service line 0000000000"
Please help.Yes...
for each item i am creating one parent service record and one child service record with REQUISITION_SERVICES.
the Package no for parent is the subpackage no for child.
also for each item, I fill REQUISITION_ACCOUNT_ASSIGNMENT and REQUISITION_SRV_ACCASS_VALUES
Still I get the Error.
Thanks to help me resolve. -
No account assignment exist for service line.
Good Morning
When I try to create a Purchase Order by Shopping Cart created directly in SRM it works normally but when I try to create a Purchase Order by Shopping Cart created based on Purchase Requisition from R/3 it gives me the follow message: "No account assignment exist for service line 10".
I´m in SRM Server 5.5 SP 11 and the R/3 version 4.7.
Someone could help me?
Thanks
Edited by: Victor Hugo Santos Sousa on Jul 4, 2008 3:00 PMtry to use existing package number + 1.
select MAX( packno ) from eban into w_packno where packno NE ' ' .
v_packno = w_packno + '0000000001'.
W_REQUISITION_ITEMS-PCKG_NO = v_packno.
and also ref. link.,
http://wiki.sdn.sap.com/wiki/display/ERPSCM/MM-SRV-ACC+Account+Assignment -
Se518 no account assignment exists for service line
Hi Experts,
We are using SRM701 Patch 04. I am creating a RFx with a limit item then create the purchase order based on the accepted bid. We found the error message SE518 in backend system via /SAPPO/PPO2 when we are using the driver function "/SAPSRM/CL_SOA_ADPT_PO_CRT_ERP". But If I changed the Driver function to "CL_BBP_BS_ADAPTER_PO_CRT_ERP10", it can be created successfully.
Please advise how to fix the issue when we are using /SAPSRM/CL_SOA_ADPT_PO_CRT_ERP. Thanks a lot
regards,
JianHiren,
Every service line will have to be assigned to a G/L account or Cost Center. That is what the error message of the BAPI is.
Pass the required account assignment details in the BAPI and that should get rectified.
Regards,
Ravi
Note : Please reward the posts that are helpful -
hi,
Hello all, please help!! I used function BAPI_PO_CREATE1 to create PO with limit item but function returned message error '518 No account assignment exist for service line 0000000000'. Can anyone give me an idea to slove this problem?
i am passing po header, po headerx, po item , po itemx, po account, po accountx, po limits, po services, po service values, to bapi. if i comment package number in po limits structure , po was creating but limits data not updating in po., if i pass package number i am getting above error.
Thanks In Advance,
regardshi Dinesh,
am also having same error for bap po create1 . did it get resolved for you? please help its urgently needed for me here -
BAPI_REQUISITION_CREATE: Err-No account assignment exists for service line
Hi Frnds,
I am using bapi BAPI_REQUISITION_CREATE to create PR with mutiple Service line.
I am getting an error message SE518 - No account assignment exists for service line 0000000000.
Can anyone of you help me out to solve this issue?
Thanks in advance
SuganyaHI
I need to create pucharse-requisition for services with account assignment K.
execute BAPI_REQUISITION_CREATE with an item with a service and work well.
When I prove with two items each one with its service gives east error me
"E518, No account assignment exists for service line 0000000010"
my source is:
REPORT Z_WGS_BAPI_REQUISIT_CREATE_002
NO STANDARD PAGE HEADING LINE-SIZE 180
START-OF-SLECTION *
DATA:
W_NUMBER LIKE BAPIEBANC-PREQ_NO,
W_REQUISITION_ITEMS LIKE BAPIEBANC OCCURS 0 WITH HEADER LINE,
W_REQUISITION_ACCOUNT LIKE BAPIEBKN OCCURS 0 WITH HEADER LINE,
W_REQUISITION_SERVICES LIKE BAPIESLLC OCCURS 0 WITH HEADER LINE,
W_REQUISITION_SRV_VALUES LIKE BAPIESKLC OCCURS 0 WITH HEADER LINE,
W_RETURN LIKE BAPIRETURN OCCURS 0 WITH HEADER LINE,
W_RETURN1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
perform item_10.
perform item_20.
perform bapi.
form item_10.
**Item 10
W_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
W_REQUISITION_ITEMS-PREQ_ITEM = '00010'.
W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
W_REQUISITION_ITEMS-ITEM_CAT = '9'.
W_REQUISITION_ITEMS-PUR_GROUP = 306.
W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
W_REQUISITION_ITEMS-PLANT = 'CO95'.
W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 1'.
W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
W_REQUISITION_ITEMS-QUANTITY = '1.000'.
W_REQUISITION_ITEMS-PCKG_NO = '0000000001'.
W_REQUISITION_ITEMS-GR_IND = 'X'.
W_REQUISITION_ITEMS-IR_IND = 'X'.
W_REQUISITION_ITEMS-FIXED_VEND = space.
W_REQUISITION_ITEMS-INFO_REC = space.
APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
W_REQUISITION_ACCOUNT-PREQ_ITEM = '00010'.
W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
W_REQUISITION_SERVICES-PCKG_NO = '0000000001'.
W_REQUISITION_SERVICES-LINE_NO = '0000000001'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000000'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000002'.
W_REQUISITION_SERVICES-FROM_LINE = '1'.
W_REQUISITION_SERVICES-PLN_LINE = '0000000001'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SERVICES-PCKG_NO = '0000000002'.
W_REQUISITION_SERVICES-LINE_NO = '0000000002'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000010'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000000'.
W_REQUISITION_SERVICES-SERVICE = '000000000003000001'.
W_REQUISITION_SERVICES-QUANTITY = '5.000'.
W_REQUISITION_SERVICES-BASE_UOM = 'UN'.
W_REQUISITION_SERVICES-GR_PRICE = '150.0000'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SRV_VALUES-PCKG_NO = '0000000002'.
W_REQUISITION_SRV_VALUES-LINE_NO = '0000000002'.
W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
W_REQUISITION_SRV_VALUES-SERIAL_NO = '01'.
W_REQUISITION_SRV_VALUES-PERCENTAGE = '100.0'.
APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
endform.
form item_20.
item 20
W_REQUISITION_ITEMS-DOC_TYPE = 'NB'.
W_REQUISITION_ITEMS-PREQ_ITEM = '00020'.
W_REQUISITION_ITEMS-ACCTASSCAT = 'K'.
W_REQUISITION_ITEMS-ITEM_CAT = '9'.
W_REQUISITION_ITEMS-PUR_GROUP = '306'.
W_REQUISITION_ITEMS-PURCH_ORG = '9000'.
W_REQUISITION_ITEMS-PLANT = 'CO95'.
W_REQUISITION_ITEMS-PREQ_NAME = 'EORTIZ'.
W_REQUISITION_ITEMS-DELIV_DATE = SY-DATUM.
W_REQUISITION_ITEMS-SHORT_TEXT = 'Servicio 2'.
W_REQUISITION_ITEMS-MAT_GRP = 'SER-0005'.
W_REQUISITION_ITEMS-QUANTITY = '1.000'.
W_REQUISITION_ITEMS-PCKG_NO = '0000000003'.
W_REQUISITION_ITEMS-GR_IND = 'X'.
W_REQUISITION_ITEMS-IR_IND = 'X'.
W_REQUISITION_ITEMS-FIXED_VEND = space.
W_REQUISITION_ITEMS-INFO_REC = space.
APPEND W_REQUISITION_ITEMS. CLEAR W_REQUISITION_ITEMS.
W_REQUISITION_ACCOUNT-PREQ_ITEM = '00020'.
W_REQUISITION_ACCOUNT-SERIAL_NO = '01'.
W_REQUISITION_ACCOUNT-COST_CTR = '0001010106'.
W_REQUISITION_ACCOUNT-G_L_ACCT = '0063010001'.
APPEND W_REQUISITION_ACCOUNT. CLEAR W_REQUISITION_ACCOUNT.
W_REQUISITION_SERVICES-PCKG_NO = '0000000003'.
W_REQUISITION_SERVICES-LINE_NO = '0000000003'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000000'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000004'.
W_REQUISITION_SERVICES-FROM_LINE = '1'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SERVICES-PCKG_NO = '0000000004'.
W_REQUISITION_SERVICES-LINE_NO = '0000000004'.
W_REQUISITION_SERVICES-EXT_LINE = '0000000010'.
W_REQUISITION_SERVICES-SUBPCKG_NO = '0000000000'.
W_REQUISITION_SERVICES-SERVICE = '000000000003000002'.
W_REQUISITION_SERVICES-QUANTITY = '10.000'.
W_REQUISITION_SERVICES-BASE_UOM = 'UN'.
W_REQUISITION_SERVICES-GR_PRICE = '90.0000'.
APPEND W_REQUISITION_SERVICES. CLEAR W_REQUISITION_SERVICES.
W_REQUISITION_SRV_VALUES-PCKG_NO = '0000000004'.
W_REQUISITION_SRV_VALUES-LINE_NO = '0000000004'.
W_REQUISITION_SRV_VALUES-SERNO_LINE = '01'.
W_REQUISITION_SRV_VALUES-SERIAL_NO = '01'.
W_REQUISITION_SRV_VALUES-PERCENTAGE = '100.0'.
APPEND W_REQUISITION_SRV_VALUES. CLEAR W_REQUISITION_SRV_VALUES.
endform.
form bapi.
BAPI
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR =
AUTOMATIC_SOURCE = 'X'
IMPORTING
NUMBER = W_NUMBER
TABLES
REQUISITION_ITEMS = W_REQUISITION_ITEMS
REQUISITION_ACCOUNT_ASSIGNMENT = W_REQUISITION_ACCOUNT
REQUISITION_ITEM_TEXT =
REQUISITION_LIMITS =
REQUISITION_CONTRACT_LIMITS =
REQUISITION_SERVICES = W_REQUISITION_SERVICES
REQUISITION_SRV_ACCASS_VALUES = W_REQUISITION_SRV_VALUES
RETURN = W_RETURN.
REQUISITION_SERVICES_TEXT =
REQUISITION_ADDRDELIVERY =
EXTENSIONIN =
ejecuta commit
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = W_RETURN1.
LOOP AT W_RETURN. .
WRITE: / SY-TABIX,
/ 'W_RETURN-TYPE:', W_RETURN-TYPE,
/ 'W_RETURN-CODE:', W_RETURN-CODE,
/ 'W_RETURN-MESSAGE:', W_RETURN-MESSAGE,
/ 'W_RETURN-LOG_NO:', W_RETURN-LOG_NO,
/ 'W_RETURN-LOG_MSG_NO:', W_RETURN-LOG_MSG_NO,
/ 'W_RETURN-MESSAGE_V1:', W_RETURN-MESSAGE_V1,
/ 'W_RETURN-MESSAGE_V2:', W_RETURN-MESSAGE_V2,
/ 'W_RETURN-MESSAGE_V3:', W_RETURN-MESSAGE_V3,
/ 'W_RETURN-MESSAGE_V4:', W_RETURN-MESSAGE_V4.
ULINE.
ENDLOOP.
endform.
Maybe you are looking for
-
MB1C 561 with no Accounting Documents
Hi Gurus, I created initial entry with MB1C 561 to bring into SAP legacy system figures, but no FI documents were created but the stocks are there, if I check MB52 I can see the value in there so the value of all the stock match with the value that I
-
How do I download photostream videos on to my Windows 8 laptop?
I put several videos on a shared photostream (on my iPhone 5c, iOS 7.1.2) and deleted them from my camera roll, assuming I could download them back on to my phone at a later time. I then found out that you cannot download videos from photostreams. I
-
Active app is in download folder- What to do?
While empting trash a notification that skydrive.app was running and could not be deleted. This app is a startup app. How can I gracefully get the app moved to the normal application folder? Thanks Bob
-
Hi to everybody i need an help!!! While i was working on Photosop, the pc is gone freeze... and i had to reset it holding power button! After the restart my file was completely black! The size is 188Mb .... but all layer are merged in one...black! In
-
Predefine Partner Function Usage
We have added a couple of new partner functions in R3, which I want to send over to CRM. I have figured enough out so that I can either create a new partner function or assign a standard partner function for the information that is coming from R3.