Please explain,  the job of the  "ASSIGN COMPONENT ".

Please read this popular example appended below. I am newbie to ABAP.
At the end of the execution the code is printing 33. Don't get it.
Please explain,  the job of the  "ASSIGN COMPONENT ". How or why it is printing value 33.  What is the meaning of the statement, "ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>." ?
DATA: BEGIN OF LINE,
COL1 TYPE I VALUE '11',
COL2 TYPE I VALUE '22',
COL3 TYPE I VALUE '33',
END OF LINE.
DATA COMP(5) VALUE 'COL3'.
FIELD-SYMBOLS: <F1>, <F2>, <F3>.
ASSIGN LINE TO <F1>.
ASSIGN COMP TO <F2>.
DO 3 TIMES.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
WRITE <F3>.
ENDDO.
ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
WRITE / <F3>.
11 22 33
33

DATA: BEGIN OF LINE,
COL1 TYPE I VALUE '11',
COL2 TYPE I VALUE '22',
COL3 TYPE I VALUE '33',
END OF LINE.
DATA COMP(5) VALUE 'COL3'.
FIELD-SYMBOLS: <F1>, <F2>, <F3>.
ASSIGN LINE TO <F1>.
ASSIGN COMP TO <F2>.      "here you are assigning the column name which is COL3 to <f2>.
DO 3 TIMES.
ASSIGN COMPONENT SY-INDEX OF STRUCTURE <F1> TO <F3>.
WRITE <F3>.
ENDDO.
ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>.
ASSIGN 'COL3' of structure <f1> to <f3>. "it is equal to above statement.
WRITE / <F3>.
11 22 33
33
ASSIGN COMPONENT <F2> OF STRUCTURE <F1> TO <F3>. means
assigining  COL3  value of the structure <f1> to <f3>, so value is 33 , it will be assigned to <f3> .it prints 33.

Similar Messages

  • In Data Quality transform please explain Associate transform with the help of any example.

    In Data Quality transform please explain Associate transform with the help of any example.

    Hi Neha,
    If we are using multiple match transforms and consolidate the final output we will use associate transform .
    Let me explain with one example based on data quality blue prints for USA .
    We have customer/vendor data .     We need to find the duplicates .
    1. First  we will find the duplicates  on   Name and Address
    2. Second  we will find the duplicates on Name and Email
    3. Third we will find the duplicates on Name and Phone
    Here why we need to find the duplicates in multiple stages . If we are finding the duplicates on combination of  Name, Address, Email and Phone  we may not get proper duplicates   as we are finding the potential duplicates . That's why we are finding the duplicates on different combinations .
    In this case we will get the different group numbers for each match combination . Each combination name is there .
    We want to consolidate and give the group number to the whole set of duplicates . We will pass these  3 match groups to associative transform and generate the  consolidated match group for the input data.
    I hope you understand the concept .
    Thanks & Regards,
    Ramana.

  • Can you please explain in detail about the T-Code SM59

    Can you please explain in detail about the T-Code SM59

    Hi Raja,
    detailed explanation is already available over help.sap.com.
    For your ready reference check below links
    http://help.sap.com/saphelp_spm21_bw/helpdata/en/57/898009a859493a8bce56caaf0f8e13/frameset.htm
    http://help.sap.com/saphelp_webas610/helpdata/en/da/11df3a9b10355ae10000000a11405a/frameset.htm
    http://help.sap.com/saphelp_snc70/helpdata/en/3f/7ffb40ef74f923e10000000a155106/frameset.htm
    Regards
    Jitender

  • HT5457 So can somebody please explain to me why the first gen iPad missed out on ios 6?

    So can somebody please explain to me why the first gen iPad missed out on ios 6?

    safrones wrote:
    Is that what you really believe?
    I don't know cause Apple decided for me.
    As does Microsoft anytime that they release a new update that is no longer compatible with the old PC hardware.
    I would hope that Microsoft and Apple would both know what operating systems will run on the hardware that is produced for them.
    I would also hope that Microsoft and Apple know better than you do as to what would work on their devices, tablets, computers, phones .... How much time and money have you put into research and development on the iPad?

  • Hi any one please explain background job scheduling

    Hi any one please explain background job scheduling . Good answer can be rewarded.
    Thanks

    Background jobs are pgms that are scheduled to be run in the Background without user interaction. So this can be done only for Type 1(executable) Program and not for Module-Pool Programs. Typically, a variant is defined and the pgm is run using the same.
    The transaction code is sm36 -Define Background job. Using the Start Condition tab you can define when you want the job to run (specific time or if it has to follow after a particular job is done etc.,) Using the Step tab you can assign the pgm name and variant.
    After the job is scheduled, you can check the status in sm37, along with the Job log and Spool.
    For more info:
    http://help.sap.com/saphelp_bw30b/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm

  • How to pull the job with the latest effective date in PSFT?

    Hello,
    I am running the PSFT 9.1.1 connector workforcefullsync.
    I ran into a problem when the user has multiple job records. Each time that the user job is updated, a new job record is created. So, when the data comes from PSFT, for a user, we have multiple jobs records with different effective date (For example <EFFDT IsChanged="Y">1996-10-21</EFFDT>). OIM is only interested in the latest EFFDT.
    Question 1: is it something that we can set on the PeopleSoft side, so that only the job with the highest EFFDT is sent to OIM?
    Question 1b: is this is not easy to accomplish from the PSFT side, can I use transformation in the connector to only pull the job record with the highest effective date?
    Question 2: if the EFFDT shows a date in the future (HR wants to disable a person in the future), does OIM ignore this change until the sysdate is after that EFFDT date?
    Thanks
    PS: workforcefullsync worked fine if the file contains only 1 job per employee. When the xml files contain multiple job records, I got the error:
    ERROR QuartzWorkerThread-1 OIMCP.PSFTER - oracle.iam.connectors.psft.common.handler.impl.PSFTWorkForceSyncReconMessageHandlerImpl : handleMessage
    ERROR QuartzWorkerThread-1 OIMCP.PSFTER - 1
    ERROR QuartzWorkerThread-1 OIMCP.PSFTER - Description : 1
    ERROR QuartzWorkerThread-1 OIMCP.PSFTER - java.lang.ArrayIndexOutOfBoundsException: 1
    Edited by: user12049102 on Mar 22, 2010 12:06 PM

    Hello,
    When the PSFT team sends a message over to OIM to disable a user with today's date, the user got disabled fine in OIM. A reconciliation event is created.
    When the PSFT team sends a message over to OIM to disable a user with a future date for EFFDT, let's say 3/31/2010, no reconciliation event was created.
    Does OIM store this information somewhere so that it will process it later on?
    It's a good thing that OIM does not disable the user who has an EFFDT in the future, but we don't want that record to be forgotten.
    Please help.
    Thanks

  • The DPM service terminated unexpectedly during completion of the job. The termination may have been caused by a system reboot. (ID 910)

    The DPM service terminated unexpectedly during completion of the job. The termination may have been caused by a system reboot. (ID 910)
    No idea what happen and how to fix this?

    I still got this on full backup to tape, anyone experienced this issue?

  • Resuming the job from the place where it failed?

    hi Gurus,
    we have a requirement like
    if the job fails is there a possibility to resume the job from the same position where it has failed
    is there any standard functionality in SAP to acheive this and if not give me guidelines to achieve this
    Thanks in advance
    S.Janagar

    Hi,
    It is not possible to resume the job again from the place where it failed.
    By looking at the job log, because of some error message, exception etc.. the job got failed, So by having the break points at the same place, schedule a new job make to released status, now by selecting the released job, by using the command JDBG, you can start the debug from the specific point.
    But remember one thing, If the program is taking too much time to reach the specific point in foreground, you are helpless!!!!!
    Regards,
    Santhosh.

  • Please explain to me why the glass and digitizer have to be replaced together ?

    I do not understand why the glass and digitizer have to be replaced together. My Ipad works fine with cracked glass, so the digitizer must be perfectly fine. Why can't I just replace the glass ? Please explain to me the mechanical function of the digitizer and glass connection ?

    Apple doesn't repair your iPad in any case. They'll replace it, either under warranty if the problem is a defect or for a fixed fee if the unit has been damaged. So the whys and wherefores are really irrelevant.
    If you're working with a third-party repair service, get them to explain their charges and the repair they propose. Most likely the glass and digitizer are bound together and cannot be replaced separately, but I don't know for sure.
    Regards.

  • Getting the error while submitting the job through the OEM

    I am trying to submit the job, but getting failed with the following
    VNI-2015 : The Node preferred credentials for the target node are either invalid
    or do not have sufficient privileges to complete the operation.
    On Windows platforms, the Node credentials specified for the Windows target
    should have the "Logon as a batch job" privilege.
    Could any body help in this?
    Thanks
    vj0011590

    Also setup logon as batch priv as below
    1. Control Panel, Administrative Tools.
    2. Click on Local Security Policy.
    3. Local Policies, User Rights Assignment.
    4. Double click, 'Log on as a batch job'
    5 provide username along with domain name co.uk\foo

  • Emailing the job of the report MCP6 from SM36

    Hi,
    i create a spool list in SO23 and i affected it to my job in SM36.
    Then i scheduled the job.
    After i cheked, when the job is terminated successfully. the job not appear in spool and i didn't recieved the mail.
    What is missing?
    thanks for your reply

    Hi Sri,
    According to your description, you want to deploy a report to different environment, then you want to change the datasource connection string dynamically.
    In your scenario, you should make sure you are using a connection embedded in your report. Then you can create a report parameter, then specify the expression for connection string like below:
    ="data source=" & Parameters!ServerName.Value & ";initial catalog=<Your Database Name>"
    Reference:
    SSRS Report - Dynamic Connection String and Parameters
    Dynamic Data Source for SSRS Reports
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Print the job from the spool in abtch mode

    I want to be able to print a job from the spool in batch mode. In other words a job currently exists that creates a report that currently goes to a printer.
    The user wants the report to print on two different printers. This extra printer cannot be placed in the job, since SAP only allows one printer per output. What I would like is to find a SAP program that would accept a spool name and a printer destination. It necessary we can write a program that might execute a SAP function to do the same.
    SP01, the spool transaction, does not easily adapt itself to batch execution. I donu2019t want to create a bdc session using it.

    Hi,
    If the domain of these fields are of type SYTIME, then adding the fields like a numeric value should suffice.

  • HT4775 I made a DVD in compressor and even though the disk is finished, I still see the active job.  How do I clear the job off the active jobs list?

    A few weeks ago, I launched compressor via FCPX to make a DVD.  Everything went fine.  The disc burned and ejected from my DVD burner, but the job is still listed under Active Jobs.  Nothing I've tried will make it go away.  Is there any way to clear that list?

    Go into your Home library and open Application Support and then Compressor. Open the History sub folder and within that, open V4. Scroll down to find the job and drag it to the trash.
    Russ

  • ICal on iPad: please explain how to use the duplicate calendars

    I am traveling with my iPad and cannot get on my computer. I want to add calendar events that will sync to MMe. I have checked off the calendars for @me.com. Sometimes the iPad duplicate switches on. I assume that i have this so i can see if i need to what is really on the iPad ND what is really on mobile me in case i don't have wi fi access. However Apple does not explain to us why so that we could understand our own systems. We are left to guess and stab in the dark. I want to add items that will go over to mobile me and to my phone. Do i add them in to the calendar that is on the ipad and then it will automatically sync the events?
    I just edited some items that had previously been synced to mobile me. Those items are showing up synced to my phone so i know they went to mobile me. However i added some new items that went into the calendar on my iPad and those are not syncing (I wonder why apple has this odd system set up?)
    So is there something i don't know about entering events in my iPad? Why would there be a dublicTe calendar kept that does not sync to the rest?
    Please help! I can't go to my computer to reset hints for now i just have to know how to input events correctly into iPad so they will sync to mobile me and my phone. I have previously fine through resetting hints with mobile me support so it all should be set up correctly.
    Thanks

    Edited version (it won't let me edit)
    I am traveling with my iPad and cannot get on my computer. I want to add calendar events that will sync to MMe. I have checked off the calendars for @me.com. Sometimes the iPad duplicate switches on. I assume that i have this so i can see if i need to what is really on the iPad and what is really on mobile me in case i don't have wi fi access. However Apple does not explain to us why so that we could understand our own systems. We are left to guess and stab in the dark. I want to add items that will go over to mobile me and to my iPhone. Do i add them in to the calendar that is on the ipad and then it will automatically sync the events?
    I just edited some items that had previously been synced to mobile me. Those items are showing up synced to my iphone now so i know they went to mobile me. However i added some new items that went into the calendar "on my iPad" and those are not syncing (I wonder why apple has this odd system set up?)
    So is there something i don't know about entering events in my iPad? Why would there be a duplicate calendar kept on the iPad that does not sync to the rest?
    Please help! I can't go to my computer to reset anything for now i just have to know how to input events correctly into iPad so they will sync to mobile me and my phone. I have previously been through resetting everything with mobile me support so it all should be set up correctly.
    Also I have the new iCal that was called beta ND it syncs through CalDav or whatever that is separate from the contacts and bookmarks.
    Thanks
    iPad wifi + 3G   Other OS   Why not give a choice for iPad in that list?  

  • Status of the Job in the AL_History table

    Hi all
    I try to get the information about executed jobs using AL_History table in the repository. Based on what we have in the technical manual, these value can be predicted in the status column of this table:
    E: Error
    S: Successful.
    However when I run a job that finishes successfully, the status column for this job shows as 'D' in the AL_History table.
    When I ran a query to see whether there is any job with 'S' status in this table, I saw just a few records despite of having many successful jobs executed before.
    Could you please help me to figure it out?
    Thank you.

    Possible values for ALVW_HISTORY.STATUS or AL_HISTORY.STATUS
    D
    DR
    DRY
    S
    SR
    SRY
    E
    ER
    ERY
    D = Success
    E = Error
    R = Enable recovery checked
    S = Executing
    Y = Recover from last failed execution checked
    So, DR means Successfully executed with Enable recovery cheched.
    STATUS = u2018Du2019 and HAS_ERROR != 0 is a warning
    Error connection to database or job killed  => STATUS = u2018Su2019 & HAS_ERROR = 0.
    Edited by: Andre Caron on Mar 23, 2011 9:54 PM

Maybe you are looking for

  • How to change the JCO reference of an existing model  in CE 7.1

    Hi All I have read an article which explains the method to change the JCO reference of model but when I tried to follow the same steps in CE 7.1 i am not able to find the category "Model Settings" (on clicking model edit option) containing the proper

  • [solved] Password no longer works at tty, but does work elsewhere

    Hi, The other day I could no longer log in to a tty; "Login incorrect", but other users are fine. You're probably thinking I forgot my password, but I can confirm it is correct as I can log in as "user2", "su - jsteel", enter the password and it acce

  • Not getting looks in "Using .Mac w iPhoto 5, so trying here

    Received a couple of pictures via e-mail attachments. They are photos that came in as PDF files. I downloaded them to the desktop but cannot figure out how to get them into iPhoto. Dragging doesn't work and I don't see anyplace that would import.

  • Recents "All or Missed" not showing up in iOS 7

    Ever since updating to iOS 7, no calls, incoming, missed, outgoing, etc. none are showing up in the Recents section of the phone app. It's just a blank screen with lines. Any advice?

  • Error in VSR result for program type

    Hi Experts, We are facing the error while running the Prog. Type Progression in student file. In student file we select tab program type progression --> in program type select gradute --> click on change progression result. When we click on that we a