PO Error "Please specify valid account assignment"

Hi,
I have a PO , when i undelete service PO and reorder getting erro saying  that 'Purchase order
65XXXXXXXX: Instance 650XXXXXX of object type Purchase Order could not
be changed' and Please specify valid account assignment
Can any pne suggest what are the setting i need to check
Thanks
Jairaj

Hi,
Thanks for reply,
There is no follow on document created, this is a service purchase order and after deleting 3 line items and again undelete the PO goes to error in process saying that" please assign valid account assignment"
Backend application error
EBP PO, and have extended classic scenario
i have found some notes not sure is this applicable 1090613
Regards,
jairaj
Edited by: Jairaj B.Mahaling on Dec 16, 2008 7:33 PM

Similar Messages

  • Error in Process-Please specify a valid account assignment error inBackend

    Hi Gurus,
    I am abaper and I am new to SRM technical.
    One Po is already there in SRM 4.0 and ERP with cost center and profit center replicated as it is. But my user is chaning the price of the PO in SRM.  It is showing as 'Error in Process'
    I check in backend error in portal and in rz20  'Please specify a valid account assignment' is error is coming.
    This is technical or functional issue.
    I checked in BBP_PD_PO_TRANSFER_EXEC, BBP_PO_INBOUND i find the error message as SE E181, But how can i rectify this error.
    when they changed the price for other pos it is replicating in backend but why for this po it is giving error, I checked all Cost center and profit center and all are fine...
    Please do the needful.
    Thanks,
    Kiran

    Hi,
    You said change of price in other POs is working fine. Only one PO goes into error.
    Is the cost center, profit center same as the ones in error PO ?
    If it's possible, can you also try this:
    - Create a PO in ERP directly using the same CC, Profit center as account assignment data
    - Check the other account assignment data that got defaulted (e.g. Business area etc) --> Verify whether this data is same in error PO also.
    - Could you create the PO successfully ?
    Best regards,
    Ramki

  • Please specify a valid account assignment

    Hi Friends,
    This issue is in Extended classic scenario..Some times, we are getting the following error message in RZ20.
    - Pease specify a valid account assignment
    - Transfer failed
    - PO Instance of the object type PO could not be changed
    We unable replicate this issue in Quality system...
    This is issue is in changing Purchase Order...Here user has changed the currency from SEK to EUR
    Please help on this
    Thanks
    Shrini

    Hi Shrinivas,
    Please advice how did you resolve this issue.
    We have similar issue where the PO was initially created in GBP currency and later they changed the currency to EUR in SRM.
    Now they want to change the corresponding net price to the converted EUR value from e.g. 95GBP to 101 EUR.
    At this point we get the error message "Please specify a valid account assignment".....
    thanks in advance for your response.
    Vinod
    Edited by: Vinod FERNANDEZ on Aug 1, 2011 9:26 PM

  • Budget Exceeded error while changing in Account Assignment

    Hi,
    The user is facing an error while changing the Accounts assignment category to "Assets" in a PR. The PR was created with AAC as "U" for all the line items. The user is changing that to "A". After that he provides the asset number then the error is coming as below:
    Item 010 Order 0809/A15 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 010 Order 0809/A15, budget for fiscal year 2010 was exceeded by 6,630.00 INR.
    The valuation price for that particular line item is Rs 6630.00. I have not changed the other line items.
    Need the suggestion.
    JK

    I think there some settings in Budgeting, n Finance people are more familiar with those settings. Normally, if u craete a Purchasing doc. PR or PO or GR/ IR from MM side, with account assnt., the relevant budget()which is created for that commitment item) will updated with the document value. There may be settings with delivery date or so. check with your FI guys
    umakanth

  • Error "10000180 Specify valid tax code" after upgrading 2007 to 8.8 PL15

    Hi all,
    In one client, I've upgraded the database from 2007 to 8.8 PL15.
    When I try to add an Invoice or Sales order in 8.8, the system gives an immediate error "10000180  Specify valid tax code" and does not open the standard Invoice form to add a new document.
    The same happens when I select other sales or purchase menu options.
    I checked the tax definition (VAT table) and everything seems fine.
    Does anybody know what can cause this error?
    It must be related with 8.8 version, since in 2007 it worked fine...
    Thanks all,
    Manuel Dias

    Hi Syed,
    After some long checks, I've discovered the problem: after the upgrade, the VTG1 table had wrong value keys (01, 02, 03 and 04) against the OVTG table (which was 1,2,3 and 4).
    I've done a manual update of this entries and then it worked.
    Thanks anyway,
    Manuel Dias
    Edited by: Manuel Dias on Mar 28, 2011 9:46 PM
    Edited by: Manuel Dias on Jun 21, 2011 10:04 AM

  • SOA Suite 11.1.1.6.0  Error - Please specify a valid JRE JDK location

    I am very new to Oracle installations and I cannot get past the " Please specify a valid JRE/JDK location :" message when installing the SOA Suite.
    I verified that all my prerequisites are in place.
    No matter what path I enter, it ignores it and repeats the message. I made sure to install JRE in a directory path with no spaces. I have tried installing jre-7u9-windows-i586 and also jre-7u9-windows-x64. I also tried pointing the location to the jdk160_29/jre/bin directory created by the SOA installation (again, no spaces in my path). Nothing seems to work.
    I am following the Quick Start Guide version 1.2 from August 2011 http://www.oracle.com/technetwork/middleware/soasuite/overview/quickstartguidesoasuite11gr1ps4-459545.pdf. I also looked at various postings and blogs.
    I am running this on a single Windows 7 Home Version SP1, 64-bit machine.
    Here is the full message:
    Starting Oracle Universal Installer...
    Checking if CPU speed is above 300 MHz . Actual 3292 MHz Passed
    Checking swap space: must be greater than 512 MB . Actual 2048 MB Passed
    Checking monitor: must be configured to display at least 256 colors Higher than
    256 . Actual 4294967296 Passed
    Preparing to launch Oracle Universal Installer from C:\Users\Robij\AppData\Loca
    l\Temp\OraInstall2012-11-20_09-46-59AM. Please wait ...
    Please specify JRE/JDK location ( Ex. /home/jre ), <location>/bin/java should e
    xist : \middleware\soasuite\jdk160_29\jre\bin
    Please specify a valid JRE/JDK location :
    As I said, I'm new to this, so sorry for the newbie question. Can anyone help me? Thanks.

    try this at commande ligne
    cd c:\the folder wish contient the setup.exe for soa suite
    setup *–jreLoc* c:\the jdk path directorie example(c:\oracle\midl…\jdk_18...hope that's help you
    Good luck

  • Error in FB60 - Additional account assignment required for field BSEG-HBKID

    Hi Experts
    While posting an Invoice for a particular company code in FB60, we are facing the following error :
    "Additional account assignment required for field BSEG-HBKID"
    Message no. F5A122
    Diagnosis
    Additional account assignment has to be carried out for some fields on the detail screen.
    System Response
    Error message
    Procedure
    Select the relevant items and call up the detail screen.
    We are unable to post any Non PO Based Invoices in this company code.
    Kindly guide us on possible methods to rectify this error.
    Regards
    MM

    Dear,
    First Check the setup as described by Atif,
    Also in OBC4 you will not find HBKID field, for this u need to select appropriate FSG, Under Payment Transaction Group please check if own Bank field is optional or not. by doing this as optional system will show House ban Field in Payment Tab of FB60, will be enabled and there will be two field one for House Bank and Other will be for Account ID.
    Hope this helps.
    Br, Vivek

  • Error:Enter a true account assignment object with revenues

    Hi expert,
    Pl advise it is coming at the time of making entry through F-02.I have selected GL for sales.Then this error comes.
    Regards,
    Samar

    Hi Experts,
    When i do entry in F-02,following error comes:
    Enter a true account assignment object with revenues
    Message no. KI166
    Diagnosis
    You made an account assignment for 700000, a revenue element, in controlling area 1000 to a cost center or profit center.
    System Response
    Cost centers and profit centers can carry revenues in the R/3 System as statistics only. To ensure reconciliation between FI and CO for revenue element 700000, a CO account assignment object must record the revenues as a real value. This object type is used for updating to the reconciliation ledger.
    In principle, it's possible for the R/3 System to automatically derive this CO account assignment object, the reconciliation object. However, all postings made in CO for costing-based Profitability Analysis are logged in the reconciliation ledger under "reconciliation object". In this manner, the reconcilation ledger identifies the exact values flowing into the operating profit. If you post reconciliation objects during revenue postings to cost centers or profit centers, you must do so while keeping the interpretation of the reconciliation ledger reports in mind. The sums of revenue postings to profitability segments, cost centers, and profit centers cannot be broken down further.
    Procedure
    To avoid posting to reconciliation objects, make account assignments to a real CO account assignment object.
    If you want to post to reconciliation objects, you can change this message to a caution or a note for future users, or deactivate the message entirely. Use the Implementation Guide under "Controlling: General" and choose Change message control. Enter area KI and message number 166. If you do not enter an individual user here, the change is valid for all users.
    Pl advise.
    Regards,
    Samar

  • Error-Grant Evalution posting-"Account assignment to grant is not supported

    In t-code PQ_GRANT_CALC  Grant evaluation, i can see the line for the Grant Info. But the same is not getting posted.
    while posting it is showing the error "Account assignment to grant is not supported".
    I can see the fee calculation for the student and posted the same to the student account.the fee is not getting posted aganist the grant.
    (even we have tried grant evalaution posting before posting to the stuent account)
    Pls hlep me, i have assigned the grant in the FMDERIVE and also in GMDERIVE.
    In the Student master file, in the GRANT Assignment tab, i have mentioned the required data,i,e
    assigned Grant and internally managed also.
    I can able to post the Budget DOC in Grant.
    Hope ,if i post the Student Doc in SLCM(t-code PIQST00 ), for the Grant amount entered in Student, it will reduce the amount of Grant created in the Budget?

    not done

  • No error message when incorrect account assignment type K in PO

    Hello,
    When creating a PO with any raw materials, I can either enter K in the account assignment type, either let the field blank.
    If there is no assignment the system will use key EIN to make the posting, if there is an assignment K (compulsory for services for instance), the system will use key VBR.
    In this case (raw material), I do not want the users to be able to save their PO if the account assignment has been entered in the item (only blank account assignment type for materials dealt with in stock and value).
    Does anyone have a solution?
    Best regards,
    Ronan

    Hi,
    This means ERS is active in your system.
    What this means is that when you do a GRN, an ERS flag is activated in the PO header.  The ERS is then settled using the PO data in SRM.
    If you have not settled this (at least this is what is indicated from the message), then uncheck this flag in the PO header and then try and archive.
    Cheers.

  • 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
    Rajesh

    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

  • Error while creating  a PO with Account assignment

    HI MM Gurus
    In our case, we need to create the STO for account assignment cat `Unknown`.
    In SPRO I maintained combination of account assign cat and item cat.
    Now, while creating  a PO with Account assign U we get Error message -  ME069 :Unknown account assignment not defined for use here.
    Please advise how to resolve this issue.

    Hi
    When you are posting actuals, you need to give true account assignment object. With U (unknown), system cannot identify which account to be posted. Change account assignment in PO to another.
    In standard SAP Unknown account assignment is not allowed in PO's. Only exception is Blanket PO.
    Unknown is allowed only in PR and Blanket PO.
    The reason is logically you are releasing the PO to the external vendor or Plant in this case you must know the account assignment.
    Regards,
    Ninad Kshirsagar

  • 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?
    Thanks

    Hi 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_PO_CREATE1 - In case of account assignment, please enter acc. assignment data for item

    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 - &quot;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

  • RE: In case of account assignment, please enter acc. assignment data for it

    Dear All,
    I am getting the Error : 'In case of account assignment, please enter acc. assignment data for item'. when I try to create a service PO(I mean when the 'Item Cat' = 9 (D) and Account assignment category as K) .
    I am populating POACCOUNT and POACCOUNTX structures of BAPI Correctly even the POSERVICES structure.
    I tried even by creating through me21n, there it is getting created correctly. The order in which I am trying to enter in ME21N is First I am providing Org Data,
    Next Item data with Acct assn cat as 'K' Item Category as 'D' short text, PO quantity, Order Unit, Net price, Material group, Plant,
    Requisitioner.
    Next it is prompting for Services data : short text, quantity, Unit, Gross price.
    Then it is prompting for Account assignment of service in line 10, there I am giving GL account, Cost center.
    It is creating the PO successfully.
    But when I try using BAPI (BAPI_PO_CREARE1) it is giving the error 'In case of account assignment, please enter acc. assignment data for item'.
    Please do the needful.
    Thanks & Warm Regards,
    Jayarama Krishna.

    Dear All,
    Who ever facing the above problem can use the below code, problem is solved.
    When we create Purchase Order using "BAPI_PO_CREATE1", it works for all cases but we can have problems when we create Service Items in PO. Either we get an error u201CPlease maintain services or limitsu201D or u201CIn case of Account assignment, please enter acc. assignment data for itemu201D.
    Service PO occurs when we enter item category u2018Du2019 (Service) and Account category u2018Ku2019 (Cost Center).
    When we use BAPI_PO_CREATE1 to create service PO, following tables are populated at item level:
    a) POITEM
    b) POITEMX
    c) POACCOUNT
    d) POACCOUNTX
    e) POSERVICES
    f) POSRVACCESSVALUES
    For service items: POITEM-PCKG_NO = u20180000000001u2019. (assign package no as a dummy number)
    Set PCKG_NO flag in POITEMX table as u2018Xu2019.
    Package No is the link that connect POITEM table to POACCOUNT table through tables POSERVICES and POSRVACCESSVALUES.
    Set POACCOUNT-SERIAL_NO to u201801u2019.
    Set same PCKG_NO to u20180000000001u2019 in POSERVICES table. Maintain two entries in POSERVICES table like this:
    WA_POSERVICES-PCKG_NO = u20180000000001u2019.
    WA_POSERVICES-LINE_NO = u20180000000001u2019.
    WA_POSERVICES-OUTL_IND = u2018Xu2019.
    WA_POSERVICES-SUBPCKG_NO = u20180000000003u2019. (Dummy No.)
    WA_POSERVICES-QUANTITY = u2018100.000u2019.
    WA_POSERVICES-BASE_UOM = u2018EAu2019.
    WA_POSERVICES-PRICE_UNIT = u20181u2019.
    WA_POSERVICES-GR_PRICE = u2018100.000u2019.
    WA_POSERVICES-SHORT_TEXT = u2018SERVICE TESTu2019.
    APPEND WA_POSERVICES TO IT_POSERVICES.
    WA_POSERVICES- PCKG_NO = u20180000000003u2019.
    WA_POSERVICES- LINE_NO = u20180000000002u2019.
    WA_POSERVICES-QUANTITY = u201810.000u2019.
    WA_POSERVICES- BASE_UOM = u2018EAu2019.
    WA_POSERVICES--PRICE_UNIT = u20181u2019.
    WA_POSERVICES-GR_PRICE = u2018100.000u2019.
    WA_POSERVICES-SHORT_TEXT = u2018SERVICE 1u2019.
    WA_POSERVICES-MATL_GROUP = u20180012u2019.
    APPEND WA_POSERVICES TO IT_POSERVICES.
    Set PCKG_NO as SUB_PCKG_NO in table POSRVACCESSVALUES this:
    WA_POSRVACCESSVALUES-PCKG_NO = u20180000000003u2019.
    WA_POSRVACCESSVALUES-LINE_NO = u20180000000002u2019.
    WA_POSRVACCESSVALUES-SERNO_LINE = u201801u2019.
    WA_POSRVACCESSVALUES-SERIAL_NO = u201801u2019.
    WA_POSRVACCESSVALUES-QUANTITY = u201910.000u2019.
    APPEND WA_POSRVACCESSVALUES TO IT_ POSRVACCESSVALUES.
    This logic will work definitely and PO Service Items will be created.

Maybe you are looking for