How to clean line items

Hi,
This is in 11.5.10.2.
For Balance Sheet review/clean up of GL Accounts, we are facing following Problems.
When we query a particular GL account the number of lines fetches are more than 6 lakhs line items due to which we are not able to extract complete dump .
The data Extracted is not getting classified into open and cleared items (Clearing) at GL level and therefore the data line items are enormous. Can you suggest something in this regard as to how to proceed further? IF you can share the methodology being adopted by any of you, it will be a great help.
Thanks

Hello.
Can you please try the following query? I'm not sure were are you keeping the data that indicates that the lines are not adjusted so i included the JGZZ_RECON_STATUS field but you can adjust the query to your needs.
SELECT l.effective_date,
h.je_source,
h.je_category,
l.description,
nvl(sum(l.accounted_dr),0),
nvl(sum(l.accounted_cr),0),
l.jgzz_recon_status
FROM gl_je_lines l,
gl_je_headers h
WHERE l.je_header_id = h.je_header_id
AND l.set_of_books_id = <your set_of_books_id>
AND l.effective_date >= '1-jul-09'
AND l.effective_date <= '2-jul-09'
GROUP BY l.effective_date,
h.je_source,
h.je_category,
l.description,
l.jgzz_recon_status
Hope this helps, otherwise repost.
Octavio

Similar Messages

  • Urjent-how to add line items in tcode-FBL3N

    Hi Experts,
      How to add line items customer, customer name,  vendor and vendor name in FBL3N.
    Thanks in advance.
    mahe
    Moderator message - Please do not use words like "urjent". Please ask a specific question. Please search the forum. This question has been asked and answered before. Post locked
    Edited by: Rob Burbank on Apr 29, 2009 11:27 AM
    Edited by: Rob Burbank on Apr 29, 2009 11:28 AM

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

  • How to transfer Line Items

    Hi
    How to transfer Line Items from One GL account to another GL account.
    We, at the time of changing Non Open Item Manged account to Open Item Manged account, how can we transfer Line items to make this GL account Zero, If suppose line items are more than 200.
    Satish
    Points assured.

    If you are attempting to change the account from Non Open Item managed,  you need to make the account balance zero. The change will be be effective only for future transactions. You need not transfer all line items,  find the balance and  make an  entry to debit or credit to make it zero, to a temporary account. Later, once you have activated, you can reverse that transaction.
    The OSS 606977 refered may be helpful if you are looking for reverse activation. i.e from Open to Non Open. Here is a brief:
    Symptom
    In the G/L account master record, you can activate/deactivate the 'Open item management' indicator if the balance of the account is zero. In this case, the system does not check whether postings exist on the account.
    If postings exist, this could lead to problems, for example, if the clearing is reversed after the change to the indicator is made.
    Other terms
    FS00, FS02, FSS0, FS02, FH190, XOPVW
    Reason and Prerequisites
    The transactions for the maintenance of the G/L account master record did not check whether postings exist on the account. Now the program checks whether postings exist in the current year or previous two fiscal years.
    Solution
    Implement the attached correction or import the corresponding Support Package. Since it could make sense to change an account with balance zero from open item managed to non-open item managed (and vice versa) - despite postings to the account - the message is delivered as customizable (with error as a default setting).
    The check is also carried out, when open-item management is activated, is postings exist on the account.
    If you implement the note you must also carry out the following:
    Use Transaction SE91 to create message 190 in message class FH with the following text:
    Account balance = 0; however, postings exist on the account
    Use Transaction SM30 to insert the following entry into view T100S:
    Application area   FH
    MsgNo              190
    Allowed            EW
    Standard          E
    Afterwards, the message can be customized in View V_T100C. To do this, you can use Transaction OBA5.

  • How to get line item net price and net value?

    I have using "BAPI_SALESORDER_SIMULATE" to SIMULATE to create SO,
    the return table
    ORDER_ITEMS_OUT-NET_VALUE is not equals than created by VA01 .
    how to get line item net price and net value?

    Hi,
    Can u elaborate ur query ?
    By this FM you cannot create a SO . Use FM --> BAPI_SALESORDER_CREATEFROMDAT2
    Regards,
    MAdhukar Shetty

  • How to default Line item display in GL master record???

    Hi..Guys
    How to default Line item display selection in GL master creation.....When we create GL master it will automatically get selected.
    Is it possible to do.
    Plz reply .

    Hi
    With sample account you can succeed your requirement
    Give all the defualt fields whtatever you want then use this sample account while creating GL account
    One more possibility is with SHD0 screen layout change with defaults (this thing i am not sure)
    Reg
    Vishnu

  • Order creation logic how to pass line items

    experts
    i have the following data in iternal table itab.
    po number ,customer number, matnr,quantity ,order date.
    1212838383  7494749  8383938833   20  20032009
    1212838383  7494749  8383938832   10  20032009
    1212838382  7494749  8383938833   20  20032009
    1212838384  7494745  8383938823   30  22032009
    1212838384  7494745  8584858588   05  22032009
    now i want to populate this data into idocs orders segement .
    for all po the customer will be the same and i need to create one order for that.
    in the above data first 2 lines have same po so i need to create order with 2 line items.
    sales org,division,distribution channnel,ordertype will be same for all the records.
    loop at itab into workarea.
    at new po. "for same po, same header data so i am using AT NEW
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '008' .
    e2edk14-orgid = 'NN21.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    edi_dd40-segnum = 1.
    edi_dd40-segnam = 'E2EDK14 '.
    edi_dd40-mandt = sy-mandt.
    edi_dd40-psgnum = psgnum.
    e2edk14-qualf = '006' .
    e2edk14-orgid = 'ni.
    MOVE e2edk14 TO edi_dd40-sdata.
    append edi_dd40 to itab_output.
    endat.
    now the item data comes , so i need to create items with same po.and afetr this i need to submit this data to fm before another diffent  po comes.below same customer and po so need to consider as one sales order and submit to fm.
    item1  1212838383  7494749  8383938833   20  20032009
    item2  1212838383  7494749  8383938833   20  20032009
    call function 'MAST_IDOC_DISTRIBUTE'
    My concern is how to tell to the system for the same po create the order with multipl line items , do i need to use to AT NEW
    or some other commands above?
    endloop.

    i have used at end of po. but my matnr is becoming *************. no date is showing in the internal table while populating the matnr to segments.
    Loop at itab into workarea.
    at end of po.
    here i am filling the matnr to the segment. here  workarea-matnr is showing ***********  only stars,
    endat.
    endloop.
    If i remove the at end of po , then the matnr is comming .
    Please sugggest me what to do.
    my fields sequence are like this.
    kunnr " customer
    bstnk "po
    matnr " material
    currency
    kwmeng "order quantity
    podate
    orderdate
    so how to handle this please suggest.

  • How to reject Line Items in a Service Contract?

    Hello friends,
    Can anyone help me understand how do we reject items in a Service Contract? I don't see any Reject field. Is it one of the Status I need to configure for Item Level Status Profile? Even if I add a 'Reject' status, how do I link it to Rejection Reason codes? (I know how to add Reason codes in customizing, but how they are linked to a Transaction type is something I am not finding...).
    Please provide any inputs.
    Thanks.

    HI Navaneethan,
    please try following code.
    make  PEKKO should be internal table with appropraite structure..
    Loop at ZBTXT.
          MOVE ZBTXT-LINE TO PEKKO-ZBTXT.
          append  PEKKO.
         clear  PEKKO.
    ENDLOOP.
    loop at pekko.
    write : / PEKKO-zbtxt.
    endloop.
    if above code is helpful, REWARD POINTS.
    Regards,
    Ranjith

  • How to clear line items in accounts not managed on an open item basis

    We are getting ready to archive FI accounting documents from years 1993-2002.  We encountered a great deal of documents that did not archive during testing because the documents have open items.  We were given bad advice in the beginning on how to set up accounts. Several accounts were not set up on an open item basis and these accounts will not get archived until the line items are cleared. We have set up new accounts to replace these accounts that are now being managed on an open item basis. Our FI users are unable to clear the documents using F-03. Does anyone have a way of clearing these type of documents (not managed on an open item basis)?  Thank you in advance.

    One of our users has proven that the line items on GL accounts not managed on an open item basis are not holding up the archiving. The reason for many documents not archiving is that the item posted to the vendor is still open.
    thanks!

  • How to select line items in recording(BDC)

    Hi All,
    we are trying to Recording QP02 transaction ,we have inputs like material,plant,Group,Group Counter.
    after entering these inputs we will get multiful line items(inspection characteristics).we need to check one field for each item.
    How can we get this?
    Please help me?
    Thanks,
    Peddi reddy.

    Hi Kamesh,
    Thanks.
    After selecting line items i am selecting control indicators Tab.
    then Pop up screen called as (Edit characteristic control indicators) will open ,..then just pressing enter..the it will show another pop up ..here i am selecting one field(Long term Inspection)..the process has to do for all line items.
    In My program i have copied BDC performs which i got from Recording.
    Do i need to change tha performs or will it work?
    i tested in foreground with another material .... upto 3 or 4 line items its working fine.after that sytem does.t say anything.
    if i need to chage performs please help me .

  • How to give line items in flatfile while doing BDC for Table control

    Hi all,
    I am writing BDC for Multiple line items and Transaction  is : FSE5N.
    How do i give the data in the flat file. I mean how do we give the multiple line items in flat file , i.e for second line item again we have to header data or not ?
    ex:
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    for first lineitem  : 3000172;100
    for 2nd line item : 3000172; 200.
    header data : 1015;ALL;demo;kr;INR;01;0001.
    Thanks in advance
    krupali

    Hii ,
    u can give in the same format as u have done in the example.
    A       B    C     D  E    F   G        H          I
    1015;ALL;demo;kr;INR;01;0001;3000172;100
    1015;ALL;demo;kr;INR;01;0001;3000172;200
    and while writing the loop u can give
    loop at it_head.
    loop at it_head where a = it_head-A and b = it_head-B ..........upto G = it_head-G.
      endloop.
    endloop.
    check this
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    Neeraj

  • How to Update line items in a structure ?

    Hi i am getting 3 line items retrieved from a Function Module. But while displaying in the script it shows only the last line item. How do i update all the line items??
    The code is given below,
        CALL FUNCTION 'FI_PRINT_ZTERM'
             EXPORTING
                  I_ZTERM         = EKKO-ZTERM
                  I_LANGU         = EKKO-SPRAS
                  I_XT052U        = ' '
                  I_T052          = T052
             TABLES
                  T_ZTEXT         = ZBTXT
             EXCEPTIONS
                  ZTERM_NOT_FOUND = 01.
    Loop at ZBTXT.
        READ TABLE ZBTXT.
        IF SY-SUBRC EQ 0.
          PEKKO-ZBTXT = ZBTXT-LINE.
          DELETE ZBTXT INDEX 1.
    *      UPDATE PEKKO-ZBTXT.
        MOVE ZBTXT-LINE TO PEKKO-ZBTXT.
        ENDIF.
    ENDLOOP.
    And also how do i retrieve it in the script ?

    HI Navaneethan,
    please try following code.
    make  PEKKO should be internal table with appropraite structure..
    Loop at ZBTXT.
          MOVE ZBTXT-LINE TO PEKKO-ZBTXT.
          append  PEKKO.
         clear  PEKKO.
    ENDLOOP.
    loop at pekko.
    write : / PEKKO-zbtxt.
    endloop.
    if above code is helpful, REWARD POINTS.
    Regards,
    Ranjith

  • How to show line items repeating n times alternatively or assa sets

    Dear All
    Situation: Here is my problem. I have have editable ALV which saves the
    data on pressing save. The no. of qty against an invoce gets repeated on
    the basis of input from the selection screen.
    Problem Area: For example if user entered invoce number and 2 at one field
    in selection screen so if there were 2 line items against the invoce both of
    them should be repated 2 and 2 times. Right now if there are 2 line items
    and user entered 4 so first line item will be shown 1 times and second will
    be repeated 3 times.
    Question how can I have both the line items to appear 4 and 4 times
    instead of the current situation described above.
    I would appreciate help all the senior members of the ABAP group.
    Regards,
    Anurag Jain

    Dear All
    Situation: Here is my problem. I have have editable ALV which saves the
    data on pressing save. The no. of qty against an invoce gets repeated on
    the basis of input from the selection screen.
    Problem Area: For example if user entered invoce number and 2 at one field
    in selection screen so if there were 2 line items against the invoce both of
    them should be repated 2 and 2 times. Right now if there are 2 line items
    and user entered 4 so first line item will be shown 1 times and second will
    be repeated 3 times.
    Question how can I have both the line items to appear 4 and 4 times
    instead of the current situation described above.
    I would appreciate help all the senior members of the ABAP group.
    Regards,
    Anurag Jain

  • How to findout line  items of zero balance clearing account?

    Hi Friends,
    my zero balance clearing account shows balance.
    we have 6 business areas and document splitting activated.
    Trial balance is matching at co.code level.but its mis matching at business area level.
    Line item management is checked in the master data of zero balance clearing account.
    How to find out the line items of the zero bal.clearing account so that i ll get the relevant business area amount and ll pass journal entry accordingly and ll get the balanced trial balance at business area level.
    What is the table for zero balance clearing account line items?
    suggest.
    Regards,
    Sumeay

    Dear
    I am also facing the same problem. We are having 7 business areas. Trial balance is tallied even at busness area level. However, the zero balance clearing account is showing balance in each business area ( we can say "inter business area balncess.").
    Please help
    Regards.

  • How to avoid Line Items(fields) in BAPI mapping.

    Hi
    Does any body help me for mapping between header and line items in BAPI..
    my scenario is filerfcmail(wokflow)!
    File is CSV based :
    (ex: 001150,,1123,JERM,08122006,,,
         ,,,ANN,,01082006,
    If you look at example csv file , there is some fields mixed with header and line items. But in RFC header can be 1 to 1 and line item should be 0 to Unbound.
    Now my problem is if I sent above example csv file as source :
    The payload coming like this(sxmb_moni) :
    </HEADERDATA>
    - <GLACCOUNTDATA>
    - <item>
      <COSTCENTER />
      <PROFIT_CTR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>60000</ITEM_AMOUNT>
      <COMP_CODE>001150</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>7320</COSTCENTER>
      <PROFIT_CTR>7320</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
    - <item>
      <GL_ACCOUNT>738100</GL_ACCOUNT>
      <ITEM_AMOUNT>40000</ITEM_AMOUNT>
      <COMP_CODE>001151</COMP_CODE>
      <ITEM_TEXT>*777-8030-861</ITEM_TEXT>
      <COSTCENTER>6010</COSTCENTER>
      <PROFIT_CTR>6010</PROFIT_CTR>
      <ALLOC_NMBR />
      </item>
      <item />
      </GLACCOUNTDATA>
    You can find there is one more item coming after headerdata with null values. It means map reading first line and one by one , if any field found in rows which belogs to GLAccount(Line item), then it writing one more item after headerdata with that fields only.
    Remainig GLAccount data coming as per map after the item .
    Can you tell me how to avoid extra line items.
    Thanks,
    Sankar

    Yes, It exist..
    I cross checked ..with out givig fileds and giving some fields...its writing another items in after headerdata tag.
    hope you understand , what my problem..
    See: GLACCOUNTDATA under subnode
          item is 0 to unbound in BAPI side, because of this its reading all rows , and if find any field which belongs to GLAccount , then it writing another item tag after headerr data.
    Thnaks,
    Sankar

  • How to display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

Maybe you are looking for

  • JTable Multiple Selection

    Hi, I am having a problem with the jTable's multiple selection. I apply cell renderers on a table's cells and also apply cell selection model on the table. I want to have mutliple row selection but I only get single selection. Could someone please ex

  • ITunes freeze after going to the overview of my iPad

    Hey guys! I just bought today the iPad 1 and I tried to update my IOS to 4.3. It worked everything fine, after restarting the iPad there is now a blackscreen with the apple logo and the loading icon in it. Actually, I tried now to reset the whole iPa

  • Launch jar from html!!!

    Ok everyone i am running into deep problems from the time i have been trying to launch this pure java application jarfile from the html browser. Everythin works fine except for Mozilla firefox in Linux. firefox somehow doesnt recognise the system def

  • How to Copy Specific Changes between branches in jdev 10g??

    Hi! I'm using jdev 10g with svn, I've already create a branch of a project (we're going to use it in production), but I cant find an option to merge the content of trunk with my branch. (would like to use jdev instead of command line) I found the opt

  • Doubt on Order Quantity

    HI all, Currently i am using the datasource 2LIS_11_VAITM. I have activated the datasource. And i run this datasource in RSA3.I have compared the data with the Table level data. In this datasource, there is a field called Order Quantity (KWMENG). I h