Multiple G/L account in WRX account assignment

Hi folks!
I want to use several G/L accounts in GR/IR clearing account for one valuation modifier. I know for this I have to assign General Modifier to valuation modifier.
Can anyone please let me know the complete settings, including where else do I need to assign General Modifier, or any user exit involved.
best regards.

Hi Qamar,
This is not possible with standard configuration .you have to use following user exit to achieve this.
Enhancement :LMR1M002
Function module :EXIT_SAPLKONT_011
Short Text
Account Grouping for GR/IR Account Determination
Functionality
This customer.specific function module is called by function module MR_ACCOUNT_ASSIGNMENT. This is used for:
Posting a goods receipt for a purchase order
Posting an invoice in conventional Invoice Verification using transaction MR01
Posting an invoice in Logistics Invoice Verification using transaction MR1M
You use this function module to determine the GR/IR clearing account to be posted to, depending on the purchase order data.
The function module has the purchase order number (exit_ebeln) and the purchase order item (exit_ebelp) as the import parameters. The account grouping code is returned.
Note that:
If you use this enhancement, the system determines the GR/IR clearing account based on your program. The system does not check that postings are made to the same GR/IR clearing account at goods receipt and at invoice receipt. You are responsible for ensuring that the system makes postings to the same account for transactions that belong together.
Example
You want to define the GR/IR clearing account to be posted to depending on the vendor (the invoicing party, the partner, the freight vendor).
1. You can define the vendor and the invoicing party in the module as follows:
   select * from ekko into corresponding fields of ekko
                      where ebeln = exit_ebeln.
The following information then appears:
Field Description
EKKO-LIFNR Vendor
EKKO-LIFRE Invoicing party
EKKO-KNUMV Document condition number
2. You can then determine:
The partner, using function module 'MM_READ_PARTNER'
The freight vendor, as follows:
   select * from konv into corresponding fields of konv
                       where knumv = ekko-knumv
                         and kdpos = exit_ebelp.
The lines in table KONV contain all conditions that were entered for this purchase order item. The field KONV-LIFNR contains freight vendors for the relevant condition.
Notes
For this customer exit to work correctly, you must activate customer enhancement LMR1M002.
In addition, you must select the account grouping code for account key WRX in the rules in Customizing.
Perform function
Parameters
I_WRXMOD
E_KONTO_MODIF
Exceptions
Function Group
XM08

Similar Messages

  • SRM7.0 Multiple  G/L account assignment for a product category

    Hi All,
    In SRM7.0 , it is possible to maintain multiple G/L accounts for a prodict category and account assignment combination. For example , for a product Category XX and account assignment CC , we can maintain more than one G/L account with one G/L as default. While creating the Shopping Cart , the G/L account is defaulted. However when we do F4 search on the G/L , then system is bringing all the G/L accounts from the backend through the search help from ECC. In that case what is the use of maintaining multiple G/L accounts in the SRM configuration? Is there any other config that is reqd? We thought system would restrict to those G/L account that are maintained in the config.
    Thanks
    Sukumar

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

  • Error After BAPI_PO_CREATE1 with multiple Lines "Enter Account Assignment"

    Hi,
    I am trying to Post Purchase Orders with Multiple lines using BAPI_PO_CREATE1 and got error
    "Enter Account Assignment". This is happening when I post PO with multiple line items.
    I am trying the same PO with one record, PO is creating successfully. Do I need to put any additional data.
    I am creating PO with Item Category 'D' and Account Assignment 'N' and external number range and internal number range.
    Pls let me know, Do i need any additional flags for this.
    Thanks,
    naini

    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? for your information, I used parameters below to run this function.
    POHEADER
    POHEADER-COMP_CODE = '1205'
    POHEADER-DOC_TYPE = 'GZPO'
    POHEADER-VENDOR = '8000001313'
    POHEADER-PMNTTRMS = '0001'
    POHEADER-PURCH_ORG = '1222'.
    POHEADER-PUR_GROUP = 'K05'
    POHEADER-CURRENCY = 'THB'
    POHEADER-EXCH_RATE = '1.00000'
    POHEADER-EX_RATE_FX = ' X'
    POHEADER-DOC_DATE = '10.06.2008'
    POHEADERX
    POHEADERX-COMP_CODE = 'X'
    POHEADERX-DOC_TYPE = 'X'
    POHEADERX-VENDOR = 'X'
    POHEADERX-PMNTTRMS= 'X'
    POHEADERX-DSCNT1_TO = 'X'
    POHEADERX-PURCH_ORG= 'X'
    POHEADERX-PUR_GROUP = 'X'
    POHEADERX-CURRENCY= 'X'
    POHEADERX-EXCH_RATE= 'X'
    POHEADERX-EX_RATE_FX= 'X'
    POHEADERX-DOC_DATE= 'X'
    POHEADERX-INCOTERMS1= 'X'
    POHEADERX-INCOTERMS2= 'X'
    POITEM
    POITEM-SHORT_TEXT = 'TEST'
    POITEM-PLANT = '5005'
    POITEM-MATL_GROUP = '606100001'
    POITEM-QUANTITY = '1.000'
    POITEM-PO_UNIT = 'AU'
    POITEM-ITEM_CAT = 'B'
    POITEM-ACCTASSCAT = 'K'
    POITEM-DISTRIB = ' '
    POITEM-PART_INV = ' '
    POITEM-PCKG_NO = '0000100001'
    POITEMX
    POITEMX-SHORT_TEXT = 'X'
    POITEMX-PLANT = 'X'
    POITEMX-MATL_GROUP = 'X'
    POITEMX-QUANTITY = 'X'
    POITEMX-PO_UNIT = 'X'
    POITEMX-ITEM_CAT = 'X'
    POITEMX-ACCTASSCAT = 'X'
    POITEMX-DISTRIB = 'X'
    POITEMX-PART_INV = 'X'
    POITEMX-PCKG_NO = 'X'
    POSCHEDULE
    POSCHEDULE-PO_ITEM = '00001'
    POSCHEDULE-SCHED_LINE = '0001'
    POSCHEDULE-DEL_DATCAT_EXT = 'D'
    POSCHEDULE-DELIVERY_DATE = '01.09.2006'
    POSCHEDULE-QUANTITY = ' 1.000'
    POSCHEDULEX
    POSCHEDULEX-PO_ITEM= '00001'
    POSCHEDULEX-SCHED_LINE = '0001'
    POSCHEDULEX-PO_ITEMX = 'X'
    POSCHEDULEX-SCHED_LINEX = 'X'
    POSCHEDULEX-DEL_DATCAT_EXT = 'X'
    POSCHEDULEX-DELIVERY_DATE = 'X'
    POSCHEDULEX-QUANTITY = 'X'
    POACCOUNT
    POACCOUNT-PO_ITEM = '00001'
    POACCOUNT-SERIAL_NO = '01'
    POACCOUNT-GL_ACCOUNT = '0065903020'
    POACCOUNT-BUS_AREA = '70'
    POACCOUNT-COSTCENTER = '0010700003'
    POACCOUNT-ORDERID = ' '
    POACCOUNTX
    POACCOUNTX-PO_ITEM = '00001'
    POACCOUNTX-SERIAL_NO = '01'
    POACCOUNTX-PO_ITEMX = 'X'
    POACCOUNTX-SERIAL_NOX = 'X'
    POACCOUNTX-GL_ACCOUNT = 'X'
    POACCOUNTX-BUS_AREA = 'X'
    POACCOUNTX-COSTCENTER = 'X'
    POACCOUNTX-ORDERID = 'X'
    POSERVICES
    POSERVICES-PCKG_NO = '0000100001'
    POSERVICES-LINE_NO = '0000000001'
    POSERVICES-OUTL_IND = 'X'
    POSERVICES-SUBPCKG_NO = '0000100002'
    POSERVICES-QUANTITY = ' '
    POSERVICES-BASE_UOM = ' '
    POSERVICES-GR_PRICE = ' '
    POSERVICES-FROM_LINE = '000001'
    POSERVICES-TO_LINE = '999999'
    POSERVICES-SHORT_TEXT = ' '
    POSERVICES-MATL_GROUP = ' '
    APPEND POSERVICES
    POSERVICES-PCKG_NO = '00100002'
    POSERVICES-LINE_NO = '0000002'
    POSERVICES-OUTL_IND = ' '
    POSERVICES-SUBPCKG_NO = ' '
    POSERVICES-QUANTITY = '1.000'
    POSERVICES-BASE_UOM = 'AU'
    POSERVICES-GR_PRICE = '43,486.21'
    POSERVICES-FROM_LINE = ' '
    POSERVICES-TO_LINE = ' '
    POSERVICES-SHORT_TEXT = 'Demurrage'
    POSERVICES-MATL_GROUP = '606100001'
    POSRVACCESSVALUES
    POSRVACCESSVALUES-PCKG_NO = '0000100001'
    POSRVACCESSVALUES-LINE_NO = '0000000001'
    POSRVACCESSVALUES-SERIAL_NO = ' '
    POSRVACCESSVALUES-QUANTITY = ' '
    APPEND POSRVACCESSVALUES
    POSRVACCESSVALUES-PCKG_NO = '0000100002'
    POSRVACCESSVALUES-LINE_NO = '0000000002'
    POSRVACCESSVALUES-SERIAL_NO = '01'
    POSRVACCESSVALUES-QUANTITY = '1.000'
    POLIMITS
    POLIMITS-PCKG_NO = '0000100001'
    POLIMITS-LIMIT = '1.00'
    POLIMITS-EXP_VALUE = '1.00'
    APPEND POLIMITS
    POLIMITS-PCKG_NO = '0000100002'
    POLIMITS-LIMIT = ' '
    POLIMITS-EXP_VALUE = ' '
    please help
    Thank you for advance

  • Down payment with multiple account assignment PO

    Dear Experts,
    While posting down payment request through transaction F -47 with
    reference to purchase order we are getting below given error.
    In that purchase order we have given
    multiple account assignment i.e. multiple cost centers (e.g. Cost center A  50% cost center B 10% Cost Center  C 40% i.e. distribution by %)
    but
    system is flagging message
    Item 00010 of purch. document 4500024875 contains no suitable account
    assignment
    Message no. ME717
    What will be the possible cause?
    regards,
    Abhijit

    Hi,
    In the request f-27 tr.code give the purchase order which item you want to give ie., for above said example 10 is a line item of 4500024875 - purchase order and beside you have to mention
    10(lineitem) 4500024875 (purchase order) 2009 (year)
    and system will take that request against the above purchase order.
    Regards,
    satish

  • GR and GR Non Val indicator in R/3 PO for multiple account assigned SC's

    Hi,
    We are on SRM 3.0(EBP 4.0) and R/3 4.7.
    We have implemented the BBP_CREATE_PO_BACK badi for setting or clearing the GR and IR indicators under certian conditions.
    But for Multiple account assigned SC's we get an error message "06181 With non-valuated GR, please also enter GR i ndicator ".
    We have tried implementing note# 872000, but this has not solved the issue.
    The PO's get created only if we force the GR indicator when transferring the data into R/3.
    It seems clear that while creating the PO the system is encountering the GR Non Val indicator but not the GR indicator, so its throwing the error message (we get the same error message when we create the PO from R/3 with GRnon val indicator checked and GR ind unchecked).
    The proposed solution is that in the same BADI, along with clearing the GR indicator, we will also clear the GR non val indicator.
    This can solve the issue if the indicators are transferred as it is from EBP.
    But can anyone tell me if these indicators are also checked/changed in any FM/program in R/3 before the PO is created?
    Is there any customizing setting which is affecting this particular behaviour?
    Regards,
    Srivatsan

    Hi Srivatsan ?
    In ECC, you have a configuration point :
    Materials Management->Account Assignment->Maintain Account Assignment Categories
    Here you can untick the indicator you want by account assignment category;
    Kind regards,
    Yann

  • ERROR WHILE POSTING MIRO FOR MULTIPLE ACCOUNT ASSIGNMENT (ASSET)

    Hi Guys,
    We created  a PO for asset with multiple account assignment. And we immediately do IR instead of GR.
    While doing IR it is giving error
    1) Quantity delivered is zero - Warning message
    2) Account 245350 requires a Transaction Type or is Invalid - Error message
    what may be the problem. how can we eliminate and post it
    Regards
    palani

    Hi,
    I would assume the G/L account you used was not properly set up.  Did you get the same problem if you try to change to another G/L account?  Perhaps, get your FI specialist to look into this G/L account-related error and verify it.
    Cheers,
    HT

  • 'BAPI_PO_CREATE1'  Multiple account assignment is not possible for AFS item

    'BAPI_PO_CREATE1'  -> This BAPI works perfectly without the  'account assignment' option . But  for purchase requisitions which have account assignments  BAPI returns the error  - E|8W |185   |Multiple account assignment is not possible for AFS items.
    Can somebody please help me to get this error resoleve .
    My coding I have done like below.
    DATA: pohead  TYPE bapimepoheader.
    DATA: poheadx TYPE bapimepoheaderx.
    CONSTANTS : c_x VALUE 'X'.
    DATA: exp_head TYPE bapimepoheader.
    DATA: return  TYPE TABLE OF bapiret2 WITH HEADER LINE.
    DATA: poitem  TYPE TABLE OF bapimepoitem WITH HEADER LINE.
    DATA: poitemx TYPE TABLE OF bapimepoitemx WITH HEADER LINE.
    DATA: posched  TYPE TABLE OF bapimeposchedule WITH HEADER LINE.
    DATA: poschedx TYPE TABLE OF bapimeposchedulx WITH HEADER LINE.
    DATA: POACCOUNT  TYPE TABLE OF BAPIMEPOACCOUNT WITH HEADER LINE.
    DATA: POACCOUNTX TYPE TABLE OF BAPIMEPOACCOUNTx WITH HEADER LINE.
      pohead-comp_code = '1000'.   "IEQ1 plant. "'1000'.
      pohead-doc_type   = 'NB'     .
      pohead-creat_date = sy-datum   .
      pohead-vendor = EKKO-LIFNR. "'0000500004'.
      pohead-purch_org = purch_org.
      pohead-pur_group = purch_grp.
      pohead-langu      = sy-langu   .
      pohead-doc_date   = sy-datum.
      poheadx-comp_code  = c_x.
      poheadx-doc_type   = c_x.
      poheadx-creat_date = c_x.
      poheadx-vendor     = c_x.
      poheadx-langu      = c_x.
      poheadx-purch_org  = c_x.
      poheadx-pur_group  = c_x.
      poheadx-doc_date   = c_x.
      poitem-po_item    = iLineItem.      "1.
      poitem-material   = req_item-MATERIAL.   " '000000000040000234'.
      poitem-plant      = req_item-PLANT.
      poitem-quantity   = req_item-QUANTITY.
      poitem-net_price  = NET_PRICE.
      poitem-price_unit = PRICE_UNIT.
      poitem-shipping   = 'Z1'.
      poitem-preq_no    = req_item-PREQ_NO.
      poitem-preq_item  = req_item-PREQ_ITEM.
      poitem-acctasscat = 'K'.
      APPEND poitem.
      poitemx-po_item    = iLineItem. "1.
      poitemx-po_itemx   = c_x.
      poitemx-material   = c_x.
      poitemx-plant      = c_x .
      poitemx-quantity   = c_x .
      poitemx-tax_code   = c_x .
      poitemx-item_cat   = c_x .
      poitemx-acctasscat = c_x .
      poitemx-net_price  = c_x.
      poitemx-price_unit = c_x.
      poitemx-shipping   = c_x.
      poitemx-preq_no    = c_x.
      poitemx-preq_item  = c_x.
      poitemx-acctasscat = c_x.
      APPEND poitemx.
      POACCOUNT-PO_ITEM = iLineItem.
      POACCOUNT-SERIAL_NO = iLineItem.
      POACCOUNT-GL_ACCOUNT = '0000211010'.
      POACCOUNT-SD_DOC = '0001001056'.       
      POACCOUNT-ITM_NUMBER = '000100'.       
      POACCOUNT-CO_AREA = '1000'.
      APPEND POACCOUNT.
      POACCOUNTX-PO_ITEM = '00001'.
      POACCOUNTX-SERIAL_NO = '01'." '01'.
      POACCOUNTX-PO_ITEMX = 'X'.
      POACCOUNTX-SERIAL_NOX = 'X'.
      POACCOUNTX-GL_ACCOUNT = 'X'.
      POACCOUNTX-SD_DOC = 'X'.
      POACCOUNTX-ITM_NUMBER = 'X'.
      APPEND POACCOUNTX.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader  = pohead
          poheaderx = poheadx
        IMPORTING
        exppurchaseorder = ex_po_number
        expheader        = exp_head
        TABLES
          return    = return
          poitem    = poitem
          poitemx   = poitemx
          POACCOUNT = POACCOUNT
          POACCOUNTX = POACCOUNTX.

    I  found the answer

  • Urgent plz...Error: Multiple Account assignment in  BAPI_REQUISITION_CREATE

    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

  • PO with hundreds of multiple account assignment lines on service line level

    Hi, experts,
    I want to create a external service PO with multiple account assignment.
    However, in the service line item level, when I click on the multiple account assignment, I could only enter 97 lines. But I need to create around 1000 account assignment lines for a single service line.
    Is it possible to extend the no. of account assignment lines inside the service line level? May I know how to do so?
    Thanks & regards,
    James

    I'm facing a similar error. 
    What I think it's happening is that for technical reasons the program involved only delivers 99 line items... To make things worse, When you try to create an invoice for that full item you are going to get an error bc the invoice reserves line 99 for unplanned account assignments.
    The suggestion from SAP is to create further items with 98 account assignment items or less.
    Have a look at these notes: 486808, 651784
    Regards,
    Nelson
    PS: Please rewards points for helpful answers

  • Multiple Account Assignment details for Service PRs

    Hi,
           I have developed a RFC for creating PRs. For multiple service PRs, multiple services are getting created but account assignment details getting created only for the first service line item. Iu2019m using BAPI_REQUISISTION_CREATE. Please provide me a solution.
    Regards,
    N.Senthil

    hi all,
          the issue has been resolved by passing the below mentioned values.
          wa_item_data-distrib = '1'.      "FOR MULTIPLE ACCOUNT ASSIGNMENT based on the quanlity
          wa_item_data-part_inv = '1'.     "FOR MULTIPLE ACCOUNT ASSIGNMENT
    solution got from
    http://wiki.sdn.sap.com/wiki/display/ABAP/BAPI_REQUISITION_CREATE
    http://www.sapnet.ru/viewtopic.php?p=9306
    Regards,
    N.Senthil

  • MIGO in case of multiple account assignment.

    Hi,
    I have created PO with multiple account assignment. AAC is P.
    While doing MIGO, FI document is not getting generated.
    Can anyone plz explain how multiple account assignment functionality works?
    Regards
    Nilesh

    Hi
    Its a standard practice that if there is multiple account assignment, the proportion will not be appearing at the time of MIGO. It will get updated only at the time of Invoice verification.
    Regards,
    Lakshmanan Krishnan

  • GR Printing For Single Line Item With Multiple Account Assignment.

    Hi All,
    There is PO for projects (Account Assignment -P - Network) in which in a single item consist of multiple account assignment.
    Noe while entering the GR I select "Collective Slip" option but when the GR is posted system automatically select option "Individual slip" and seprate line item are printed for each account assignment.
    The printing program is standard SAPM07DR. The SAP version is 4.7. Can anyone tell what is ther any setting in configuration or is it problem in program or smart form
    Thanks & Regards,
    Omkar

    hi
    please check your form and routine used to print.

  • Setting Default Values in PO - Multiple Account Assignment

    Hello Experts,
    How do we set defalut values for the Field "Partial Invoice" in the Account Assignment Tab(Multiple Acc Assignment) of Purchase Order/Purchase Requisistion.
    This field is  not available in Personal settings of "PO Item", also there is no "Parameter ID" available for this field.
    Regards,
    Hemant Kumar B

    Hi,
    The suggestion provided was useful, but it is a client level setting. Is there a way to have the value for the field defaulted as a user setting.
    Regards,
    Hemant Kumar B

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

  • Multiple Account Assignment Distribution by Percentage in EBP

    Hi Gurus,
    We are in SRM 4 SP13  and ECC 4.6C ,Classic Scenario.The SC creates a PR in the backend and from that  PO subsequently.
    When we are creating a SC with Multiple Account Assignment  and Distribution by Percentage to different cost centres   the PR created  with
    Distribution :  Distribution by percentage  and
    Partial Invoice : Distribute in Sequence. This is for materials
    But for Services it is created as
    Distribution :  Distribution by percentage  and
    Partial Invoice :Distribute Proportionally.
    For services Partial Invoice is working fine and for materials it is Picking "Distribute in Sequence"
    Is this a standard behaviour  or any thing to be changed .Please let me know.
    Thanks in Advance.
    Rajesh

    Hi there,
    Standard SRM Hardcodes the partial invoice indicator to Progressive when          
    sending POs to SAP in the Classice Scenario:                                                                               
    SPOOL_PO_READ_BAPI_EXPORTS hard codes the value of po_items-part_inv              
    to 1 that is equivalent to "Progressive fill-up" in R/3 POs & REQ.                                                                               
    It is not possible to create from EBP to backend some PO-documents with           
    multiple account assignment and partial invoice indicator = 2 (which is           
    proportional distribution because there is no possibility to set this             
    indicator on the account assignment creen in EBP and theris no Badi               
    to do it so far. This is a missing functionality from SAP.                                                                               
    You still could use LIV with partial invoice indicator= 1 and then you            
    can change to partial invoice propotional in backend manually.                    
    This is not comfortable but it is possible so far.                                
    You can see in the following code from the mentioned Function how Service and material documents are treated differently
    ======================================                                                                               
    set distr. indicator only for the dummy item for services         
    for material items and the service lines                          
    it is derived from distribution type in EBP                       
        IF next > 1.                                                    
          IF po_items-item_cat = '9' OR                                 
             po_items-item_cat = '1' .                                  
            po_items-distrib = '2'.    "prozentuale Verteilung          
          ENDIF.                                                        
          po_items-part_inv = '1'.      <<<<       Hard Coded to "1"    
          MODIFY po_items INDEX h_index.                                
        ELSE.                                                           
          CLEAR po_items-distrib.    "prozentuale Verteilung            
          MODIFY po_items INDEX h_index.                                
        ENDIF.                                                          
      ENDLOOP.                                                                               
    CHECK NOT po_items[] IS INITIAL.                                                                               
    ======================================         
    Or possibly use Badi BBP_CREATE_PO_BACK
    Hope this points you in the right direction.
    Regards,
    Matthew

  • Multiple account assignment for asset

    Hi,
    I had created PO with multiple account assignment for asset. PO is created with one line item having 5 qty and in multiple account assignment 5 assets are entered with qty distribution.
    I have issue with commitment distribution for all the account assignment. when i post migo(GR) the value is posting for only first one asset not for all.
    So in the purchase order for the remaining account assignment commitment remain left.
    Reagrds,
    Umesh
    Edited by: Umesh Agrawal on May 15, 2009 6:43 AM

    Hi,
    1st check in OME9 t.code for account assignment A, the selection of 2(Multiple account ***)in field ID: AcctAssgt Scrn and Distribution field as 1.
    Then during PO creation for single line item  & in Item details TAB, in account assignment segment, you enter qty with asset number (A1) with G/L account for 1st Line and for 2nd line keep  qty. with asset number(A1) with  G/L account ( different G/L Account) OR enter  qty with asset number (A1) with G/L account for 1st Line and for 2nd line keep  qty. with another asset number(A2) with  G/L account (different G/L Account)
    ####Example-1: in account assignment segment     , if you have
    G/L account----
    Asset
    12345u2026u2026u2026u2026u2026u2026u2026u2026A1
    12346u2026u2026u2026u2026u2026u2026u2026u2026A2
    12347u2026u2026u2026u2026u2026u2026u2026u2026A3
    12348u2026u2026u2026u2026u2026u2026u2026u2026A4
    Having a concept that GR is non-valuated and accounting entries in invoice (without tax) are:
    Vendor A/C: Cr
    G/L account (12345): Dr
    G/L account (12346): Dr
    G/L account (12347): Dr
    G/L account (12348 ):Dr
    #####Example-2: in account assignment segment     , if you have
    G/L account----
    Asset
    12345u2026u2026u2026u2026u2026u2026u2026u2026A1
    12345u2026u2026u2026u2026u2026u2026u2026u2026A2
    12345u2026u2026u2026u2026u2026u2026u2026u2026A3
    12345u2026u2026u2026u2026u2026u2026u2026u2026A4
    Having a concept that GR is non-valuated and accounting entries in invoice (without tax) are:
    Vendor A/C: Cr
    G/L account (12345): Dr
    Regards,
    Biju K

Maybe you are looking for

  • My ipod touch 4th gen skips certain songs in my playlists.

    I have all the most recent software updates and I've looked this up in the support section.  It talked about this problem being related to music imported from CDs, but I'm having this problem with music downloaded form itunes.

  • Can't log in or buy music

    I have itunes on my laptop and work computer. My laptop works perfectly , itunes runs smoothly, i can get into the store and buy music and even itunes match seems to run fine on there. But when i come to my office pc running windows 7, I cant log in

  • Photo Frame Widget

    How do you get the widget to only play a slideshow of a certain album? I can only get it to cycle through all pictures... really dumb.

  • Output from JDBC Adapter mapped to multiple message types

    Hi! I face to a problem with the message mapping.. I do select with the JDBC adapter. This statement selects one field of clob type and it already contains a message - XML document. Depending of the type of this message will be done the message mappi

  • Netweaver 2004s ABAP or JAVA?

    I downloaded the 2004s preview with ABAP app server, but noticed two other distributions.  One was full Java and the other express Java. In the Java distributions, is there still an ABAP development environment?  Or are the distributions with J2EE us