What is the output

Hi I want to select the latest Doc num from  oiurv_doc_hdr table, and i have this query in place.
SELECT  doc_no doc_year run_date run_time
  INTO (w_doc_no, w_doc_year, w_run_date, w_run_time)
    FROM oiurv_doc_hdr
  WHERE dn_no = w_dnno
  AND sale_dt = w_reformat_sa_dt
  AND doc_status = '50'
  AND proc_status = 'S'
  ORDER BY run_date DESCENDING
           run_time DESCENDING.
  ENDSELECT.
if sy-subrc.....
What will be the value in w_doc_no at the sy-subrc statement ? will it be the latest?

Hi,
      the effiecient way is ...
data: itab type standard table of oiurv_doc_hdr,
        wa type oiurv_doc_hdr.
SELECT doc_no doc_year run_date run_time
INTO table itab
FROM oiurv_doc_hdr
WHERE dn_no = w_dnno
AND sale_dt = w_reformat_sa_dt
AND doc_status = '50'
AND proc_status = 'S'.
sort itab by run_date run_time descending.
read table itab into wa index 1.
write: itab-doc_no.   "latest one

Similar Messages

  • What are the output specs on the creative car and house charg

    I found a belkin AC to USB adapter and here are the specs:
    Belkin Model: USB-TC-0 Input: 00~240 VAC, .3A, 50~60Hz Output: 5.5 VDC, A Plugs into US standard wall socket Provides one powered USB port
    Would this work?
    What are the output specs of the creative car and house charger so i can compare it to this?
    thanks

    Justinw wrote:
    is your charger a house one or a car one? thanks for you help.
    not sure about the .5v difference
    That would be for the house. And it should work with a .5V difference, but dont hold my word on it when your player gets hot. Also this is for a Zen Micro?

  • What are the output type and Tcodes?+

    What are the output type and Tcodes?

    hi,
    ex-how to config output type.
    You will assign output types using Transaction NACE.
    Do the follow steps to assign output type
    1)Select Application Type V2 which will have description Shipping.
    2)Click on Output types button.
    3)Go to change mode by pressing Ctrl+F4.
    4)Select one output type which already exists
    5)Do Copy As(F6)
    6)Give your output type against Output Type field.
    7)Under General data Tab, Give Program and Form routine and Save the data.
    i think it a work of functional guy but at senior level i think it is not a big deal for abaper.
    Check the following documentation
    In NACE t-codewe have the application for each one. based on the application output type can be defined, based on output type script and print progrma can be defined.
    If suppose data can be read from EDI then we should go for condition records.
    So whenever we execute the script first composer checks the output type and then execute the program. in program whenever opn form FM will be populate then script will open first. After that again program till another FM will populate if it then script will populate........like it is cycle proces. Composer does all these things and at last it will submit that output to spool.
    Go to the Transaction NACE.
    choose the related sub module.. like billing or shipping
    doubel click on Output Types
    Choose the Output Type for which whcih you wanted your script to trigger
    Then select the Output Type and double click on Processing Routine
    Then go to create new entries--> Select the Medium (1- print output), then enter your Script and Print Program detls --> Save and come out
    Now go to the Transaction (for which you have created the output type)... Issue output--> Select the output type --> Print....
    Device Types for SAP Output Devices (Detail Information)
    Definition
    The device type indicates the type of printer to be addressed. When you define an output device, choose the name of the device type that was defined in the SAP System for your printer model, such as Post2 for a PostScript printer. In the case of frontend printing under Microsoft Windows, you can also use the generic (device-independent) device type SWIN.
    The system uses the information in the device type to convert a document from the internal SAP character representation (spool request in OTF or in text format) to a device-specific, print-ready data stream (output request). Since a device type specifies attributes that apply to all devices of a certain model, it can be shared among device definitions. For example, all devices in the SAP spool system that are compatible with Hewlett-Packard LaserJet IIID printers would use the HPLJIIID device type.
    You should not confuse the device type with the printer driver. The device type is the total of all attributes of an output device that the SAP System must know to control the output device correctly, such as control commands for font selection, page size, character set selection, and so on. These attributes also include the printer driver that SAPscript/Smart Forms (the SAP form processor) should use for this printer. The SAPscript printer driver that is to be used for devices of this type for output formatting is therefore only an attribute that the device type specifies.
    How do I choose the correct device type?
    • In most cases, the SAP System already provides the appropriate device type for the printer type for the printer model that you want to use.
    These standard device types are completely defined and need no modification or extension before you use them in device definitions.
    • You can also download missing device types from the sapserv server. For a current list of the supported device types, see SAP Note 8928 in the SAP Service Marketplace.
    • Most printers can be controlled using a generic format, such as PostScript. They can be switched to a mode that is compatible with one of the standard printers for which an SAP device type is available. In this case, a supported model is emulated.
    • Almost all printers are delivered with Microsoft Windows printer drivers. The system can control these printers with the generic (device-independent) device type SWIN. The Microsoft Windows spool system then performs the processing of the print data.
    • If the specified device types are not available, and generic device types cannot be used, you must create your own device type or edit a copy of an existing device type. We recommend that only those with specialist knowledge of the SAP Spool System and printer driver code do this. For more information, see Defining a New Device Type .
    Attributes of a Device Type
    A device type is distinguished by the attributes listed below. If you change an existing device type or create a new device type, you must change at least some of these attributes.
    • Character set: A character set specifies the codes with which characters must be represented in the print-ready output stream (output request). This code replaces the generic SAP characters set that is used internally by the SAP spool system (spool request).
    • Printer driver: You can specify different printer drivers for printing SAPscript documents and ABAP lists.
    • Print controls: Print controls represent printer operations, such as boldface or changing the font size. These print control are replaced by printer-specific commands during the creation of the output request from a spool request.
    • Formats: Formats specify the format supported by the SAP system. The system differentiates between SAPScript formats (DINA4 and LETTER) and ABAP list formats (X_65_132 = 65 rows/132 columns).
    • Page format: A page format is the interface between a format and SAPscript. It specifies the paper dimensions with which SAPScript can calculate the row and column lengths.
    • Actions: Actions are output device-specific commands that are required for the implementation of a format. The action printer initialization, for example, can contain a printer command with which the number of rows on a page is defined. There is a set of actions for every format supported by a device type.
    regards
    siva

  • HT1430 What is the output power,      when using a portable batteries that the iPad need to charge up??

    What is the output power needed to charge a iPad,  when using a portable battery?
    Will 2.1A output work?
    Thanks

    The wall charger which comes with the ipad is a 10 watt charger, it's current is 2A, voltage is 5v. 2x5=10 w.
    2.1Ax5v = 10.5w.

  • Anyone get to know what's the output power of the audio system?

    Hi. It's there anyone could tell me what's the output power of the 2.1 audio system in this 24" LED display?? Thanks

    Gabi759,
    The output on the Audigy 2 ZS is Line Level. We no longer use amplification on the card as that can cause distortion and an overall loss of audio quality. You may want to look at either replacing your speakers (as few sound cards have amplification) or get a preamp for them to power them.
    Jeremy

  • What is the output of Maya and how does Java use it in animation.

    What type of software is used and what input and output files are created in the animation process?
    From what I read:
    Maya is used to create polygon structures, perform rigging, and it attaches surface textures which are made in Photoshop. Then Maya creates key images or positions of the animation. Next Maya exports an image and a data file to do the neccessary transformations. Finally, Java uses the image and the data file to paint the images and their position based on the game logic's use of the data file.
    What have I missed or described wrong?
    I also need more clarity on the input files to Java and how Java stores and uses these files. The use of Maya images and files seems different. Is Maya or Java doing the transformations or are they both doing them? How does this work?
    Thanks for your help
    Jon

    Thanks for the explanations. What this means in my situation is that tags are an unnecessary way of spending a lot of time making my file system more complicated, without adding any value whatsoever. Without tags, I can find any of my 3,000 files with a few clicks. (On my computer, Spotlight has cobwebs. I very rarely need it, but it's wonderful when I do.) Now that I know how tags work, I can ignore it.
    A human being can only perceive a quantity of seven without counting or grouping; hence we arrange things in structures to keep the number of entitites low on each level. You don't need to count three objects to know that they are all there, but you do need to count twelve objects. Which is why Home Alone was believable. We sort screws and nails in jars and toolboxes have compartments. Even the grocery store has a hierarchical arrangement. You don't find steaks in the bakery section, or breakfast cereal in the produce department.
    Some people aren't organized, and that's not a bad thing, but no folder, no tag, and no group is going to change a fundamental personality characteristic.
    Thanks everyone for showing me that in my case, there's no point to tags. That saves me a lot of time.

  • What is the output from AN300?

    I'd like to know the output of car charger AN300. Both mA and V.

    http://www.phonesonline.ie/Product.asp?ProductID=1207              5V and 700mA.Follow link for more info.

  • I have a zire31, and have misplaced my battery charger. I would like to know what is the output of the adapter, so that I could buy a new one. I am from india

    null
    Post relates to: Zire 31

    1chiro wrote:
    you can have a wall charger (Faster) or USB connection
    Post relates to: Zire
    That's not what the OP asked 1chiro...
    Outputs on most Palm chargers are generally 5.2vdc.  I don't have a Zire31 charger handy, so I'm afraid I can't offer polarity setting... 
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • What is the output on the FFT PSD function?

    I am trying to evaluate the FFT PSD function relative to frequency. I expect f(0) = the variance of all signals, but that is not what is given. Does anyone have any information about this. I ran a test array with a 1 Hz sin wave, with 10 samples/second, 120 total data points--the FFT PSD gives f(0)=0.

    Hi,
    The LabVIEW help file gives the following information concerning this function:
    The FFT Power Spectral Density VI completes the following steps to compute power spectral density.
    Computes the FFT of time signal.
    Forms the power spectral density of time signal.
    Averages the current power spectral density with the power spectral densities computed by the VI since the last time the averaging process was restarted.
    Returns the averaged power spectral density in power spectral density
    The single-channel version of this VI can perform single-channel measurements in both one-shot mode, meaning a single call, and continuous mode, meaning multiple calls with history. The single-channel version can perform multichannel measurements only in one-shot mode. If you want to make multichannel measurements in continuous mode, use the multichannel version of this VI.
    The single-channel version of this VI maintains internal state information for a single channel only. Calling the single-channel version to process another channel without using the restart averaging control to clear the history results in an unexpected behavior of this VI. The unexpected behavior results from the VI passing the internal state information from one channel to another.
    Note  The single-channel version of this VI is primarily intended for continuous processing of a single channel. Do not generalize this behavior to the multichannel case and use the single-channel version in a For Loop to continuously process multiple channels by indexing an array of waveforms. Refer to the examples\measure\maxmpl.llb and the examples\analysis\measxmpl.llb for examples of how to use a multichannel version of a VI like the FFT Power Spectral Density VI in a loop.
    Refer to the Noise Waveforms and PS Density VI in the labview\examples\measure\maxmpl.llb for an example of using the FFT Power Spectral Density VI.
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • What will the output resolution be from the multicam if the input clips have varying resolution ?

    Hi there,
    I wanted to use the multicam features so I took 4 different angles. Unfortunately they have mixed resolution like 1920 x 1020 and another in 4K.
    In multicam, for those section I selected the 4K video, will I be able  enlarge and panned the video w/o the videos getting blur ...
    Thanks

    RyanManUtd wrote:
    … Only thing that I am puzzled is why FCPX even bother to ask us to select the resolution that we wanted when we create a multicam clip ? …
    Honestly? No idea
    Probably, because a clip HAS to have a 'resolution' - that simple.
    RyanManUtd wrote:
    ... just a thought, if the normal resolution of video increased from 1080p to 4K in the future and becomes a standard, then we gotta find a camera that can do 16K ?
    hmm, well ... pixel per se is no 'quality'… you soon enter the realms of Angular Resolution and Edge Enhancement and Acutance …
    For good reasons, Apple decided 'Retina' means 200-400 ppi : depending on viewing distance, and due to Angular Resolution of the human eye (about 2° - only!) any more pixels is of little use ... just have a - close - look at a billboard aside the street: palm-size 'pixels', but crystal clear on drive-by.
    So, a UHD-display in the living-room smaller than 60" ... is probably 'waste of ammo'… -
    (diffrent for computer display! Then, we sit much closer to it!).
    At the soccer world-cup last year, NHK tested 8k cams - again: not for l'art pour art 'quality', but again for reframing; for broadcasting football, Fox uses frequently 4k-cams, you can see in use in this (for me… )  very interesting article Any Given Sunday/theverge.com ... as a hobby-sports-reporter, I ínhaled that article .. LOL!
    No, not 10k-cam, I want one of those:
    enjoy movie making!!!

  • What is the output  here ?

    class Runme
    public static void main(String a[])
    Object error= new Error();
    Object runtimeexception= new RunTimeException();
    System.out.println( (error.instanceOf Exception+",");
    System.out.println( (runtimeexception instanceOf Exception));
    }

    It should be something like "false, true".
    A RuntimeException is "a special kind" of Exception, as it inherits from it. It is therefore considered as being an Exception.
    An Error is just a Throwable.
    Stephane

  • For getting purchase order details what are the inputs and outputs

    I need to display purchase order details in EP portal by using integration EP, XI and R/3.
    I dont know what are the Inputs and what are the Outputs.
    Reward points for helpers.
    Cheers,
    Preethika

    Hi Preethika,
    for displaying PO use BAPI : BAPI_PO_GETDETAIL
    Its input is PO number
    Its output are tables PO_HEADER_TEXTS - for PO header data
    PO_ITEMS - for PO line items
    Thanks,
    Rajeev Gupta

  • What is the FP_CHECK_DESTINATION_SERVICE output ???

    Hi guys,
    I need to know what is the output from the report FP_CHECK_DESTINATION_SERVICE
    When I run it (with & without destination service) I get only an information message saying: 9.327 bytes transferred in
    Is this OK or I have a problem ?
    Regards,
    Mahmoud

    Hi Anne,
    Thanks for your fast response, but actually you didn't get my point, I meant what will be the output of the test if it is successful not for what it is used, I mean what will appear on the screen if the test is OK ?
    Reagrds,
    Mahmoud

  • What does the extract single tone vi do?

    When using an extract single tone vi, what does it actually do? Does it give the frequency, phase and amplitude of the HIGHEST amplitude wave? Say we provide a waveform of 400 samples of an undermined number of sine waves.....Are there any documents with block diagrams that explains this? 

    TooEagerToLearn wrote:
    My head started hurting when I opened and went deep into all the subvis. All I would like to know what does the output represent?
    1. Just the dominant frequency?
    2. Amplitude corresponding to that frequency?
    3. Phase (relative to what?)
    yes, the strongest frequenc
    Yep
    A tone is assumed to be a sine wave.  So if the first point is the positive peak, you would get 90 degrees.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What are the compiler generated codes for objective-c?

    After the compilation, the code for c/c++ is known as "object code" i.e. ".obj" file, and the binary executable file is ".exe" .
    Similarly for java the compiled code is known as ".class" file.
    In case of Objective-c what is the output of Compiler and what is the Executable file?

    Strictly speaking, .obj and .exe refer only to the output of the compiler and linker for a Windows system (or cross compiler).  For *nix compliant systems the output of the compiler is usually given a .o suffix and the executable produced after linking is named whatever you choose; but usually with no suffix at all.
    Also, technically speaking, Java .class fiels don't fit neatly into this paradigm.  The output of a Java compiler isn't object code, per se; it's optimized byte-code that can be run by the JRE.

Maybe you are looking for