Rescaling output by percentage?
In the output module, is there a way to change the Resize scaling percentage directly? Maybe I want specific percentages like 85% or 50%?
No, and you will get better results by dropping your comp in a render comp that is the right size and then scaling your existing composition to fit horizontally, then rendering that comp.
By the way, the comp sizes listed here are both completely illegal MPEG sizes if you are going to any kind of standard output device. You should stick with the presets unless you know exactly what you are doing and have specifications from your client or a system provider that you must follow.
Similar Messages
-
Output with percentage of certain real_sub?
Hi Experts,
do you know if there is a chance to get an output_var in excel or as valuation with the percentage of a certain real_sub in a composition.
E.g. show all products with component A and the percentage of A at a glance?Hi Can,
now I see your problem. I'm not aware of the needed output within the system, but it works using output into Excel with output variant Excel:
The result is then like this:
Ralph -
How to get Virtual machine reserve (percentage) using WMI
Hi,
In Hyper-V, Virtual machine reserve (percentage) shows percentage value In UI
but Msvm_ProcessorSettingData.Reservation range is 1-100000.
Why it shows like this???
How to get Virtual machine reserve and limit value in percentage???
Pls Help me.....Hi VijendraBoopathy,
I checked the setting of WMI Msvm_ProcessorSettingData , the range of limit and reservation is 0-100000 .
Please refer to the following link:
http://msdn.microsoft.com/en-us/library/cc136870(v=vs.85).aspx
Also we noticed that there is side-note "(percentage)" of limit value and reservation value :
Based on my understanding of this behavior , this value was converted to percentage by GUI .
So , if you want to get the percentage you may customize the output to percentage .
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Assistance with Requirements to Run a Shockwave Based Simulation
I am attempting to use a web-based simulation that requires Shockwave version 10 or higher FULL and IE 7 or higher. I currently have Shockwave 11.6.8R638 and IE 9. I am also using Windows 7 and the Standard VGA Graphics Adapter with driver 6.1.7600.16385. The simulation requires use of the Shockwave XTRAS.
When I run the simulation I do not see parts of the simulation on the screen. I believe I meet all of the requirements to run this simulation, can anybody see what, if any, requirements I do not meet?
Thank you in advance for any help you can provide.
-MarkMost likely cause would be that the simulation does not match your screen size and is not rescalable. Try viewing the simulation at a higher screen resolution, as high as possible. You can also try changing the percentage screen size of your browser. This can be varied with most browsers from about 20% to 400%. If you are the producer of the simulation, then you need to examine your output options to insure that the simulation outputs as percentage of browser.
-
How to do a TopN Sort based on a formula
Hi all,
My report has two groups, Store and Department. In the details section are multiple jobs per store with costs. These are subtotalled by Store and Department. I want to compare total spend for each store with the store budget and produce a list of the Top 10 stores based on the percentage actual spend/budget.
My problem is I can only do a Top 10 sort on a summary field and I cannot summarise the percentage field as this is a formula which doesn't seem to allow summaries.
Any help much appreciated.
Cheers,
JDJan,
Here are a couple of options.
1) Do the calcuations on the database (thru either a stored proc or command object).
2) Insert a crosstab where the rows are based on the Store and the summarized field is based on the formula that outputs the percentage of the actual vs budget as a Maximum. You can then do a TopN sort on the crosstab
Edited by: Graham Cunningham on Oct 10, 2008 8:27 AM -
hello All,
I am working on Report : rfbila00, balance sheet/profit lost statement. It is working fine. But in the output the percentage field is not getting populated.
Can anyone tell me what may be the reson and what needs to be done.
Thank You,
Regardshave you field the parameters to compare (BILVJAHR, V-MONATE) on selection-screen?
A. -
Sample ALV report required for FI module
Hello friends,
I am develoing ALV report for FI module for that i need some sample ALV report. If someone have than please send it to me.
Thanx & Regards,
Rahul TaleleHI,
SEE THE SAMPLE REPORT
Fringe Benefit Tax Report
Program Name :
Object ID :
Functional Analyst :
Programmer :
Start date :
Initial CTS :
Description : FRINGE Benefit Tax
Includes :
Function Modules :
Logical database :
Transaction Code :
External references :
Modification Log
Date | Modified by | CTS number | Comments
| | | Initial Version *
REPORT ZFI_FBT NO STANDARD PAGE HEADING LINE-SIZE 255.
TYPE-POOLS: SLIS.
TYPES : BEGIN OF
T_BSIS,
BUKRS TYPE BUKRS, " Company Code
HKONT TYPE HKONT, " General Ledger Account
GJAHR TYPE GJAHR,
BELNR TYPE BELNR_D, " Accounting Document Number
BUDAT TYPE BUDAT, " Posting Date in the Document
BLDAT TYPE BLDAT, " Document Date in Document
XBLNR TYPE XBLNR1, " Reference Document Number
BSCHL TYPE BSCHL, " Posting Key
DMBTR TYPE DMBTR, " Amount in Local Currency
AUFNR TYPE AUFNR_NEU, " Order Number
NONFBT TYPE DMBTR, " non fbt amount
SUBFBT TYPE DMBTR, " subject to fbt amount
ZFI_FBT TYPE ZFI_FBT, " Qualifying amount.
AMOUNT TYPE DMBTR,
FBTPAY TYPE DMBTR,
ZFI_PAY TYPE ZFI_PAY,
END OF T_BSIS,
T_IT_BSIS TYPE STANDARD TABLE OF T_BSIS.
TYPES : BEGIN OF T_FRINGE,
ZFI_HKONT TYPE HKONT,
ZFI_FBT TYPE ZFI_FBT,
ZFI_PAY TYPE ZFI_PAY,
END OF T_FRINGE,
T_IT_FRINGE TYPE STANDARD TABLE OF T_FRINGE.
DATA : GIT_FRINGE TYPE T_IT_FRINGE,
GWA_FRINGE TYPE T_FRINGE.
DATA : GIT_BSIS TYPE T_IT_BSIS,
GWA_BSIS TYPE T_BSIS.
DATA : G_HKONT TYPE HKONT,
G_BUDAT TYPE BUDAT,
G_AUFNR TYPE AUFNR_NEU.
FIELD-SYMBOLS : <BSIS> TYPE T_BSIS.
DATA : G_REPID TYPE SY-REPID,
GIT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
GWA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
GT_EVENTS TYPE SLIS_T_EVENT,
GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
GS_LAYOUT-ZEBRA = 'X'.
GS_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CONSTANTS : C_50(2) TYPE C VALUE '50'.
SELECTION SCREEN DEFINITIONS
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_BUKRS TYPE BUKRS DEFAULT 'H901' OBLIGATORY.
SELECT-OPTIONS : S_HKONT FOR G_HKONT,
S_BUDAT FOR G_BUDAT.
*PARAMETERS : P_AUFNR TYPE AUFNR_NEU DEFAULT '000000100001' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
EVENTS
INITIALIZATION.
INITIALIZATION.
G_REPID = SY-REPID.
AT SELECTION-SCREEN
AT SELECTION-SCREEN.
PERFORM GET_ZTABLE. " get data from ZFII_FRINGE table
START-OF-SELECTION.
START-OF-SELECTION.
PERFORM GET_DATA. " get data from BSIS table
IF NOT GIT_BSIS IS INITIAL.
PERFORM GET_PERCENTAGE. " to get the percentages from table ZFII_FRINGE
PERFORM CHK4_INTERNAL. " checking for the posting key wheather th document is reversed
" and checking wheather internal order is FBT or non-FBT
ENDIF.
END-OF-SELECTION.
END-OF-SELECTION.
IF NOT GIT_BSIS IS INITIAL.
PERFORM DISPLAY. " display ALV GRID display
ENDIF.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM GET_DATA .
SELECT
BUKRS
HKONT
GJAHR
BELNR
BUDAT
BLDAT
XBLNR
BSCHL
DMBTR
AUFNR FROM BSIS
INTO TABLE GIT_BSIS
WHERE BUKRS EQ P_BUKRS AND
HKONT IN S_HKONT AND
BUDAT IN S_BUDAT.
IF SY-SUBRC NE 0.
MESSAGE I000(ZFI) WITH 'No data exist'.
EXIT.
ENDIF.
ENDFORM. " get_data
*& Form display
FORM DISPLAY .
PERFORM BUILD_FIELD_CATALOUGE.
PERFORM GET_EVENTS.
PERFORM DETERMINE_SORT_SEQUENCE.
PERFORM SUB_COMMENTERY_BUILD.
PERFORM ALV_DISPLAY.
ENDFORM. " display
*& Form build_field_catalouge
FORM BUILD_FIELD_CATALOUGE.
DATA : L_POS TYPE I.
L_POS = 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'HKONT' " InTab Field Name
'GIT_BSIS' " InTab Name
'10' " Output Length
'GL Account' " Column Name Text
' ' " Datatype
'X' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
' '. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'BELNR' " InTab Field Name
'GIT_BSIS' " InTab Name
'10' " Output Length
'Document No.' " Column Name Text
' ' " Datatype
'X' " Key?
'1' " Row Position
'X' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
' '. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'BUDAT' " InTab Field Name
'GIT_BSIS' " InTab Name
'10' " Output Length
'Posting Date' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
' '. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'BLDAT' " InTab Field Name
'GIT_BSIS' " InTab Name
'10' " Output Length
'Docu. Date' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
' '. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'XBLNR' " InTab Field Name
'GIT_BSIS' " InTab Name
'16' " Output Length
'Ref. Doc. Number' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'DMBTR' " InTab Field Name
'GIT_BSIS' " InTab Name
'16' " Output Length
'Gross Amount' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'SUBFBT' " InTab Field Name
'GIT_BSIS' " InTab Name
'16' " Output Length
'FBT Amount' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'NONFBT' " InTab Field Name
'GIT_BSIS' " InTab Name
'16' " Output Length
'Non FBT Amount' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'ZFI_FBT' " InTab Field Name
'GIT_BSIS' " InTab Name
'12' " Output Length
'Percentage' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
' '. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'AMOUNT' " InTab Field Name
'GIT_BSIS' " InTab Name
'16' " Output Length
'Qualifying Amount' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
L_POS = L_POS + 1 .
PERFORM INIT_FIELD_CATALOG USING GIT_FIELDCAT[] " Field Catalog
L_POS " Column Position
'FBTPAY' " InTab Field Name
'GIT_BSIS' " InTab Name
'12' " Output Length
'FBT payable' " Column Name Text
' ' " Datatype
' ' " Key?
'1' " Row Position
' ' " Hotspot
' ' " Emphasize
' ' " key_sel
' ' " justification
'X'. " Sum field?
ENDFORM. " build_field_catalouge
*& Form init_field_catalog
text
FORM INIT_FIELD_CATALOG USING P_GIT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV
PV_POS LIKE GWA_FIELDCAT-COL_POS
PV_FIELDNAME LIKE GWA_FIELDCAT-FIELDNAME
PV_TABNAME LIKE GWA_FIELDCAT-TABNAME
PV_OUTPUT LIKE GWA_FIELDCAT-OUTPUTLEN
PV_SELTEXT LIKE GWA_FIELDCAT-SELTEXT_M
PV_DATATYPE LIKE GWA_FIELDCAT-DATATYPE
PV_KEY LIKE GWA_FIELDCAT-KEY
PV_ROW LIKE GWA_FIELDCAT-ROW_POS
PV_HOTSPOT LIKE GWA_FIELDCAT-HOTSPOT
PV_EMPHASIZE LIKE GWA_FIELDCAT-EMPHASIZE
PV_KEY_SEL LIKE GWA_FIELDCAT-KEY_SEL
PV_JUST LIKE GWA_FIELDCAT-JUST
PV_SUM LIKE GWA_FIELDCAT-DO_SUM.
DATA: LT_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
LT_FIELDCAT-OUTPUTLEN = PV_OUTPUT.
LT_FIELDCAT-COL_POS = PV_POS.
LT_FIELDCAT-FIELDNAME = PV_FIELDNAME.
LT_FIELDCAT-TABNAME = PV_TABNAME.
LT_FIELDCAT-SELTEXT_M = PV_SELTEXT.
LT_FIELDCAT-KEY = PV_KEY.
LT_FIELDCAT-ROW_POS = PV_ROW.
LT_FIELDCAT-HOTSPOT = PV_HOTSPOT.
LT_FIELDCAT-EMPHASIZE = PV_EMPHASIZE.
LT_FIELDCAT-KEY_SEL = PV_KEY_SEL.
LT_FIELDCAT-DO_SUM = PV_SUM.
LT_FIELDCAT-JUST = PV_JUST.
LT_FIELDCAT-DATATYPE = PV_DATATYPE.
APPEND LT_FIELDCAT TO P_GIT_FIELDCAT.
CLEAR LT_FIELDCAT.
ENDFORM. " init_field_catalog
*& Form alv_display
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
i_grid_title = 'Fringe Benefit Tax'
I_GRID_SETTINGS =
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = GIT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT = GT_SORT
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = GT_EVENTS[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = GIT_BSIS
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_display
*& Form chk4_internal
text
--> p1 text
<-- p2 text
FORM CHK4_INTERNAL .
LOOP AT GIT_BSIS ASSIGNING <BSIS>.
IF <BSIS> IS ASSIGNED.
IF <BSIS>-BSCHL = C_50.
<BSIS>-DMBTR = <BSIS>-DMBTR * -1.
ENDIF.
IF NOT <bsis>-aufnr IS INITIAL.
IF <BSIS>-AUFNR = '000000100000'. " P_AUFNR.
<BSIS>-SUBFBT = <BSIS>-DMBTR.
<BSIS>-AMOUNT = ( <BSIS>-SUBFBT * <BSIS>-ZFI_FBT ) / 100.
ELSE.
IF <bsis>-aufnr = '000000100020'.
<BSIS>-NONFBT = <BSIS>-DMBTR.
ENDIF.
ENDIF.
<BSIS>-FBTPAY = ( <BSIS>-AMOUNT * <BSIS>-ZFI_PAY ) / 100.
ENDIF.
ENDLOOP.
UNASSIGN <BSIS>.
ENDFORM. " chk4_internal
*& Form get_ztable
text
--> p1 text
<-- p2 text
FORM GET_ZTABLE .
REFRESH : GIT_FRINGE.
SELECT HKONT
ZFI_FBT
ZFI_PAY
FROM ZFI_FBT_DETL
INTO TABLE GIT_FRINGE
FOR ALL ENTRIES IN s_hkont
WHERE HKONT IN S_HKONT.
CHECK SY-SUBRC EQ 0.
SORT GIT_FRINGE BY ZFI_HKONT.
ENDFORM. " get_ztable
*& Form get_percentage
text
--> p1 text
<-- p2 text
FORM GET_PERCENTAGE .
CLEAR : GWA_FRINGE.
LOOP AT GIT_BSIS ASSIGNING <BSIS>.
IF <BSIS> IS ASSIGNED.
READ TABLE GIT_FRINGE INTO GWA_FRINGE WITH KEY
ZFI_HKONT = <BSIS>-HKONT
BINARY SEARCH.
CHECK SY-SUBRC EQ 0.
<BSIS>-ZFI_FBT = GWA_FRINGE-ZFI_FBT.
<BSIS>-ZFI_PAY = GWA_FRINGE-ZFI_PAY.
ENDIF.
ENDLOOP.
UNASSIGN <BSIS>.
ENDFORM. " get_percentage
*& Form determine_sort_sequence
text
--> p1 text
<-- p2 text
FORM DETERMINE_SORT_SEQUENCE .
DATA : LS_SORT TYPE SLIS_SORTINFO_ALV.
LS_SORT-SPOS = 1. " Sort order
LS_SORT-FIELDNAME = 'HKONT'.
LS_SORT-TABNAME = 'GIT_BSIS'.
LS_SORT-UP = 'X'.
LS_SORT-SUBTOT = 'X'. " Sub total allowed
APPEND LS_SORT TO GT_SORT.
CLEAR LS_SORT.
ENDFORM. " determine_sort_sequence
*& Form get_events
text
--> p1 text
<-- p2 text
FORM GET_EVENTS .
CONSTANTS:
GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
GC_FORMNAME_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.
DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = GT_EVENTS.
READ TABLE GT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
APPEND LS_EVENT TO GT_EVENTS.
ENDIF.
READ TABLE GT_EVENTS WITH KEY NAME = SLIS_EV_USER_COMMAND
INTO LS_EVENT.
IF SY-SUBRC = 0.
MOVE GC_FORMNAME_USER_COMMAND TO LS_EVENT-FORM.
APPEND LS_EVENT TO GT_EVENTS.
ENDIF.
ENDFORM. " get_events
*& Form sub_commentery_build
text
--> p1 text
<-- p2 text
FORM SUB_COMMENTERY_BUILD .
DATA: LS_LINE TYPE SLIS_LISTHEADER.
DATA : L_LOW TYPE CHAR10,
L_HIGH TYPE CHAR10,
L_DATE TYPE CHAR25.
CONCATENATE S_BUDAT-LOW6(2) '.' S_BUDAT-LOW4(2) '.' S_BUDAT-LOW+0(4) INTO L_LOW.
CONCATENATE S_BUDAT-HIGH6(2) '.' S_BUDAT-HIGH4(2) '.' S_BUDAT-HIGH+0(4) INTO L_HIGH.
CONCATENATE L_LOW ' - ' L_HIGH INTO L_DATE.
***header
CLEAR LS_LINE.
LS_LINE-TYP = 'H'.
LS_LINE-KEY: not used for this type
LS_LINE-INFO = 'Fringe Benefit Tax'.
APPEND LS_LINE TO GT_LIST_TOP_OF_PAGE.
***Selection
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Company Code'.
LS_LINE-INFO = P_BUKRS.
APPEND LS_LINE TO GT_LIST_TOP_OF_PAGE.
CLEAR LS_LINE.
LS_LINE-TYP = 'S'.
LS_LINE-KEY = 'Posting Date'.
LS_LINE-INFO = L_DATE.
APPEND LS_LINE TO GT_LIST_TOP_OF_PAGE.
ENDFORM. " sub_commentery_build
FORM TOP_OF_PAGE *
When TOP-OF-PAGE will be fired , this event will be called and it
will use the contents of i_list_top_of_page for output in the header
FORM TOP_OF_PAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
i_logo = 'ENJOYSAP_LOGO'
IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
ENDFORM. "top_of_page
*& Form USER_COMMAND
Called from within the ALV processes. Currently, '&IC1' is used to
process the hotspot and display the document 'picked' by the user.
FORM USER_COMMAND USING PV_UCOMM LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
CLEAR : GWA_BSIS.
CASE PV_UCOMM.
WHEN '&IC1'.
READ TABLE GIT_BSIS INTO GWA_BSIS INDEX SELFIELD-TABINDEX.
CASE SELFIELD-SEL_TAB_FIELD.
WHEN 'GIT_BSIS-BELNR'.
IF NOT GWA_BSIS-BELNR IS INITIAL.
SET PARAMETER ID: 'BUK' FIELD GWA_BSIS-BUKRS,
'BLN' FIELD GWA_BSIS-BELNR,
'GJR' FIELD GWA_BSIS-GJAHR.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
ENDIF.
WHEN OTHERS.
ENDCASE.
WHEN OTHERS.
ENDCASE.
CLEAR : GWA_BSIS.
ENDFORM. "user_command
*& Form SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'.
ENDFORM. "SET_PF_STATUSENDFORM. "SET_PF_STATUS
AWARD POINTS IF USEFUL.... -
I have a CF Flash Forms application that uses the
FIleReference class to allow uploading. On PCs works great, on Mac
I get an IO error. Here is sample code:
public function uploadScript():Void{
var uploadSwf = textArea.label.upload;
var fileNameField = fileNameField;
var fileID = MediaMgt.myglobalObjects.fileid;
var fileName = fileNameField.text;
var serverPath = grdFiles.selectedItem.serverpath;
uploadSwf.upload('../upload/upload.cfm?id=' + fileID +
'&filename=' + fileName + '&spath=' + serverPath );
uploadBtn.enabled = false;
browseBtn.enabled = false;
public function browseScript():Void{
var uploadSwf = textArea.label.upload;
var output = output;
var uploadListener = {};
var progressBar = progressBar;
var totalWidth = progressBarBackground.width;
var fileNameField = fileNameField;
var uploadBtn = uploadBtn;
var browseBtn = browseBtn;
var maxSize = 104857600 // = 100 MB (Flash Player has 100 MB
limit)
var mediaType = grdFiles.selectedItem.mediatypedisplay;
uploadSwf.addListener(uploadListener);
switch (mediaType){
case 'Podcast':
uploadSwf.browse([{description:"Audio Files
(*.mp3,*.m4a)",extension: "*.mp3;*.m4a"},
{description:"Video Files
(*.mp4,*.m4v,*.mov)",extension:"*.mp4;*.m4v;*.mov"}]);
break;
case 'Real Media Stream':
uploadSwf.browse([{description:"Real Media (*.rm)",
extension:"*.rm"}]);
break;
case 'QuickTime Stream':
uploadSwf.browse([{description:"QuickTime (*.mov)",
extension:"*.mov"}]);
break;
case 'Windows Media Stream':
uploadSwf.browse([{description:"Windows Media
(*.wma,*.wmv)", extension:"*.wma;*.wmv"}]);
break;
uploadListener.onSelect = function(fileRef){
var objErr = {};
objErr.sizeStatus = false;
objErr.spaceStatus = false;
objErr.sizeMsg = '';
objErr.strMsg = '';
if (fileRef.size < maxSize || maxSize == undefined){
objErr.sizeStatus = false;
}else{
objErr.sizeStatus = true;
objErr.sizeMsg = 'File exceeds maximum allowed size';
// test for spaces in name
if(fileRef.name.indexOf(' ') >= 1){
objErr.spaceStatus = true;
objErr.strMsg = 'Spaces in file name are not allowed';
}else{
objErr.spaceStatus = false;
if(objErr.sizeStatus && objErr.spaceStatus) {
output.text = objErr.sizeMsg + '\n' + objErr.strMsg;
//_root.showErrorMessage('Warning',objErr.sizeMsg + '\n' +
objErr.strMsg);
uploadBtn.enabled = false;
fileRef.removeListener(this);
}else if(objErr.sizeStatus && !objErr.spaceStatus){
output.text = objErr.sizeMsg;
//_root.showErrorMessage('Warning',objErr.sizeMsg);
uploadBtn.enabled = false;
fileRef.removeListener(this);
}else if(!objErr.sizeStatus && objErr.spaceStatus){
output.text = objErr.strMsg;
//_root.showErrorMessage('Warning',objErr.strMsg);
uploadBtn.enabled = false;
fileRef.removeListener(this);
}else{
uploadBtn.enabled = true;
output.text = '';
progressBar.width = 0;
progressBar.visible = false;
fileNameField.text = fileRef.name;
alert(fileRef.name + ' - ' + fileRef.size);
uploadListener.onComplete = function(fileRef){
var myArgs:Object = {};
myArgs.mediafileid = _root.MediaMgt.myglobalObjects.fileid;
myArgs.filename = fileRef.name;
myArgs.filesize = fileRef.size;
myArgs.filetype = fileRef.type;
myArgs.keywords = _root.txtKeywords.text;
myArgs.itemtitle = _root.txtItemTitle.text;
myArgs.itemdescription = _root.txtItemDescription.text;
//myArgs.mediatype = _root.grdFiles.selectedItem.mediatype;
myArgs.mediatypeid =
_root.cboMediaTypes.getItemAt(_root.cboMediaTypes.selectedIndex).data;
myArgs.ownername = _root.myOwnerName.text;
// validation performed by function checkFields() below
_root.MediaMgt.myglobalObjects.MediaService.CreateFileItem(myArgs);
fileRef.removeListener(this);
output.text = "Upload Complete";
uploadBtn.enabled = false;
browseBtn.enabled = true;
uploadListener.onProgress =
function(fileRef,bytesLoaded,bytesTotal){
progressBar.visible = true;
var kLoaded = bytesLoaded/1024;
var kTotal = bytesTotal/1024;
var loaded = (kLoaded < 1024) ?
_global.MathNumberParse(kLoaded) + " KB":
_global.MathNumberParse(kLoaded/1024) + " MB";
var total = (kTotal < 1024) ?
_global.MathNumberParse(kTotal) + " KB":
_global.MathNumberParse(kTotal/1024) + " MB";
var percentage = Math.round(bytesLoaded * 100 / bytesTotal);
output.text = percentage + '% uploaded';
//output.text += ' - ' + loaded + ' of ' + total;
progressBar.width = totalWidth / 100 * percentage;
uploadListener.onSecurityError =
function(fileRef,errorString){
fileRef.removeListener(this);
output.text = 'Security Error: ' + errorString;
//_root.showErrorMessage('Warning','Security Error: ' +
errorString);
uploadBtn.enabled = true;
browseBtn.enabled = true;
uploadListener.onIOError = function(fileRef){
fileRef.removeListener(this);
output.text = 'IO Error ' + fileRef.creator;
//_root.showErrorMessage('Warning', 'IO Error');
uploadBtn.enabled = true;
browseBtn.enabled = true;
uploadListener.onHTTPError = function(fileRef,errorNumber){
fileRef.removeListener(this);
output.text = 'HTTP Error number: ' + errorNumber;
//_root.showErrorMessage('Warning','HTTP Error number: ' +
errorNumber);
uploadBtn.enabled = true;
browseBtn.enabled = true;
uploadListener.onCancel = function(fileRef){
fileRef.removeListener(this);
output.text = "Action Cancelled";
//_root.showErrorMessage('Information','Upload Cancelled');
browseBtn.enabled = true;
Help is greatly appreciated.
Thanks,
ChrisClear the iCal cache...
http://kb.mit.edu/confluence/pages/viewpage.action?pageId=12386508 -
I hate to post such a seemingly mundane question but I can't seem to find my answer anywhere. I've tried other forums and I've tried google. I was hoping there was a conky specific thread here but I couldn't find one so I posted here.
Anyway, I've been revamping my conky and I copy/pasted one I found online as a model for me to modify. It has circle graphs and a large analog clock so it obviously has lua scripts associated with it. The lua parts aren't showing up. To be safe I've made sure that lua is installed as well as all dependecies. I installed all conky dependencies too just for the hell of it. I've also made sure that I'm calling the lua scripts from the right directory, and yes, I've restarted conky many times. Here are the files:
Conky
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
temperature_unit fahrenheit
# Window specifications #
own_window yes
own_window_type override
own_window_transparent #000000
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 5
minimum_size 250 300
maximum_width 250
alignment tr
gap_x 10
gap_y 0
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no
temperature_unit celsius
default_color FFFFFF
# Lua Load #
lua_load ~/.openbox/conky/conky_blue/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
# Time and date
${voffset 7}${font Radio Space:size=16}${color 0ABFFF}${time %A}${font}$color${font Radio Space:size=38}${goto 167}${voffset -8} ${time %e}${font}
${font Radio Space:size=18}${voffset -30}${time %b}${font}${voffset -3} ${font Radio Space:size=20}${time %Y}${font}${color 0ABFFF} ${hr 1}
# Battery Circle
${color FFFFFF}${goto 209}${voffset 34}${battery_percent}%
${color 0ABFFF}${goto 202}${voffset 25}Battery
# CPU usage
${color #0ABFFF}${hr 1}$color
${color #0ABFFF}${voffset 6}Temp: $color ${acpitemp}°C
${color #0ABFFF}${voffset 6}Processes:$color $processes
${color #0ABFFF}${voffset 6}Running: $color $running_processes${goto 116}${voffset 8}${cpu cpu0}% ${color 0ABFFF}${goto 116}${voffset 13}CPU1$color${goto 191}${voffset -12}${cpu cpu1}% ${color 0ABFFF}${goto 191}${voffset 12}CPU2$color
${color #0ABFFF}${voffset -12}FREQ:$color ${freq}MHz
${color #0ABFFF}${voffset 6}Load:$color ${loadavg}
# Network
${color 0ABFFF}${voffset 2}${hr 1}
${color 0ABFFF}essid: $color$alignr${wireless_essid wlan0}
${color 0ABFFF}wlan0: $color$alignr${addr wlan0}
${color 0ABFFF}Current: $color${alignr}${execi 10 /sbin/iwconfig wlan0|grep Rate|cut -d"M" -f1|cut -b20-24} Mbits/sec
${color 0ABFFF}eth0: $color$alignr${addr eth0}
${color #0ABFFF}Down: $color${downspeed wlan0} k/s ${alignr}${color #0ABFFF}Up:$color ${upspeed wlan0} k/s
${downspeedgraph wlan0 30,120 000000 0ABFFF} ${alignr}${upspeedgraph wlan0 30,120 000000 0ABFFF}$color
${color #0ABFFF}Total:$color ${totaldown wlan0} ${alignr}${color #0ABFFF}Total:$color ${totalup wlan0}
# DISK/RAM/SWAP usage
${color 0ABFFF}${voffset 2}${hr 1}
${color FFFFFF}${goto 7}${voffset 39}${fs_used_perc /}%
${color 0ABFFF}${goto 7}DISK
${color FFFFFF}${goto 102}${voffset -27}${memperc}%
${color 0ABFFF}${goto 102}RAM
# Running processes
${color 0ABFFF}${voffset 2} ${hr 1}
${color #0ABFFF}${voffset 5}NAME${goto 122}PID${goto 163}CPU%${goto 210}MEM%$color${voffset 5}
${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
${top name 4}${goto 115}${top pid 5}${goto 160}${top cpu 5}${goto 205}${top mem 5}
# Computer info
${color 0ABFFF}${voffset 2}${hr 1}${voffset 5}
${color 0ABFFF}Hostname:$color${alignr}${nodename}
${color 0ABFFF}OS:$color${alignr}${pre_exec cat /etc/issue.net} $machine
${color 0ABFFF}Kernel:$color${alignr}${kernel}$color
${color 0ABFFF}${font Radio Space:size=20}ARCH${color FFFFFF}LINUX
${color 0ABFFF}${voffset -10}${hr 1}
Lua
# Clock Rings by Linux Mint (2012) reEdited by Altin.
# This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script.
# This script is based off a combination of my clock.lua script and my rings.lua script.
# IMPORTANT: If you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away.
# The if statement on line 324 uses a delay to make sure that this doesn't happen.
# It calculates the length of the delay by the number of updates since Conky started.
# Generally, a value of 5s is long enough, so if you update Conky every 1s,
# use update_num>5 in that if statement (the default).
# If you only update Conky every 2s, you should change it to update_num>3;
# conversely if you update Conky every 0.5s, you should use update_num>10.
# ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it,
# otherwise the update_num will not be reset and you will get an error.
# To call this script in Conky, use the following in your conkyrc:
# lua_load ~/.fluxbox/conky/conky_blue/clock_rings.lua
# lua_draw_hook_pre clock_rings
# Changelog:
# * v1.0 --> Original release (30.09.2009)
# * v1.1p --> Jpope edit londonali1010 (05.10.2009)
# * vX 2011mint --> reEdit despot77 (18.02.2011)
# * vX 2012 --> Altin reEdit (22.07.2012)
# * Added weather function (Accu Weather)
# * Added battery monitoring
# * Syslog monitoring
# * Running processes monitoring
# * Rearanged rings
# * Exctra network functions/monitoring
# * Changed Fonts
settings_table = {
-- Edit this table to customise your rings.
-- You can create more rings simply by adding more elements to settings_table.
-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
name='time',
-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
arg='%I.%M',
-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
max=12,
-- "bg_colour" is the colour of the base ring.
bg_colour=0xffffff,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.15,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0x0ABFFF,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.3,
-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
x=100, y=175,
-- "radius" is the radius of the ring.
radius=50,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=5,
-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
start_angle=0,
-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
end_angle=360
name='battery_percent',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=222, y=110,
radius=27,
thickness=5,
start_angle=-90,
end_angle=270
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.4,
x=100, y=175,
radius=66,
thickness=5,
start_angle=0,
end_angle=360
name='time',
arg='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.6,
x=100, y=175,
radius=72,
thickness=5,
start_angle=0,
end_angle=360
name='time',
arg='%d',
max=31,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=100, y=175,
radius=80,
thickness=5,
start_angle=-90,
end_angle=90
name='time',
arg='%m',
max=12,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x0ABFFF,
fg_alpha=1,
x=100, y=175,
radius=86,
thickness=5,
start_angle=-90,
end_angle=90
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=145, y=337,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='cpu',
arg='cpu1',
max=100,
bg_colour=0xffffff,
bg_alpha=0.3,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=220, y=337,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=35, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='memperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=130, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=180
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0.2,
fg_colour=0x0ABFFF,
fg_alpha=0.8,
x=220, y=590,
radius=25,
thickness=5,
start_angle=-90,
end_angle=172
-- Use these settings to define the origin and extent of your clock.
clock_r=65
-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
clock_x=100
clock_y=175
show_seconds=true -- Change to true if you want the seconds hand
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function window_background(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height
local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
function draw_clock_hands(cr,xc,yc)
local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys
secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")
secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12
-- Draw hour hand
xh=xc+0.76*clock_r*math.sin(hours_arc)
yh=yc-0.72*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)
cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
cairo_stroke(cr)
-- Draw minute hand
xm=xc+0.98*clock_r*math.sin(mins_arc)
ym=yc-1.02*clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)
cairo_set_line_width(cr,3)
cairo_stroke(cr)
-- Draw seconds hand
if show_seconds then
xs=xc+1.1*clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)
cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end
function conky_clock_rings()
local function setup_rings(cr,pt)
local str=''
local value=0
str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)
value=tonumber(str)
pct=value/pt['max']
draw_ring(cr,pct,pt)
end
-- Check that Conky has been running for at least 5s
if conky_window==nil then return end
local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
local cr=cairo_create(cs)
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
draw_clock_hands(cr,clock_x,clock_y)
end
To be honest I'm not even sure what to look for. I'm not sure that it's a problem with the code because as I've said, I copy/pasted as a template for modifying. Thanks for reading.
EDIT: I've been starting conky from a different directory instead of starting it with ~/.conkyrc and I just copied the conky I'm using to ~/.conkyrc and killed/restarted it and noticed this error:
Conky: /home/'user'/.conkyrc: 53: no such configuration: 'lua_load'
Conky: /home/'user'/.conkyrc: 54: no such configuration: 'lua_draw_hook_pre'
cat: /etc/issue.net: No such file or directory
Conky: desktop window (c1) is root window
Conky: window type - override
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
The top two lines seem to be the most relevant but I'm not sure what to do about it.
Last edited by xworld (2012-12-28 01:06:01)::facepalm::
No I didn't. Although I just tried now and it failed. It said I needed toluapp before I could install conky-lua. The trouble is that when I try to install toluapp it fails. I looked in the AUR page and it shows that it's out of date. Is there a workaround for this?
EDIT: Here's the error if it helps.
==> Making package: toluapp 1.0.93-5 (Thu Dec 27 21:23:18 UTC 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
-> Downloading tolua++-1.0.93.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 160k 100 160k 0 0 80172 0 0:00:02 0:00:02 --:--:-- 88576
-> Found config_linux.py
==> Validating source files with md5sums...
tolua++-1.0.93.tar.bz2 ... Passed
config_linux.py ... Passed
==> Extracting Sources...
-> Extracting tolua++-1.0.93.tar.bz2 with bsdtar
==> Starting build()...
scons: Reading SConscript files ...
scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/lucid/conf/pkgs/tmp/toluapp/src/tolua++-1.0.93/SConstruct", line 19, in <module>
('********* tolua is ', 'bin/tolua++_bootstrap')
scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File "/home/lucid/conf/pkgs/tmp/toluapp/src/tolua++-1.0.93/src/tests/SCsub", line 2, in <module>
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/bin/tolua.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/tolua.c
src/bin/tolua.c: In function 'add_extra':
src/bin/tolua.c:70:2: warning: implicit declaration of function 'luaL_getn' [-Wimplicit-function-declaration]
gcc -o src/bin/toluabind_default.o -c -O2 -ansi -Wall -fPIC -Iinclude src/bin/toluabind_default.c
gcc -o src/lib/tolua_event.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_event.c
src/lib/tolua_event.c: In function 'storeatubox':
src/lib/tolua_event.c:26:3: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_event.c:31:4: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
gcc -o src/lib/tolua_is.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_is.c
gcc -o src/lib/tolua_map.o -c -O2 -ansi -Wall -fPIC -Iinclude src/lib/tolua_map.c
src/lib/tolua_map.c: In function 'tolua_bnd_setpeer':
src/lib/tolua_map.c:266:2: warning: implicit declaration of function 'lua_setfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_bnd_getpeer':
src/lib/tolua_map.c:274:2: warning: implicit declaration of function 'lua_getfenv' [-Wimplicit-function-declaration]
src/lib/tolua_map.c: In function 'tolua_usertype':
src/lib/tolua_map.c:398:2: warning: passing argument 2 of 'tolua_newmetatable' discards 'const' qualifier from pointer target type [enabled by default]
src/lib/tolua_map.c:28:12: note: expected 'char *' but argument is of type 'const char *'
src/lib/tolua_map.c: In function 'tolua_beginmodule':
src/lib/tolua_map.c:414:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c:414:19: note: each undeclared identifier is reported only once for each function it appears in
src/lib/tolua_map.c: In function 'tolua_module':
src/lib/tolua_map.c:448:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
src/lib/tolua_map.c: In function 'tolua_dobuffer':
src/lib/tolua_map.c:699:36: warning: value computed is not used [-Wunused-value]
scons: *** [src/lib/tolua_map.o] Error 1
scons: building terminated because of errors.
==> ERROR: A failure occurred in build().
Aborting...
Last edited by xworld (2012-12-28 03:24:41) -
HI,
In TPM12 transcation I am getting the output of profit / Loss in value.However I want the output in percentage (%). I have seen in Field selection also , but there is no field for percentage.
I have also searched for standard T code but not successful in same.
Can experts help me out in same.
Regards
AshwiniHi,
This is the report of return on investment. Return alwayz comes in percentage (%). I am gettin the value figure. same hing I was also used to get from GL download. So can u suggest any other Tcode where we can see the returns in %.
Thanks -
How to Include VAT percentage rate in the Invoice Print Output
Hi All,
I have a question here. My client wants the VAT rate in percentage form to appear in the invoice print output. But, I have no idea where to pull out the vat percentage rate from or which table I should refer to.
Appreaciate all of your inputs.
Thanks a lot!Hello,
You can fetch the VAT rate either from the Sales order or the Billing document
Getting it from Billing document is more relevant.
First goto the Table VBRK and get the KNUMV field from the vbrk
Then goto KONV table which is the pricing table for conditions and give the input values as the KNUMV and KSCHL
KNUMV is the DOCUMENT CONDITION which is independent for each document
KSCHL is the condition type ( in this case it is your VAT condition type )
You can get the Rate from the the field KBETR.
KBETR is the RATE % of the KSCHL in KONV
Hope it is clear.
Regards,
santosh -
Hi,
I was wondering if it is possible to create an animation with the output result dependant on excel data (or another form of data if not possible in excel).
E.g I would like to make a battery animation that shows the percentage of power, but I want the animation to change if the data is changed (say from 30% to 60%) .
Thanks for any helpI was just reviewing your post, do you have anything a bit easier to follow? I havnt used flash in a while and im struggling to follow .
I have decided to create a dial instead of a battery. I want the needle to move to a number when I enter that number into either somewhere in flash or a spread sheet.
Here's the dial I have made -
Error while entering the Overhead percentage 0.3693 in Costing Sheet
HI,
While defining costing sheet in the system,i need to give the overhead percentage as 0.3692 as per the client requirement.but the system is giving the below error.
Input should be in the form __,___,__~.___V
Message no. 00088
Diagnosis
Your entry does not match the specified input format.
System response
The entry in this field was rejected.
Procedure
The entry must comply with the edit format. The following edit format characters have a special meaning:
"_" (underscore)
There should be an input character at this point; this should be a number for numeric fields.
"." (decimal point) (applies to numeric fields)
The decimal point occurs here (setting in the user master record).
"," (thousands separator) (applies to numeric fields)
This separator occurs (optionally) for more than three figures. Depending on the setting in the user master record, it can be a period or a comma.
"V" (applies to numeric fields)
The operational sign appears here. If used, it must by at the right margin of the field. The sign is either "-" or " "(space).
"~" (tilde) (applies to numeric fields)
As of and including this character, leading zeros must also be entered. Otherwise, this character has the same meaning as an underscore. Leading zeros need not be entered on the left of the tilde. They are not output at this position.
All other characters have their normal meanings and must be entered in the same position as in the edit format.
Thanks
Sunithahi Sunitha,
this error is related to Decimal Format pls check your setting in country
For 4.7C
SPRO > IMG > General Setting > Define countries in mySAPsystem
For ECC 6.0
SPRO > IMG > SAP Netweaver > General Setting > Define countries in mySAPsystem
select your countries and double click in that there is last field for Decimal Pt. format check that format and try to enter value according to that format because in error it showing 4 decimal and there you may have maintained in two decimal. also check decimal currecy setting. One more reason could be there instead of full stop you may have maintained comma in setting.
thx.
Ganu -
Query help, Percentages / ratio to reports / nests
Hi
I have a query that returns data like this
D_NO POINTS COUNT_POINTS ID_COUNT
4002 L_T_69 12 282
4219 L_T_69 1 151
4228 L_T_69 18 193
4229 L_T_69 7 181
4230 L_T_69 0 197
I need to also output a column that works out a percentage of count_points and Id_count. e.g 12/282 * 100 = 4.2
I had a try with ratio to reports function but no joy for me. I think i need to add in
another nested select or something but what i was trying wasnt working.
Can anyone help.
here is the query so far
SELECT D_NO,
GROUPS.POINTS,
DECODE(GROUPS.POINTS, 'L_T_69' , L_T_69) AS COUNT_POINTS,
ID_COUNT
FROM
(SELECT D_NO,
Count (CASE WHEN VERBAL <= 69 THEN 1
END) AS L_T_69,
COUNT(ID_NUMBER) AS ID_COUNT
FROM TBL_1
WHERE VERBAL IS NOT NULL
group by D_NO)
TBL_1,
( SELECT 'L_T_69' POINTS FROM DUAL )GROUPS
thank youNot sure if this is what you're looking for but it may give you some clues:
select object_type
,has_a_c
,type_total
,round(100 * (has_a_c / type_total),2) ratio
from
select object_type
,sum (case when instr(object_name,'C') <> 0 then 1
else 0
end) has_a_c
,count(*) type_total
from all_objects
group by object_type
OBJECT_TYPE HAS_A_C TYPE_TOTAL RATIO
CONSUMER GROUP 1 2 50
EVALUATION CONTEXT 1 1 100
FUNCTION 50 113 44.25
INDEX 7 20 35
LIBRARY 0 2 0
OPERATOR 1 2 50
PACKAGE 500 1158 43.18
PACKAGE BODY 487 1126 43.25
PROCEDURE 54 86 62.79
SEQUENCE 62 116 53.45
SYNONYM 1060 2298 46.13
TABLE 365 721 50.62
TABLE PARTITION 15 15 100
TYPE 104 272 38.24
VIEW 834 1896 43.99
15 rows selected. -
Hi Expert,
In alv report percentage calculation.Here we have a problem, In total column it will adding the fields
in percentage column, but i want to calculate the percentage in run time.
Example:
A B %*100
10 20 20%
20 40 20%
TOTAL: 30 60 40 -
>it is a total but not percentage
Thank you,
Dinesh.Hi,
1. In the ALV output tab add extra fields that are the same as those on which you are sorting and contain the same values.
2. In the Field Catalog you must add these fields but they must be hidden i.e. no_out = 'X'.
3. These fields must be included in the Sort Catalog with subtot = 'X'.
4. In order to handle the final total line in your layout for the ALV you must set field no_totalline'X' because you are going to be taking this over as well.
5. Create a form called SUBTOTAL_TEXT or similar structured as follows:
form subtotal_text using ep_subtot_line like output_tabes_subtottxt type slis_subtot_text.
In this form you will do the percentage calculation again at total level. The structure ep_subtot_line
will contain a field for each of the fields in your output_tab i.e. ep_subtot_line-sales,
ep_subtot_line-cost and ep_subtot_line-margin. Put the margin calculation into ep_subtot_line-margin.
6. In the eventtab that you pass to the ALV_GRID function module you must create a record with the
field name = 'SUBTOTAL_TEXT' and the field form = the name of the form you created in step 5 above.
Maybe you are looking for
-
How does one capture an image of a selected area of a window ?
I tried the "System Preferences" "Keyboard Mouse" "Keyboard Shortcut" and the combination of keys decribed there- but they do not work. Better to say, they work sometimes and don't on others. What can be the clue? Can somebody advice me? Additionally
-
Order Type: LA , when Planned Order --- Prod Order
In STD SAP, In MD04 when we convert planned order to prod order, a new screen comes where we mention planned order ---> prod order, In the above screen, ORDER TYPE :LA is mentioned (Bottom Right end corner) As far to my understanding goes In CO40, Or
-
Help on polymorphism in my code
Hi, I'd be glad if anyone could explain why java compiler gives errors compiling a class of a simple application. This is the scenario: class Point is meant to simplicistically abstract the concept of 2D point (x and y are the coordinates). Class Poi
-
Acrobat 8 Professional crashes 10 seconds after you start the application xp
Acrobat 8 Professional crashes 10 seconds after you start the application. I have adobe acrobat 8.1 running on a dell vostro 1400 vista.
-
Javadoc --giving link to other classes
Hi. I am trying to generate javadoc for my application..But When I see the docs.It doesnt have the links for String and other used classes. What should I do to give the links Thanks in advance, A. Umar