Function avail to get FOLDER NAME?
Greetings:
1. Does there exist a Portal function/procedure for geting the current FOLDER NAME or TITLE?
2. Where is a useful place to browse for available Portal functions & procedures?
Thank you in advance for any and all guidance.
Ed in Tampa
3 ways;
data:itab_month type standard table of T247
data: month_name type table of t247 with header line.
data: mm(2) type n.
mm = sy-datum+4(2).
CALL FUNCTION 'MONTH_NAMES_GET'
TABLES
MONTH_NAMES = month_name.
read table month_name index mm.
write: / month_name-ltx.
OR
REPORT ychatest2.
TABLES : t247.
DATA : v_mon(2) TYPE n,
v_date(10) VALUE '04.09.2007',
v_ltx LIKE t247-ltx,
v_ktx LIKE t247-ktx.
SELECT SINGLE ktx
ltx
INTO (v_ktx , v_ltx)
FROM t247
WHERE spras = sy-langu AND
mnr EQ v_date+3(2).
WRITE : v_ktx , v_ltx.
OR
Hi,
use sub srtingoperation, as below.
MONTH_NAMES_GET cannot be used to spell the month, it is used to retrieve the available month options in a perticular system and their possible representation.
if you want to spell the month use the FM ' SPELL_AMOUNT'.
Use sub string operation for this.
data: c1(2) type c,
d1 type d value '04.09.2007,
WORDS LIKE SPELL.
c1 = d1+3(2).
call function 'SPELL AMOUNT'
EXP
AMOUNT = C1
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = WORDS
WRITE: WORDS-WORD
Similar Messages
-
Any Function module or BAPIs are available to get scheme name for the inter
I have internal order no value in table AUFK-AUFNR , and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?
look at DB-VIEW "V_IVP_OR".
Regards,
Laurent -
Hi All,
I need to retrieve the folder name for where the item is stored to generate a report in following format in csv
File Name Full Path Parent Folder Created By Last Modified By Number of Versions Total Size
My code which gets all other info.
function Get-DocInventory() {
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$site=Get-SPSite -Identity "siteURL"
foreach ($web in $site.AllWebs) {
foreach ($list in $web.Lists) {
if ($list.BaseType -ne "DocumentLibrary") {continue}
foreach ($item in $list.Items) {
$data = @{
# "Web Application" = $webApp.ToString();
#"Web" = $web.Url
"Site" = $site.Url
"list" = $list.Title
"Item ID" = $item.ID
"Item URL" = $site.Url+"/"+$item.Url
"Item Name"= $item.File.Name
“Item Versions” = $item.Versions.Count
"Item Created" = $item["Created"]
"Extensions" = $item.name.split(".")[1]
"Item Modified" = $item["Modified"]
"Item Created By" = $item["Author"]
"Last Updated by" = $item["Editor"]
"File Size" = $item.File.Length/1KB
New-Object PSObject -Property $data
$web.Dispose();
$site.Dispose()
#Get-DocInventory | Out-GridView
Get-DocInventory | Export-Csv -NoTypeInformation -Path D:\Scripts\Hemant\inventory.csv
Coukld you please help me get folder name
Thanks BasvaTo get the full Folder URL you could use:
$item.File.ParentFolder.Url
And just for the Folder Name use:
$item.File.ParentFolder.Name -
Event Receiver to get folder Names from List View Web Part
Hi,
We have a requirement i.e.
On one of the page,there are some folders on the list view web part.
Now through event receiver i should pick the folder names from list view web part and
update the same in the list.
If that names already exists in the list then we should leave without updating,if not we have to add folder name in the list.
Please share your ideas regarding the same.
Regards,
Naga Sudheer M
Thanks & Regards, SudheerHello,
LVWP is just for displaying content of site so you need to associate your event receiver with actual list/library. You can create ItemAdded event receiver to check existing folder and create new if not existing. "sk2014" links are good to start.
http://sharepoint.stackexchange.com/questions/59788/change-name-in-itemadding-event-receiver-or-create-a-new-item
Let us know in case any doubt
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Function module to get the name of all the function module used
I want to populate a internal table with the name of all function module used in the submitted program?? Is there any function module which return the name of all the function module used?
Hi Priya
Try this one RPY_FUNCTIONMODULE_READ.
Ranga -
Getting Folder Name from SPAuditEntry
Hi,
Url is in the format of /sites/Nucleus/foldername/filename.docx
I am able to get the document path,filename using SPAuditEntry as below
SPList list = web.Lists["testdoclib"];
dt.Columns.Add("Folder");
dt.Columns.Add("Document Path");
dt.Columns.Add("File Name");
SPAuditQuery spQuery = new SPAuditQuery(site);
spQuery.RestrictToList(list);
SPAuditEntryCollection auditCol = site.Audit.GetEntries(spQuery);
foreach (SPAuditEntry entry in auditCol)
if (entry.ItemType == SPAuditItemType.Document && entry.Event == SPAuditEventType.View)
dr["Document Path"] = entry.DocLocation;
dr["Folder"] = entry.DocLocation.Substring(entry.DocLocation.LastIndexOf("/Nucleus/") + 1);
dr["File Name"] = entry.DocLocation.Substring(entry.DocLocation.LastIndexOf("/") + 1);
dt.Rows.Add(dr);
But not able to get the foldername exactly.
So please let me know if there are corrections to get the exact result
Regards,
Sudheer
Thanks & Regards, Sudheertry these links:
http://www.sharepointsecurity.com/sharepoint/sharepoint-development/get-friendly-user-name-for-spauditentry-userid/
http://www.windows-tech.info/6/d6eda88fe3a5572c.php
Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing -
How to create function module for getting customer name
Hi Experts,
How to create function module? when in import parameter kunnr values to be passed it must give name1 details according to the customer number...
how to write the logic in source code....
Regards,
Thiru. R1. First of all create function group.
2. Create function module using this function group.
3. If only one kunnr is needed at a time, create import parameter for it. But if many kunnr to be entered at a time,use table.
4. Fetch name1 for each kunnr from KNA1 table.
"->> if many kunnr
if not t_kunnr[] is initial.
select kunnr as kunnr name1 as name1
into table t_kunnr_name1
from kna1
for all entried in table t_kunnr
where kunnr = t_kunnr-kunnr.
endif.
sort t_kunnr_name1 by kunnr name1.
delete adjacent duplicates from t_kunnr_name1 comparing kunnr name1.
table t_kunnr_name1 will contain kunnr and its name1.
I hope logic is clear for you now.
Regards,
Aparna -
I am importing my Sounds Of The Seventies collection from CD. My issue arises when I import albums that have names greater than 40 characters, I get folder names like
Sounds Of The Seventies - Punk and New W
Sounds Of The Seventies - AM Pop Classic
Classic Rock [Creedence Clearwater Reviv
Now, that's ok if I don't have any other albums that have the same 1st 40 characters I guess, although it's annoying that the folder doesn't have the full name.
The big problem is when I have albums lik
Sounds Of The Seventies - AM Pop Classics I
Sounds Of The Seventies - AM Pop Classics II
They both go into the same truncated folder Sounds Of The Seventies - AM Pop Classic. Renaming the folder after import and trying to add them via Add File doesn't work either.
I wouldn't even mind if I could create a Sounds Of The Seventies as the Artist, and not mark it as a compilation, and put the shortened album titles underneath
Any ideas?Check the option to Keep iTunes Media organized under Edit > Preferences > Advanced. The Copy files to iTunes Media folder option should also be checked if you want to make sure that all media is stored under the iTunes Media folders.
-
Every time I create a new folder, say on the bookmarks toolbar, like "REOPEN 6-13-14" and use the "Bookmark all Tabs" function to create bookmarks to reopen later, it creates a sub directory in the new folder called [Folder Name]. If I have 4 windows open with multiple tabs and do this, it creates 4 separate [Folder Name] folders in the "REOPEN...." folder. Really want to just add all bookmarks into one big folder to reopen later.
If you use "Bookmarks All Tabs" then Firefox will always create a new folder with the name that you specify in the location that you specify.
If you do not change the default name then it keeps [Folder Name] for its name.
This also happens if there is already a folder with the same name and you thus get multiple folders with the same name. -
How can I get the directory(or folder) name?
Hello. I want to get directory name using Labwindows CVI. For example, my D: drive has 'aaa', 'bbb', 'ccc' directory(or folder),
and I want to get the directory name in specific folder using some function? Is there any function knowing the dirctory name?Yes !
Thanks, it worked !
Gerhard
Code:
int CVICALLBACK FindUSB (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
int Loop, Result, CurrentDrv, NumberOfDrv;
char DirName[MAX_PATHNAME_LEN];
char lpVolumeNameBuffer[MAX_PATHNAME_LEN];
char lpVolumeSerialNumber[MAX_PATHNAME_LEN];
char lpFileSystemNameBuffer[MAX_PATHNAME_LEN];
switch (event)
case EVENT_COMMIT:
for (Loop = 0; Loop <= 25; Loop++)
Result = SetDrive (Loop);
printf("SetDrive %2d / %c: %d", Loop, (char) (Loop + 65), Result);
if (!Result)
Result = GetDrive (&CurrentDrv, &NumberOfDrv);
printf(" GetDrive %c: %d %d", (char) (CurrentDrv + 65), NumberOfDrv, Result);
Result = GetDir (DirName);
if (!Result)
printf(" Dir: %s", DirName);
GetVolumeInformation( NULL, // lpRootPathName,
lpVolumeNameBuffer, // lpVolumeNameBuffer,
300, // nVolumeNameSize,
NULL, // lpVolumeSerialNumber,
NULL, // lpMaximumComponentLength
NULL, // lpFileSystemFlags,
lpFileSystemNameBuffer, // lpFileSystemNameBuffer,
300); // nFileSystemNameSize)
printf(" VolumeName: %s", lpVolumeNameBuffer);
printf("\n");
break;
return 0; -
Help appreciated on this one as I'm OK on my PC but far from a whizz. Done a little investigation and reading of https://discussions.apple.com/thread/5199195?start=0&tstart=0 but I just can't seem to get anywhere and end up with a very underpopulated iTunes.
To set the scene. Been using iTunes for many years and have had several PCs in this time and migrated the library over. Each time I have had a half hearted attempt at organising it all on 1 drive but it has obviously not gone to plan hence my split library and weird file/ folder paths. e.g.
for some reason my recently downloaded apps are stored in C:/users/mark/my music/itunes/mobile applications. I also have numerous itunes library files on this drive
my music is mainly stored on my storage drive B:/itunes music/music/music. On both drives I have mobile applications folders each with many apps in.
I have set my itunes media folder location to B:\iTunes Music\Music so have no idea why all my downloaded apps end up on the C:/, nor have I any idea why they appear in the library seing as the itunes media folder is set to B:/
I hope you can make heads or tails of this as I am even confusing myself as I type!
Help appreciated as every time I try and move stuff around I end up with a very depleted library and have to remember what I moved where to put it back!
MarkSo I right clicked to find the files and relink, and it did not work. The folder name disappeared.
It didn't disappear, it moved (because you told Lightroom to move it). It moved from the incorrect folder location, to the new folder location. Please look in the new folder, in whatever location it is in, not in the old folder and the old location, and you will find the photos. -
Function Module available to get Stock lying against a Sale-Order
Dear Sir,
We have function module "KPKA_UTILS_PROJECT_STOCK_CHECK" for getting Stock lying against a WBS (Project Stock) .
We are looking for a function module to get the Stock lying against a Sale-Order (Sale-Order plus it's Line Item) .
We request SAP experts to kindly guide us about the availability of such Function Module please .
We will award full points for the suggested solution pl .
Rgds
B MittalHi
table MSKA - Sales Order Stock is availble whcih will give the Stock pertainig to a sales Order & line item.
Hope this helps
Thanks & Regards
Kishore -
Im using the most recent version of Lightroom 5.3 (updated through CC - even though this has shown up on previous version) on Windows 7 and all the folders in my library are showing up with the directory path in front of my folder names. How can I get rid of this? I do not see any options in preferences to turn this off. I have also turned off preferences in Windows > Folder Options Control Panel "Display full Path in Title bar" option.
I have Lightroom on several computers and have set up preferences the same on each workstation, and this only shows up on one workstation.
Any help would be appreciated.
You can see from the image below how this is showing up.
Thanks
Thanks!Click the little down arrow/+ symbol next the + - in the folders bar.
-
How to get Folder Location by just providing folder name ?
Hi,
I want to get folder location by providing its name.
I created one folder on "E:\" drive and when I used following code in netbeans it giving me the current loaction of java file.
File directory = new File("SVN");
boolean isDirectory = directory.isDirectory();
if (isDirectory) {
// It returns true if directory is a directory.
System.out.println("the name you have entered is a directory : " + directory);
//It returns the absolutepath of a directory.
System.out.println("the path is " + directory.getAbsolutePath());
else {
// It returns false if directory is a file.
System.out.println("the name you have entered is a file : " + directory);
//It returns the absolute path of a file.
System.out.println("the path is " + directory.getAbsolutePath());
}And i got following output
the name you have entered is a file : SVN
the path is C:\Users\AjayS\Documents\NetBeansProjects\TestCodes\SVNBut my folder is located on "E:\" drive.
Regards,
AjayYou will have to search for them. But that indicates something seriously wrong with the requirement. In effect you're using the local filename as a secondary key but there is no index on it. You should consider a database.
-
How to get the folder name of selected subitem in tree structure?
Hi All,
I created a tree structure like below.
->Folder1-- 1
2
3
->Folder2-----1
2
3
i.e i have two folders & each folder having the values like above.Now i want to perform some action by clicking on the any of the values.Suppose if i click value 2,i want to do some action.the actions need to perform is varies from floder to to folder.
So How can i get the folder name of clicked Value?
Regards,
RaviHi Kumar ,
the below code should help you.
Register the below action for the leaf node for which u need the subfolder's name above it.
Worked fine in my system ...hope it does in ur scenario too
method ONACTIONGET_PATH .
data : lr_element TYPE REF TO if_wd_context_element,
lr_node TYPE REF TO if_wd_context_node,
ls_path type string,
ls_path_node TYPE string,
lt_string type TABLE OF string,
l_lines type i,
l_lines_1 TYPE i.
lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
**-> getting the path of the node/leaf
*which u had clicked and from that getting the node above it
ls_path = lr_element->get_path( ).
SPLIT ls_path at '.' into table lt_string.
-> remove the first 2 entries as they will contain the view name
DELETE lt_string FROM 1 to 2.
l_lines = LINES( lt_String ).
l_lines_1 = l_lines - 1.
-> remove the last 2 entries as they will contain the element in the path
DELETE lt_string from l_lines_1 to l_lines.
LOOP AT lt_string into ls_path.
CONCATENATE LINES OF LT_STRING into ls_path_node SEPARATED BY '.'.
ENDLOOP.
**-> getting access to the node above the leaf element
LR_NODE = WD_CONTEXT->PATH_GET_NODE( path = ls_path_node ).
lr_element = lr_node->get_element( ).
**-> Getting the name of the folder...
*here path is the attribute in my context which stores the name of the folder
lr_element->get_attribute( EXPORTING name = 'PATH' IMPORTING value = ls_path ).
endmethod.
Maybe you are looking for
-
Alright folks, I just scored a **** of a deal on Craigslist. I got a nearly new Dell U2311H 23" IPS display for 100 bucks. I've discovered a little problem though. For some reason the VGA connection works perfectly fine with a VGA to DVI adapter on t
-
Ordering results from the Query
Hi All, I have a query which selects a lot of attributes from a table. There is one field, named copyright year which stores year in numeric format. I run a query to select all attributes by specifiying author name (this is one of the attributes). I
-
How Can I Keep Photo Data When Adding Photo To New Book?
All of my photos in IPhoto have dates and descriptions as part of the file names. When I transfer then to make a book, all of this data goes away. Is there any way I can keep this data as a description of the photo.
-
Problem in compounding attributes
I need to add compounding attributes to the bw systems from sap R/3. do i need to delete the data in cubes and masterdata and all and start from the scratch, how to solve it, i have seached forum which i couldnt found out.
-
Listener disconnect auto after 2hours
Dear all i have oracle 10gR2 on windows 2003 server 32bit .. the server is running welll the user are connected we have 180-220 session at a time . After some time within 2hours the listener disconnects atuomaticallay and the listener log show the fo