How to get month name in report
Hi
I want to know is there any way that we get name of the month in the report when we display.
eg: 04.2006 needs to displayed as April 2006.
Please let me know
Hi Amith,
It is possible. Use a text variable of type replacement path in the column/report heading for characteristic 0CALMONTH. For displaying the key (for example 01.2007) you can use a SAP standard text variable. There's no need to create a new one.
If you want to show text (Eg: Jan 2007) just create a new text variable of type replacement path and chose Text instead of key. Hope this helps.
Sumit
Similar Messages
-
How to get Variable name in output (Report Writer/Painter)
Hello Experts,
We have maintained one Repot by using Report Writer, this is the report for Cost center (periodic report), input fields are Fiscal year, Period and Cost Center. In out put system will display the selected cost center balances for individual cost element.
Output: Excel format: in first sheet it will display balance of the total cost centers selected and from second sheet it will display individual cost center balances.
My requirement is in the output system is displaying sheet name as CC1,CC2,CC3.......CC50, but my user want to display this as Cost Center 1, Cost Center 2, Cost Center 3...... like this. we have maintained variable name as Cost center 1, cost center 2....., but why system is displaying as CC1,CC2,.... .
Please help me how to get the full description as sheet name in excel.
Thanks ......SudheerHello Everybody,
Please help me how to get variable name in Report Painter outout ( Excel format ).
Thanks -
How to get the name of a Data Element of a generic Table!
Hi guys!
In my function i have the following import paramenter
i_outtab type standard table
now i import a table and i want to get the dataelement of the fields.
is there a way to do this??Hello Thomas
Perhaps the following sample report may be useful for you.
*& Report ZUS_SDN_RTTI_STRUCT_COMPONENTS
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145711"></a>
*& Thread: How to get the name of a Data Element of a generic Table!
REPORT zus_sdn_rtti_struct_components.
TYPE-POOLS: abap.
TYPES: BEGIN OF ty_s_outtab.
TYPES: bukrs TYPE bukrs.
TYPES: kunnr TYPE kunnr.
TYPES: END OF ty_s_outtab.
DATA: gdo_data TYPE REF TO data.
DATA: gs_outtab TYPE ty_s_outtab.
DATA: go_typedescr TYPE REF TO cl_abap_typedescr,
go_structdescr TYPE REF TO cl_abap_structdescr,
go_datadescr type ref to cl_abap_datadescr.
DATA: gs_comp TYPE abap_compdescr,
gd_dtel type string,
gt_dfies type ddfields.
FIELD-SYMBOLS:
<gs_struct> TYPE ANY.
START-OF-SELECTION.
BREAK-POINT.
GET REFERENCE OF gs_outtab INTO gdo_data.
ASSIGN gdo_data->* TO <gs_struct>.
go_typedescr = cl_abap_typedescr=>describe_by_data( <gs_struct> ).
go_structdescr ?= go_typedescr.
BREAK-POINT.
LOOP AT go_structdescr->components INTO gs_comp.
go_datadescr = GO_STRUCTDESCR->GET_COMPONENT_TYPE( gs_comp-name ).
gd_dtel = go_datadescr->get_relative_name( ).
write: / syst-tabix, 'Data element =', gd_dtel.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
FM for getting MONTH name from DATE.
Hi all ,
We have a requirement to get Month name from the DATE,e.g IF date is 01/01/2008 we need a FM which can generate month name as 'JANUARY'.
\[removed by moderator\]
Thanks and Regards
Kiran
Edited by: Jan Stallkamp on Jul 30, 2008 4:26 PMHi,
Here is the code u required...
REPORT ZASHU_MONTH_NAMES_GET.
data:r_code type sy-subrc.
data:mnames type standard table of T247 with header line.
CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE = r_code
TABLES
month_names = mnames.
EXCEPTIONS
MONTH_NAMES_NOT_FOUND = 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.
write:/ mnames.
Thanks & Regards
Ashu Singh -
How to get column names for a specific view in the scheme?
how to get column names for a specific view in the scheme?
TIA
Don't have DD on the wall anymore....or this?
SQL> select text from ALL_VIEWS
2 where VIEW_NAME
3 ='EMP_VIEW';
TEXT
SELECT empno,ename FROM EMP
WHERE empno=10 -
How to get the name of the current tab.
Hi Experts,
I have two tabs in my tab strip and a button common to both the tabs.Can you please let me know how to get the name of the current tab in the event method of the push button.
Thanks in advance.
Regards,
Arun1.Declare an Action for OnSelect event of Tabstrip. This event is triggered whenever any change in tab occurs.
2. Declare an Import Parameter in this method
Tab type String.
3. This parameter has value of the selected TAB.
4. You can set this value in some Attribute in Attribute Tab in this event only (OnSelect):
wd_this->Att = Tab.
Att is the attribute created by you in Attributes Tab of View. ( of type String)
5. Now the selected Tab ID is stored in this Attribute Att.
6. In the Onaction of Button , retrieve the selected tab value from this attribute using :
Data : lv type string.
lv = wd_this->Att
Now lv has your selected TAB ID.
I hope it would help you.
Edited by: Saurav Mago on Oct 13, 2009 2:22 PM -
How to get recent 5 hours reports on dashboard
hi folks,
how to get recent 5 hours reports on dashboard
if any body know pls help me
thanks ,
nataraj kesanado you have any time column in your report?
then add a filter like time_column >= timestampadd(sql_tsi_hour,-5,current_timestamp) -
How To Get Attribute Names for a Particular VO
Hi ,
How To Get Attribute Names Of a Vo where I can Set Viewattributname To the Table RN Columns Where I am Adding Extra Columns Based on Some Condn..
So wen i am creating new Column to existing Table RN and we Need to add Attribute Name Also...Rt..
And How To get RelationShip Between Database Column Name and Java Vo Attribute Name
Ex: PlanId is the Java VO Attribute Name for the Database Column PLAN_ID
In The Same way Hw We Get the Relation ship for All other columns In the Controller Cllass ..
Can Any One Reply as It is urgent Req...
Thanks ,,
JithenInstead of using the VO attribute names to set and get values, best to go to the VO definition, click on Java, and generate the View Row Class with the accessors.
In the class where you're trying to set attributes, instead of a Row class, use the View Row class of your VO (eg ViewObjectName's class would be ViewObjectNameRowImpl), and when retrieving a row from the VO, cast the row to the previously mentioned View Row Class.
At that point you can use the View Row Class's methods that would perform sets and gets of each column.
To get attribute names, I don't know off the top of my head, but there might be a method mentioned in the Javadoc for the ViewRowImpl or ViewObject or ViewObjectDefinition classes to get the attribute/column mapping, or perhaps you can somehow read the XML definition of the VO which has that mapping.
Assuming business components were built automatically and no attribute names were overridden, intuitively the attribute name is a camelcase version of the column name, removing understores and capitalizing the character following the removed underscore - but that's not a fool proof approach. Just a general observation.
Hope this helps.
Edited by: user6631964 on Sep 16, 2010 12:31 PM -
How to get list name through javascript?
Hi,
I wrote javascript for getting list items but here I'm hard coded list name as "Projects"(my list name). How can I get list name automatically with out hard coding,
Appreciate if anyone help.
Thank you.
function DoLogicalDelete()
var clientContext = null;
var oList = null;
var oListItem = null;
// var lstItmIsDeleted = null;
var itmID = getQuerystring('ID');
clientContext = SP.ClientContext.get_current();
oList = clientContext.get_web().get_lists().getByTitle('Projects');
// var oListItemID = SP.ListOperation.Selection.getSelectedItems(clientContext);
oListItem = oList.getItemById(itmID); // getting ID
clientContext.load(oListItem,"Title", "IsDeleted"); // load items to oListItem
oListItem.set_item('IsDeleted', true);
oListItem.update();
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded),Function.createDelegate(this, this.onQueryFailed));Not sure on which context you are executing the code. If you executing this from the list form and trying to get the current list, then you may need to get the list name from the breadcrumb/list title field. Refer to the following posts for more information
http://sharepoint.stackexchange.com/questions/39008/how-to-get-list-name-from-js-object-model-list-name-from-url-problem
http://itrob.be/sharepoint-get-all-lists-names-in-javascript-spservice-and-jquery/
--Cheers -
How to get Query Names in webi Report ??
Hello All,
I'm trying to pull data from different data sources like accdb,Oracle,DB2,MDB,xls files . I pulled the data successfully by merging all queries.But I was stuck with getting the query names in report ...can some one guide me in this ?? I used data provider () but getting 1 query name along with my universe name.
thanks in advance,
Lavanya.Hi Lavanya,
Are you interested to know the data sources of the queries or just the query names?
To know the Query Name, you can use DataProvider( ) function; however, in case you wish to know the data source, you can use Connection( ) function.
Regards,
Yuvraj -
How to show montha name starting from APR to MAR
Hi,
How to show financial year in report .
I.e
When i select month column in my report i need to get values starting from APR to till MAR. Can any one tell me how to show it.
APR,
MAY,
JUN,
JUL,
AUG,
SEP,
OCT,
NOV,
DEC,
JAN,
FEB,
MARHi,
Steps to achieve,
1. Go to analysis pull it out your month columns two times (let rename it month Id and month name)
2.) edit formula on month Id columns put it below contional statement
E.x:
Case when month name = 'January' then '1'
When month name ='February' then '2'
When case month name='November' then '11' Else '12' end
3.) Go to month name columns in your analysis criteria and edit formula here u just make it first 3 char of your month name columns by using left( month name, 3)
4 ) sort month name columns by using month id columns then hide month id columns it will work as you expected
Another solution:
First you need to add the function monthname in the column formula. This will give you month names.
Ex-MONTHNAME("Cal Date")
To sort, add bin or write case statements in other column and sort it.
Ex- case
when MONTHNAME("Cal Date")='Jan' then 1
when MONTHNAME("Cal Date")='Feb' then 2
end
Hope this help's
Thanks,
Satya -
How to get parameter value from report in event of value-request?
Hi everyone,
The customer want to use particular F4 help on report, but some input value before press enter key are not used in event of "at selection-screen on value-request for xxx", How to get parameter value in this event?
many thanks!
JackYou probably want to look at function module DYNP_VALUES_READ to allow you to read the values of the other screen fields during the F4 event... below is a simple demo of this - when you press F4 the value from the p_field is read and returned in the p_desc field.
Jonathan
report zlocal_jc_sdn_f4_value_read.
parameters:
p_field(10) type c obligatory, "field with F4
p_desc(40) type c lower case.
at selection-screen output.
perform lock_p_desc_field.
at selection-screen on value-request for p_field.
perform f4_field.
*& Form f4_field
form f4_field.
*" Quick demo custom pick list...
data:
l_desc like p_desc,
l_dyname like d020s-prog,
l_dynumb like d020s-dnum,
ls_dynpfields like dynpread,
lt_dynpfields like dynpread occurs 10.
l_dynumb = sy-dynnr.
l_dyname = sy-repid.
*" Read screen value of P_FIELD
ls_dynpfields-fieldname = 'P_FIELD'.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 1.
check sy-subrc is initial.
*" See what user typed in P_FIELD:
read table lt_dynpfields into ls_dynpfields
with key fieldname = 'P_FIELD'.
*" normally you would then build your own search list
*" based on value of P_FIELD and call F4IF_INT_TABLE_VALUE_REQUEST
*" but this is just a demo of writing back to the screen...
*" so just put the value from p_field into P_DESC plus some text...
concatenate 'This is a description for' ls_dynpfields-fieldvalue
into l_desc separated by space.
*" Pop a variable value back into screen
clear: ls_dynpfields.
ls_dynpfields-fieldname = 'P_DESC'.
ls_dynpfields-fieldvalue = l_desc.
append ls_dynpfields to lt_dynpfields.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = l_dyname
dynumb = l_dynumb
tables
dynpfields = lt_dynpfields
exceptions
others = 0.
endform. "f4_field
*& Form lock_p_desc_field
form lock_p_desc_field.
*" Make P_DESC into a display field
loop at screen.
if screen-name = 'P_DESC'.
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
endform. "lock_p_desc_field -
How to get user name as a calculated column in Analytic View or Calculation Graphical View?
Hi Folks,
I needed something like this. In the output, I needed a column which displays the SESSION USER who is seeing the results of the model.
In Script , we can have something like this
SELECT SESSION_USER FROM DUMMY
How can I do the same using calculated columns in the model?
Regards,
Krishna TanguduHi Nick,
Since you have said "Month Name", I am guessing you are interested in getting values such as "January", "February" and so on as opposed to 01, 02.... Is that right?
If so, I don't think there exists a built-in function in HANA that could give you that. A calculated attribute with a case or if statement on the hard-coded descriptions (January, February...) for month values (01,02...) derived from the data column (BEZDT) is what I can think of.
Thanks,
Anooj -
How to get the name of the class which is currently in use
Hi all,
I have two classes Mother and Child, and I use this code to print the name of the class in use
DATA m TYPE REF TO zmother.
DATA class_name type string VALUE 'CHILD'.
CREATE OBJECT m TYPE (class_name).
CALL METHOD m->PrintName .
So, what is the source code that I have to put in the PrintName methode?
Thanks.Ok, but how can I get the name of the object class that calls the methode!
REPORT ztest_method.
* CLASS c1 DEFINITION
CLASS c1 DEFINITION.
PUBLIC SECTION.
METHODS: get_data.
ENDCLASS. "c1 DEFINITION
* CLASS c1 IMPLEMENTATION
CLASS c1 IMPLEMENTATION.
METHOD get_data.
****** What is the code to put here to know the name of this Class?*
ENDMETHOD. "get_data
ENDCLASS. "c1 IMPLEMENTATION
DATA oref TYPE REF TO object.
DATA: method TYPE string.
DATA: cla_name(20).
START-OF-SELECTION.
cla_name = 'C1'.
CREATE OBJECT oref TYPE (cla_name).
BREAK-POINT.
CALL METHOD oref->(method). -
How to get monthly wise asset depriciation
Hi all,
I am developing a report to show mothly wise depreciation for an Asset.
In transaction 'AW01 - Assset Explorer' if we give company code, Asset number and Fiscal
year we get the details of the depriciation in 'Planned/Posted Depriciation values'. I want to get
the same result.
By debugging the transaction AW01 i got the funtion module 'AM_SHOW_POST_DEPR' which
gives the monthly wise depreciation value as output.
But I am not getting what are the exact inputs which we need to pass to the funtion module.
So pls help to find out monthly wise asset depriciation for an asset through the same funtion module or some other simple funtion module or through the tables.
Regard's,
Jean.hi,
please refer this link
How to get specific acquisitions and related depreciations?
thanks
Maybe you are looking for
-
Existing iCal calenders syncing with new Google Calendar/iCal account
I have been using iCal now for awhile but only recently started using Google Calendars (once I found out they could both be synced together). Anyway, I understand how to set up the sync, it's very simple. But, I have three calendars for personal, sch
-
My iTunes just started not burning my playlists to a CD saying iTunes needs to be reinstalled. I do not know how to reinstall with out that pop-up request. I checked the latest version under help and I have the latest version. I do not know how i
-
Currency Drop- down Box is missing
Hi everyone, In obiee 11g Go to-My Account-Preference tab ,There currency Drp -Down Box is missing.How to make it visible in obiee 11.1.1.5.Please suugest to sort out this problem. Thanks in advance Regards, Ashish
-
How to Assign Person (Personnel Number) without work Center
Dear All, How to setup personnel number in order not using general and internal work center in operation service order area? if i use work center, it make HRD site and payroll will be damage please help me if you have any solution? Thanks Rendra Rizk
-
PSE11: Editor changes Date Created?
PSE11 on Win 7. I take pictures with my iPhone. Photostream them to my Windows PC. I copy the ones I want to keep from my Photostream Folder to a 'permanent' folder. (My understanding is PhotoStream only keeps 1,000 photos.) The dates in the Photostr