Newbie OO ABAP question

gr_sorts type ref to cl_salv_sorts.
gr_sorts = gr_table->get_sorts( ).
gr_sorts->add_sort( columnname  = 'MATNR'   sequence = if_salv_c_sort=>sort_down   subtotal = abap_true ).
Take a look at these statements. sequence has been assigned a contant of sort_down. But sort_down exists in interface if_salv_c_sort. And in my code, add_sort is a method in cl_salv_sorts. So how to find out what the relationship between if_salv_c_sort and class cl_salv_sorts it? I found out that if_salv_c_sort is an interface in class cl_salv_sort, but in class cl_salv_sorts, I am unable to find any relationship. Also I know that abap_true is a constant, but where is it located and how does class cl_salv_sorts have access to it. Thank you for your help.

Read ABAP Objects Book

Similar Messages

  • A simple ABAP question

    Friends,
    I am intrigued with the following date comparison logic. This is a small snippet that I cut&paste from SAP code and modified to check whether the logic is correct.
    the logic below writes STATUS 68. From SAP point of view and I agree, that it should not write 68.
    Can you please elaborate the problem here.
    Thanks in advance.
    William
    DATA: i_aedat type sy-datum,  " Equipment Change date in the decentral
          l_aedat type sy-datum.  " Equipment Change date in the central.
    I_aedat = '20120119'. "From deployed
    L_aedat = '20120118'. "In central
    * posting in Central
      if l_aedat  is not initial.
    *...change mode
        if I_aedat < L_aedat.
    *.....existing entry is the actual one,
    *.....we don't won't overtake old data
          write: / 'status 68'.
        endif.
      endif.
    Moderator message: please choose more descriptive titles for your posts, everybody here has ABAP questions...
    Edited by: Thomas Zloch on Feb 20, 2012

    Ok, here is the function module
    Please note i_aedat is the change date in the decentral and l_aedat is the changed date in the central
    The function module determine whether the existing central date is before the Decentrla date.
    If so it would update the central data with decentral data.
    Code below produce 68 at our installation and it does not with Vijaj and Patrick. I concur with their reply.
    The code that I have provided is how the function module behaves.
    So is it a kernel issue?
    Any help is much appreciated.
    Thanks
    William
    function /isdfps/etups_maintain_chk.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_EQUNR) TYPE  EQUNR
    *"     REFERENCE(I_AEDAT) TYPE  AEDAT
    *"  EXCEPTIONS
    *"      NOT_ALLOWED
      data: l_aedat  like equi-aedat.
      select single aedat into l_aedat
        from equi
       where equnr = i_equnr.
      if sy-subrc is initial and
         l_aedat  is not initial.
    *...change mode
        if i_aedat < l_aedat.
    *.....existing entry is the actual one,
    *.....we don't won't overtake old data
          raise not_allowed.
        endif.
      endif.
    endfunction.

  • Abap  questions

    Hi !
    I wanted to ask few Abap questions :
    1. How do i show a calendar on select options date field ?
    2. what is the name of the function for changes currencies of field ? for example i need to change from type Usd to Euro ?
    3. What is the function for abstract , adding dates fields ? ( not to take in account a  Saturday and not working days ).
    thanks
    moshe

    Hi Moshe,
    For Calender if you any field to which the domain DATUM is assigned it shows calender.
    for eg,
    select-options date for P0000_AF-hiredate.
    You can try the function module to add the days WDKAL_DATE_ADD_FKDAYS.
    One of the function modules to convert currency is HR_ECM_CONVERT_CURRENCY
    Thanks
    Lakshman

  • Havent a clue! Please help! Easy ABAP Question!

    Helly Gurus
    I am loading from a dso to a cube and doing a lookup on a second dso.
    eg
    'Name' is in the DSO1
    I lookup 'Address' from DSO2
    Then load to the cube.
    The problem is there may be more than one address so although I have coded the lookup to
    find all addresses, I do know how to get these into my results.
    Only the first address it finds is there.
    loop at DATA_PACKAGE.
        select * from DSO1 where
        NAME = DATA_PACKAGE-NAME.
        if sy-subrc = 0.
          move-corresponding DSO2 to itab1. collect itab1.
        endif.
        endselect.
      endloop.
    What do I need to do to get all of the results?
    I am in 3.5 so do not have the use of an End Routine.
    Thanks
    Tom Tom

    you need to do several treatments in fact you need to add records on the data_package (by the way it is not an easy ABAP question as you mentioned !)
    So
    Treatment 1: select all the records from ods2 table of adresses outside the loop
        select names adresses
        from ods2
        into table g_itab_ods2
          for all entries in data_package
          where name eq data_package-name.
    Treatment 2: delete double records of the internal table.
        delete adjacent duplicates from g_itab_ods2 comparing names adresses.
    Treatment 3: loop over the data_package. Within this loop read the internal ods2 table and loop over it to assign the corresponding adresses. Then append the results to the temporary data_package_tmp and move all the records to the initial data_package.
    loop at data_package assigning <data_fields>.
       read table g_itab_ods2 into l_g_itab_ods2
          with key name = <data_fields>-name.
          if sy-subrc eq 0.
            loop at g_itab_ods2 assigning <adresses>
            where name                = <data_fields>-name.
              <data_fields>-adresses= <adresses>-adresses.
              append <data_fields> to lt_data_package_tmp.
            endloop.
          endif.
        endloop.
        data_package[] = lt_data_package_tmp[].
    free lt_data_package_tmp.
    this should do what you want to do. hope this could help you out.

  • Update Routine ABAP question

    Hi,
    I am updating data between two ODS objects using some update routines. I would like to write the following routine (in pseudo code):
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    Check if the characteristic i am updating is not null
    IF COMM_STRUCTURE-field1 = 'value1'     AND
             COMM_STRUCTURE-field2 = 'value2'.
    RESULT COMM_STRUCTURE-field3.
    ELSE.
    Don't update anything
    END IF
    +++++++++++++++++++++++++++++++++++++++++++++++++++
    My questions:
    1. How i tell the routine not to update anything (as specified in the pseudo code)?
    2. How i can check that the characteristic i woul like to update is not null?
    3. What is the preferred debug method in case i do not use the PSA?
    BR,
    Xibi

    Thanks Siggi for your prompt and helpful answer. There are however some fundamental things which are not fully clear to me (BTW, where i can find some good documentation on ABAP for BW??):
    > Hi,
    >
    > 1. How i tell the routine not to update anything (as
    > specified in the pseudo code)?
    >
    > set the returncode to a value <> 0.
    I wrote the following:
    returncode = 1.
    Consequently the updated failed. Maybe i am doing something wrong but my intention is not to have the whole thing fail, but rather skip the update for some records.
    > 2. How i can check that the characteristic i woul
    > like to update is not null?
    >
    > if not comm_structure-<fieldname> is initial.
    The problem is that the characteristic i am trying to update is not contained in the source ODS but only in the target one. Will "if not comm_structure-<fieldname> is initial" still work in this case?
    >
    > 3. What is the preferred debug method in case i do
    > not use the PSA?
    >
    > Without psa, you need to add a endless loop:
    > statics: st_flag type c value '0'.
    >
    > while st_flag = '0'.
    > break-point.
    > endwhile.
    >
    >
    > Hope this helps!
    >
    > regards
    >
    > Siggi

  • Abap Questions Needed

    Hi,
    Could anyone please send me the abap certification questions or any mock questionnaire on abap to my mail id?
    I have already gone through the forum and found some useful links.Request you not to provide any links to me but just mail me the docs to my mail id:[email protected]
    Request you to please provide the answers as well.
    Thanks in advance for your help.
    Sandeep.
    Edited by: Sandeep Ram on Mar 25, 2008 4:31 PM

    Done

  • Newbie to ABAP

    Hi all,
    Can anyone please help me out giving the FI Flow where in we develop ABAP Objects
    Please its urgent.
    Appreciate ur help.
    thank u.
    santhosh.

    Hi
    Please go through follwing link,
    It must be useful.
    <b>http://www.sapgenie.com/abap/tables_fi.htm</b>
    http://www.sap-img.com/financial/document-flow-confusion-in-sap-fi.htm
    http://www.sap-img.com/financial/sap-fi-technical-interview-questions-2.htm
    regards
    vinod

  • SD ABAP Questions for functional

    Hi People,
                       Can some body please help out about how much of the ABAP is expected to be known by a SAP SD functional consultant?Please list some usual  questions asked to SD functional regarding ABAP?

    Hi,
    Depend upon your experience you ABAP knowledge will be expected and generally we have to know the tables, fields, user exits etc., to prepare functional specifications for any enhancements, reports or forms etc.,
    regards

  • Please Guys this is the OO Forum not General Abap QUESTIONS.

    Hi everyone
    This is the OO Forum. There's often stuff here which really has nothing to do with OO.
    <b>For example the question on Table Controls and BDC -- sorry poster of that topic I'm not trying to have a go at you but defintely the wrong forum for that post.
    There's another post at hiding source code.
    This also has NOTHING WHATSOEVER to do with OO  / ABAP objects.</b>
    I think for people who want answers to their questions whether OO related or not will probably get  a much better response if they post to the correct Forum.
    Posting totally non OO related stuff to this Forum not only reduces the usefulness of this Forum to people who genuinely are looking for OO information / answers but also makes it difficult for people to answer your "non OO" question as they are unlikely to be reading this forum.
    I'm not trying to be too difficult here but keeping most posts On Topic makes the Forum far more useful to everyone genuinely interested in OO .
    Cheers
    Jimbo

    $299 for the 16GB White which is what I have and as for contracts it is true must buy a contract. now i have heard of people buying the contract and phone then paying the $200 surcharg to end contract then user void phone by cracking it and go through some other companies this is HIGHLEY not advise considering APPLE will not touch your phone once you do so. your running a HIGH risk of errors and I dont even think iTunes will recognize it will it?. and tamara up there $1680 for contract fees *** is that i walked out of store with 16GB White and service for only $389 and first bill with activation charges was only $175, although i do think it is somewhat chincy that you wasnt text need seperate plan phone calls? also need seperate plan. bringing your average mo. price to around $100. **** my WORK phone is only 60 bux a month and has WAY more talk time and texting emails and datat than iPhone Service. I love iPhones safari though. very solid.

  • Web Dynpro For ABAP Question

    Hi all,
    I'm creating Adobe Interactive forms in Web Dynpro for ABAP.
    <b>Problem:</b>
    <b>Context defined in the created "View" is not displayed in the 'templates' (Adobe Interactive Form in the "Data View" tab.</b>
    I'm following the exact steps used in the following e-learning class:
    <b>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3</b>
    Except I'm creating 'string' fields instead of numeric fields like in the above e-learning class and creating my forms in Adobe Livecycle designer first then importing them to the web dynpro for abap - 'templates'.
    The 1st form I created went well and works fine.
    <b>Question:</b>
    For my second and third form I'm unable to map my context fields they are not displayed in the "Data View" anyone know why this is not possible?
    Cheers,
    Dharm

    Hello,
    are you creating the form via forward navigation from webdynpro abap?
    When you do that the context of the form should be created automaticaly.
    What Basis SP level are you using?
    Best regards,
    Dezso

  • ABAP Question

    Hello, I have a question. My scenario is to code in user exit in ECC system and get multiple entries. meaning:
    I have a table called Totals table and another table called Line Item. 
    Totals table has one document and Line item has 2 line item document for that one document.
    I want to code in user exit that will get both documents in Line Item table.
    What is this process called in ABAP? I am looking for its syntax.  I have done coding where I only fill the field if sy-subrac = 0 but have never added more than one line to the package.
    Thanks.

    Please check if this one is equivalent field
    DMSHB
    This is present in DataSource
    I am little bit confused looking at my system because Amount in Local Currency should be present by default and it gets data from BSEG for 0FI_GL_14 as per this link http://help.sap.com/saphelp_nw70/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/content.htm
    Extract structureneeds to be enhance with this Include structure...that's all
    FAGLPOSE_CORE
    This will contain your required field
    You might also need to have a look at https://service.sap.com/sap/support/notes/1265825
    Regards
    Anindya
    Edited by: Anindya Bose on Feb 5, 2012 6:51 AM

  • Newbe with a question

    First, I would like to say Hello to all of the other forummers, as being a newbe.
    And as a newbe, I offcourse have a question....
    Will the new AMD 333fsb  series processors run on my KT3 mainboard, after obviously flashing the bios?
    Thanks in advance, David.
    Config: MSI kt3 ultra, xp1800, geforce 2ti, 512mb apacer ddr2700, 7200rpm maxtor and chello cable connection.

    I heard somewhere that the chipset will support it but I don't know if MSI will work to get this board to support it.

  • OK, Newbie to Mac question.  Do I need to keep files after download/update

    Sorry for such a boring newbie question.
    (My last Mac was many years ago - the original Macintosh 528k with 2x 3.5" disks. The OS has changed 'a little', and doesn't have to be loaded in every startup!! Wow !!)
    I had to go PC for business reasons, but now, I have <control> over my computing needs again. (Photographic business.)
    OK. I searched Mac 101 but didn't find an answer.
    Apart from Application Icons and/or Folders I have created, I have acquired a bunch of other files on the desktop. Do I need to keep them?
    When I download updates, for example, I end up with a .dmg icons showing the HD in the center, with a title such as i1Match3-2.6Pantone.dmg (after updating my calibrator). I know the update is installed (and the app. is in the dock). Same with downloads or updates with Lightzone,, Firefox, etc.
    First Question. Can I trash those .dmg icons?
    Similarly, I have icons with what looks like an external HD, which I guess is the actual download. For example, RapidWeaver 3.5.1 (no extension), but there is also a .dmg icon. These "HD" icons cannot be dragged into a General Folder on the Desktop.
    Second Question. If I can trash the .dmg icond, can I trash the "external HD" look icons once the program is installed. If I can't, where should they be kept ... I don't want them all over the Desktop ??
    Third Question. I have some Folders which just materialized over a few days of use.
    "Apples Caches" Folder (with arrow=shortcut?) with 10 file icons and 1 folder icon. Another ... "com.apple.kernelcaches" Folder with one 'kernelcache" file icon.
    And three empty Folders "Edits", Measurement Data", and "Scan Tiffs". Have no idea why they popped up.
    What to do?
    Thank you for reading my questions. I look forward to your proposed solutions.
    iMac 2.33 Intel Core Duo 2GB 667Mhz DDR2 SDRAM 24" LCD   Mac OS X (10.4.8)   G Drive 250GB Back Up; Epson V750M Scanner; Epson R2400 Printer; PS CS2 9.0.2; Aperture 1.5.2

    Al:
    Thanks for the quick reply ! The .dmg's and the "HD" icons are now GONE. I am curious why they are needed after installions, but I will read up on that to satisfy my curiousity.
    Now, the remaining question ...
    The two 'Apple caches' folders appeared on my desktop, just below the Macintosh HD icon, probably about a week or so after I got my Mac. I can't recall doing anything 'bad' or having any 'crash' or freeze-up. I seem to recall having to do a 'force quit' at one stage when I was setting up the scanner and Silverfast6Ai because I initially tried to instal non-Intel software. But on that occasion, everything fired right back up OK and the Mac has been absolutely brilliant ever since. What a wonderful change after XP and IE7 and all the daily drama.
    The Folder which has the small black arrow (I guess shortcut) has files for:
    com.apple.IntlDataCache.le
    com.apple.IntlDataCache.kbdx
    com.apple.IntlDataCache.le.tecx
    com.apple.IntlDataCache.tecx
    com.apple.IntlDataCache.sbdl
    com.apple.IntlDataCache.le.sbdl
    com.apple.IntlDataCache.le.kbdx
    com.apple.IntlDataCache
    com.apple.Components2.SystemCache.QuickTimeComponents
    com.apple.Components2.SystemCache.Components
    plus it also contains a Folder:
    com.apple.kernelcaches ... which has
    kernelcache.ED112BB5 as the file.
    Does this help you? I don't know if they have to be "put back" somewhere, or they are temporary files which can be trashed.
    (As for the other empty folders "Edits" etc, my guess is they somehow arrived during a scan which I cancelled halfway through, or maybe from the Rapidweaver application when I was 'testdriving' the program. I am inclined to trash them anyway. Can't see how that would hurt.)
    I reported that the question had been answered, anyway, but I would like MORE of the same !!
    Cheers
    CJ
    iMac 2.33 Intel Core Duo 2GB 667Mhz DDR2 SDRAM 24" LCD   Mac OS X (10.4.8)   G Drive 250GB Back Up; Epson V750M Scanner; Epson R2400 Printer; PS CS2 9.0.2; Aperture 1.5.2

  • Newbie color management question

    hi folks
    using cs4. just finished a cmyk job on a new press. colors on the final print job were pretty faithful to what i saw on my monitor when doing the design, with a few exceptions that i'd like to tweak if possible. i'm new to color management, so looking for some pointers.
    according to my research, the right thing to do is to request a colorsync or icm or icc profile from my press. i did...but my press was slightly confused and sent me a bunch of .icc files and i don't know which one to load. the press people are great people and it's a good press, but i got the feeling that they weren't asked this question a lot. so i ended up using u.s. web coated (swop) v2 as a profile, which is what they ultimately recommended.
    so if i can't get an icc profile from my press, the other approach according to my research is to wing it and adjust the color profile on my own so that what i see on my monitor matches the printed output. in other words, i take the printed output and hold it up to my screen and manually adjust the color profile settings. i believe this is done in photoshop under edit-->assign profile and/or edit-->color settings, and then sync the color management for all applications using the bridge. or maybe this can be done in indesign? i'm asking the question on this forum because of the great responses i've gotten here.
    i don't want to screw things up and i'm a newbie with this, so... any advice out there? my basic situation is that the colors were reasonably faithful but there was a very curious thing where a c=0,m=0,y=35,k=15 color looked very green on the printed page even though it was a mellow looking yellow on my monitor. i want to try to adjust that.
    thanks.........

    Do you have a colorimeter and monitor profiling software? That's the place to start any color managed workflow. You also need a reasonably good monitor that CAN be calibrated. If the monitor isn't accurately showing you the colors, then nothing you do is going to matter.
    Matching the monitor to the print is an old technique that works only when you have a closed loop where all work is output on the same press under the same conditions. The purpose of using device independent editing spaces, such as Adobe RGB, is that in theory any properly calibrated monitor will display the image the same, and you can convert to any known output space at the time of output.
    Terms like mellow looking yellow are pretty subjective, so I don't know what you were expecting, but I wouldn't expect 35y, 15k to be very bright, nor very yellow. While I wouldn't describe the color as green on my monitor, it certainly doesn't resemble a banana, and next to a brighter yellow one might call it greenish by comparison. It's really a light yellowish gray,I think.
    I'm putting up a comparison here to see what it looks like, but colors won't be accurate in a browser.

  • (newbie alert) - simple question?

    My Dell is four years old and dying. I am considering an iMac G5. One of the main things I would want to be able to do with it, right out of the box, is as follows. I asked someone at the Apple store if this was easy to do, and his response seemed very complicated. Would a new iMac G5 using just the pre-loaded iLife stuff be able to the following:
    I have burned many old home family movies from VHS to DVD using a DVD recorder hooked up to the VCR. The DVD recorder is a cheap model, so it doesn't allow me to edit much at all; I more or less get just a straight transfer of whatever is on the VHS tape, over to the DVD.
    I'd like to be able to pop in one of those DVDs I've generated from those VHS tapes, and then be able to really aggressively work with that "footage" to create montage clips into a new "movie", so maybe out of 60 minutes of raw footage of a family picnic from 1985, I want to be able generate a watchable 5-minute DVD clip that just shows the interesting stuff. I'd like to be able to lay music from iTunes over top of this, add titles and credits and whatnot, and then burn to DVD to share with family members, or upload to a web location (.Mac?) for family members to access and view.
    It would be nice if I could also incorporate digital still photos from my digital camera, and/or short MPEG movies my "still" camera can take (each just 15 seconds long).
    Is this all within the easy grasp of the iLife suite?
    Thanks!

    Thanks.
    Last night, I took a close look at the inputs and outputs on my little JVC mini-DV video camera, which is about four years old. It's pretty clear it has no analog-in ports, so I don't think I can use it as the go-between unit from the VHS for a transfer of the VHS content onto the iMac. Reason being, the only "in" port on the mini-DV camera is a little "DV in /out" port, and I certainly don't believe the VCR has any type of corresponding "DV" output line. So, as for getting the old home movies from the VHS tapes into the iMac for editing and DVD buring, I believe -- based on the responses I've received in this forum -- it does boil down to using something like the Canopus ADVC-100 to allow me to make that transfer.
    The related question for the overall project then becomes, am I confident I'll be able to get content into mu iMac from my other main source: a small library of home movies on mini-DV cassette tapes. The JVC mini-DV camcorder has an S-video out port (plus a "headphone" audio out jack that splits to RCA audio lines), so where can I run that to get it into the iMac? Would the Canopus ADVC-100 take that in? The only other "out" line on the camcorder is that "DV in/out" line I mentioned above. Nothing anywhere says anything about firewire... is that "DV" line a standard thing? Can the iMac take it in directly? Could it run through the Canopus unit?
    Thanks a million.

Maybe you are looking for

  • PSE9 does not open – cannot initialize because program error?

    Hello all, I have Photoshop Elements 9 installed on my computer (MacBook Pro running Lion). However, I had not used it for a couple of months because I was using the CS6 beta, which finally expired. When I tried to open PSE9, the splash screen loads

  • Abt Customer Infocube

    Hi Experts, I m new to BW, i hav some doubts regarding Business Content Infocubes, So can any ine can explain. About Customer Infocube - 0SD_C01 Why SAP maintaind this cube, and if i create a query on this wht information i can analyse from this cube

  • XML Output - II

    Hi All, I have an XML output with 4 columns and 1 row. I would like my output to look like individual fields placed one below the other (as opposed to a tabular XML format). Can somebody tell me the different options I got? Appreciate it. Regards, V

  • Use of COMMENT properties

    SQL allows you to add comments on TABLES, VIEWS and SNAPSHOTS plus columns thereof. If you fill in the Comment property for those definitions the DDL generator will produce the appropriate DDL. However, Designer also has Comment property for things l

  • Scanner mustek 1200 ub dont work with ms-6380 (kt3 ultra)

    after trying get help from mustek, i have been told to upgrade my usb controller. after installing the dirver 4in1 it is still doesnt work. but at my friend home with xp also it does work. i will aprishiate evrey help. thank you.