Bitwise shift in ABAP?

Hi all,
How can I shif data bitwise in SAP? Is it possible?
Best Regards
Marcin Cholewczuk

Hi,
Perhaps the below link could give ideas:
http://stackoverflow.com/questions/8349886/bit-shifts-with-abap
PS: I am not familiar with ABAP coding, as mainly into Basis - just thought could help
Regards,
Srikishan

Similar Messages

  • Shift from ABAP to BW

    Hello everyone,
    I want to shift from ABAP to BW and want to learn HANA.Can you please help me with some material? And also please guide if ABAP skills will also get utilized there?I have 4.2 yrs of exp in ABAP..
    Br
    Sumeet

    Hi sumeet durgia
    Let me try to help you here.
    In traditional BW, there is lot of scope for ABAP.So your idea of shifting doesn't have any problem.Now SAP's roadmap is towards HANA, its good if you can understand the concepts of BW on HANA too.
    Your 4+ years of ABAP can certainly be used in BW/traditional DB or HANA; that is for sure.
    FYI: New certifications have come up on the topic like BW on HANA, ABAP for HANA and so on.
    Regarding materials:
    There are huge number of documents available in this SDN space: SAP BW Powered by HANA.
    Also see www.saphana.com, https://cookbook.experiencesaphana.com/bw/ and so on for some wonderful materials.
    I am afraid you might not be getting any SAP certification documents here in this forum as its against the policy.
    Please let us know if you have queries on any specific topics.
    Good Luck.
    BR
    Prabhith

  • Shifting from ABAP to SAP HR

    I have knowledge on ABAP but no real time experience. I find very few opportunities in this area. So planning to shift to HR.
    Can any one suggest me the plan to get through HR , i am basically a computer Sc. Engg, Graduate.
    please do send ur suggestions and useful material to [email protected]
    with regards
    Sravanthi

    HR is very vast. First try to find out where you are ? There are many Generalist consultants in HR.
    ABAP is a very good field, you can work on all the modules. Technical knowledge is never a waste. Coming to the field of FUNCTIONAL is a very responsible job and at times very challenging. Your ABAP will always help you.
    HR is a very different type of field for you, have you taken a look at ABAP-HR ?
    Are you aware of terms like Time/Compensation/Taxes/Personnel Development/Travel/Training/Event/LSO/Payroll terms ?
    Consultant means you are aware of the job, and you are fit to provide solutions to any problems in your domain, thats what you are paid for, just keeping this in mind, make up for the switch.
    Reg
    Manoj Chacko
    SAP HCM Consultant
    Intelligroup Inc

  • SHIFT FROM ABAP TO XMII IS IT HELP FULL TO ABAP PERSON

    hi friends,
    iam working in abap from past 1 year.
    Now my company is asking me to shift my XMII(Advance Version of XI).
    Is it help full to the ABAP person to shift to the XMII.
    If it is help full on what way it helpfull.
    can any one suggest me?

    you need to post this thread in SAP xMII Forums.
    i hope it is not the right thread.

  • SHIFTING FROM ABAP

    hi,
    for abapers which module in sap is best to shift.wat about the modules like bw,apo,netviewer etc.

    Hi Ramesh,
    ABAP is the core of SAP . But there are other related areas ,( options)also available nowdays.
    If ur more inclined to programming background , then Netweaver is an emerging technology for you , where in u can work in different stack ranging from XI, BW , wendynpro etc. So wide option savailable to you there
    Pls check below link for details on Netweaver.
    http://www.erpgenie.com/sap/netweaver/index.htm
    I suggest u to shift as early to Netweaver since SAP is pushing very hard to move to Netweaver Platform technology.
    With later years , u can shift to Functional Roles lke SD , MM also..
    But requires minimum 2 years to gain expertise.
    Regards
    Note: Reward Points if useful.

  • Bitwise Shift Clarification / Bug ?

    Java Tutorial: Shift & Logical Operators...
    has no example to clarify difference between op1 >> op2 vs op1 >>> op2 (only says latter is unsigned).
    To help understand, I wrote following code...
    public class BitwiseDemo {
    public static void main(String[] args) {
    int op1 = -13;
    int op2 = 2;
    int res1 = ( op1 >> op2 );
    int res2 = ( op1 >>> op2 );
    System.out.println("op1 >> op2 " + res1 );
    System.out.println("op1 >>> op2 " + res2 );
    I got result...
    op1 >> op2 -4
    op1 >>> op2 1073741820 .... (big)
    In 2's complement arithmetic which Java uses...
    -13 =1111 1111 1111 1111 1111 1111 1111 0011
    If we shift -13 to right by two retaining sign bit
    AND padding with 1 (not 0)...
    -4 =1111 1111 1111 1111 1111 1111 1111 1100
    If we shift -13 to right by two including sign bit
    AND padding with 0 (as doco says)...
    (big)=0011 1111 1111 1111 1111 1111 1111 1100
    I suggest doco should read...
    pad with leading sign bit
    pad with zero
    Q:Is the above correct ?
    Q:Is there a part of Java doco which gives an example
    of this? I don't think it makes a difference for positive
    numbers.
    Q:Do I get some award for this great piece of learning?
    Instead of using class int, I use class byte but does not compile...
    BitwiseDemo.java:10 (&11): possible loss of precision
    found : int
    required : byte
    byte res1 = ( op1 >> op2 );
    ^
    I expected it to compile and have the answers...
    In 2's complement arithmetic which Java uses...
    -13 =1111 0011
    If we shift -13 to right by two retaining sign bit
    AND padding with 1...
    -4 =1111 1100 (>>)
    If we shift -13 to right by two including sign bit...
    60 =0011 1100 (>>>)
    I also get no compile with class short.
    Instead of using class int, I use class long...
    I get -4 and 46116860184273877900
    Q: Does this mean that the >> and >>> operators use class int as a minimum? Is this in doco?
    Rgds
    Tony

    The program I used was...
    public class BitDemo {
    public static void main(String[] args) {
    byte b= (byte)0x80;
    byte c= (byte)0x80;
    b >>>= 1;
    c >>= 1;
    System.out.println("b >>>= 1 " + b );
    System.out.println("b >>= 1 " + c );
    This produced -64 in both cases as you said.
    PS I used (byte) to type cast the 0x80 assignment.
    I also used byte b= -128; which did the same thing.
    My logic says...
    0x80 =1000 0000
    = =1100 0000 (-64)
    = =0100 0000 (+64)
    So my maths doesn't agree ! The sign is wrong.
    Then I tried the program with int instead of byte...
    public class BitDemo {
    public static void main(String[] args) {
    int b= 0x80000000;
    int c= 0x80000000;
    b >>>= 1;
    c >>= 1;
    System.out.println("b >>>= 1 " + b );
    System.out.println("b >>= 1 " + c );
    Result...
    b >>>=1 1073741824
    b >>=1 -1073741824
    So using int I get different signs which agrees with my maths. I assume the issue is due to changing from byte to int then to byte again. Next experiment...
    public class BitDemo {
    public static void main(String[] args) {
    byte bb;
    byte bc;
    int b= 0x80000000;
    int c= 0x80000000;
    b >>>= 1;
    c >>= 1;
    bb=(byte)b;
    bc=(byte)c;
    System.out.println("b >>>= 1 " + bb );
    System.out.println("b >>= 1 " + bc );
    So in above all maths is int with a final conversion to byte. This gives me zero in both cases.
    Signed: Failed final exam and confused.

  • Bitwise shift operator...

    I know this is very basic but I've never done this...
    If I have an object that is an Integer, and I want to increase it by 1, isn't this how you do it?
    Object ob=new Integer(10);
    ob=ob>>1;it tells me that >> operator cannot be applied to object, int
    So what can it be applied to..?

    Ummmm,sadly, no... :(
    I really do lack basic computer skills, I don't know
    a lot about binary and stuff... but how would you do
    what I want to do..?I asked because it's quite a weird code. Just checking.
    OK, so:
    the binary shift operator can only be applied between to ints, that is primitives, no Objects (like Integer is).
    This operator is not used to increase a number, but to shift its bits by one to the right.
    Usage:
    int i,j;
    j = 10;
    i = j >> 1;
    Integer obj = new Integer(10);
    int res = obj.intValue() >> 1;
    Integer resObj = new Integer(res);

  • Career shift from ABAP

    Hi all,
    I am an ABAPer withone and half years of experience.
    I have worked on ALV Reports,BDC's,Enhancements,BADI's,Modulepool,Smartform.
    1)Can somebody guide me if its appropriate to move to some Netweaver component as i will be starting form zero in that component.
    2)If yes then which Netweaver component is appropriate and are there enough projects in the market(India) as it makes no sense in learning and then siting on the bench.
    3)Or its appropriate to learn some functional module like SD or CRM.
    Thanks.

    Hi Sandeep,
    i agree with your statement that you learn something then you should nt be sitting on bench. But here the important thing to learn is aptitude and some experience when you think of functional modules particularly. I really feel you should be going into Netweaver components for two reasons,
    1) you are already a seasoned technical guy so you can easily understand the the technology.
    2) yes there are many oppurtunities for Netweaver components like EP, XI now PI etc. This is your cup of tea.
    You can think of getting into SD or CRM if you had some selling experience. This is not say that you cant do without that since there are already people doing it this way but the level of excellence would be different. Though excellence may be debatable but its true. This is what i feel.
    regards
    sadhu kishore

  • Career:Shift from ABAP to BW-Netweaver after business object takeover

    Hi all,
    Am an ABAPer  with one and half years of experience.I will be thankful if sombody will tell me If its appropriate to move into BW-Netweaver as i heard BUSINESS OBJECT is likely to replace BW-Netweaver  in near future.
    Thanks.
    Edited by: sandeep pande on May 12, 2008 7:18 PM
    Edited by: sandeep pande on May 12, 2008 7:32 PM

    Dear sandeep pande  ,
    BO was brought up by SAP and It will soon be included in SAP BI in next recent versions.SO its better to join BI. as it has more scope these days/
    YOu should know the advantages of BI over BO
    BO is the reporting toll of data warw house
    BI is itself a data ware house.
    the next generation SAP BI will be using BO as reporting tool instead of BeX.
    BO is the reporting toll of data warw house.
    on the front end it has CrystalReports.
    this suit will be used in SAP as front end for EIM.
    the latest version of BO is BO 11. 3.
    BI is itself a data ware house.
    the next generation SAP BI will be using BO as reporting tool instead of BeX.
    For More Information check the following link
    /people/kuhan.milroy/blog/2008/03/11/introduction-to-business-objects-suite-of-technologies
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    /people/ingo.hilgefort/blog/2008/02/07/businessobjects-and-sap-part-i
    http://sap.blogs.techtarget.com/category/teched/
    For knowing Overview of BI and go through BI certification follow these
    If you are going to Start BI 7.0 courses
    you could follow the books
    TBW10 Datawarehousing concepts
    TBW20 Reporting
    TBW42 Adavnced Data warehousing concepts (authorization,Broadcasting,etc)
    TBW45 Integrated Palnning
    Online courses on APD,XI
    Tamong these,TBW10 and TBW20 will be sufficient for you to start and know basic concepts
    Overview of BI
    http://www.sap.com/platform/netweaver/components/bi/index.epx
    For more information please
    refer these links
    http://www.psimedia.ws
    http://www.sap.com/uk/services/education/courses/bw.epx
    http://www50.sap.com/useducation/curriculum/print.asp?jc=1&rid=285
    http://www50.sap.com/useducation/curriculum/print.asp?jc=1&rid=458
    http://www50.sap.com/useducation/certification/examcontent.asp
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=506&vid=5
    http://www50.sap.com/useducation/certification/curriculum.asp?rid=420
    http://csc-studentweb.lrc.edu/swp/Berg/BB_index_main.htm
    Hope it helps,
    Regards
    Bala

  • What does these bitwise shift doing here ??

    Hello Everybody,
    I was trying some code given n net for reading BMP file and saving into another format and not able to understand the following code which is converting int into Dword. My Int value is 64 which I am trying to convert.:-
    code:
    * intToDWord converts an int to a double word, where the return
    * value is stored in a 4-byte array.
    private byte [] intToDWord (int parValue)
    byte retValue [] = new byte [4];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
    retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
    retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
    return (retValue);
    I would like to request if someone can spare a moment and explain me following:-
    1. Why I need to use >> ?
    2. How one can decide how much shift is needed and in which direcion?
    3. Why there is a need of using & operator ?
    4. How one can decide with which it should be done as it is done with 0x000000FF for 2,3 and 4 th element.
    I would be highly obliged if some one can help me to understand the above.
    regrds,
    arun

    well first this thing is simply taking your integer value you passed in and cutting it up into little byte size pieces.
    For an explanation you ahve to think about indiviual bits. A byte consists of 8 bits
    and an int is 4 bytes in Java (as in many languages). Now what this code does is it takes 8 bit chunks and stores them in a different position in the array.
    retVal[0] = the lowest order 8 bits. It ands the integer with 0x0ff or ...011111111
    retVal[1] = the next 8 bits by shifting out the first 8 bits then it ands this with
    ...011111111. This anding is important because it maintains only the lowest 8 bits of the integer. If the method decided to and the integer with 011111100 then the lowest two bits would always be lost (set to zero). Its simply a matter of boolean algebra.
    Anyway, you just continually shift 8 bits at a time in order to get the 8 bit chunk that is necessary to store into the array slot.

  • Career shift to ABAP

    Hi all,
    I am an ABAPer withone and half years of experience.
    I have worked on ALV Reports,BDC's,Enhancements,BADI's,Modulepool,Smartform.
    1)Can somebody guide me if its appropriate to move to some Netweaver component as i will be starting form zero in that component.
    2)If yes then which Netweaver component is appropriate and are there enough projects in the market(India) as it makes no sense in learning and then siting on the bench.
    3)Or its appropriate to learn some functional module like SD or CRM.
    Thanks.

    Hi all,
    I am an ABAPer withone and half years of experience.
    I have worked on ALV Reports,BDC's,Enhancements,BADI's,Modulepool,Smartform.
    1)Can somebody guide me if its appropriate to move to some Netweaver component as i will be starting form zero in that component.
    2)If yes then which Netweaver component is appropriate and are there enough projects in the market(India) as it makes no sense in learning and then siting on the bench.
    3)Or its appropriate to learn some functional module like SD or CRM.
    Thanks.

  • Career shift for ABAPer

    Hi all,
    I am an ABAPer withone and half years of experience.
    I have worked on ALV Reports,BDC's,Enhancements,BADI's,Modulepool,Smartform.
    1)Can somebody guide me if its appropriate to move to some Netweaver component as i will be starting form zero in that component.
    2)If yes then which Netweaver component is appropriate and are there enough projects in the market(India) as it makes no sense in learning and then siting on the bench.
    3)Or its appropriate to learn some functional module like SD or CRM.
    Thanks.

    Hi Sandeep,
    i agree with your statement that you learn something then you should nt be sitting on bench. But here the important thing to learn is aptitude and some experience when you think of functional modules particularly. I really feel you should be going into Netweaver components for two reasons,
    1) you are already a seasoned technical guy so you can easily understand the the technology.
    2) yes there are many oppurtunities for Netweaver components like EP, XI now PI etc. This is your cup of tea.
    You can think of getting into SD or CRM if you had some selling experience. This is not say that you cant do without that since there are already people doing it this way but the level of excellence would be different. Though excellence may be debatable but its true. This is what i feel.
    regards
    sadhu kishore

  • ABAP-HR material needed - urgent please

    Hi all
    I am new to sap hr, shifted from ABAP to HR-ABAP.
    could anyone plz send me the ABAB-HR  related materials & documents to me plz to use the id in my business card.
    it will be of greatest help.
    thanks in advance.
    regards
    Anand

    Hi Anandamoorthi,
                        There is not much difference between ABAP and ABAP HR.
    There are some additional skills required in HR ABAP.
    1.Creation of custom Infotypes and enhancements in  standard infotypes.(PA and OM).
    2.HR data mainly deals with clusters...
    3.HR reports uses logically data base.(PNP,PCH)
    4.payslip coding and knowing about HR forms.
    5.Macro coding like rp-imp-c2-b2 for getting cluster data.
    Check this thread as well.Anji has explained clearly and go thru the links specified.
    abap-hr
    Regards,
    Manoj.

  • Abap to anyother in SAP

    Hi Experts,
    I Am Tina Wilson,and basically an ABAP Programmer for the past one year.I did went through the hottest article about the Classical ABAPers... Quite worried.Actually i was on  plan to shift from ABAP to anyother within SAP, but was not quite sure of a right track. more confused like what to get in to like either in BW or to learn the basisc of java and then get in to SAP XI or to become more functional by taking CRM....
    Experts i am quite confused, please help me through your valuable suggestions  to take a right track in my career.
    Thanks.
    Tina

    Don't be worried, ABAPers will still be in demand for quite some time. But it definitely makes sense to broaden your spectrum. Depending on your interest it might be a good move to get familiar with BI (BW), as there you can still use your ABAP-skills, but learn to know the system from a very different angle. The concepts are very interesting, but it's much less programming than modelling.
    And reporting will always be needed.
    If you want to stick with programming then go somewhere where you need to learn Java. Like WebDynpro, Composite Application Framework etc.
    You have to decide for yourself what you like and are interested. Is it reporting that thrills you? Is it UI-design? Or do you like the challenge of working deeply in the connections and mappings?

  • Bitwise operators

    what is difference between >> and >>> right shift with zero fill any example ?

    First, read this: http://en.wikipedia.org/wiki/Two%27s_complement
    Given that, you'll understand that the high bit is the sign bit. There are two ways to shift right:
    1. Bitwise shift-right (shift-right zero-fill).
    2. Arithmetic shift-right (shift-right sign-extend).
    The first option fills the high bits with zero as you shift right.
    The second option performs sign-extension, which means the high bit is used to fill in the bits that were shifted right.
    Example:
    8-bit number: 10001010, high bit is 1
    Shift it right 1 position: n1000101 (the "n" represents the missing bit)
    Fill in the missing high bit with the old high bit (1): 11000101

Maybe you are looking for

  • Error Warning that Time Machine couldn't complete the backup to disk, an error occurred while copying files.

    I've been getting this warning on my MBA for the last week: "Time Machine couldn't complete the backup to "LaCie-2big-NAS." an error occurred while copying files. The problem may be temporary. If the problem persists, us Disk Utility to repair your b

  • Scope of list BEST

    Hi, When I execute ME2K transaction, in the initial screen I get BEST as the default scope of list. Since we have maintained the BEST scope of list as the default value in SPRO in table V_160BL. (Define Default Values for Transactions). My requiremen

  • [JS CS3] Changing number of columns

    Hi all, I don't suppose anyone has a script that will change single-frame textboxes (800 pages worth, which is why I am looking to script) to 2-column ones? I wrote a script a while back that allows a user to choose a template, choose a Word file, pl

  • Report_Object_Status TERMINATED_WITH_ERROR

    Hello Experts, Greetings to everybody!!! First of all, I am very excited to give Oracle Fusion Middleware Forms11g R2 a try finally. But i am completely new to this, only experience i got is with forms6i with client-server architecture. I managed to

  • Insert rows without care about constrains..

    Is this possible to insert rows without care about constrains?? This is important for me, because I try to add data to my tables and during the import console give me an error: ORA-02291: integrity constraint (ADMIN.FK_LNE_FLOR) violated - parent key