What is pack and upack doing in this code ?

Hello ABAP Experts,
wha is the purpose of unpack in this code below. ?
LOOP AT datapak ASSIGNING <fs>.
    UNPACK <fs>-zcurr_type TO <fs>-zcurr_type.
    UNPACK <fs>-zp0_type   TO <fs>-zp0_type.
    UNPACK <fs>-zp1_type   TO <fs>-zp1_type.
    UNPACK <fs>-zp2_type   TO <fs>-zp2_type.
    UNPACK <fs>-zp3_type   TO <fs>-zp3_type.
    UNPACK <fs>-zp4_type   TO <fs>-zp4_type.
    UNPACK <fs>-zp5_type   TO <fs>-zp5_type.
    UNPACK <fs>-zp6_type   TO <fs>-zp6_type.
    UNPACK <fs>-zp7_type   TO <fs>-zp7_type.
    UNPACK <fs>-zp8_type   TO <fs>-zp8_type.
    UNPACK <fs>-zp9_type   TO <fs>-zp9_type.
    UNPACK <fs>-zp10_type   TO <fs>-zp10_type.
    UNPACK <fs>-zp11_type   TO <fs>-zp11_type.
    UNPACK <fs>-zp12_type   TO <fs>-zp12_type.
  ENDLOOP.
Thanks,
BWer

F1 help for UNPACK.
<i>
UNPACK
Basic form
UNPACK f TO g.
Effect
Unpacks the packed field f and places it in thefield g with leading zeros. If g is too short, it istruncated on the left.
Example
DATA: P_FIELD(2) TYPE P VALUE 103,
      C_FIELD(4) TYPE C.
UNPACK P_FIELD TO C_FIELD.
P_FIELD: P'103C' --> C_FIELD: C'0103'
Notes
If f is not type P, it is converted to typeP (see MOVE).
g should always be type C. Otherwise, unwanted sideeffects may occur.
The sign in the packed number is ignored.
The same runtime errors may occur as occur with thePACK statement.
</i>
Regards,
Rich Heilman

Similar Messages

  • What is BAPI and where does it use

    Hi all
    What is BAPI and where does it useful for us. And as a functional consultant how much should i know it.
    regards
    Subrat

    Hi Subrat,
    You can get the information of whatis BAPI in SAP help link below...
    http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8464ac011d1894e0000e829fbbd/content.htm
    As a Functional consultent, it depends how close you are with the technical part of the implementation. if you are involved in some technical part, you need this information...
    Best Regards,
    Venkat.

  • What is "Other" and why does it take up so much space?

    What is "Other" and why does it take up so much space?

    What is the Other on my iPhone and How to Remove It
    An "other" larger than about 1 1/2 GB usually indicates that the "other" includes corrupted files.
    First try:
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up

  • "Account expired Renew subscription now to resume service." on my Mac with no source of ID. What is it and where does it originate?

    I keep getting this on my Mac with no source of ID. It keeps reappearing with no options other than "Renew Subscription". What is it and where does it originate?

    You have an account that has expired, but only you know what accounts you have.
    Check them.

  • My Itunes library is messed up. Wong titles. Wrong albums. Wrong everything. EX. I play a song by avenged sevenfold but then it plays a song by eminem. Song titles dont match what they play and neither does the artists name

    My Itunes library is messed up. Wong titles. Wrong albums. Wrong everything. EX. I play a song by avenged sevenfold but then it plays a song by eminem. Song titles dont match what they play and neither does the artists name. Can I restart everything from itunes? I know this sounds cunfunsing, (and it is) but yeah.
    Once again to try and clarify, The song(which itunes says is by artist,band,person, etc) is mixed up with another song out of my libary.
    If there's something you dont get ask me!!! thanks

    I'm experiencing the same issue. Not only do I get a messed up library, but since I've let iTunes handle my music files, they too have been shuffled around - placed in different album folders and sometimes given names of other songs... With quite a large library, the cleanup makes me feel a bit like Sisyfos pushing the rock uphill - it's a never ending story. Only positive side of this is that I get to play a lot of music quizzes while guessing who plays the song that is disguised as eg. Buddy from De La Soul, and then afterwards try to track down the real 'Buddy' as this has also found another folder to hide in...
    Shazam has come to the rescue a few times so far...
    @Apple: this is just not good enough!

  • Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Everytime this happens Ihave to power down and restart! Any ideas would be appreciated!

  • I have problem c connecting to cellular data network. There is massage "couldn't activate cellular data network, PDP authentication failure". What is it and how I solve this problem?

    I have problem c connecting to cellular data network. There is massage "couldn't activate cellular data network, PDP authentication failure". What is it and how I solve this problem?

    If you have a data only plan for the iPad with your carrier, if no change after powering your iPad off and on you will need to contact your carrier.

  • HT4539 "this device is no longer eligible for creating a free icloud account" what that mean and how to resolve this problem

    "this device is no longer eligible for creating a free icloud account" what that mean and how to resolve this problem

    Guess we're stucked and live with it. I hate this policy of limiting accounts to use on a device but the good thing is I just logged in using my account and asked my daughter what are the apps and music she wanted to download on the device. After we load everything she needs, I just deleted my account in the device and disassociated it from my iCloud account. It's still works as intended but the only caveat is she cannot use the find my ipad application.

  • Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll - what went wrong and how to resolve this?

    Updating iTunes 12.1 and get error message "The procedure entry point CMBlockBufferCopyDataBytes could not be located in the dynamic link library CoreMedia.dll". What went wrong and how to resolve this?

    Entry point errors can often be fixed by deleting the offending dll, then repairing the component it is part of.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If the advice above doesn't resolve things you could try this alternate version:
    iTunes 12.1.0.71 for Windows (64-bit - for older video cards) - itunes64setup.exe (2015-01-28)
    which is a 64-bit installer for the 32-bit version of the core application, similar to previous 64-bit releases.
    Or roll back to the previous build:
    iTunes 12.0.1.26 for Windows (32-bit) - iTunesSetup.exe (2014-10-16)
    iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16)
    tt2

  • What is utp and who will do this ?how you do unit testing?

    Hi....
    he asked me like this
    1...what is utp and who will do this ?how you do unit testing?
    thanks and regards,
    k.swaminath reddy.

    Hi Swaminath,
    Adding to what Sandhya told..When the huge work is diveded by units, each unit is assigned to a Developer.After complition of the assigned work Developer has to do testing that object by seeing that Unit Plan or Creating Unit Plan.
    Regards,
    Ameer Baba.

  • I'm trying to pay for a game, and I went to pay it's asked security questions and I don't remember what I answered and I went to resend code to reset the answer and the email starts with an a and I have no email that starts with an s

    I'm trying to pay for a game, and I went to pay it's asked security questions and I don't remember what I answered and I went to resend code to reset the answer and the email starts with an a and I have no email that starts with an s

    See Kappy’s great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities
    https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
    About Apple ID security questions
    http://support.apple.com/kb/HT5665
     Cheers, Tom 

  • What is "ndat", and why does it want to connect to 0.0.0.0 on DIVERT port?

    Whenever I connect to any wireless hotspot, LittleSnitch (a program that reports any ingoing/outgoing connections) says: "ndat wants to connect to 0.0.0.0 on DIVERT port 2560 (labrat)". If I click "allow" the connection works fine, if I deny the connection, the internet doesn't work. Does anybody have any idea what this is?
    I just want to make sure I'm not inadvertently allowing my data to go through some connection and be vulnerable, etc.

    I thought about that, but all that LittleSnitch does is report ingoing/outgoing communications. It doesn't create any. So I'm just trying to figure out what a program called "ndat" does, and what 0.0.0.0 on DIVERT port 2560 (labrat) means.
    Has anyone heard of any of these things on OSX?

  • What is maccmd and why does it want to make changes?

    Everytime I reboot my macbook pro I get this message.
    I always just hit cancel but I'm starting to wonder what it is.  I used finder to see what program it was and found nothing.  Then I googled it and searched this board and didn't find anything. 
    Did some malicious software sneak its way onto my macbook?
    Thanks in advance.

    I thought about that, but all that LittleSnitch does is report ingoing/outgoing communications. It doesn't create any. So I'm just trying to figure out what a program called "ndat" does, and what 0.0.0.0 on DIVERT port 2560 (labrat) means.
    Has anyone heard of any of these things on OSX?

  • What is Navigate and how does it differ from Froyo to Gingerbread and honeycomb?

    Navigate does not seem to appear in Application Management for Froyo, Gingerbread or Honeycomb.
    So What is it?   And, Where is it located?
    How do I see the Release?
    DroidX Froyo has Navigate that updated to include Navigation with Public Transportation option.
    The DroidX with Gingerbread does not appear to have that update.  Neither does the Navigate on my Xoom running Honeycomb 3.2
    System update on all three show all up to date.
    If Navigate is just a module in Maps and Maps is at the same level on all devices, how can I initiate the update?
    Thank you for your assistance

    Thanks to all community members for your input.  jmccoy70, I understand your concern with wanting to be able to access the Navigate app that's on your device with Froyo Os like the devices with Gingerbread and Honeycomb. At this time, this update is not available to download so t hat you receive this update.
    Navigate is apart of Google Maps. In the apps list, there is a blue triangle that points upward that launches Navigate. It may have to be downloaded on the tablet from the market.

  • What is RFC and how does work

    Hi Sap Guru's
    I want to know the RFC in SAP and how does it work?
    Thanks in advance
    Regards
    Ramesh

    Hi Ramesh,
    These are the types of RFC
    Asynchronous RFC (aRFC)
    Synchronous RFC (sRFC)
    Transactional RFC (tRFC)
    Queued RFC (qRFC)
    Parallel RFC (pRFC)
    Asynchronous RFC :
    This is used when you need to increase the performance of ABAP program by having system call more than one function module in parallel than forcing the program to wait for results .
    Transactional RFC
    This let you group one or more function module call together o tRFC LUW and ensure that fucnction module within LUW is called once . In contrast to aRFC and sRFC the tRFC belonging to tRFC LUW are executed in order .
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are
    1.Executed in the order in which they are called
    2.Executed in the same program context in the target system
    3.Run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved
    Asynchronous remote function calls (aRFCs) are similar to transactional RFCs, in that the user does not have to wait for their completion before continuing the calling dialog. There are three characteristics, however, that distinguish asynchronous RFCs from transactional RFCs:
    • When the caller starts an asynchronous RFC, the called server must be available to accept the request.
    The parameters of asynchronous RFCs are not logged to the database, but sent directly to the server.
    • Asynchronous RFCs allow the user to carry on an interactive dialog with the remote system.
    • The calling program can receive results from the asynchronous RFC.
    You can use asynchronous remote function calls whenever you need to establish communication with a remote system, but do not want to wait for the function’s result before continuing processing. Asynchronous RFCs can also be sent to the same system. In this case, the system opens a new session (or window). You can then switch back and for between the calling dialog and the called session
    RECEIVE RESULTS FROM FUNCTION Remotefunction is used within a FORM routine to receive the results of an asynchronous remote function call. The following receiving parameters are available:
    IMPORTING
    TABLES
    EXCEPTIONS
    The addition KEEPING TASK prevents an asynchronous connection from being closed after receiving the results of the processing. The relevant remote context (roll area) is kept for re-use until the caller terminates the connection.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

Maybe you are looking for

  • Attachments embedding in mail

    How do I stop attachments embedding in mail?

  • XFCE - Shutdown and Reboot buttons greyed-out (SOLVED)

    This issue cropped up for me a couple of weeks ago.  Just sat down to try and find a solution.  Followed several suggestions from several posts to no avail. Finally discovered that the syntax for achieving this in "/etc/sudoers" has evidently changed

  • How can I make invisible the menu "window" on oracle webforms

    anybody can tell me how can I make invisible menu "window" that appears on webforms? Thanks in advanced.

  • How to 'refresh' or 'update' ?

    hi there... I searched this folder.... no article for my answer... I have an external HDD (250GB) I have backed up the picture folders... some of the folders by date... I just copy-pasted the latest picture folders.... and then deleted some other old

  • Extractor for userid name

    hi gurus , Is there anyone who know the extractor used to load text for info object : 0CRM_CTD_By  and 0CREATEDBY . I need in reports to get the name of the user who create the document in source system. I don't find anything in RSA5 . thank you for