Question about elements in ABAP programming. Please see..

Hi all,
I want to know what is the way to find more info about an element eg SPOS in the structure ALV_S_SORT.  The short description doesnt tell much. When I was reading a word file (tutorial on ALV reports) I came to know that this is used to provide sort criteria for the different fields. But I don't know what should be the value of SPOS? I see that it is a NUMC2 (length=2) type data.  This info is used in the function call REUSE_ALV_LIST_DISPLAY, but no info on what values to give to it?
Please let me know what is the right approach to tackle such issues at clients place.. Should I ask at this forum each time.. Please let me know about the field spos and how did you find out.
Thanks,
Charles.

Hello Charles
If you want to start with ALV programming but are not yet comfortable enough with class-based ALV list (CL_GUI_ALV_GRID, CL_SALV_TABLE) then I highly recommend to use fm REUSE_ALV_GRID_DISPLAY_LVC. The interface of the fm is very similar (if not identical) to method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID.
In order to understand the function of its parameters have a look at the excellent tutorial [An Easy Reference For ALV Grid Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907]
The tutorial is intended for OO-based ALV lists but using the fm I suggested you can use this documentation as well.
Regards
  Uwe

Similar Messages

  • Question on security in ABAP program with ITS. Please help!

    Hi Experts,
            I have a question on security in ABAP program.
    I have a ABAP program which has a transaction attached.
    I have added authorization check in ABAP program(Progran level security).
    I have also attached the authorization object to the transaction.(Transaction level security)
    If an end user runs the transactionm, then which authorization check will fire first? Will it be transaction level?
    If I have web enabled my ABAP program via SICF (in other words, ITS). Then when I try to run my ITS service in the browser will the transaction level authorization fire? or Will the program level authorization fire?
    Please help me understand this security aspect.
    Thanks
    Gopal

    <i>I have added authorization check in ABAP program(Progran level security).</i>
    i assume you have coded call authority within the program.
    <i>If an end user runs the transactionm, then which authorization check will fire first?</i>
    if he calls the transaction, then first authorization attached to the transaction will be checked.
    but if he executes the program attached to the transaction, then the authorization attached to the transaction dosent help here, the one coded in side the program is checked.
    <i>If I have web enabled my ABAP program via SICF (in other words, ITS).</i>
    it depends,
    if you are calling your transaction like
    webgui/?~transaction=<tcode> then first tcode level authorization.
    if you generate the templates for the program and callign the same, then i guess its progam level. (i need to check this)
    Regards
    Raja

  • Question on security in ABAP. Please help!

    Hi Experts,
            I have a question on security in ABAP program.
    I have a ABAP program which has a transaction attached.
    I have added authorization check in ABAP program(Progran level security).
    I have also attached the authorization object to the transaction.(Transaction level security)
    If an end user runs the transactionm, then which authorization check will fire first? Will it be transaction level?
    If I have web enabled my ABAP program via SICF (in other words, ITS). Then when I try to run my ITS service in the browser will the transaction level authorization fire? or Will the program level authorization fire?
    Please help me understand this security aspect.
    Thanks
    Gopal

    Hi gopalkrishna,
    1. if an end user runs the transactionm, then which authorization check will fire first? Will it be transaction level?
    Yes, transaction level first !
    2. In ITS scenario also,
      a) first tcode level,
      b) then, program level
    regards,
    amit m.

  • A question about BC 400 training program

    Dear all,
    I have a question about SAP taining program for ABAP. My manager will soon register me for the training program BC 400, which seems to be the start point for those who don't know anything about ABAP. I was looking at the course description page and I saw that the course is provided as VLC (Virtual Class). As I understood is that the student connects from his workstation to the training center, so it is distant training program.
    I think it would be more interesting for me to be directly in the classroom with teacher face-to-face.
    Therefore, my qestion is the fact that a training program is VLC, does it mean that it is no more possible to attend directly in classes ? or is just for those who may not want for some reason attend directly to the class?
    Thanks in advance,
    Dariyoosh
    Moderator message: moved to S & C.
    Edited by: Thomas Zloch on Sep 6, 2010 2:33 PM

    This is forum for general abap problems.but to answer your question
    check this link from sap site
    http://www.sap.com/usa/services/education/tabbedcourse.epx?context=[[|bc400||1|063|us|]]|
    Thanks
    Bala Duvvuri

  • Question about internet security...please help!

    Hi everyone,
    I have a question about the macbook's internet security.
    A few days ago I became aware that my sibling was using a laptop for internet use at my house which he got from a person that I do not trust. He is very computer-savy and we're worried that he may have installed some form of spy ware on that laptop and in turn, may have tried (or succeeded) in accessing my Macbook through some form of spyware. My house is hooked up with a D-Link wireless router, and at the time, it had no internet/access-password.
    So my question is, could this person have accessed my computer and personal information remotely by and through the laptop that my sibling got from him. I was under the impression that Mac's have very strong firewalls, but I have also heard that as long as he knew what he was doing, he could have accessed my computer. I don't have a wireless "network" set up at my house, I just simply use the router for internet. But my sibling told me that this guy was his "network administrator" which leads me to believe that he must have had remote access to the laptop.
    Can anyone with knowledge on this problem please weigh in and let me know what I need to do to confirm that no one has accessed anything from my macbook.
    Thanks!

    One option if you want to be extra safe is turning on FileVault (System Preferences -> Security), which will encrypt everything on your computer so that if somehow someone does gain access to your computer they will have a next to zero chance of being able to read anything they get from your computer. You have to have a lot of extra hard drive space on your computer to turn it on though.
    Also, a "network" is just a connection between computers, regardless of the internet is involved or not. So when you connect your computer to the router which gives you the internet, you are putting your computer on a network. Now I believe that in order for this person whom you don't trust to gain remote access to your computer, they would have to have more information such as an IP address for your computer, through the router in order to get to it.
    One thing I think is very important to consider that isn't on the technical side of things is something called "Social Engineering" which is a form of cracking, or hacking. You can do your own research, but in a nutshell Social Engineering is getting people that have access to something I'm trying to hack to give me information. For instance, this person you don't trust could be giving your brother the computer in the hopes that he will download something through your router to that laptop which could give him IP addresses and other information. And then when he gets that laptop back he could scan it for useful information and your brother wouldn't know he did anything wrong at all. The best way to avoid this is purely education and communication. Even if your brother doesn't share the same suspicions about this person, surely he will understand the need to be careful and smart when it comes to sharing personal information in the digital world.

  • Only the suthor of ABAP programs can see and edit his/her code

    Hi:
    We've created developer accounts with the following authorization profiles: A_ABAP_ALL, S_A.DEVLOPER, AND S_A.USER.
    The account holder can access the system, create ABAP programs, and successfully run them. However, there is a problem: a user can see and edit the programs of others.
    Can we set up the account in such a way that only the author of the program can see and edit it? If YES, what should we do?
    Thanks a lot for the help,
    Thuan Nguyen

    Hi Gus:
    Thanks a lot for the help. For creating profiles, I read into 2 different books to get the steps that show how to do it. however, both of them only discuss the general things and do not get to the steps of how to do it.
    Do you know what I need to do to create profiles or where I can get some documentation with details of how to do it?
    Thanks a lot

  • Please help me think about logic in abap program

    Hello every one.
    i have question.
    my selection of program is
    company code
    brand from:    to:
    fiscal year
    period from:   to:
    example.
    company code  0145
    brand from:AAA    to: ZZZ
    fiscal year 2011
    period from: 4  to: 6
    and desired output report is
    brand AAA        April   May  June
    sale              700     600  700
    COG               300     250  350
    Net sale          400     350  250
    brand BBB        April   May   June
    sale             1000    500   800
    COG               500    250   400
    Net sale          500    250   400
    sum of all brand   April  May  June
    sale              1700    1100  1500
    COG               800     500   750
    Net sale          900     600   650
    pleae help me to think about logic.
    now i just have idea that i have to
    loop at internal_table_brand.
    Moderator Message: Do not dump your spec in the forum.
    Edited by: Suhas Saha on Jun 16, 2011 4:16 PM

    Hi,
    This works now. You just need to create your methods and link them in with your case statement as flounder showed you.
    import java.util.Scanner;
    public class CarConfiguration
         public static void main(String[] args)
         int choise = Menu();
         processSelector(choise);
         private static int Menu()
              System.out.println("\nWELCOME TO CAR CONFIGURATION APPLICATION PROGRAM");
              System.out.println("======================================");
              System.out.println(" Enter _1_ to Chasis Type");
              System.out.println(" Enter _2_ to Engine Type");
              System.out.println(" Enter _3_ to Transmission");
              System.out.println(" Enter _4_ to Options ");
              System.out.println(" Enter _5_ to Finish ");
              System.out.println("======================================");
              System.out.print("Select Your Choise: ");
         Scanner input=new Scanner(System.in);
         int choise=input.nextInt();
         return(choise);
         private static void processSelector(int choise)
              switch(choise)
                   case 1: //enter mehtods here and for all other empty cases
                   break;
                   case 2:
                   break;
                   case 3:
                   break;
                   case 4:
                   break;
                   case 5:
                   break;
                   default:
                   System.out.println("Invalid selection");
                   break;
    }

  • Questions about the Buy Back Program

    If I purchased a phone today that costed $600 but $200 with new 2 year contract activation, would the Buy Back program money back percentages come from the $600 or $200?
    Also in about 6 months if I decided to return the phone for another that costed (imaginary prices) $700 but $300 with a new 2 year contract, would the money I got back from the first phone go towards the new contract price ($300) or would I have to pay for the phone in full ($700)?
    Thanks in advance.

    Crystallee,
    Thank you for your kind replies to my question, but I'm still not getting it.
    Please let me give a specific scenario that could happen with my situation.
    I bought the Nexus s unlocked for full retail of $529.99 from my local retail Best Buy about 3 weeks ago.  I also purchased the "Buy Back" program with it.
    I then walked next door to the T-Mobile store with phone in hand and opened a non-contract "Even More Plus" month to month plan.
    At that time my current line contract with AT&T had expired, so I had no early termination fee when I cancelled service to start with T-Mobile.
    Now, If I decide to purchase a new phone four or five months down the road, my understanding from the sales associate at BB, is that I would give over my nexus to BB in exchange for a BB Gift card in the amount of 50% of what I paid originally, $529.99 for the Nexus s.
    I could then proceed to open a new line of service with another carrier that BB sells, i.e. Sprint or Verizon and would only be liable for the new contract price for that new phone, and I would be able to use the Gift card from the nexus turn-in (Buy Back) to pay for the new phone on a new 2yr. contract.
    That was the understanding I had from the BB sales associate, who I think was a lower level manager.
    Let me know if I have misunderstood the "Buy Back" process as I've described it here.
    Thank you again for your patience.  My son would understand all of this.  I'm getting too old! (lol)

  • A question about class and interface? please help me!

    the following is program:
    interface A{
    public class B implements A{
    public static void main(String [] args){
    A a = new B();
    System.out.println(a.toString());
    }i want to ask a question, the method toString() is not belong to interface A, why a can call method toString()? the interface call the method that isn't belong to, why? please help me...

    because a.toString() call the method toString() of class Object because B implements A, but extends Object and in the class Object there is a method toString(). infact if you override the method toString() in class B, a.toString() call toString() in class B.
    try this:
    interface A {}
    public class B implements A
      public String toString()
        return "B";
      public static void main(String [] args)
        A a = new B();
        System.out.println(a.toString());
      }by gino

  • Question about Oracle Database 11g: Program with PL/SQL

    Hello,
    I've read that:
    This course is a combination of Oracle Database 11g: PL/SQL Fundamentals and Oracle Database 11g: Develop PL/SQL Program Units courses.
    In order to preparing for this exam, i should read the student guide, so there are 4 pdf files. One is Oracle Database 11g: PL/SQL Fundamentals, and the other 3 are regarding to Oracle Database 11g: Develop PL/SQL Program Units (volume I, II and III). My question is, regarding to this last one (Oracle Database 11g: Develop PL/SQL Program Units), which volume should i read? I saw that volume I has 400+ pages, and the IIIrd ~80.
    Which document should i read? What's the difference between them?
    Thanks!

    Passing the exam and becoming certified are not a matter of simply reading a book or taking a training class. While books and classroom materials as well as in-class training are all important steps in preparing for an exam, experience and research are just as important. I cannot tell you that there are 53 questions on the exam and every single question maps directly back to page 13, paragraph 3 in XX book. However, If you have the classroom material, and you have the list of exam topics, you should be able to find most of the information you need. In some cases, if you are not completely familiar with a specific topic, or you don't feel like the information in the book gives you all the information you need, you may need to do a little additional research. This is all part of preparing for an exam. This process is what makes you successful as a certified professional.
    Your focus seems to be solely on the course materials that you have and what volumes and chapters you should read. I'm trying to give you a different perspective - preparing for an exam is not necessarily about taking one course or reading one book and being ready. You need to review the exam topics and be sure that you are familiar with each topic.
    Regards,
    Brandye Barrington

  • A Question about Catalyst from a Programming Idiot

    I know absolutely nothing about programming and I don't want to. I'm a photographer and a video artist. Programming is not my thing. That being said, I've messed around in Catalyst and I love how easy it is to make nice looking interactive pages and such.
    Now for the question. Can I use just Catalyst (as in no other software being needed) to build a website for my business, or would I need, say, Dreamweaver too?
    So, can I build a website using only Flash Catalyst.
    Thanks in advance.

    http://flashcats.net/2010/05/27/using-list-interactions-to-create-a-photo-gallery/
    This tutorial may help you in setting up a photo gallery for your work. You may want to have some flash pages and some non-flash pages, but that is up to you. You may also want to use some type of other slideshow generator to show your work. Just some advice. :-)
    Something simple you can do with Flash Catalyst, though there are limitations without knowing programming. Best of luck in your work!

  • Questions about MBP!!! please help!!!

    I'm planning to get a macbook pro and I have a few questions before doing so.
    1. It's always nice to have the option of different OS's on the computer, so if I install Vista and Linux on there would the hardware work fine? When I say hardware I mean in terms of both of the graphics cards and if the backlit keyboard would work fine. The people working in the Apple store gave me 2 completely different answers because they're not sure about installing Vista or Linux. This would be using Bootcamp... I don't intend on using Parallel at all.
    2. One person from the Apple store said Linux is not support on Bootcamp, but I searched around online and saw people that were able to put Linux onto their macbooks. Can anyone enlighten me? Would everything work fine?
    3. This next question is not related to Apple or macbooks. It's just a general question that I've had in mind. Do drivers or settings work properly/ok on different OS? Say if I got a mouse or keyboard that came with a program to change the settings, i.e. speed of mouse and other options, and I switched over to another OS that I dualboot, would the settings stay the same on the other OS?
    Thanks for your help.

    Parallels 3 was disappointing, but Parallels 4 performs much better. I migrated my windows XP installation from my old Dell Inspiron into a Parallels virtual machine on my new MBP and it actually runs faster in Parallels 4 on the MBP than it did natively on the Dell because of the difference in system power between the two. Parallels 4 supports multiple processors, including the dual-core MBP processor, and greater memory allocations than the previous versions.
    You will get better performance from Windows if you run it via Boot Camp, but if you want to use Linux, a virtual machine is the safest way to do it, as you would have to use the Linux boot loader to support a dual-boot OS X/Linux installation. Fortunately, Linux memory management is quite good compared to Windows, so you don't have the same kind of performance issues running Linux in a virtual machine as you do with Windows.

  • Questions about the Global Shipping Program

    Unfortunately, no. "Import fees" are only charged if the seller is using the Global Shipping Program on eBay.com.If you read the fine print in the Buyer's User Agreement for GSP, there is this under paragraph 3: i. Exclusions. You alone are responsible for any customs duties, taxes, surcharges, fines, penalties, or other charges which may be imposed on you by customs or tax officials after a GSP Item has successfully cleared customs and been delivered to (or made available for pickup at) the delivery address specified by you. http://pages.ebay.com/shipping/globalshipping/buyer-tnc.html My interpretation of that, is that if there are any additional charges, the buyer is responsible for paying them, even though you were not informed about them in advance. Personally, I would not use the GSP, for this and other reasons. Your only alternative is not to purchase items that show Import Fees on the shipping and handling tab. Unfortunately, this is not a very good solution. 

    around_again_records wrote:
    When you pay for the item through PayPal, you are authorizing 2 payment transactions. The first payment goes to the seller and consists of the item cost and the domestic shipping costs. The second payment goes to the global shipping provider and consists of the international shipping costs and any import charges.The above quote is from the Global Shipping Help file. My question is: If I were to make a purchase from someone using the GSP (and I won't but...) and I go to the shipping page to calculate my cost. Where do I put that the item is going to be shipped to? IF the first payment goes to the seller and consists of the item cost and the DOMESTIC shipping cost - then to find out the Domestic shipping cost do I enter the location of the Pitney Bowes Shipping depot????
    How do I know what Pitney Bowes (or the Global Shipping Provider) is going to charge me for shipping? I absolutely need to know that before I make any purchases. From what I understand, I will find this all out during checkout. That's a little bit late for me. Same thing with duties and taxes. I need to know what they are going to charge BEFORE i get to the checkout. When parcels go through normal channels USPS/CP I know how much tax I might have to pay and I know how much the duty charge will be. I would never purchase anything without knowing these costs up front. Hi, Round-again.  Hope you and Kalvin don't mind my leaping in here.  I went through a test listing from a seller using the GSP some time ago, so I may have a bit of insight for you. GSP listings have shipping charges and estimated import charges right on them.  Usually, those "estimated" charges are pretty accurate, but I think they have to be considered "estimated" for auction listings where the taxes due on the item are going to go up as the bid price rises. In the case of my test listing, the shipping charge and import charges were just as were mentioned on the listing page and it was a simple matter of going through checkout, agreeing to the terms and conditions of the Global Shipping Program, and almost making my payment. The wrinkle is that since everything but the kitchen sink is thrown into the import charges and they're not itemized, you can't be 100% sure how much is going to taxes, how much to duty (which often isn't applicable anyway), and how much to the Global Shipping Program as an administrative fee.  However, you can calculate the taxes yourself using the tax rate(s) applicable to your province if you need to get an idea of how much is going to whom. This likely isn't a perfect solution for you if you're trying to claim back any taxes (and duties, if applicable) paid on the item, but it's probably the best we can do right now with how the GSP is set up.

  • Few questions about j2ee and my program

    Hello
    I'm new on this forum and in j2ee :)
    I've to write program which should be in working similar to video on demand system but without streaming movies only database and etc.
    I'm gonna write database in mysql. It will contain user and movies. I'll use the tomcat server.
    Can you tell me what should i learn to do it, i mean can i use jdbc to do it or maybe i should use something diffrent, and what will i need more i mean jsp, servlets?
    Sorry for such a question but i'm just beginner in j2ee and i hope you will help me :)

    Hello
    I'm new on this forum and in j2ee :)Welcome.
    I've to write program which should be in working
    similar to video on demand system but without
    streaming movies only database and etc."streaming database"? Not sure what you mean.
    I'm gonna write database in mysql. It will contain
    user and movies. I'll use the tomcat server.Sounds ambitious for somebody who's new to Java and Java EE
    Can you tell me what should i learn to do it, i mean
    can i use jdbc to do it or maybe i should use
    something diffrent, and what will i need more i mean
    jsp, servlets?Yes, learn JDBC. And servlets and JSPs. That's quite a lot.
    Sorry for such a question but i'm just beginner in
    j2ee and i hope you will help me :)I don't know how this helps you. It seems to go without saying: If you want to write Java EE applications, you should know Java EE well.
    %

  • Beginner question about prepared statements...PLEASE help! :-)

    First let me say thanks for the assistance. This is probably really easy to do, but I'm new to JSP and can't seem to figure it out.
    I want to dynamically populate a table that shows whether a particular person has an appointment at a given date and time with a user. To do this, I want to query the MySQL database for the lastname of the person with the appointment that occurs with the user at the year, month, date, and time, in question.
    THE CODE BELOW DOESN'T WORK (obviously) BUT SOMEWHAT ILLUSTRATES WHAT I'M TRYING TO ACCOMPLISH:
    <%
    Driver DriverTestRecordSet = (Driver)Class.forName(MM_website_DRIVER).newInstance();
    Connection ConnTestRecordSet = DriverManager.getConnection(MM_website_STRING,MM_website_USERNAME,MM_website_PASSWORD);
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id='<%=(((Recordset1_data = Recordset1.getObject(user_id))==null || Recordset1.wasNull())?"":Recordset1_data)%>' AND year='<%= yy %>' AND month='<%= months[mm] %>' AND date='<%= dates[dd] %>' AND appttime='16:15:00'");
    ResultSet TestRecordSet = StatementTestRecordSet.executeQuery();
    boolean TestRecordSet_isEmpty = !TestRecordSet.next();
    boolean TestRecordSet_hasData = !TestRecordSet_isEmpty;
    Object TestRecordSet_data;
    int TestRecordSet_numRows = 0;
    %>
    The real problem comes in the prepared statement portion. If I build the prepared statement with static values like below, EVERYTHING WORKS GREAT:
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id='1' AND year='2002' AND month='October' AND date='31' AND appttime='16:15:00'");
    But when I try to use dynamic values, everything falls apart. It's not that the values aren't defined, I use the user_id, year <%= yy %>, month <%= months[mm] %>, etc. elsewhere on the page with no problems. It's just that I can't figure out how to use these dynamic values within the prepared statement.
    Thanks for reading this far and thanks in advance for the help!!!!

    Hi PhineasGage
    You are little bit wrong in your
    your preparedStatement.
    Expression tag within scriptlet tag is invalid.
    Whenever you are appending the statement with
    expression tag, append it with "+" and remove
    expression tag.
    Hopefully it will work
    ThanksThanks for the response!
    I know that the expression tag within scriptlet tag is invalid. I just need a workaround for what I want to do.
    I'm unclear what you mean by "Whenever you are appending the statement with expression tag, append it with a "+" and remove expression tag".
    Could you give an example?
    In the meantime, I've been trying to digest the docs on prepared statements and have changed the code to look like:
    PreparedStatement StatementTestRecordSet = ConnTestRecordSet.prepareStatement("SELECT lastname FROM appts_pid1 WHERE user_id= ? AND year= ? AND month= ? AND date= ? AND appttime='13:15:00'");
    StatementTestRecordSet.setInt(1,1);
    StatementTestRecordSet.setInt(2,2002);
    StatementTestRecordSet.setString(3,"October");
    StatementTestRecordSet.setInt(4,31);
    Again, WITH THE STATIC VALUES, THIS WORKS FINE...but when I try to use expressions or variables like below, things don't work:
    StatementTestRecordSet.setInt(2,<%= yy %>);
    Obviously, I'm doing something wrong, but there has to be a way to use variables within the prepared statement.
    ALSO, the values are being passed to this page via URL in the form:
    samplepage?user_id=1&year=2002&month=October&date=31
    Based upon this information, is there another way (outside of stored procedures in the db) to do what I want to do? I'm open to ideas.

Maybe you are looking for

  • Path problem

    sir, i install jdk1.2 at d:\ drive sir how can i set path for this problem is: when i run javac it give an error as "illegal operation" then when i click on java run time icom present in the start-program menu it gives the same error message

  • Active Directory Sites + Boundary Groups + Database not showing correctly?

    I am having a hard time trying to track down my issue but after digging for a bit, I think I have figured it out but I am unsure how to fix it. Quick backstory, we had a domain controller go bad in this ADsite, the domain controller was also a DP at

  • Oracle BPM Workspace and IE 11 Compatibility issues

    Hi all, I am using Oracle BPM 10g and when I use IE 9 (till IE 11) or firefox latest versions , chrome,etc.. I get a pop-up with the title "execution" and unable to close the pop-up as well. Can you please suggest if there is some configurations I sh

  • Handling Table control in BDC

    I am doing BC for transaction KKPA with session method. I am filling the table control by using two internal tables IT_STPO and IT_ZCOT. I have prepared the logic and able to move the data to table control. But I am unable to handle when it more reco

  • Problems watching Netflix in Yosemite's Safari

    Why can't I watch Netflix movies with Yosemite's Safari?, it says my computer can't playback premium video. I have just updated my os from Mavericks where I had no problems with it.