Display average for line items
I have a query with a fixed row structure basically line items restricting on specific cost centers. I have my column structure where my key figures are alone with date restrictions, etc. Part of my query requires the user to specify the date interval for the data they want to see: Production date: 8/01/2008 - 8/12/2008 for example, but instead of the total for that date range for each line item in my row structure, they want to see the month-to-date average of the production for that time period. I have tried to do the option of Average for all values under the local calculations, but it still gives me the total, so I'm assuming that only applies to the result rows. The option for aggregation is grayed out. Temporarily, I have given them an input variable to enter 12 for the number of days and done the division in a formula, but I don't want to continue to have to do that if there is a better way.
We have implemented something similar using formula variables to calculate the number of days between an input date range interval. Ex. ZPRDDATE is the input variable they enter 8/1/2008 - 8/31/2008
Have two formula variables which are derived from ZPRDDATE in auser exit:
Start Date = From value of ZPRDDATE (8/1 in this case)
End Date = To Value of ZPRDDATE (8/12 in this case)
Build 3 formulas in your query:
Start Date = Start Date variable
End Date = End Date Variable
Diff Daus = End Date - Start Date
The n you can calculate the avg in a formula
Similar Messages
-
Transaction KSB1 - Display Actual Cost Line Items for Cost Centers
Hi,
When I run transaction KSB1 - Display Actual Cost Line Items for Cost Centers, all my offsetting accounts (accumulated depreciation accounts) are shown except for the ones for asset classes:
- Buildings
- PC & Small Applications
On the FI side, I can see transactions being posted to their relative accumulated depreciation accounts but I do not see this on the CO side when transaction KSB1 is executed. I have checked the config and the account assignments look correct. Also, the assets created have cost centers assigned to them.
Could you please help!
Thanks,
- DekiHi Murali,
I have one depreciation expense account (P/L Account) which is also a cost element.
During depreciation run, the different asset classes are supposed to hit the depreciation account above and their corresponding accumulated depreciation accounts (These are Balance Sheet Accounts and I have separate accounts for each asset class .. ie: Accumulated Depreciation for Furniture and Fixture for asset class Furniture and Fixture).
Now when I run transaction KSB1 - Display Actual Cost Line Items for Cost Centers, all my accumulated depreciation accounts are shown except for the ones for these asset classes:
- Buildings
- PC & Small Applications
Any thoughts on why the above aren't showing?
Thanks! I really appreciate your help!
- Deki -
KOB1 - Display Actual cost line items for Orders
Hi All
A production order has been settled. When the actual cost line items are displayed for the said production order in KOB1, there are multiple line items related to the production order that gets displayed.
The issue we are facing is, in one of the line item, the accounting document has one credit (Consumption a/c) and two debits (one debit is to inventory a/c and another debit is to price difference a/c). However in the report, in the offsetting GL column only one GL code (price difference gl account a/c) but appears with the entire amount.
Ideally two separate line items needs to be displayed with respective line items. Is this a flaw in SAP.
Can anybody throw some light on this and help me.
Regards
Prasannathis is may be config issue.
can you explain with accounting entries for said line items and offsetting GL for each line?
regards.
ashok -
Not displaying Actual cost Line Items for Order
Hi Gurus,
Recently we did patching from SPC6 to SPC8. After patching we noticed that could not able to see displaying Actual cost Line Items for Order from work order.
System is not throughing error message when I double cline on line item at Plan/Actual Comparison screen in work order cost tab.
We can able to see the same from KB01 with out any problem. I have attached the details.
Could any one suggest me please. Appreciate your thoughts
Regards,
SriniHi Paul,
I have implemented this note and get it sorted out.
Thank you for support.
Regards,
Srini -
Additional fields for line item display for Vendor Accounts
Hi,
The additional fields for line item display have been defined for the vendor accounts. I am able to see the additional fields in SAP 4.7 system but not in ECC 6.0.
Could you help me to know how the same will be displayed in ECC 6.0 system.
ThanksIn SPRO, Vendor Accounts -> Line Items -> Display Line Items -> Define Additional fields for Line item display, the fields for Check number from (PAYR-CHECF) and Tax Jurisdiction (BSEG-TXJCD) have been defined.
When I am executing Vendor Line Item display (FBL1N), I am not able to select these fields for defining a layout. Could you please let me know, how I will get these fields in FBL1N.
Thanks -
T.code required for Vendor line item display and Customer line item display
Hi Gurus,
Pl provide me transaction code for "Vendor line item display and " Customer line item display apart from FBL1n for vendor and FBL5n for customers.
Kindly advise.
Regards,
SamarHi,
You could use these, for example:
S_ALR_87012103 - List of Vendor Line Items
S_ALR_87012197 - List of Customer Line Items
Just curious: what's wrong with FBL1(5)N?
Regards,
Eli -
Define Additional Fields for Line Item Display
Dear gurus,
I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items->Define Additional Fields for Line Item Display". When I run the report the field is correctly displayed but if I save the current layout and set it into the selection screen, the column appears is blank. And if I open the change layout window and click OK the column gets filled.
Is there another transaction that I must set new columns to FBL1N.
Thank you very much.
Paresh Jivani
Edited by: Jivani Paresh on Jul 31, 2009 9:16 AMHii,
When you will execute FBL1N, it will come up in standard format. if you want to see any specific fields,then you have to go to Change Layout button and choose from available fields as per your requirement and then execute.
For future reference, you can save this layout as a Variant and then you can directly execute that report using that variant.
Dhara D. -
Table for line item in F-47 Display Document - Down Payment
Hi,
Can anyone please tell me from which table can I pick the values for line items. I'm developing a report in smartforms for down payment request. For header items I found out that the values are stored in table - BKPF.
Please help..
Regards,
SriramHi,
Go to Logical database through SE36 and give KDF for vendor and DDF for customer. You will get the details of tables there.
Regards
shankar -
Report to Display Vendor Open Line Items
is there a report out there to display Vendor Open Line Items only for Asset Puchases??
Thank youDear Expert,
In FBL1N we can find the line items according to your requirement through the "Dynamic Selections" select the Particular vendor or Vendor Group for selecting a total group and , Document , Document Type select the AA Document type and Select the Open items Radio button and also you can select Open at key date enter the date up to which you want to view., And Execute.
Regards,
Shankar K B -
Difference in GL Balance display and GL line item display
Dear All,
Can any one help me why the difference between GL display and GL line items display?
Thanks in advance
regards
ElanHi,
You can do the following:
1. carryout gl balance carryforward from previous to current year : Use t.code:F.16
You can cross check the fs10n balance with FBL3N balance from previous years. Assume these balance are matching for previous year 2007 and 2008, you have this problem only in 2009, then you can carryforward this balance from 2008 to 2009 once again. Some times users may post some adjustment entries as per the auditors recommendations. If this balance is not matching from 2007 itself, then first carryforward the balances to 2008 then 2009. You can run this transaction no of times.
2. check the master data of gl account through t.code:FS04, whether any changes has been done to line item display field?
If you find any changes to line item display field then run the program "RFSEPA01" to get all the line items.
3.If your issue was not resolved even after the above two activities, then let me know the sap version you r working.
all the best
Prasad -
Hi,
I have customized the change rules for Line item.
Still the system not allowing to make changes to that particular field? Can any one tell me, whats the reason for the same.
Following Field is made as changeable for the line item.
BSEG-VBUND Trading partner.
The above field is available in More data Tab or additional data tab while making entry or display of document.
Thanks,
LalatenduHi,
That i know, but trading partner was not entered in the GL Master data. Infact some one wrongly entered Trading partner in Customer master and during bank posting system automatically picked Trading partner.
When thye r trying to clear open items for that GL account , because of that assignment system is not allowing to clear those line item.
If i can remove that trading partner from document, my problem will be solved.
Can any one guide me..or if u need more info please let me know.
Thanks,
Lalatendu -
Purchase Order Authorazation for line item
Hi All,
i have to restrict user to see PO line item ,whose PR not created by them.
means suppose there are 5 line item for one PO created from 5 different PR.
4 PR created by user X and 1 PR created by user Y.
So i dont want to display PO 4 line item for user Y and 1 for X user.
I tried to do with ME_PROCESS_PO_CUST badi .but it didnt work.
Many Thanks,
SuyogHi,
Thanks Anurag for ur quick reply.
Any one know how to do this?.
Thanks ,
Suyog.
Edited by: Suyog Haralikar on Nov 14, 2008 8:13 AM -
Subtotal for line item in REUSE_ALV_HIERSEQ_LIST_DISPLAY
Hi Abapers,
Is it possible to have subtotal functionality for line item for
REUSE_ALV_HIERSEQ_LIST_DISPLAY.
when i select particular line item and press subtotal button
system displaying information mesage
"Subtotals cannot be calculated using item
characteristics"
Even when i executed standard hie program same message displaying for line item.
please provide any sample code for subtotal for line item .
regards,
Hari priyajust copy the program and execute
*& Report Z_HIERSEQ_REP2 *
*& author : ramesh.k *
*& title : hierseq list in alv format *
REPORT z_hierseq_rep2 MESSAGE-ID zrae.
TYPE-POOLS : slis.
*structure declarations
*structure for likp
TYPES : BEGIN OF ty_likp,
vbeln TYPE vbeln_vl,
vkorg TYPE vkorg,
END OF ty_likp.
*structure for lips
TYPES : BEGIN OF ty_lips,
vbeln TYPE vbeln_vl,
posnr TYPE posnr_vl,
matnr TYPE matnr,
matkl TYPE matkl,
ntgew TYPE ntgew_15,
END OF ty_lips.
*internal table declarations
DATA : t_likp TYPE STANDARD TABLE OF ty_likp INITIAL SIZE 0,
t_lips TYPE STANDARD TABLE OF ty_lips INITIAL SIZE 0.
DATA : t_fieldcat TYPE slis_t_fieldcat_alv,
t_sortinfo TYPE slis_t_sortinfo_alv,
i_events TYPE slis_t_event.
*workareas
DATA : w_likp TYPE ty_likp,
w_lips TYPE ty_lips,
w_fieldcat TYPE slis_fieldcat_alv,
w_keyinfo TYPE slis_keyinfo_alv,
w_sortinfo TYPE slis_sortinfo_alv,
W_event TYPE slis_alv_event ,
sub_text type slis_subtot_text.
*global declarations.
DATA : g_vbeln like likp-vbeln.
*selection-screen declarations
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.
SELECT-OPTIONS : s_vbeln FOR g_vbeln.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN.
SELECT SINGLE
vbeln
FROM likp
INTO (w_likp-vbeln)
WHERE vbeln IN s_vbeln.
IF sy-subrc NE 0.
MESSAGE i001 WITH 'vbeln not found'.
ENDIF.
START-OF-SELECTION.
get_data_likp
PERFORM sub_getdata_likp.
get_data_lips
PERFORM sub_getdata_lips.
fieldcatlog_build
PERFORM build_fieldcatlog.
*SORTINFO FOR SUBTOTALS
PERFORM get_sortinfo.
*KEYINFORMATION
PERFORM get_keyinfo.
*LIST DISPLAY
PERFORM alv_list_display.
*& Form sub_getdata_likp
extracting the data from likp.
--> p1 text
<-- p2 text
FORM sub_getdata_likp .
SELECT vbeln
vkorg
FROM likp
INTO TABLE t_likp
WHERE vbeln IN s_vbeln.
ENDFORM. " sub_getdata_likp
*& Form sub_getdata_lips
extracting data from lips.
--> p1 text
<-- p2 text
FORM sub_getdata_lips .
SELECT vbeln
posnr
matnr
matkl
ntgew
FROM lips
INTO TABLE t_lips
FOR ALL ENTRIES IN t_likp
WHERE vbeln = t_likp-vbeln.
ENDFORM. " sub_getdata_lips
*& Form build_fieldcatlog
text
--> p1 text
<-- p2 text
FORM build_fieldcatlog .
*FIELDCATLOG FOR HEADER TABLE
PERFORM build_fieldcatlog1 USING :
'1' 'VBELN' 'DELIVERY NO' 'T_LIKP' ' ' ' ' ' ',
'2' 'VKORG' 'GROUP' 'T_LIKP' ' ' ' ' ' ',
*FIELDCATLOAG FOR ITEM TABLE
'1' 'POSNR' 'ITEM NO' 'T_LIPS' ' ' ' ' ' ',
'2' 'MATNR' 'MAT NO' 'T_LIPS' ' ' ' ' ' ',
'3' 'MATKL' 'GROUP' 'T_LIPS' ' ' ' ' ' ',
'4' 'NTGEW' 'QUAN' 'T_LIPS' 'X' 'X' 'X'.
ENDFORM. " build_fieldcatlog
*& Form build_fieldcatlog1
text
-->P_0185 text
-->P_0186 text
-->P_0187 text
-->P_0188 text
FORM build_fieldcatlog1 USING
pcol TYPE char2
pfldname TYPE char8
pseltext TYPE char20
ptabname TYPE char10
psum TYPE char10
PQUAN TYPE CHAR15
PSUBTOTAL TYPE CHAR40.
w_fieldcat-col_pos = pcol.
w_fieldcat-fieldname = pfldname.
w_fieldcat-seltext_m = pseltext.
w_fieldcat-tabname = ptabname.
w_fieldcat-do_sum = psum.
W_FIELDCAT-qfieldname = PQUAN.
W_FIELDCAT-subtotals_text = PSUBTOTAL.
APPEND w_fieldcat TO t_fieldcat.
ENDFORM. " build_fieldcatlog1
*& Form GET_KEYINFO
text
--> p1 text
<-- p2 text
FORM get_keyinfo .
w_keyinfo-header01 = 'VBELN'.
w_keyinfo-item01 = 'VBELN'.
ENDFORM. " GET_KEYINFO
*& Form ALV_LIST_DISPLAY
text
FORM alv_list_display .
DATA : S_REPID TYPE SY-REPID.
S_REPID = SY-REPID.
DATA W_LAYOUT TYPE SLIS_LAYOUT_ALV.
W_LAYOUT-totals_text = 'G.TOTAL'.
W_LAYOUT-subtotals_text = 'SUBTOTAL_TEXT'.
*FORM subtotal_text CHANGING p_total TYPE any
p_subtot_text TYPE slis_subtot_text.
p_subtot_text-criteria = 'VBELN'.
*p_subtot_text-max_len = 40.
*p_subtot_text-display_text_for_subtotal
*= 'SUBTOTAL'.
**ENDIF.
*ENDFORM.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = S_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
IS_LAYOUT = W_LAYOUT
it_fieldcat = t_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = t_sortinfo
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_DEFAULT = 'X'
I_SAVE = 'X'
IS_VARIANT =
IT_EVENTS = i_eventS
IT_EVENT_EXIT =
i_tabname_header = 'T_LIKP'
i_tabname_item = 'T_LIPS'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
is_keyinfo = w_keyinfo
IS_PRINT =
IS_REPREP_ID =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab_header = t_likp
t_outtab_item = t_lips
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " ALV_LIST_DISPLAY
*& Form GET_SORTINFO
text
--> p1 text
<-- p2 text
FORM get_sortinfo .
w_sortinfo-fieldname = 'VBELN'.
w_sortinfo-tabname = 'T_LIKP'.
W_SORTINFO-group = TEXT-001.
w_sortinfo-subtot = 'X'.
APPEND w_sortinfo TO t_sortinfo.
ENDFORM. " GET_SORTINFO -
Can we see costing value for line item batch in Batch Information Cokcpit r
Can we see costing value for line item batch in Batch Information Cokcpit report - BMBC?
Business like to see standard cost/ item and extended cost which should be qty in inventory * standard cost.
Help appreciated.
Edited by: Tom_Eric on Jan 13, 2012 2:33 AMHI.
YES it is passible.
If the GL is activated line item display check box is active then we can able to see the data as per line items.
T<Code. Fbl5n
Thanks.
Vasu
Edited by: Vasu Enaguthi on Apr 7, 2010 8:46 AM -
Changing the default view for Line Items in an Auction.
Hello All,
We have a version 5 client who is asking for us to change the default view for line items in an auction.
Currently, if you have an auction setup, and you go to the Line Items tab, the default view is the "Basic View". The client would like to change the Default from "basic view" to "price view".
Is there a way to change this default in the system? Can this be configured using query groups? Any information would be helpful.Hi wood cloud,
This is not possible, bcz there is no VLV for that drop down and we cant set it to the price view.
Thanks,
Ankur Goyal
Maybe you are looking for
-
Licensing for this product has stopped working
I just upgraded to design premium CS4 and everything seems to be working except for Acrobat 9 Pro. When launching, I get the message "You cannot use this product at this time. You must repair the problem by uninstalling and reinstalling this product
-
I have a client request for a photo of a person to print with a white silhouette behind the person. This image is to be part of a bigger layout. I can make the image work with a white alpha channel in Photoshop but that same image in Illustrator does
-
Authorization Issue: authority-checks in APO are only warnings
Dear Experts, How can we provide display access to transaction /SAPAPO/BOD001 in SAP APO system. I have created a test role only with the transaction /SAPAPO/BOD001 and made inactive the all the authorization object except s_tcode. when user is exec
-
Can I use LabVIEW to load data directly into system memory from a VI? The serial card I'm using isn't supported by NI nor does VISA recognize it. I'm using a Call Library function to read the data from the card and now I want it to go directly to sys
-
I cannot use keyboard shortcut to quit Safari after Java update
I don't seem to be able to use the quit function (cmd+q). Only if I turn off Java again. I have updated it a few minutes ago, can't see which version it is. 14? Does anyone else have this problem? Klaus