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>

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.

  • 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

  • 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.

  • 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

  • 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

  • Outputing a dir listing for use as a file sorter

    hi all
    i was working on using an external *.exe to encode some data and i
    need to take a dir listing in so that i can apply the encoding to
    certain files, but i am having a little diffuculty in in outputting a
    text file from which to scan, i have
    i am using labview 6, and the main vi elements i'm using for this
    proccess is the list dir vi index array vi and write chars to a file
    vi, but i cannot get the file names on a new line for each one, they
    are all after each other with one space....
    i know in text based programing you can use \n or similar to solve
    this, but i am at a loss here with labview
    if any one could help i would be most grateful
    peter

    many thanks! i don't know how i could have missed that! :-)
    "Greg McKaskle" wrote in message
    news:[email protected]..
    > > i was working on using an external *.exe to encode some data and i
    > > need to take a dir listing in so that i can apply the encoding to
    > > certain files, but i am having a little diffuculty in in outputting a
    > > text file from which to scan, i have
    > > i am using labview 6, and the main vi elements i'm using for this
    > > proccess is the list dir vi index array vi and write chars to a file
    > > vi, but i cannot get the file names on a new line for each one, they
    > > are all after each other with one space....
    > > i know in text based programing you can use \n or similar to solve
    > > this,
    but i am at a loss here with labview
    > > if any one could help i would be most grateful
    >
    >
    > The string palette has constants for different linefeed, carriage
    > return, or the platform adapting end of line. If you add this
    > string character between names, that should get you started.
    >
    > Greg McKaskle
    >

  • Output for picking list

    hai every body
    iam trying to configure the output type for picking list,i have done the condition technique and also maintained condition record.i have assigned that output type to the shipping point also but when i select the output  for picking from delivery it is showing in display mode,the system is not letting me to assign the output type in that screen.
    what is the problem i a have done pl tell the procedure if any body knows.
    thanks in adv,
    rajesh

    Hi Rajesh
    From Release 4.5A, the system does no longer display the actions for SD picking in the implementation guide.
    If you want to use the picking list according to the "old" procedure,  you can maintain the list as follows:
    o  Carry out Transaction V/38 to maintain the output types.
    o  Carry out Transaction OVLT to assign the picking list types to the
         shipping points.
    o  Carry out Transaction V/53 to assign the picking lists to own
         forms and programs.
    Picking Output Type is determined in transaction v/23. Though You can have one per shipping point unfortunately. If more flexibility is needed, one can use delivery output or lean WM and transfer order output.
    Ensure that "Multiple issuing" check box in v/34 is switched off for the corresponding output type.
    Reward if useful to u

  • Package to output dimension member list

    Hi,
    I would like to schedule the automatic output of a dimension member listing from BPC.
    Is there an inbuilt package I can use to do this?
    Many thanks
    Phil

    Phil,
    There is no built in proceess that I know of that dose that but, you can use one of the follwing options.
    If you are looking for dimension you can parse thru the XML file that it creates.
    it's located under
    C:\Documents and Settings\admBPCSQL\My Documents\OutlookSoft\Admin\MEI_Group\AdminAPP\DimCache\ACCOUNT.XML
    if you are just looking for member detail you can always get the infor out form SQL tables
    Mbr<dimensionname> or dim<dimensionname> tables.
    Mbr<dimensionname> has same infor as your member sheet, and dim<dimensionname> table has the parent level info.
    Hope this helps.
    sam

Maybe you are looking for