Packing directory output to a list

I am new to this, I have tons of directories that I am working on. I want to output the files in each directory to a comma delimited list with each list named after  the directory containing the files.  So far I have been able to write a code that groups each files underneath each directory but i'm stuck as to the list part, I need help as to packing the output into a list thanks for your assistance.
I have gotten as far as this
<cfset dir = ("D:\dox\")>
<cfdirectory name="Getdir" action="list" directory="#dir#" type="All" recurse="yes">
<cfquery dbtype="query" name="Getfiles">
SELECT * FROM Getdir ORDER BY directory, name </cfquery>
<CFOUTPUT QUERY="GetBoth" GROUP="directory">
<br><B>#GetBoth.directory#</B></FONT><br>
<CFOUTPUT>#GetBoth.name#<BR></CFOUTPUT>
</CFOUTPUT> 

OK, well you can use valueList() to extract an entire query column as a list.  So that is easy enough.  However that requires the correct data to be in a single column.  So you might want to look at what columns you're fetching with your QoQ, and adjust that to better suit your requirement.
Adam

Similar Messages

  • COPA line item report, Number format  -output type - object list(ALV).

    Hi,
    I am preparing COPA line item report. I want to change number format (two decimal place). I did the changes in form level then I did the changes in drill down report as well and saved as save definition.
    But changes are not reflecting in- output type - object list(ALV).
    Please provide help in this.
    Regards

    HI
    What t-code you are using to write this line item report ?

  • Adding fields in EDI output of Invoice List

    Hi!
    I am trying to find out what is a process of adding fields in EDI output of Invoice List...
    I mean that I need to add some extra fields to Invoice lists.
    The information I have is: name of Form, print program and output type.
    I guess I need to modify printing program, is it a correct way to go?
    Hope to avoid modifying of print form...
    Will reward,
    Mindaugas.

    I did not work on invoice list EDI,but i have done invoice.
    First you need to look at segment,if you want to add new fileds in output,then you need to create segment at WE31 Transaction.
    now create idoc type based on invoice idoc type ( WE30) here you need to use ur segment.
    Idoc has function module
    outbound - FM will start IDOC_OUTBOUND_inv*
    Inbound  - FM will Start IDOC_INBOUND_INV*
    in the FM,you will have user exit ,populate ur fields in user exit.
    Configuration :
    1 create or maintain logical system - SALE
    2. Create RFC Destination - Sm59
    3. Create port - WE21 - ( EDI - Port is FILE)
    6.Maintain partner profile - WE20 ( Give all required details like message type,idoc type)
    IDOC Status - WE02 or WE05
    Status Record - WE47
    Change pointer - BD52
    Message type : WE81
    Assign message type to idoc WE82
    finally when you create invoice list and output type medium is 6 then output will go to other system as text file.
    Note : Please maintain message control in Partner profile.

  • KE30 decimal not display in quantity column with output type object list

    Hi everyone,
         I already set number format "0.000" in change form screen but when I execute report with output type object list (ALV) that report don't display decimal in quantities column e.g. 0.470 displayed to 0 .
        How can I set number format in output type object list on Transaction code KE30?
    Thanks in advance.
    Pipit

    Hi,
    Better to raise this issue in CO Forum. You can expect some solution.
    regards

  • Output device not listed.

    What if my sound output device not listed? Trying to connect my MacBookPro 17" (mid 2010) to my tv. Video plays. I have connected digital audio cable to both tv n Mac. When I go to sound in system preference (after cord was plugged in) nothing listed. 

    Very well stated.  And, sometimes I do forget that there is still such a thing as celluloid.  Not to mention all the new "K"s that RED is coming up with (aren't they working on something like 27 or 28k now?)  When I look at it from that point of view, what you say makes perfect sense.
    But then why does preferences>video preview in After Effects give me the "output device" option of IEEE 1394 at NTSC 720x480?  This leads me to believe that I could plug a deck into 1394 and get a video preview.  If this is the case, then my way of thinking says it should offer other options for "output device".
    When I first set up Premiere Pro CS4, the playback settings did not list the HDMI HDTV as an external monitor option.  It wasn't until I fooled around with the system's display settings and turned the HDTV into an extention of the desktop that suddenly Premiere Pro listed it as a possible external monitor.  So, my history there (and my goofy sense of logic that makes perfect sense to me) has me wondering if a similar sequence of messing with the display options is suddenly going to make AE see the HDTV as an "output device".  I am not interested in realtime playback, merely the closest reference possible as to what my video image looks like in HD on an external monitor.  I ask "why do I need a separate video card like my old Matrox card, when standard graphics cards these days can handle HD & even have HDMI out?"
    Admittedly, I know next to nothing about the complexity & inner workings of software and computer components.  Why, I was ready to throw a party just because I successfully installed an additional hard drive in my new computer.  I must be like one of my own clients who don't understand why we can't easily separate a voice track from a music track when it's been rendered as one .mp3 file...or why we can't quickly cut a person out of a video layer and make them seamlessly interact with footage of JFK, Zemekis-style.

  • Is it possible to create the ALV output with dropdown list for the columns

    Hi forum experts,
                              Could the ALV output contain the dropdown list for the column names? if yes, then how we can acheive this to happen.
    Thanks in advance,
    Regards,
    Samad.
    Edited by: Samad arif on Aug 21, 2009 4:40 PM

    Hi Arif,
    Yes we can .FOr the codding check the article,
    [dropdowns in ALV|https://wiki.sdn.sap.com/wiki/display/Snippets/DropdownsinALV]
    regards,
    Archana
    Edited by: Archana Kumari on Aug 21, 2009 1:22 PM

  • Build.vi does not output Generated files list for installer

    In LV 2011, Build.vi does not output a "Generated files" list when used on an installer. Example attached. When run on my system, "Generated files" is an empty array and "error out" shows no errors or warnings. The built installer can be found on disk, so I know the build succeeded.
    I critically need to know the target folder for my built installer so I can use it in an automated build tool. Assuming this is a real bug, can someone help me with a workaround that doesn't require an operator to point the VI to the target path?
    Attachments:
    build_vi_bug.zip ‏10 KB

    Hi David,
    You may find the solution in the following two links
    Creating Builds Programmatically
    Build executable and installer programmatically
    In the second link, there is an example code posted by Suse to find the destination path programmatically, hope it helps answer your question.
    Yupeng J.

  • Output as a list

    I have a requirement wherein i need to output the structure of a table to a list.
    Plz provide sample code for this.
    Helpful answers will be rewarded.

    Hi Neerja,
    Check this.
    DATA: i_qmel LIKE qmel OCCURS 0.
    SELECT * FROM qmel INTO TABLE i_qmel.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                =
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
       i_structure_name                  = 'QMEL'
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
      IT_FIELDCAT                       =
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_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
      IT_ALV_GRAPHICS                   =
      IT_ADD_FIELDCAT                   =
      IT_HYPERLINK                      =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          = i_qmel
      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.
    <b>Regards,
    Jackie.</b>

  • Please help to provide a join for the three tables and output as per list

    to produce a report to list out all condition records for output and pricing.
    <u><b>usage  app  procedure step  counter  cod type  description  access seq </b> </u>
    <u><b>accseqnum  cond table   sales org  doctype  customer  channel  sale doc type</b></u>
    the above list of fields from tables t683s ,t685,and t682i to be pulled, i need an inner join
    regards
    ksrao

    Hi,
    check the site www.alvrobot.com.ar
    you can create a report over there using inner join just by providing simple information
    follow step by step procedure and create a report
    <u><b>Reward points if usefull.</b></u>

  • Output type picling list. VT70

    Hi
    Hi have out type for picking list Zpak where i want for some material Text should be added. it is only for some material with some plants and otherthings should not change. can anybody explain the logic how to do it.
    thanks in advance
    Ramachandra

    Hi
    Transfer orders are not printed through any output types.
    The Print program, output device and Form are assigned directly in the configuration.
    Transaction : OMLV
    Gobinathan G

  • EK00 - Output for picking list

    Hi, can anyone advise where we can assign picking list output 'EK00' to an output device?  My output is not proposing in the delivery order even though i've setup against the shipping point.  I am suspecting it's bcos of output device.
    Thanks
    Peter

    Hi,
    1. First assign your Output type EK00 to the shipping point(Enterprise Structure - Definition of Shipping point), also maintain the time and medium.
    2. Use TCode V/38, to maintain the condition type EK00, maintain the time,print parameters and transmission medium.
    Also assign the processing routines Prog: RVADEK1,Form Routine: ENTRY, Form:SD_PICK_SINGLE
    3. Mainatain the print parameters for shipping pt using TCOde VL01SHP.
    Regards
    Mahesh

  • ADT error "File [file] is not relative to directory [output]"

    Has anybody come accross this error before when adding files to include to via ADT?
    For example:
    adt -package -target ipa-test -storetype pkcs12 -keystore my.p12 -storepass mypass
    -provisioning-profile my.mobileprovision my.ipa my-app.xml
    my.swf icons Default.png  "../../../resources/fonts/FutuBd_.ttf"
    In this case I am trying to include a file in the archive that is relative to the output directory.
    My output directory is:
    c:\projects\game\repo\bin\ios\
    My font is in:
    c:\projects\game\resources\fonts\FutuBd_.ttf
    However I get the error:
    File ../../../resources/fonts/FutuBd_.ttf is not relative to directory c:\projects\game\resources\fonts\FutuBd_ttf
    But it actually is! 
    Anybody have any idea?

    Yeah, sorry Colin, that is indeed what happens (CD first to swf folder).  That isn't the exact command line either - I cobbled it as an example.  The main point is that at works absolutely fine without including external files (generates an IPA etc), but as soon as I do include files (other than icons or Default.png etc), it doesn't work anymore.  Some more info:
    - If the files are in the same folder as the swf, and included without a path (filename only) it works fine
    - If there is a relative path that is incorrect (i.e. there is no such file), the error is different (file does not exist)
    - However, if the relative path is correct (there is a file there) the error is as above
    - Quotes or no quotes makes no difference (quotes are there for the 'space in file path' problem)

  • Mac os x server 3.0.2 open directory master disappear from list

    Hi, There is a very funny Mac OS X Server 3.0.2 issue.
    After I updated my mac os X server from 3.0.0 to 3.0.2. as my host name is conflict with other Mac mini, I changed X server's Mac mini's host name, computer name and localhost name. When I restart my x server. My defined "Open Directory Master" disappear from my server list.
    Actually, I need to change some setting from UI, as it disppeared from UI, I can't do any about it. Is there any way to delete it from command line? or How I can enable it appear again?

    As can't find the defined open directory server master, have to delete it from terminal command line as:
    sudo slapconfig -destroyldapserver
    and then add a new open directory master.

  • Output screen basic list buttons

    Hi frnds,
                   what are the steps to create buttons in the application toolbar in our output screen.
    like i m getting sales header data in my basic list so in the output i m having a button which i press then i will get sales item details.
    so can anyone help me how to create that button there in the ouput screen.
    regards,
    sanjay

    Hi,
    You can copy the GUI STATUS  STANDARD of the program SAPLKKBL in SE41 and create a new one..
    in that add a button in the application toolbar section..
    Then use call back pf status parameter to pass the subroutine to display the gui status..
    Then use call back subroutine parameter in the alv function module to give the subroutine name..
    check this example for using double click to get the item details.
    TYPE-POOLS: slis.
    DATA: BEGIN OF itab1 OCCURS 0,
            vbeln TYPE vbeln,
            bstnk TYPE vbak-bstnk,
            erdat TYPE vbak-erdat,
            kunnr TYPE vbak-kunnr,
          END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0,
            vbeln  TYPE vbeln,
            matnr  TYPE vbap-matnr,
            netpr  TYPE vbap-netpr,
            kwmeng TYPE vbap-kwmeng,
          END OF itab2.
    DATA: t_fieldcatalog1 TYPE slis_t_fieldcat_alv.
    DATA: t_fieldcatalog2 TYPE slis_t_fieldcat_alv.
    DATA: v_repid         TYPE syrepid.
    v_repid = sy-repid.
    * Get the fieldcatalog1
    PERFORM get_fieldcat1.
    * Get the fieldcatalog2
    PERFORM get_fieldcat2.
    SELECT vbeln bstnk erdat kunnr UP TO 10 ROWS
           INTO TABLE itab1
           FROM vbak.
    IF NOT itab1[] IS INITIAL.
      SELECT vbeln matnr netpr kwmeng UP TO 10 ROWS
             INTO TABLE itab2
             FROM vbap
             FOR ALL ENTRIES IN itab1
             WHERE vbeln = itab1-vbeln.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program      = v_repid
              i_callback_user_command = 'DISPLAY_DETAIL'
              it_fieldcat             = t_fieldcatalog1
         TABLES
              t_outtab                = itab1.
    *       FORM display_detail                                           *
    *  -->  UCOMM                                                         *
    *  -->  SELFIELD                                                      *
    FORM display_detail USING ucomm LIKE sy-ucomm
                            selfield TYPE slis_selfield.
      DATA: itab2_temp LIKE itab2 OCCURS 0 WITH HEADER LINE.
      IF ucomm = '&IC1'.
        READ TABLE itab1 INDEX selfield-tabindex.
        IF sy-subrc = 0.
          LOOP AT itab2 WHERE vbeln = itab1-vbeln.
            MOVE itab2 TO itab2_temp.
            APPEND itab2_temp.
          ENDLOOP.
          CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
               EXPORTING
                    i_callback_program = v_repid
                    it_fieldcat        = t_fieldcatalog2
               TABLES
                    t_outtab           = itab2_temp.
        ENDIF.
      ENDIF.
    ENDFORM.
    *       FORM GET_FIELDCAT1                                            *
    FORM get_fieldcat1.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname   = 'ITAB1'.
      s_fieldcatalog-rollname  = 'VBELN'.
      s_fieldcatalog-hotspot   = 'X'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'BSTNK'.
      s_fieldcatalog-tabname   = 'ITAB1'.
      s_fieldcatalog-rollname  = 'BSTNK'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'ERDAT'.
      s_fieldcatalog-tabname   = 'ITAB1'.
      s_fieldcatalog-rollname  = 'ERDAT'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KUNNR'.
      s_fieldcatalog-tabname   = 'ITAB1'.
      s_fieldcatalog-rollname  = 'KUNNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog1.
      CLEAR s_fieldcatalog.
    ENDFORM.
    *       FORM GET_FIELDCAT2                                            *
    FORM get_fieldcat2.
      DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
      s_fieldcatalog-col_pos = '1'.
      s_fieldcatalog-fieldname = 'VBELN'.
      s_fieldcatalog-tabname   = 'ITAB2'.
      s_fieldcatalog-rollname  = 'VBELN'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '2'.
      s_fieldcatalog-fieldname = 'MATNR'.
      s_fieldcatalog-tabname   = 'ITAB2'.
      s_fieldcatalog-rollname  = 'MATNR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '3'.
      s_fieldcatalog-fieldname = 'NETPR'.
      s_fieldcatalog-tabname   = 'ITAB2'.
      s_fieldcatalog-rollname  = 'NETPR'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
      s_fieldcatalog-col_pos = '4'.
      s_fieldcatalog-fieldname = 'KWMENG'.
      s_fieldcatalog-tabname   = 'ITAB2'.
      s_fieldcatalog-rollname  = 'KWMENG'.
      APPEND s_fieldcatalog TO t_fieldcatalog2.
      CLEAR s_fieldcatalog.
    ENDFORM.
    Thanks
    Naren

  • "no such file or directory"--but file's listed with ls -al

    How do you delete a file which is listed with "ls -al" in Terminal,
    but when you try to 'sudo rm' it, you get "no such file or directory"?
    The file in question is a troublesome temporary Excel spreadsheet file--something like "~$TroublesomeFile.xlsx". 
    When I run "ls -al", it's listed with the flags "-rw-r--r--@".
    Thanks much for your time!
    riprap

    If the file really starts with ~ then this is a "Magic" character to the shell.  It says to look for your home directory.
    If the file really has a $ in it, then this is a "Magic" character to the shell.  It tells the shell to substitute the contents of variable TroublesomeFile in the command line.  If the variable does not exist, then nothing is substituted for the variable name.
    If you really have all these "Magic" characters in the file name, then protect it by using single quotes around the file name:
    rm '~$TroublesomeFile.xlsx'
    If that doesn't work, then please show the exact command used to try the 'rm'
    AND please show the exact error message.  Do not summarize.

Maybe you are looking for

  • NF-e com Status Proc. 06, erro 50 e status 212 no GRC e no R/3 processando

    Bom dia! Gostaria de pedir seu auxílio com o seguinte problema: Duas notas foram geradas na madrugada de hoje (25/02) e receberam rejeição 212 da SEFAZ. Na sequencia, o usuário tentou inutilizá-las pelo monitor J1BNFE, e ambas ficaram com o seguinte

  • HP LaserJet Pro m201dw suddenly not printing via ethernet (wired) network using Mac OS 10.10.1

    Hi, My brand-new HP LaserJet Pro M201dw is suddenly not cooperating when I go to print using my Mac. I had it set up following the directions which closest matched my OS and it worked perfectly for one week; today suddenly it won't cooperate. The pri

  • OPen Captivate 4 project in Captivate 5 fails and shuts down Captivate 5

    I have a small project (6 slides) that was created using Captivate 4. When I attempt to open this in Captivate 5, I see the progress bar indicating that the slides are being upgraded to 5 and once that completes, I get an error message that it encoun

  • Certain buttons on certain websites do not work

    There should be a break - a choice - after I've been asked whether or not I want to update Firefox and then Updater tells me that certain add-ons will not work THEN I should be given a choice whether or not I want to continue. I had to remove Firefox

  • Loop through xsd tag in BPEL

    I have a XSD with 10 line items and based on a condition I need to filter out the Line Items.. Once the line items are filtered out, then only it should go to the next level of logic. Shall I use "While" process activity? Will it go through all the l