FM to get actual line items, budget and actual amounts for a given IO num.

Hello Experts,
I am currently doing a report to show the actual and budget amounts for a given internal
order number. Now, my processing takes a long time so I need to know if there are any
available FM's for this.
I am checking transactions: S_ALR_87013019 and KO03.
Hope you can help me guys.Thank you and take care!

Hi Rob,
I am actually modifying my colleague's program and based on my checking, it is taking a very long time to fetch the relevant line items for a given IO(internal order) in tables BSIS and BSAS. Below is the code:
SELECT bukrs
         belnr
         budat
         aufnr
         dmbtr
         shkzg
  INTO TABLE it_pdate1
  FROM bsis
  WHERE bukrs IN s_bukrs
  AND budat IN r_budat_p
  AND aufnr IN s_aufnr.
  SELECT bukrs
         belnr
         budat
         aufnr
         dmbtr
         shkzg
  APPENDING TABLE it_pdate1
  FROM bsas
  WHERE bukrs IN s_bukrs
    AND budat IN r_budat_p
    AND aufnr IN s_aufnr.
  SORT it_pdate1 BY aufnr.
  DELETE it_pdate1 WHERE aufnr EQ space.

Similar Messages

  • How to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM (ABAP Programming)

    Hi All,
    I have to Get Each line item Create and Approval dates for a SHOPPING CART in SAP SRM. Either a table, or any Function module, Method, please let me know ASAP. Same i can use in my Program.
    Thank you Very much.
    Regards,
    Ramesh J.

    Hi,
    Refer the below wiki link it may help you.
    Product catlog configuration for ECC - CRM - SCN Wiki

  • Query to get all General Ledger: Actual Line Items

    Hello All,
    I am developing a cash flow report. for this I write a query on FAGLFLEXA table but in my system business area is not mation in FAGLFLEXA table becouse customization is not done.
    so i want to use other table where i get Business are, company code, year and period.
    so can anybuddy send the query from i get all actual line items
    so can you help me...
    thanks in adv.
    Kaustubh

    Hello Balu Latpate 
    Thanks for u r reply
    but their is no entries in the GLPCT and GLPCA

  • Problem in Commitment line items & Budget check

    Hi Experts,
    I am facing a problem in my system for Commitment line items & budget check.
    I followed the below steps:
    1. Created Project & structured the same.
    2. Allocated the Budjet for WBS Elements.
    3. Released the project.
    4. The PRs are created for material and external services.
    5. When I check in the report S_ALR_87013558 the commitments are not showing in the report.
    6. After I performed the PO & GR (the PO value is more than the budget), still it is not producing any error message.
    7. I have even consumed the material, for which the cost is more than the budget, still there is no error message from the system.
    8 . I tried to perform transfer posting of the material from other plant or initial posting of the goods using 561 Q, at that time the system is producing the error message.
    9. When I check the above report after GR & GI the actual line items are showing.
    The problem is that why system is not creating the commitment line items.
    In customization I have maintained as below:
    1. Budget profile
    2. Assigned the Budget profile to Project profile.
    3. Maintained the tolerance limits for the controlling area and budget profile combination.
    4. I have created the B/S G/L accounts as cost elements with category 90 (statistical).
    5. AVAC for the WBS elements is active for the WBS elements
    My doubt is:
    Why system is not writing commitment line items?
    Even after writing the Actual line items why the error message is not produced?
    I am understanding that since the GR from PO is being done, probably this GR is not producing the error message as it is linked with the PO commitment. But at the time of GI the error message should be produced.
    Can any one help me for solving this issue?
    I tried searching the forum before posing, but couldnot get a relevant one.
    Regards,
    Praveen

    Dear Nitin,
    Yes I have checked it and the commitment management is active.
    I also checked the table RPSCO table as well, there is no entried with the value key 21 or 22, the entires are available with 41  only for my project.
    Also, I was maitaining the WBS element in a maintenance order. When I am trying to enter the materials in componenet tab, if the value is exceeding the budget value it is producing the error message.
    Praveen

  • User defined Characterestics not being updated in actual line items

    Gurus!
    I am using Accounting Based COPA only.
    I have defined a user based characteristic for which I am using user exit to derive.
    However, this charaterstic is not getting updated in actual line items.
    The derivation is working correctly at Sales order and Invoicing documents. (account assignment tab).
    Where could I be going wrong??
    Regards
    Saurabh

    Hi,
    Please check the settlement rule of the sales order and check whether the relevant characteristics have been maintained in the settlement rule of PSG. If not, you may have to include the same.
    Trust this helps much.
    Cheers

  • Error: No Actual Line item were selected (Message No. KB420)

    Hi All,
    I have created order in KO01 and posted the transaction in F-02. And assigned the same order in KH01.
    And, now i am trying to Actual cost of line items for order in KOB1, i am getting below error
    "Error: No Actual Line item were selected (Message No. KB420)"

    HI,
    Thank you for the reply.
    Madce necessary changes internal order and assigned the correct cost element.
    issue got resolved. Thank you

  • Customer/Vendor A/C with line item details and with opening and closing Bal

    Dear Sir / Madam,
    Is it possible to have a customer and / or vendor Sub-Ledger account-
    with line item details and with opening and closing balance detail
    for a particular period.?
    Regards
    Chirag Shah
    I thank for the given below thread which has solved the same problem for G/L Account
    Re: Report to get the ledger printout with opening balances

    Hello Srinujalleda,
    Thanks for your precious time.
    I tried the referred T-Code
    But this report is not showing Opening balance, closing balance detail.
    It only gives transactions during the specified posting period and total of it.
    Please guide me further in case if I need to give proper input at selection screen or elsewhere.
    Client Requires Report in a fashion
    Opening Balance as on Date
    + / -  Transactions during the period
    = Closing Balance as on date
    As that of appearing for G/L Account by S_ALR_87012311
    Thanks once again & Regards
    Chirag Shah

  • Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers in fbcj

    Hi all ,
    I have a requirement to Post Cash Journal Document using FBCJ tcode.
    Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers
    for exp:
    pk   GL a/c   description       amount   cost center  profit center
    40  400101  telephone exp   500        1403            P 1000
    40  400101  telephone exp    100       1404            P 2000
    50  200100  cash in hand      600-                             
       This is My requirement  is it possible in fbcj
        Please suggest me.ASAP.
    Regards
       Naresh.

    Hi,
      This you can do it in two ways:
    1. Make three header under top level....one Product A, 2nd Product B ( as Billing element) and third as Common expense ( only cost). Now 1st & 2 nd WBS, you have to have sales order linking with individual lint item, for third you will accumulate all the common expense till the period end then make a reposting of the same in desired proportion to both products WBS hierarchy
    (This is if you want to have a track on the common expense as well.......like planning, budgeting & control)
    After this reposting, run RA for individual billing element and hence you will all the complement detailing and control over Revenue and expense with respect to Product A and Product B individually.
    2. If you don't want to maintain that kind of detailing the common expense and keep track of it through project, then have cost centers accordingly and make an assesment/ distribution with respect to expenses accumulated at those cost centers for the period to the respective WBS under each product. Then execute the period end processes for the project.
    Or
    You can try with have two more line items in the costing sheet as an overhead against common expenses with respect each product.
    I hope this should help you.
    Regards
    Avisek Bhardwaj

  • Profit center - actual line items report

    < MODERATOR:  Message locked.  Please post this message in the [Controlling forum|SAP ERP Financials - Controlling;. >
    hi,
    i am trying to excute ke5z, profit center actual line item report. it does not show any values even if i am running it wide open, I am testing this in our quality client, we have data all of 2008 posting to profit centers. i
    is there some kind of config involved in this.
    please let me know if anyone has an idea.
    thanks.

    Are you absolutely sure there are no values in any of the fields in selection screen?  Recheck if any of the multiple selections (arrow at the end of each field) is active?  Are you running it for record type 0 (actual) - you did say you are running it wide open, but I am just trying to reconfirm.
    Just another think that you could check - when you are in the initial screen of KE5Z, go to Extras -> Data source (F5) from the top menu and make sure Database checkbox is checked.
    Edited by: Srikanth Tamma on Sep 22, 2008 6:46 PM

  • KE5Z - Actual Line Item report freezes before displaying the result

    Hi,
    We have a situation. We have a Z report in Finance. We have linked KE5Z to this Z report using the Report Painter along with 15 others. When we run the Z report it works fine and displays result. In the displayed result, if we futher drill down for the actual line items for a particular profit center, system freezes. It does not display any result even after a long wait.
    We did our analysis and found that the program takes the profit center number range from the least available in the profit center group to highest available in the profit center group and starts checking for every line item in it. This happens when the profit center group has more than 50 profit centers in them. When we run KE5Z tcode individually, it runs fine.
    We are not sure how to go about finding a way out of it.
    Has anyone faced such issue? Do you know of any OSS note that can help us? or If anyone of you can think of a solution or a way to go about it?
    Your help on this is much appriciated.
    Regards,
    Mukund S

    Hi,
    Any pointers to this will be appriciated...
    Regards,
    Mukund S

  • Text element with line item content and include text

    Hi All,
    How to write in smartform in single text element with line item content and include text.I am using this text element in table . Pls help me out. i am writing the include command in text element ,but this command is not enough for single line of text editor.
    thanks ,
    Rakesh singh

    I have been pulling my hair out for a few days trying to find
    this solution. This fixed my problems as well.
    I was getting ready to scrap the Report Builder altogether
    and move to SQL Server Reporting Services over this issue.
    I'm running 7.0.2 also, that version alone fixed many small
    issues like creating borders and such.
    Thanks

  • No actual line items were selected

    Hi Experts,
    i am trying to view accounting document for delivery by vl03n, system shows errors as 'No actual line items were selected'.
    All the authorizations are on place, SU53 screen shows 'The last authorization check was successful'
    Please advice how to check Accounting document for Delivery.
    Thanks in Advance,

    Dear Prasant,
    Are you going to view the PGI A/C entries, okey then In Vl03n>>> Click on Display Document flow Icon or press F7 for Display document flow while entering delivery in vl03n.>>>Please click on gd issue and again click on Display document button >>>a material document screen will appeear to you. In that click on accounting documents.
    or try tcode mb03 for the same.
    Regards
    G.J.Raju
    Consultant-SAP SD

  • Actual Line Items - WBS : Table

    Hi,
    I want to know the actual line items of a WBS element. Can someone help me with the table where i can get the details.
    Thanks in Advance,
    Safi

    chk RPSCO table enter with value type 4

  • Profit center actual line items

    Hello ALL,
    What is the profit center actual line items display report in NEW GL -  ecc 6.0.I want to see all the line items posted to all accounts by profit center wise  in a particular period.
    Thanks,
    Sai.

    Hi
    T.Code for PCA  actual line items is KE5Z.  In this line items repost we can drill down the posted documents also.
    Thanks and regards,
    Ravi Vruddhula

  • Actual line item drill down

    In cost center report S_ALR_87013611, when I drill down the actual line items appears - tcode  KSB1. When I drill down further settlement documents appears but when I click accounting documents, I will be able to see controlling document only. I want to see the accounting document also. Can you help how to bring accounting documents when I drill down in any line item?
    Regards
    Zain

    Dear Gordon
    Thanks for your input. I discovered the problem is that the user is posting to the internal order and he can drill down to the document level, once the order is settled to cost center he will be able to see controlling document only and no accounting document can be seen. Accounting document can be seen the cost center drill dwon in case he made posting directly to cost center
    Thanks
    Zain

Maybe you are looking for

  • How to delete the region code for country in T005U

    Hello, The region code for XX country are changed, So I have deleted all entries for that country in transaction code "OVK2" and updated the new region code which should be updated in Table T005S and T005U. But in table T005U there are few region cod

  • VPN - having trouble mapping to a server using path

    I need to connect to a couple of drives on my workplace. I work remotely. I was able to create a VPN connection (via System Preferences > Network) with the info they provided. I connect and it shows the connection as being successful. However, I have

  • Flash CS5 crashing when saving

    OK! What's the deal? I have just purchased Adobe Master Collection CS5, all $4400 worth! To give the software it's credit, I formatted my HDD and clean installed Win 7 x64 OS. I then clean installed the entire CS5 suite! As I have to somewhat justify

  • Problem in selection screen of y-report.

    Hi ALL, I have modify a y-report and add one parameter to selection screen. Earlier there was only two parameter, now it becomes three. In developement and quality servers it is showing all three parameters and report is running perfectly OK. But whe

  • SetContentType, Header or ??

    Hi, first post so kid gloves please! OS debian sarge tomcat 5.0.19 j2sdk1.4.2_04 I have a minor but irritating problem. I have a servlet which produces a CSV file and prompts to save, and it works OK. The problem is that an unwanted blank browser win