Perfor using and Changing Concept

Hello Guys,
           Can anybody describe in detail about PERFORM USING and CHANGING concepts. because i am using multiple times the perform statememnt for a same fuctionality so i want to use the single PERFORM statement for multiple number of times.
Moderator Message: Basic question please read the F1 documentation.
Edited by: Suhas Saha on Oct 10, 2011 6:55 PM

place your cursor over PERFORM and hit F1.
Or search the forum. I suspect anyone will take his time to write an essays according to this here.
technically there is no difference as far as ai know of, thos you shouldnt change data that you got via USING.

Similar Messages

  • TS3988 iCloud will not accept any passwords after upgrading OS. 2 days of trying every password I have ever used, AND changing Apple ID and iTunes ID, still nothing. Can't backup on iCloud anymore.

    How can I use iCloud again after upgrading OS to Mountain Lion?  2 days of trying every password I have ever used, AND changing Apple ID and iTunes ID, still nothing. Can't backup on iCloud anymore.

    Apple ID's can be used for anything, a single ID can be used for all your accounts (ie iCloud, iTunes, MAS, Apple community etc), ideally this would be the way forward. So far as iTunes goes you need to continue to use the same ID as you have always used or you will lose access to your previous purchases and your iTunes match subscription.
    If you are using a second ID for iCloud, you can continue to do so or use the ID you use for iTunes, but if you choose the later you will need to move all your calendar, contact etc data to the account using the ID you use for iTunes.
    When (if) you change which account you use you would delete the account on an iOS device and log back in with the correct details, on a mac you would sign out in the iCloud system preference pane.

  • Can Firefox guess the input language being used and change spelling dictionaries automatically?

    I have three input languages and their dictionaries enabled in Firefox. However, when I start typing in Spanish, the whole text will be underlined as having spelling mistakes because if the dictionary is set to English. I am constantly writing in either English, Spanish, and/or French, and find it annoying to have to change the dictionary manually. Is there a way that Firefox can detect the input language being used and change the dictionary automatically?

    Try the [https://addons.mozilla.org/en-US/firefox/addon/3414/ Dictionary Switcher] add-on.

  • Using and changing

    Hi sir,
    what is the diff b/w using and changing keywords for passing the perameters to subroutine and form

    Hi ,
       By default if you pass a varaible as Using , you cannot change the value of it in the subroutine  but in case of chianging it can be.
    Now you can pass the value of using paramater by pass by value , it allows you to change the value in the subroutine but once you are out of the subroutine the changed value is lost and the original value is retained.
    So in case you want to change value of a parameter you are passing to a subroutine use changing and if you just want to use its value then use using.
    Here is a code which might help you understand it better
    REPORT .
    data  : one type  i ,
            two type i.
            one = 1.
            two = 1.
    perform chnage_value using one
                         changing two.
    write /: one , two.
    *&      Form  chnage_value
          text
         -->P_ONE  text
         <--P_TWO  text
    form chnage_value using value(p_one)
                      changing p_two.
    p_one = p_one + 1.
    p_two = p_two + 1.
    endform.                    " chnage_value
    regards
    Arun

  • Diff Using and changing in Perform

    Hi All,
           What is the difference betwen USING and CHANGING in Perform.
    Thanks in advance
                                                  Ranjith

    hi,
    Using helps to use the parameter value passed.
    Changing helps to change the parameter value and then use the same in main program with changed value.
    Sample:
    data : val1 type i value 1,
           val2 type i value 0.
    perform calc using val1 changing val2.
    Write / : 'Changing :' , val2.
    write / : 'Using :' , val1.
    *&      Form  calc
          text
         -->P_VAL1  text
         <--P_VAL2  text
    form calc  using    p_val1
               changing p_val2.
    p_val2 = p_val1 + 100.
    *p_val1 = p_val1 + 100.
    *Since p_val1 is passed as using,the above is not *permitted
    endform.                    " calc
    This link will clear all your Doubts reagrding Perform Statement.
    Have a look:
    http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm
    rgds
    anver

  • Difference between Using and Changing

    hi,
    while defining subroutines, what is the exact difference between Using and Changing?
    when we pass by reference we can use both and while passing using value we can use both + Value (VAR).
    Then what is the exact difference between two?
    Also, what is formal parameter?q
    Moderator message - Please do not ask or answer basic questions - thread locked
    Edited by: Rob Burbank on Dec 14, 2009 3:31 PM

    Hi C`hinmay,
    When a subroutine is called with "USING" you can make use of the value inside your subroutine but you cannot change the value. With CHANGING you can CHANGE the value too. Formal parameter is the PARAMETER NAME used while defining the interface of a Subroutine.
    Regards,
    Ravi.

  • Subroutines using and changing

    Hi All,
    I am using a subroutines like this.
    data num1 type i.
    data num2 type i.
    data res type i.
    num1 = 10.
    num2 = 20.
    perform add.
    form add.
    res = num1 + num2.
    write : res.
    endform.
    This returns the result.
    But what are the changes if I use changing and using parameters and how do i use it in the current context.
    Regards.
    Sagar

    hi,
    in ur code ur r passing static local data to subroutine.
    data num2 type i.
    data res type i.
    num1 = 10.
    num2 = 20.
    perform add.
    form add.
    res = num1 + num2.
    write : res.
    endform.
    but if u use using and changing formal parameters ,then they can behave as dynamic local objects to the subroutine:
    the code will look like:
    perform add using num1 num2 changing res.
    form add using x type i
                          y type i
                 changing z type i.

  • Diffrence b/w USING AND CHANGING

    can any one tell me diffrence between USING and CHNAGING.
    whether USING a (or) CHANGING a are equevalent?

    hi prasanth,
    see there r 3 types of psaaing rt
    1.pass by value
    2. pass by reference
    3. pass by value and return
    1.using value(a)----
    this is pass by value
    2.using (a) or changeing (a) -
    this is pass by reference
    3. changing value(a) -
    this is pass by value and return.
    pass by value and return -
    this is pass by reference only if u dont exit from the subrotune expicitly. means if inside the form, there is exit statement or any other statement which forcibly returns from the control from the form with out reaching the end of the form, then it acts as pass by value else it acts as pass by refernce.

  • Using and chaning in perform statement

    Hi,
    can anyone explain the purpose of using and changing in perform statemnt
    the using and changing fields in the corresponding form statemnts differs  from the one in perform statment.
    Can anyone explain me with a simple statement
    Thanks
    Kajol

    Hi kajol,
    Check the code below:
    Imagine you need to change the date of v_datum and send the result to  v_datum_ok.
    data: v_datum(10) type c value '10/02/2007',
            v_datum_ok type dats.
    PERFORM F_TEST USING v_datum CHANGING v_datumok.
    Below is the form code:
    FORM F_TEST USING P_DATUM CHANGING P_DATUM_OK.
    data: v_day(2) type c,
            v_month(2) type c,
            v_year(4) type c.
    split P_datum at '/' into v_day v_month v_year.
    concatenate v_year v_month v_day into p_datum_ok.
    ENDFORM. "F_TEST

  • Using n Changing

    Can any body tell me why do we use 'using'  and 'changing'.
    what is the use of them.
    for Eg in the code below :
    FORM help_input_file  USING    p_phys_file   TYPE c
                                   p_locl_file   TYPE c
                          CHANGING p_source_path TYPE any.

    Hi,
    ... USING [VALUE(p1)|p1] ... [VALUE(pn)|pn]
    Effect
    Defines formal parameters p1,...pn, which are replaced by actual parameters when the subroutine is called.
    You can assign a type to the formal parameters p1, ..., pn (see specifying types). You can also specify the method with which they are passed.
    Note
    Passing methods:
    USING ... p ...
    The parameters are passed by reference. The field passed can be changed within the subroutine. The changes are kept beyond the subroutine.
    USING ... VALUE(p) ...
    The VALUE(...) addition passes the parameter by copying the field contents to a corresponding local field. VALUE parameters behave in the same way as local fields.
    ... CHANGING [VALUE(p1) |(p1)] ... [VALUE(pn) |(pn)]
    Effect
    The parameters after CHANGING can accept the same specifications as those after USING.
    To link the VALUE specification with the change of a parameter value, you can use the addition CHANGING ... . Then, all the formal parameters specified by VALUE(...) are transported back to the actual parameters at the end of the subroutine (i.e. after ENDFORM). If the subroutine is terminated by a dialog message, none of the parameters referenced by CHANGING VALUE ... changes.
    Otherwise, the effect of USING and CHANGING is identical.
    Reward if useful.
    Regards,
    U. Uma

  • Can we use overload and overwrite concept in OO-abap

    hi
    can we use overload and overwrite concept in OO-abap

    Hi
    CLASS zl_lcl_vehicle DEFINITION.
    PUBLIC SECTION.
    Signature of method
    METHODS: set_make
    IMPORTING value(im_make) TYPE string " Pass by value
    im_model TYPE string," Pass by reference
    ENDCLASS. "zl_lcl_vehicle DEFINITION
    CLASS zl_lcl_vehicle IMPLEMENTATION.
    Implementation of method.
    METHOD set_make.
    IF im_make IS NOT INITIAL
    AND im_model IS NOT INITIAL.
    gv_make = im_make.
    gv_model = im_model.
    ENDIF.
    ENDMETHOD. "set_make
    ENDCLASS. "zl_lcl_vehicle
    Overloading means changing signature as well as implementation of a method.
    Overriding is changing only implementation of method with signature unchanged.
    From ABAP perspective, only the CONSTRUCTOR method can be overloaded in a subclass i.e both the signature and implementation can be adapted in subclass.
    Any other method can't be overloaded. It can only be redefined/overridden i.e implementation changed with signature unchanged.
    In ABAP  there is something called a redefinition.
    When you inherit a class from a super class, you can redifne a method. You cannot chnage the signature( Interface) of the method. It will remain the same as that of the super class.You must redefine a method in the same visibility section in which it appears in the superclass.
    Eg.
    CLASS C_SUPER_CLASS DEFINITION .
    PUBLIC SECTION.
    METHODS: DRIVE ,
    STOP.
    PROTECTED SECTION.
    DATA SPEED TYPE I.
    ENDCLASS.
    CLASS C_SUPER_CLASS IMPLEMENTATION.
    METHOD DRIVE.
    SPEED = 0.
    WRITE: / 'Bike speed =', SPEED.
    ENDMETHOD.
    ENDCLASS.
    CLASS C_SUB_CLASS DEFINITION INHERITING FROM C_SUPER_CLASS.
    PUBLIC SECTION.
    METHODS DRIVE REDEFINITION.
    ENDCLASS
    CLASS C_SUB_CLASS IMPLEMENTATION.
    METHOD DRIVE.
    SPEED = SPEED + 10.
    WRITE: / 'Bicycle speed =', SPEED.
    ENDMETHOD.
    ENDCLASS.
    Regards
    Vasu

  • What is the use of change pointer concept in ale?

    what is the use of change pointer concept in ale?
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 5:10 PM

    ALE Architecture:
    It consists of an Outbound process, an Inbound process, and an Exception – Handling process.
    Outbound Process:
    ALE Outbound Process in SAP sends data to one or more SAP Systems. It involves four steps.
    1. Identify the need of IDoc: This step starts upon creating a application document, can relate to a change to a master data object.
    2. Generate the Master IDoc: The document or master data to be sent is read from the database and formatted into an IDoc format. This IDoc is called as a Master IDoc.
    3. Generate the Communication IDoc: The ALE Service layer generates a separate IDoc from the Master IDoc for each recipient who is interested in the data. Separate IDocs are generated because each recipient might demand a different version or a subset of the Master IDoc. These recipient-specific IDocs are called Communication IDocs and are stored in the database.
    4. Deliver the Communication IDoc: The IDoc is delivered to the recipients using an asynchronous communication method. This allows the sending system to continue its processing without having to wait for the destination system to receiver or process the IDoc.
    Inbound Process:
    The inbound process receives an IDoc and creates a document in the system.
    1. Store the IDoc in the database: The IDoc is received from the sending system and stored in the database. Then the IDoc goes through a basic integrity check and syntax check.
    2. Invoke the Posting Module: The control information in the IDoc and configuration tables are read to determine the posting program. The IDoc is then transferred to its posting program.
    3. Create the Document: The posting program reads the IDoc data and then creates a document in the system. The results are logged in the IDoc.
    Over view of IDocs:
    IDoc is a container that is used to exchange data between any two processes. The document represented in an IDoc is independent of the complex structure SAP uses to store application data. This type of flexibility enables SAP to rearrange its internal structure without affecting the existing interface.
    IDoc interface represents an IDoc Type or IDoc data. IDoc Type represents IDoc’s definition and IDoc Data is an instance of the IDoc Type.
    IDoc Types:
    IDoc type structure can consist of several segments, and each segment can consist of several data fields. The IDoc structure defines the syntax of the data by specifying a list of permitted segments and arrangement of the segments. Segments define a set of fields and their format.
    An IDoc is an instance of an IDoc Type and consists of three types of records.
    i. One Control record: each IDoc has only one control record. The control record contains all the control information about an IDoc, including the IDoc number, the sender and recipient information, and information such as the message type it represents and IDoc type. The control record structure is same for all IDocs.
    ii. One or Many Data records: An IDoc can have multiple data records, as defined by the IDoc structure. Segments translate into data records, which store application data, such as purchase order header information and purchase order detail lines.
    iii. One or Many Status records: An IDoc can have multiple status records. Status record helps to determine whether an IDoc has any error.
    Message in IDoc Type:
    A Message represents a specific type of document transmitted between two partners.
    Outbound Process in IDocs:
    Outbound process used the following components to generate an IDoc. A customer model, and IDoc structure, selection programs, filter objects, conversion rules, a port definition, an RFC destination, a partner profile, service programs, and configuration tables.
    The Customer Model:
    A customer model is used to model a distribution scenario. In a customer model, you identify the systems involved in a distribution scenario and the message exchanged between the systems.
    Message control:
    Message control is a cross application technology used in pricing, account determination, material determination, and output determination. The output determination technique of Message control triggers the ALE for a business document. Message control separates the logic of generating IDocs from the application logic.
    Change Pointers:
    The change pointers technique is based on the change document technique, which tracks changes made to key documents in SAP, such as the material master, customer master and sales order.
    Changes made to a document are recorded in the change document header table CDHDR, and additional change pointers are written in the BDCP table for the changes relevant to ALE.
    IDoc Structure:
    A message is defined for data that is exchanged between two systems. The message type is based on one or more IDoc structures.
    Selection Program:
    Is typically implemented as function modules, are designed to extract application data and create a master IDoc. A selection program exists for each message type. A selection program’s design depends on the triggering mechanism used in the process.
    Filter Objects;
    Filter Objects remove unwanted data for each recipient of the data basing on the recipients requirement.
    Port Definition:
    A port is used in an outbound process to define the medium in which documents are transferred to the destination system. ALE used a Transactional RFC port, which transfers data in memory buffers.
    RFC Destination:
    The RFC destination is a logical name used to define the characteristics of a communication link to a remote system on which a function needs to be executed.
    Partner Profile:
    A partner profile specifies the components used in an outbound process(logical name of the remote SAP system, IDoc Type, message type, TRFC port), an IDoc’s packet size, the mode in which the process sends an IDoc (batch versus immediate), and the person to be notified in case of error.
    Service Programs and Configuration Tables:
    The outbound process, being asynchronous, is essentially a sequence of several processes that work together. SAP provides service programs and configuration tables to link these programs and provide customizing options for an outbound process.
    Creation of IDoc:
    Basic Type:
    Basic IDoc type defines the structure and format of the business document that is to be exchanged between two systems.
    Segments:
    Segments form the basic building blocks of an IDoc type and are used to store the actual datta. A segment type is the name of a segment and is independent of the SAP elease. A segment definition is the release-specific name of a segment.
    Steps in creating Segments:
    T.Code WE31
    Enter the name for your segment type and click on the create icon.
    Type the Short text.
    Enter the variable names and data elements.
    Save and Go back.
    Go to Edit -> Set Release.
    Repeat the steps to create more segments.
    IDOC TYPE:
    Business data is exchanged with an external system using the IDoc Interface.
    IDoc types (Special Structures) An IDoc type is defined through its permitted segments. Segments can be dependent on each other (parent and child segments). The IDoc interface can check for each IDoc whether thhe segments contained are compatible with thhe definitiion of its type. This systax check is activated or deactivated in the Partner Profiles.
    Steps in creating IDoc Type:
    T.Code WE30 to create IDoc Type.
    Enter the Object Name, Select Basic Type and click Create Icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDoc name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press enter
    The system transfers the name of the segment type to the IDoc editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation.
    Save it and go back.
    Go to Edit -> Set Release.
    Message Type:
    Steps in Creating Message Type:
    T.Code WE81.
    change the details from Display mode to Change mode
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    Assign Message Type to IDoc Type:
    T.Code WE82
    Change the details from Display mode to change mode.
    After selection, the system will give this message "The table is cross client (See help for further info)". Press enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 5:10 PM

  • How to resize and change the resolution of a batch of photos using Automator

    I searched for a long time tonight looking for the answer to this (seemingly) simple question:
    How do I use Automator to scale and change the resolution of a batch of images?
    It was not so simple.
    Links to this question:
    https://discussions.apple.com/message/12341246#12341246
    https://discussions.apple.com/message/12342026#12342026
    https://discussions.apple.com/message/5785047#5785047
    https://discussions.apple.com/message/1173358#1173358
    https://discussions.apple.com/message/5641853#5641853
    https://discussions.apple.com/message/3207516#3207516
    These are just the links on this site - I found them all over the place at MacRumors, Apple Tips, Mac Help, etc.
    You can actually manage this in Automator.
    Here are the steps that worked for me:
    Create an Automator APPLICATION - not a workflow (this is due to the way that I'm batch converting images - workflows might be ok for some cases)
    Step 1 is Copy Finder Items
    My flow inserts an SD card, opens the DCIM folder that my Nikon creates, selecting the images that I click (command + click to multi-select) and once I have the photos highlighted, I drag them onto this Automator App we're creating.
    <==  You'll have this guy soon!
    As a result - I want to copy the originals to my computer as step 1.  I don't touch the originals on the SD card (and cards are cheap so I tend to leave them on the cards as well)
    Step 2 is the Scale Images action - you can search the library for this and find it quickly.  For my part, I found that scaling images to about 38.8 percent of their size on the SD card is good for uploading to a blog.  Change this value to whatever you wish.
    Step 3 is Run Shell Script - and here is where we marry the brilliance found at this link with our script.If you have a hard time reading the text in the image, it is as follows:
    #bin/bash
    for f in "$@"
    do
         /usr/bin/sips -s dpiHeight 72.0 -s dpiWidth 72.0 $f
    done
    Save this application (I named mine "Format Photos")
    Place the application inside the target folder where you want the images to end up.  I do this because when I have the SD card window open, I can also open my "Photos" window and see my App sitting there.  I select my images as I mentioned and drag them on top of this app.  The app copies the originals and the conversions into the folder.
    NOTES: When you open a converted pic in Preview, you will see Resolution = 300 dpi if you go to Tools --> Adjust Size...  This reading is explained by another brilliant discussion as sips only touches the JFIF properties inside the file's MetaData.  However, if you look at the bottom of the Adjust Size... window, you'll see the image size is probably around 500 kb (give or take depending on the original).  My goal was to get the images down from the 3.0 MB I shoot at to around 500 kb.  Therefore even though the MetaData still thinks that it is 300 DPI according to Preview, it has been changed to 72 (open it in some other applications mentioned at the links and you'll find different readings - it all depends on what the application reads from the Meta).
    This does not rename the files, so you'll get DSC_1000.jpg and DSC_1000 copy.jpg in all likelihood.  If that annoys you, add a step into the Automator Application that renames the file after the "Run Shell Script" action has run, and you can have each file renamed according to some convention that you like.
    This took a heck of a lot longer than I expected - so I decided to put in the effort to share this with the community and save others the hassle. 

    PPI is pixels per inch of the image.  It is difficult to increase resolution as you are trying to add data that is not there.
    But for printing purposes what you want is dpi or dots per inch.
    The image processor either accessed from Bridge (tools/photoshp) or PS is a good way to change a batch of images.

  • I've just received an email from 'Apple' saying that my apple id was used      to sign into iCloud on an iphone 5s.  I have an iphone 4.  It's asking me to sign in to confirm my details and change my password.  How do I know if this email is genuine?

    I've just received an email from 'Apple' saying that my apple id was used to sign into iCloud on an iphone 5S.  I have an iphone 4.  It then asks that I 'click here' to confirm my details and change my password.  How do I tell if the email is genuine?

    Apple will not ask you to click a link in an email. They may tell you to log in to your account to reset your password. Go to https://appleid.apple.com and log in if you ever want to change any information in your profile (or your password). And do not click the link I just posted; instead enter it into a browser.
    You can verify the devices assigned to your account by going to https://icloud.com/find (again, don't click it), where you can see a list of devices registered to your Apple ID.
    As a general rule, you should never click a link in an email or forum post without verifying it first. You can see where it goes without clicking it in most email programs and browsers by hovering your mouse pointer over it. On an iPhone you can check where it goes by holding your finger on the link (rather than just tapping it).

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

Maybe you are looking for

  • How to move my library...

    Exactly what folder do I need to copy to replicate my existing iTunes music onto my new iMac?  No migration assisstant nor Cloud - going to copy onto an external hdd that will be connected to the new iMac via usb3.0 dock. Also, what do I need to do t

  • Computer is no longer authorized to play purchased items on your iPhone

    I am all of a sudden getting an alert "this computer is no longer authorized to play purchased items that are on the iPhone "Bob's iPhone 5". Would you like to authorize this computer...?"  No changes or deauthorization were done to Mac before this a

  • Desktop not showing when switching between vc ?

    Hi.  I open the desktop in vc1 ( using startx ) then when I go to vc2 ( using ctrl + alt + f2 command) and come back to vc1 ( ctrl+alt+f1) , the desktop is not showing. No error but just not showing (terminal) , I have to terminate it and startx agai

  • Creating Image "photography_chris.dmg" Unable to create , resource busy

    I have re-started the mac but to no avail, this appears in the console log. I haven't a clue. Thankyou. Creating Image "photography_chris.dmg" Unable to create "photography_chris. Resource busy. Have searched google but everyone is is giving complex

  • CS4 audio sync problems

    Hi all, sorry if this question is old hat - I've searched the forums and can't seem to get a clear answer (most refer to CS3 and before) so thought I'd ask anew. My preview in Premiere CS4 is fine, as is the preview in Encore CS4. The video was captu