Which field represents 'LEDGER GROUP'  in BAPI_ACC_DOCUMENT_CHECK.

Hi Experts,
I am posting documents in FB50l. Before posting i am checking the documents using BAPI : BAPI_ACC_DOCUMENT_CHECK.
After execution I am getting error 'Ledger group-Blank not permitted for doc type  ZL'.
In this bapi i am not able to pass 'LEDGER GROUP'  field.
can any one tell me how to pass LDGRP  field thorough this BAPI.
Is there any other BAPI avialable to check GL document for posting for specefic ledger group.
any one give me solution for this.
Thanks in advance.
Kiran.
9986918125.
Edited by: venkat25 on Feb 27, 2012 2:54 PM

Hi lakshmi,
See sample code below
METHOD if_ex_acc_document~change.
     DATA: wa_extension TYPE bapiparex.
     DATA: wa_wtax TYPE accit_wt.
     FIELD-SYMBOLS <fs_accit> TYPE accit.
     LOOP AT c_extension2 INTO wa_extension.
       IF wa_extension-structure = 'ZBUSSEC'.
         LOOP AT c_accit ASSIGNING <fs_accit>.
           <fs_accit>-bupla = wa_extension-valuepart1.
           <fs_accit>-secco = wa_extension-valuepart2.
         ENDLOOP.
       ENDIF.
       IF wa_extension-structure = 'ZWTAX'.
         wa_wtax-wt_key    = wa_extension-valuepart1.
         wa_wtax-witht     = wa_extension-valuepart2.
         wa_wtax-wt_withcd = wa_extension-valuepart3.
         APPEND wa_wtax TO c_accwt.
         READ TABLE c_accit ASSIGNING <fs_accit> WITH KEY koart = 'K'.
         IF sy-subrc = 0.
           <fs_accit>-wt_key = wa_wtax-wt_key.
         ENDIF.
       ENDIF.
     ENDLOOP.
   ENDMETHOD.
Reagrds
kiran

Similar Messages

  • Setting ledger group(LDGRP)

    Hi gurus,
    when I execute BAPI_ACC_GL_POSTING_POST a new document is correctly created, only field LDGRP(Ledger Group) is empty. I read the forum and found that it can be filled when EXTENSION1 is filled. Only I cannot find how to fill this structure?
    What do I need to do exactly to create a value for field ledger group(LDGRP)?
    When using BAPI_ACC_DOCUMENT_POST there are even 2 extension structures, but I don't know how to fill those either.
    Can anybody help me?
    Kind regards,
    Wim

    Thanks it is implemented,
    the structure gets filled correctly in the user-exit but it doesn't get passed this BADI.
    When executing FI_DOCUMENT_CHECK --> PERFORM CHECK_ACCIT --> perform check_rldnr, field G_GROUP_LEDGER has value 'ZL' and one entry in ACCIT_FI has field and XOPVW with value 'X' and field awtyp has value 'BKPFF' for both entries in ACCIT_FI. And therefore 'MESSAGE E012(FAGL_POST_SERVICE) with accit_fi-hkont accit_fi-bukrs' is triggered.
    Does anybody know what goes wrong?
    regards,
    Wim
    Edited by: Wim van Erp on Jan 14, 2009 4:24 PM

  • Ledger Group field NOT showing in FB03 after activating Non- Leading ledger

    Dear All Experts,
    I have activated non leading ledger for my company code and posted the document successfully from FB60. Now coming to FB03 I can see the document in Local Currency and Group Currency - USD but the Ledger Group field still shows complete blank. As I guess it MUST show 1F ( Non Leadig Ledger ) which is my non leading ledger.
    Where I missed the configurtation step ? If anybody has gone through the same issue please guide or provide some inputs.
    Regards,
    Revati Joshi.

    Non-leading ledger use t codes FB01L and FB50L
    The reason that the Ledger Group 0L is being used it´s because the Accouting Principle of your Valuation Area.
    What you have to do is you need to create a new Ledger Group and assgn it to your valutaion area.
    Then you assign this accounting principle to the valution area.
    Then assign the accounting principle to no Ledger Group.
    Please see the customizing path:
    Define new Ledger Group:
    Financial Accounting (New)>Financial Accounting Global Settings (New)>Ledgers>Ledger>Define Ledgers for General Ledger Accounting (dont active your new ledger as leading ledger. leave the standard as the leading )
    Assign Accounting Principle to none New Gl Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Check Assignment of Accounting Principle to Ledger Group
    Assign your Valuation Area to the accounting principel just assigned to none NewGL Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Assign Valuation Areas and Accounting Principles
    Now you have more then one Ledger Group in you client (which is not being used for nothing) and you have a valuation area that is linked to a Accounting Principle that is linked to no Ledger Group.
    Go ahead now and execute the FAGLF101. You will see that the standard will not try to inform leading ledger in the Group of Ledger.
    I found this solutiong debbuging the standard. Took me quite a bit to discover.
    The problem was in SPRO->Financial Accounting(New)->General Ledger Accounting(New)->Periodic Processing->Valuate->Check Assignment of Accounting Principle to Ledger Group. In "Target Ledger Group" field, the ledger "0L" were configured in BRAP and GAAP. So, the system automatically assigned the ledger "0L" when performing FAGLF101.

  • Disable "Ledger Group" in FBB1

    Hi,
    I've performed the t code FAGLF101 for Accounts Payable, using the Sort Method "SAP". Using this sort method, the batch input session that is created gets the Ledger Group as "0L", which is the default ledger.
    In my case, I won't post anything in this ledger, so I need one way to make the postings left  this field as blank. Is there some way to disable this "Ledger Group" field in FBB1, so it won't be required?
    Thanks in advance.

    Hi,
    The reason that the Ledger Group 0L is being used it´s because the Accouting Principle of your Valuation Area.
    What you have to do is you need to create a new Ledger Group and assgn it to your valutaion area.
    Then you assign this accounting principle to the valution area.
    Then assign the accounting principle to no Ledger Group.
    Please see the customizing path:
    Define new Ledger Group:
    Financial Accounting (New)>Financial Accounting Global Settings (New)>Ledgers>Ledger>Define Ledgers for General Ledger Accounting (dont active your new ledger as leading ledger. leave the standard as the leading )
    Assign Accounting Principle to none New Gl Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Check Assignment of Accounting Principle to Ledger Group
    Assign your Valuation Area to the accounting principel just assigned to none NewGL Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Assign Valuation Areas and Accounting Principles
    Now you have more then one Ledger Group in you client (which is not being used for nothing) and you have a valuation area that is linked to a Accounting Principle that is linked to no Ledger Group.
    Go ahead now and execute the FAGLF101. You will see that the standard will not try to inform leading ledger in the Group of Ledger.
    I found this solutiong debbuging the standard. Took me quite a bit to discover.
    Hugs.

  • Standart assignments in document for line item for certain ledger group

    Hi colleagues,
    I have a task to fulfill field order while posting asset retirement for certain G/L (91-2070000) and certain Ledger Group (0L).
    I've searched this in SPRO but can't find it.
    Maybe you can suggest where it could be customized.
    Thanks in advance!

    Hi Anton,
    In T code ABAVN/ABAON, after entering asset no and percentage/full retirement just simulate, then click additional account assignment(place curosr for which GL you want change) then enter order number.
    If order number is not appearing then change the field status of GL so that Order field is optional.
    Hope it solves.
    Regards,
    GSR

  • Ledger Group Mandatory in FV50L

    We are on ECC 6 and got the new GL activated. We have defined several ledger groups.
    My requirement is I want to make the Ledger Group Field Mandatory in transaction FV50L. Please let me know in which FSG should I make the change.
    Thanks
    Ravi

    Hi ravi,
    as per my knowledge u can not control the fieds ledger group wise, there is no separate field status group for each ledger groups wise. u can use the common field status group for the gl account master. u can control the fields only FSG level, Posting keys, account group level and document type level.
    solution for your requirement create the layout with required filds or write the validation with transaction code.
    assign the points if its useful
    regards
    sai krishna

  • How to synchonize the field of Sales group in VN01  from R/3

    Dear  Sir,
    I would like to synchonize the field of Sales group in T-code VN01 in SAP  R/3 to CRM. I can't see the field of Sales group in R/3 , what should I do ??
    Please kindly advise.
    Thank you and best regards,
    Vimol

    Hi,
    To do it in JS you need to use oData, as wrote above:
    to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
    Your code will be about this:
    /// <reference path="rtb_XrmSvcToolkit.js" />
    XrmSvcToolkit.retrieve({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
    expand: [""],
    async: false,
    successCallback: function (result) {
    FieldNeedToUpdate= result.my_FieldNeedToUpdate;
    errorCallback: function (error) {
    Error = error;
    FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
    var InputEntity =
    my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
    XrmSvcToolkit.updateRecord({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    entity: InputEntity ,
    async: false
    Here are more samples:
    https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js

  • Which fields of material maintain in make to order scenario through bdc

    HELLO  !!!!!
    GURUS !!!
    I am working on make to order scenario.
    Here is batch management.
    I am giving data for uploading so for that which fields must be filled from
    basic data to costing .
    Could you give me some ref. on this topic.
    Regards,
    Nitin

    Hi,
    Its like I have given for the Raw Material what are all the required fields and this is as per the scenerio which we follow and i think this helps you..
    MBRSH     Industry Sector
    MTART     Material Type
    DYTXT     
    WERKS     Plant
    LGORT     Storage location
    MAKTX     Material Description
    MEINS     Base unit of measure
    MATKL     Material Group     
    SPART     Division
    BSTME     Order Unit
    EKGRP     Purchasing Group
    KAUTB     Automatic PO
    XCHPF      Batch MAnagement
    EKWSL     Purchasing valu key
    WEBAZ     GR Processing Time
    USEQU     Quota arrangement Usage
    DISMM     MRP Type
    DISPO     MRP Controller
    DISLS     Lot Size
    BESKZ     Procurement type     
    LGFSB     S.Loc for Ep
    PLIFZ     Scheduling margin key
    FHORI     Planned Delivery Time
    RWPRO     Coverage Profile
    STRGR     Strategy Group
    VRMOD     Consumption mode
    VINT1     Backward Consumption Period
    VINT2     Forward Consumption Period
    MTVFP     Availability Check
    SBDKZ     Individual/Collective     
    BKLAS     Valuation Class
    VPRSV     Price Control Indicator
    VERPR     Value/Price
    EKALR     With Qty Structure
    Hope This Helps you.. is it clear
    Regards,
    Sravanthi
    Edited by: sravanthi nemani on Dec 29, 2008 1:38 PM

  • Error  "Ledger group 0L may not be used" - CO15

    Dear guru,
    When I want to save Production Order Confirmation via CO15, there is an error message :
    Ledger group 0L may not be used
    Message no. FAGL_LEDGER_CUST102
    Diagnosis
    Ledger group &1 is assigned to another application.
    FYI, when I check tabel T881 (Ledger Master), there are two leading ledger : 0L and OL. It's very strange.
    As far as I know, in standard SAP there is only one leading ledger, it is 0L.
    I check in customizing (Ledger > Define Ledgers for General Ledger Accounting), there is only one ledger: OL (as leading ledger), so I untick Leading Ledger indicator for Ledger 0L directly on table T881, but the error message still appear.
    How to solve this?
    Thanks before

    Hi Hanny Ali,
    The message F5 670 is processed if there is a problem in account determination. The message means the account determination in the SD billing document does not work probably. This could also be caused by a wrong or incomplete customizing.
    Please find note 146879 to check the customizing on this issue. From past messages, this problem is usually caused by a missing or incorrect customizing for the G/L account.
    Please note that if it's a case of a cancellation document the field VBRK-SFAKN is filled. When this is filled the system does not carry out account determination. In debug you can remove this entry and the account determination will be revoked. This would resolve the issue.
    Could you please review customizing setting VKOA if all the relevant information are being maintain correctly?
    Please also review the notes:
    -> 0216974 Error F5670 during release to accounting
    -> 0113512 VF051 "Doc. & saved (error in accnt determination)
    -> 1325446 SDBONT06: G/L accounts of rebate conditions are
    I hope this answer your issue with error F5 670.
    Best Regards,
    Vanessa.

  • What field represents Payment terms in order tables

    Hello BW-SD Experts
    I am implementing a project that requires a report on payment terms of an order. This is a BW project but however, it is an SD report.
    I need to know what field represents payment terms in SD tables - header or item table?
    Which field also represents complete delivery indicator.
    Thank you.

    hello
    thanks for your answer, its helpful but those fields you mentioned are not in 2LIS_11_VAHDR and 2LIS_11_VAITM where the SD consultant says I can find the payment terms and complete delivery indicator.
    Can you tell me if they are there? or the datasource with the fields you mentioned.
    Thanks

  • Ledger group currency  Vs Company code currency

    Hello Experts,
    Can any one tell me the difference between Ledger group currencies and Company code currencies in New GL in ECC 6.0?
    Also can anyone explain me any scenario where and why we use different currencies in Ledger group and Company code ?
    Regards,
    Sriram

    Hi,
    In New GL we can use different currencies for ledgers. We can maintain 3 types of currencies for each ledger. 1st one should be company code currency. You can maintain additional 2 currencies as you choice which assigned to co code and group. You can generate the report in different currencies for each ledger
    Thanks & Regards
    Assign points if useful

  • Define Ledger Group

    SAP Experts,
    I have some question on ledger group...below is the config of our non leading ledger.
    SPRO->Financial Accounting (New)->Financial Accounting Global Settings (New)->Ledgers->Ledger->Define Ledger Group.
    We have 2 Co codes one is of US which is having leading Leger 0L
    and the other is of country india which is  having non leading ledger 1I. but in the ledger group there are 2 ledgers groups
    1. Ledger Group (I1) - India GAAP Ledger
    2. Ledger Group (I2) - India GAAP Ledger ( 0L & I1)
    I know the concept of Leading Ledger 0L, and also I1 that is Indai GAAP ledgers...but not sure what is the use of I2. I mean when this other ledgers come into picture.
    Edited by: Gabriel Borde on May 31, 2011 5:53 PM

    Dear Gabriel,
    If you check few SAP configuration settings you assign a ledger group rather tahn a ledger. Please check transaction in SPRO>Financial Accountinge(New)>Asset Accounting>Integration with General Ledger>Define how Depreciation Area post to General ledger. This is the place where you assign ledger group which will essentially mean that all legers assigned to ledger group shall have the posting when a posting flows from asset accounting in respective depreciation area.
    I hope now this makes sence for you.
    Thanks!!!
    Murlidhar Khatri

  • Identifying which field is active

    Hello,
    I'm trying to find a way to identify which input field is active, ie. which field has the curson in it and has focus in a group of JTextFields.
    An InputVerifier object can give me the field information - name and value - after moving from the active input field (TAB or mouse movement) but I want to know details of the active field - name and current value - whilst editing the characters in this field.
    I'd also like to be able to identify all cursor movements and all character edits in this field if possible.
    Can anyone help?
    Brgds John

    Listening for Changes on a Document
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#doclistenersListening for Caret and Selection Changes
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#caret

  • Specifying Ledger Group in Sample Document

    Is there a way to specify a ledger group at all within a Sample Document (F-01)?  I see no other transaction for creating Sample Documents so I am wondering if there is maybe a configuration step somewhere that would allow for this functionality?

    Hi lakshmi,
    See sample code below
    METHOD if_ex_acc_document~change.
         DATA: wa_extension TYPE bapiparex.
         DATA: wa_wtax TYPE accit_wt.
         FIELD-SYMBOLS <fs_accit> TYPE accit.
         LOOP AT c_extension2 INTO wa_extension.
           IF wa_extension-structure = 'ZBUSSEC'.
             LOOP AT c_accit ASSIGNING <fs_accit>.
               <fs_accit>-bupla = wa_extension-valuepart1.
               <fs_accit>-secco = wa_extension-valuepart2.
             ENDLOOP.
           ENDIF.
           IF wa_extension-structure = 'ZWTAX'.
             wa_wtax-wt_key    = wa_extension-valuepart1.
             wa_wtax-witht     = wa_extension-valuepart2.
             wa_wtax-wt_withcd = wa_extension-valuepart3.
             APPEND wa_wtax TO c_accwt.
             READ TABLE c_accit ASSIGNING <fs_accit> WITH KEY koart = 'K'.
             IF sy-subrc = 0.
               <fs_accit>-wt_key = wa_wtax-wt_key.
             ENDIF.
           ENDIF.
         ENDLOOP.
       ENDMETHOD.
    Reagrds
    kiran

  • AA Acquisition to specific Ledger Group (NEwGL)

    Hello all:
    I use NewGL.
    Question regarding AA with NEWGL.
    I like diff depre area has diff acquisition value.
    I set diff ledger group to each depre area.
    Example Depre area 01 acquisition value 10000 Ledger Group L0
                  Depre area99 acquisition value  10000 Ledger Group L6
    but which menu to do adjustment of acquisition value only on Depre Area 99 which I tied to non-leading ledger group L6 , I would like to lower acquisiton value of Depre area area 99 only.
    Best Regards,
    Manthana

    Hi Ben,
    Current design is that the account type S and non-open item managed accounts are allowed for FB50L. FB50L is designed to make 'adjustment' postings depending on the requirement for period-end closing operations. Open item managed accounts (including vendor, customer..) will be processed for clearing but clearing must be done for the leading ledger and also it doesn't give an option to make clearing only for the non-leading ledger.
    Kind regards, Kyoko

Maybe you are looking for

  • Report with multiple dimensions in Row and Column with EvEXP

    Hi We are currently running BPC 7.0 SP3 and try to create the report(or schedule) with more 2 x 2 dimensions in the row and column. e.g. row dimension : Outer row is Entity, Inner row is Account column dimension : Outer column is Time, Inner row is C

  • Mac Pro sudden shutdown

    Hello, anyone with a similar problem? I found related threads but in most reports nothing was solved. My MacPro is completely unusable now. Description: After initial startup the machine runs for 20 minutes (+/-), shuts down without warning then rebo

  • Question re: Migration Assistant

    Brief question regarding Migration Assistant: We currently have an iMac in the office that's about 3-4 years old (specs associated with this iMac are posted along with this question, of course). We are going to be acquiring one of the brand-new 27 in

  • PDK portlet and JSF

    Is there a way to use jsf in pdk portlets? Or a least does someone have experience writing some kind of wrapper provider for jsr168 portlet. thanks for advance

  • Some images color change in Photoshop

    Hi all, I've read a number of other threads that discuss this or similar issues, but I've not yet found a resolution that works for me. I'm using the latest Aperture and Photoshop CS 4. I have two or three images (from amongst probably 100+) that, wh