How To Get Supported Audio Formats?

If I have a particular Mixer how do I get the supported Audio Formats
for every line?
I know DataLine.Info has a getFormats() method.
How do I get a DataLine.Info from a Line?
I know how to get the Source and Target Lines and they subinterface
DataLine, I just dont know how to get the DataLine.Info from DataLine.
Thanks a lot!

Mr Evil, thanks a lot! That was very helpful.
Your code is going to help me quite a bit when I get to 24 bit audio.
I love that JSR page. I did miss that relevant FAQ question though.
Instead of checking for instanceOf i was casting within a try catch.
It should work now.
Is there anyone alive in this forum?
I'm guessing that sound is not a popular application for Java. That was funny. I feel your pain.
I cant wait to get out of the nuts and bolts of java sound so i can
move on to the actual DSP fun : )

Similar Messages

  • Logitech ConferenceCam BCC950 gets an "Audio format provided (...) no supported (...)" error

    I use FMLE 3.2 in WinXP SP3, selecting BCC950 as video device works but after selecting it as audio device I get the  "Audio format provided by audio capture device is no supported by this application" error. The session log has the following information:
    =================================================================
    File: C:\Archivos de programa\Adobe\Flash Media Live Encoder 3.2\FlashMediaLiveEncoder.exe
    Description: Adobe® Flash® Media Live Encoder
    Copyright: © 2009 - 10 Adobe Systems Incorporated. All Rights Reserved. Adobe, the Adobe logo, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners. <AdobeIP#0000716>
    Version: 3.2.0.9932
    =================================================================
    Thu Apr 04 2013 12:09:48 : Selected video input device: BCC950 ConferenceCam
    Thu Apr 04 2013 12:09:52 : Selected audio input device: BCC950 ConferenceCam
    Thu Apr 04 2013 12:09:55 : The selected audio device "BCC950 ConferenceCam" doesn't allow setting volume intensity. Disabling the volume slider control.
    Thu Apr 04 2013 12:09:55 : Audio format not supported. Audio format provided by audio capture device is not supported by this application.
    Thu Apr 04 2013 12:17:59 : Resample Required.
    Thu Apr 04 2013 12:18:00 : Failed with error ffffff87:AddAudioResampler(audiodevice, pFilterSourceAudio, channels, sampleRate, pAudioResampler, true)
    ==========================================================
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>BCC950 ConferenceCam</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>BCC950 ConferenceCam</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            </video>
        </process>
        <encode>
            <video>
            <format>H.264</format>
            <datarate>500;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <profile>Baseline</profile>
                <level>3.1</level>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <rtmp>
            <url>rtmp://IP/instance</url>
            <backup_url></backup_url>
            <stream>stream_name</stream>
            </rtmp>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            <output>
                <zoom>100%</zoom>
            </output>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\cchs\Mis documentos\Mis vídeos</directory>
        </log>
    </flashmedialiveencoder_profile>
    ==========================================================
    DumpGraph [00EB6DE8]
        Filter [01208E70] Mux
              Pin [01208ED0]  FLVx [ Input] This pin is not Connected
              Pin [012096F0]  audio [ Input] This pin is not Connected
              Pin [01209968]  out [ Output] This pin is not Connected
        Filter [012BF110] Audio Encoder
              Pin [012BF118]  Input [ Input] This pin is not Connected
              Pin [012BF618]  Output [ Output] This pin is not Connected
        Filter [00EB7F7C] SOURCE
              Pin [00EBA9EC]  Capturar [ Output] This pin is not Connected
              Pin [00EB9174]  Video Camera Terminal [ Input] This pin is not Connected
              Pin [059172DC]  Estático [ Output] This pin is not Connected
              Pin [05930524]  Capturar [ Output] This pin is not Connected
    DumpGraph [00EB6DE8]
        Filter [01208E70] Mux
              Pin [01208ED0]  FLVx [ Input] This pin is not Connected
              Pin [012096F0]  audio [ Input] This pin is not Connected
              Pin [01209968]  out [ Output] This pin is not Connected
        Filter [012BF110] Audio Encoder
              Pin [012BF118]  Input [ Input] This pin is not Connected
              Pin [012BF618]  Output [ Output] This pin is not Connected
        Filter [00EB7F7C] SOURCE
              Pin [00EBA9EC]  Capturar [ Output] This pin is not Connected
              Pin [00EB9174]  Video Camera Terminal [ Input] This pin is not Connected
              Pin [059172DC]  Estático [ Output] This pin is not Connected
              Pin [05930524]  Capturar [ Output] This pin is not Connected
    Thu Apr 04 2013 12:18:01 : Problem re-sampling audio output. Please try using a different sample rate.
    Thu Apr 04 2013 12:18:32 : Primary - Network Status: NetConnection.Connect.Closed status
    Thu Apr 04 2013 12:18:32 : Primary - Disconnected

    lsusb lists the usb devices attached to the system, not the devices the system has a driver for.
    if video0 is not created, i can suppose you're using the wrong module for your device. You should check if VendorID/DeviceID of the device match the VendorID/DeviceID of the module you're using.

  • Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    Help!! working on a movie on Imovie. I had to delete a music file from a clip section and now there are some clips that have no audio!!! don't know how to get the audio back to my clips!!!! Help!!!

    You can use some third party software to copy the music from your old iPod back to computer first, and then import the music into iTunes and re-sync them to yournew iPod. Here is a guide about how to transfer iPod music to computer. Hope it helps. Feel free to email me if you need further help.

  • I get error "audio format not compatable" when downloading music from the itunes store

    I get error "audio format not compatable" when syncing ipod classic.  Music purchased from itunes store.

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to get support ?

    Hello,
    this topic describes how to get support and see your
    issues/tickets/cases:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid =1343432&enterthread=y
    " you have the ability (via the web case portal that you'll
    see after logging in) to request an escalation or provide feedback
    to the agents "
    I do not see any of my submitted bugs/issues. Where can I
    find them and how to get real feedback and support?
    During several weeks I am trying to indicate Adobe (along
    with many other users) that latest Flash Player versions - r115 and
    r124 do not work well, they "kill" CPU. But seems that all my
    issues are just disappeared or ignored, I can not find them and see
    their status.

    I have found that Adobe now uses public bugs database - you
    can report bugs there and vote for bugs:
    https://bugs.adobe.com
    Instructions are here:
    http://www.adobe.com/devnet/logged_in/tmccauley_fplayer_bugbase.html
    According to instructions, it is important to VOTE for bugs -
    otherwise they will not be fixed.
    P.S. It would be great to add direct link to the bug-tracker
    somewhere at Flash Player site

  • Finder media encoder, how can I add audio formats support?

    I've noticed the feature where if you right click on a media file, you get an option in the popup menu to encode the file to some Apple-friendly format, I suppose.
    I am trying to find a way to enhance this program's support for audio formats. I have tons of music in FLAC and a little bit in other formats like OGG and -gosh- wma, and I'd rather convert them with a native, Apple-written app than with anything else.
    Any clues as to how we can enhance this Encoder feature's support for audio formats?

    Many video and audio files can be added to keynote slides using the Insert Media browser - the sounds and videos need to be in a format recognized by iPad and need to be placed in the browser via iPhoto then synched to the iPad using iTunes. Sound files can be created using Garageband or Quicktime and appear as movies in the browser so it is best to place them in a separate album with descriptive names.
    If you would like Apple to add additional features, give them somme feedback:
    http://www.apple.com/feedback/

  • ITunes does not support audio format of iTubes store song

    I downloaded some songs from the store but some of them say that they cannot be copied because the audio format is not supported by my iPod. The songs do not play in iTunes either. I have a nano with the latest update. What is happening and how do I fix it?
    iMac   Mac OS X (10.4.9)  

    Contact the iTunes Email Support with the names of the songs using the link at the bottom of this page:
    http://www.apple.com/support/itunes/store/authorization/
    Songs from the iTunes Store are in ACC format & should play in iTunes & on your iPod...So it sounds like the songs didn't download correctly.

  • Persistent Wi-Fi connection problem: How to get support?

    I bought my iPad few days ago in Hawaii and returned home yesterday to Germany. I had connected Wi-Fi a few times at my B&B in Hawaii and it seemed to work. But now Wi-Fi connection with my iPad is a mess while connections with iPhone, MacBook Pro, PC at the same locations work very good.
    I tried several solutions including those recommended by http://support.apple.com/kb/TS3304. Additionally I tried to manually assign IP to my iPad.
    On different locations (i.e. airport, at home) the Wi-Fi connection indicator fluctuates and connection speed seems to drop down. Just right now connection is lost approx. every 5 - 15 minutes. Switching Wi-Fi off and reconnecting sometimes helps but sometimes I have to wait some 5 or 15 minutes until Wi-Fi works again. Sometimes I even have to reset all connection data. When Macbook, iPhone or Windows PC show me 10 available Wi-Fi networks the iPad may only list 2 or 3.
    Yes, I tried to contact Apple Support:
    "If after attempting the troubleshooting tips provided above you are still having difficulty connecting to a network please contact Apple."
    I called your support phone number 1-800-275-2273 several times from Germany but each time the system tried to connect me to an iPad advisor the call didn't go through.
    Several tries to open a case via http://www.apple.com/support/expert/ failed. After filling out the form the website just tells me: "We're sorry, but we are unable to complete your request at this time. Please try again in a few minutes or start over now." Next try same result.
    You link to worldwide support telephone numbers:
    http://www.apple.com/support/contact/
    http://www.apple.com/support/contact/phone_contacts.html
    I called the given German technical support number but Apple Support denied support and instructed me to reset the iPad to it's original state. Resetting the iPad did not resolve the problem.
    German Support told me she has no information ("no email received") about http://support.apple.com/kb/TS3304. She told me Apple Support in Germany will not give any else support prior to official start of iPad availability in Germany. But when German Apple Support is not even aware of that problem Apple posted on the support site how would they support me?
    How do I get support to resolve that issue?

    I configured my router to only use 802.11b and 802.11g and NOT 802.11n. It seems like my iPad keeps steady connection with two or three bars and recovers good from sleep mode since about half an hour sigh But I would like to use it also at hotspots... and would like to enjoy appropriate speed when transfering files or watching videos

  • AI CS3 Plugin: How to get the file format that is selected in the "save as" dialog??

    Hi,
    Someone please help me in getting the file format that is selected in the "save as" dialog. I wanted to retrieve it in the string format.
    I tried sAIDocument->GetDocumentFileFormat. But i'm unable to implement it correctly. Is there a better way or How do I implement this? Precisely, I wanna get the value as a string when the user selects "save as .pdf".

    Do you really need to know the file type? What about just checking the bit depth?
    var doc = activeDocument;
    if (doc.bitsPerChannel != BitsPerChannelType.EIGHT) {//Not 8 bit
    doc.bitsPerChannel = BitsPerChannelType.EIGHT;
    //do your save etc
    }else{
        //Ignore

  • How to get this report format out ?

    Hello all experts,
    Sample table creations like the following. Note checkno under xcheck table is not unique. Have tried pivotting the xcheck table then link pivoted xcechk with xcert using certno and invno but this willl end up getting duplicate records. Can u please help ? Basically I am stuck at how to get that vendor name out on the report
    create table xcert(
    certseq number primary key,
    certno varchar2(5) not null,
    vendor varchar2(25));
    create table xcheck(
    checkseq number primary key,
    checkno varchar2(8) not null,
    invno varchar2(100);
    Xcert Data
    certseq certno     vendor
    1     C1001     BP GAS
    2     C1002     BUG PEST CONTROL
    3     C1003     BP GAS
    4     C1004     BP GAS
    5     C1005     WILLIES BESTxcheck Data
    checkseq     checkno          invno
    1          EF500001     C1001,C1003,C1004
    2          EF500002     C1002
    3          EF500002     C1005Looking for a following report format
    checkno          invno               vendor
    EF500001     C1001,C1003,C1004     BP GAS
    EF500002     C1002               BUG PEST CONTROL
    EF500002     C1005               WILLIES BEST      Thank you
    Munshar

    Hi, Munshar,
    MunSharmi wrote:
    Frank,
    "I don't see why you would need another column. What would you need to store, or retrieve, that a table like this wouldn't allow?
    Notice my orignal xcheck table data plus a check date column
    {code}
    checkseq     checkno          invno               checkdate
    1          EF500001     C1001,C1003,C1004     11/01/2010
    2          EF500002     C1002               12/10/2010          
    3          EF500002     C1005               01/01/2011
    {code}Sure, if you have other data that you haven't mentioned yet, then you need other columns, and maybe even other tables, to store that data.
    Talking about this would be a lot easier if you described what you were trying to model in these tables, and what the different entities are.
    after nomalization
    {code}
    seq(PK)     checkseq     checkno          invno               checkdate
    1     1          EF500001     C1001               11/01/2010
    2     1          EF500001     C1003               11/01/2010
    3     1          EF500001     C1004               11/01/2010
    4     2          EF500002     C1002               12/10/2010          
    5     3          EF500002     C1005               01/01/2011
    {code}What do checkseq and checkdate represent? What is the realtionship between them? If there is another row with checkseq=3, will it necessarily have checkdate=01/01/2011? If there is another row with checkdate=01/01/2011, will it necessarily have checkseq=3?
    Shouldn't I need to have the extra seq(PK), then use check seq to group the data report to meet users' target format ? Please adviseIt depends on what your entities are. If you explain that, then perhaps I can give some advice about how to model them.
    In general, every type of entity requires a separate table. It looks like xcert represents one kind of entity, uniquely identified by certno. I assume there is some other kind of entity, uniquely identified by checkno, and that you have a table for that which you haven't needed to show in this thread.
    Are you saying that there's some other entity, that is uniquely identified by checkseq? If so, it probably needs a table of it's own.
    Every table should have a primary key. I had assumed that checkseq only served as the primary key of the xcheck table. If it serves some other purpose, then yes, you would need another column.
    Many-to-many relationships usually require a separate table. I was guessing that xcheck was intended to record a many-to-many realtionship between xcert and some other table. Guessing is not always the best way to solve problems. I think it would be better if you explained what you want to do, rather than have me guess at it.
    So far, what you've shown is analagous to an order entry system. One kind of entity is customer, another is supplier. Say you're running a company that sells products from many suppliers to many customers. There is a many-to-many relationship between customers and suppliers. Any customer may buy from many suppliers; any supllier may sell to many cutomers. You may have an orders table that keeps track of that many-to-many relationship. You may also have another entity, salesman, that also has many-to-many relationships with customers and suppliers. Depending on what exactly you consider an "order", there are lots of different ways to model this. Can a single order involve many customers? Can a single order involve many suppliers? Can a single order involve many salesmen? If an order always involves one customer buying from one supplier using one salesman, then you may only need four tables. If the situation is more complicated, then you may need more tables.

  • How to get flash audio to play when published to godaddy

    I'm trying to move all my iWeb websites to Godaddy, but can't get flash audio to work playing my mp3 on the site. With iDisk it's easy, just install the flash player in there, but how do I get it to my godaddy server and write the iDisk address into the widget code.  How do I do it when using godaddy as the new host? 

    Download the folder of assets for your flash player from iDisk. Get there from the Finder Go menu - iDisk/My iDisk/Web/Sites.
    Drag the folder onto your desktop and then upload it to the server using an FTP app like the freeware Cyberduck or your hosting service's file manager.
    Enter the new URLs to the files in snippet code.

  • How to get this output format in ALV report

    Hi.
    Can any one pls let me know how to get the following output format in ALV report.Following are the outputfields
    companycode   location     position     approver
    300    800       01    watson
    null   null        03     candy
    null   null        04     smith
    null   null        05     michael
    one empty line after this again
    300     800     01     ryant
    null      null    02     gyan
    null      null    03     fermi
    null      null    04     ogata
    *Note: Null     indicates  empty space .( i.e I need to get empty space in  output where ever null is there.)
            Thanks in advance.
    Kind Regards,
    samiulla.

    hi,
    u can use 'REUSE_ALV_LIST_DISPLAY'
                           or
    'REUSE_ALV_GRID_DISPLAY'  function modules.
    SAMPLE CODE :
    *& Report  Y101982CHD
    *                         TABLES
    TABLES: vbak.    " standard table
    *                           Type Pools                                 *
    TYPE-POOLS: slis.
    *                     Global Structure Definitions                     *
    *-- Structure to hold data from table CE1MCK2
    TYPES: BEGIN OF tp_itab1,
           vbeln LIKE vbap-vbeln,
           posnr LIKE vbap-posnr,
           werks LIKE vbap-werks,
           lgort LIKE vbap-lgort,
           END OF tp_itab1.
    *-- Data Declaration
    DATA: t_itab1 TYPE TABLE OF tp_itab1.
    DATA : i_fieldcat TYPE slis_t_fieldcat_alv.
    *                    Selection  Screen                                 *
    *--Sales document-block
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.
    SELECTION-SCREEN END OF  BLOCK b1.
    *--Display option - block
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETERS: alv_list RADIOBUTTON GROUP g1,
                alv_grid RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF  BLOCK b2.
    *file download - block
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    PARAMETERS: topc AS CHECKBOX,
                p_file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF  BLOCK b3.
    *                      Initialization.                                *
    *                      At Selection Screen                            *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_DXFILENAME_4_DYNP'
        EXPORTING
          dynpfield_filename = 'P_FILE'
          dyname             = sy-cprog
          dynumb             = sy-dynnr
          filetype           = 'P'      "P-->Physical
          location           = 'P'     "P Presentation Srever
          server             = space.
    AT SELECTION-SCREEN ON s_vbeln.
      PERFORM vbeln_validate.
    *                           Start Of Selection                         *
    START-OF-SELECTION.
    *-- Fetching all the required data into the internal table
      PERFORM select_data.
    *                           End Of Selection                           *
    END-OF-SELECTION.
      IF t_itab1[] IS NOT INITIAL.
        IF topc IS NOT INITIAL.
          PERFORM download.
          MESSAGE 'Data Download Completed' TYPE 'S'.
        ENDIF.
        PERFORM display.
      ELSE.
        MESSAGE 'No Records Found' TYPE 'I'.
      ENDIF.
    *                           Top Of Page Event                          *
    TOP-OF-PAGE.
    *& Form           :      select_data
    * Description     : Fetching all the data into the internal tables
    *  parameters    :  none
    FORM select_data .
      SELECT vbeln
         posnr
         werks
         lgort
         INTO CORRESPONDING  FIELDS OF TABLE t_itab1
         FROM vbap
         WHERE  vbeln IN s_vbeln.
      IF sy-subrc <> 0.
        MESSAGE 'Enter The Valid Sales Document Number'(t04) TYPE 'I'.
        EXIT.
      ENDIF.
    ENDFORM.                    " select_data
    *& Form        : display
    *  decription  : to display data in given format
    * parameters   :  none
    FORM display .
      IF alv_list = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                               USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
       'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
       'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
       'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
       'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
        *CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'*
          *EXPORTING*
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
    **        it_events                = t_alv_events[]*
            *it_fieldcat              = i_fieldcat[]*
          *TABLES*
            *t_outtab                 = t_itab1[]*
          *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.*
      ENDIF.
      IF alv_grid = 'X'.
        PERFORM build_fieldcat TABLES i_fieldcat[]
                                 USING :
    *-Output-field Table      Len  Ref fld Ref tab Heading    Col_pos
         'VBELN'       'T_ITAB1'     10   'VBAP'  'VBELN'    ''            1,
         'POSNR'       'T_ITAB1'     6    'VBAP'  'POSNR'    ''            2,
         'WERKS'       'T_ITAB1'     4    'VBAP'  'WERKS'    ''            3,
         'LGORT'       'T_ITAB1'     4    'VBAP'  'LGORT'    ''            4.
        *CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'*
          *EXPORTING*
            *i_callback_program       = sy-repid*
    **        i_callback_pf_status_set = c_pf_status*
            *i_callback_user_command  = 'USER_COMMAND '*
            *it_fieldcat              = i_fieldcat*
          *TABLES*
            *t_outtab                 = t_itab1[]*
        *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.*
      *ENDIF.*
    ENDFORM.                    " display
    *& Form        : vbeln_validate
    *  description : to validate sales document number
    * parameters   :  none
    FORM vbeln_validate .
      DATA: l_vbeln TYPE vbak-vbeln.
      SELECT SINGLE vbeln
        FROM vbak
        INTO l_vbeln
        WHERE vbeln IN s_vbeln.
      IF sy-subrc NE 0.
        MESSAGE 'ENTER THE VALID SALES DOCUMENT NO:' TYPE 'I'.
        EXIT.
      ENDIF.
    ENDFORM.                    " vbeln_validate
    *& Form       :build_fieldcat
    * Description : This routine fills field-catalogue
    *  Prameters  : none
    FORM build_fieldcat TABLES  fpt_fieldcat TYPE slis_t_fieldcat_alv
                        USING   fp_field     TYPE slis_fieldname
                                fp_table     TYPE slis_tabname
                                fp_length    TYPE dd03p-outputlen
                                fp_ref_tab   TYPE dd03p-tabname
                                fp_ref_fld   TYPE dd03p-fieldname
                                fp_seltext   TYPE dd03p-scrtext_l
                                fp_col_pos   TYPE sy-cucol.
    *-- Local data declaration
      DATA:   wl_fieldcat TYPE slis_fieldcat_alv.
    *-- Clear WorkArea
      wl_fieldcat-fieldname       = fp_field.
      wl_fieldcat-tabname         = fp_table.
      wl_fieldcat-outputlen       = fp_length.
      wl_fieldcat-ref_tabname     = fp_ref_tab.
      wl_fieldcat-ref_fieldname   = fp_ref_fld.
      wl_fieldcat-seltext_l       = fp_seltext.
      wl_fieldcat-col_pos         = fp_col_pos.
    *-- Update Field Catalog Table
      APPEND wl_fieldcat  TO  fpt_fieldcat.
    ENDFORM.                    "build_fieldcat
    *& Form        : download
    *  description : To Download The Data
    *  Parameters  :  none
    FORM download .
      DATA: l_file TYPE string.
      l_file = p_file.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_file
          filetype                = 'ASC'
        TABLES
          data_tab                = t_itab1
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6.
      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.                    " download
    HOPE IT WILL HELP YOU
    REGARDS
    RAHUL SHARMA

  • How to get the right format if I copy data off another source....

    IWorks '08
    I have a data source that I want to copy to Numbers and it posts it all in the first row, when I paste it. (Excel will automatically format it correctly). I've tried a number of different things and can't figure out how to get the data to post across the page. Can Numbers even do this?

    Welcome to Apple Discussions
    Could you possibly have the insertion cursor blinking in the cell rather than just having a cell selected?
    If the cursor is blinking in the cell, Numbers "thinks" you want to paste all of the content in that one cell. By just selecting the cell, the data will be separated if Numbers "sees" the separations. This used to be a problem, particularly with data copied from a web page in Safari, but is mostly fixed in Numbers '09.

  • How to get the "audio import option" back in Captivate 7

    I need to insert audio over 4 slides in a 43 slide presentaton.  How do I get the "audio Import option" back so I can do this?

    Hi there
    Look at the timing for the slide. If the slide duration is long enough to accommodate the audio clip you will not see this dialog. The only way I've ever seen it occur is to ensure that the slide duration is shorter than the audio clip.
    For example, try inserting a blank slide timed for one second. As long as the audio clip is longer than that, you should see the dialog when inserting the clip. But if the audio clip would play for three seconds and the slide itself is perhaps ten seconds long, there is no need to present the dialog.
    Cheers... Rick

  • How to get MM:SS format in to seconds?

    I need to get MM:SS-format in to secs? How?

    Alexander_Wolff wrote:
    A second possibility is: go to the inspektor-panel and chooes format "duration". Pick the slider and set it to mm:ss.
    Now: pick the left edge of the slider and drag it to the right. Now the duration changes from "xx:xx" to "xx". This works with the right edge too. When you expand the slider you get "xx:xx:xx".
    Regards,
    AW
    AW,
    It is good to keep your suggestion in mind for those occasions when fractions of seconds aren't needed, and for when you want to stay in the Duration value type.
    Your suggestion and mine are quite different, but in some cases either may suffice.
    Jerry

Maybe you are looking for

  • Display of row index in table footer

    Hi, Row no of first row is generally displayed in the footer of the table as Row <first row rowno> of <total no of rows>.Eg Row 1 of 10. Can this be changed to display row no of currently selected row insted of first row? Thanks in advance, Apurva.

  • No editable form fields in ABAP Web Dynpro

    Hi, I created a form with layout type ZCI. The interface type is "ABAP Dictionary-Based Interface". This form I embedded in a abap web dynpro component. In the ABAP WD interactive form element I marked the enabled property. Unfortunately the displaye

  • Can I remove/adjust the white frame surrounding images in finder?

    I find the large white frames surrounding image files in the finder and on desktop bulky and annoying. Can this be changed/minimalised/removed in preferences or any other way?

  • New to Java Help!!

    Hello- I have to allow the user to enter 2 numbers until they enter the provided break. Then using recursion I have to perform the operation a times b and a to the power of b. The trick is I have to use addition. Then print out the results for each p

  • IPod touch restore error 1604

    My iPod touch has been working well for some weeks. When I tried to connect it to my PowerBook yesterday it downloaded a new version of iTunes. Since then it is in restore mode and has an "unknown error 1604". This continues after re-installing iTune