Difference between CHANGING and USING

explain the concept of formal and acutal parameters... when we use changing
and when we use value with simple easy examples...
thanks
Message was edited by:
        balaji velpuri

PROGRAM form_test.
DATA: a1    TYPE p DECIMALS 3,
      a2    TYPE i,
      a3    TYPE d,
      a4    TYPE spfli-carrid,
      a5(1) TYPE c.
PERFORM subr USING a1 a2 a3 a4 a5.
PERFORM subr CHANGING a1 a2 a3 a4 a5.
PERFORM subr USING a1 a2 a3
             CHANGING a4 a5.
FORM subr USING
            value(f1) TYPE p
            value(f2) TYPE i
            f3        LIKE a3
          CHANGING
            value(f4) TYPE spfli-carrid
            f5.
ENDFORM.
This example defines a subroutine subr with a parameter interface consisting of five formal parameters, f1 to f5. The subroutine is called internally three times. The actual parameters are the data objects a1 to a5. The three subroutine calls are all equally valid. There are further PERFORM statements that are also equally valid, so long as the sequence of the actual parameters remains unchanged. In each call, a1 is passed to f1, a2 to f2, and so on. When the subroutine ends, a3, a4, and a5 receive the values of f3, f4, and f5 respectively. The third of the subroutine calls documents in the program what the parameter interface of the subroutine shows, namely that only a4 and a5 are changed. In the case of reference parameter f3, it depends on the programming of the subroutine whether a3 is changed all the same.
REPORT demo_mod_tech_describe.
DATA:
  date1      TYPE d,             date2      TYPE t,
  string1(6) TYPE c,             string2(8) TYPE c,
  number1    TYPE p DECIMALS 2,  number2    TYPE p DECIMALS 0,
  count1     TYPE i,             count2     TYPE i.
PERFORM typetest USING date1 string1 number1 count1.
SKIP.
PERFORM typetest USING date2 string2 number2 count2.
FORM typetest USING now
                    txt TYPE c
                    value(num) TYPE p
                    int TYPE i.
  DATA: t(1) TYPE c.
  DESCRIBE FIELD now TYPE t.
  WRITE: / 'Type of NOW is', t.
  DESCRIBE FIELD txt LENGTH t IN CHARACTER MODE.
  WRITE: / 'Length of TXT is', t.
  DESCRIBE FIELD num DECIMALS t.
  WRITE: / 'Decimals of NUM are', t.
  DESCRIBE FIELD int TYPE t.
  WRITE: / 'Type of INT is', t.
ENDFORM.
This produces the following output:
Type of NOW is D
Length of TXT is 6
Decimals of NUM are 2
Type of INT is I
Type of NOW is T
Length of TXT is 8
Decimals of NUM are 0
Type of INT is I
Regards,
Pavan

Similar Messages

  • Correlation in bpm - Difference between activating and using correlation

    Hi
       I would like to know the difference between between activating a correaltion and using a correlation in a step.

    Correlation is used when you have multiple recieve steps in the BPM to differentiate each file.
    Consider your recive step is executed and the BPM is active waiting for the other file to comne in.
    Before the next file comes in , if another BPM is activated becuase your recived recive1 message. Now, when the next message comes in , how does XI know which BPM instance is to be used.
    Correlation is used in these cases. to corelate the messages.,
    some people name their Correlation as correlation in IP. So it means using the correlation 'correlation'.
    its like me creating a message interface by the name 'messageinterface' so finally i am using the message interface messageinterface !!!
    Check this weblog ..
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    to understand it refer -
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    Also Ref checklist on when it is needed -
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/94364296f1b26be10000000a155106/content.htm
    Thanks !!

  • Difference between Available and Used in Info for MacIntosh HD and Space Free and Space Utilised under Activity Monitor, Disk Usage?

    I have a MacBook Air 2010, upgraded to OSX Version 10.8.4.  When I click the Macintosh HD and then look under Info, it says I have 120.47GB capacity, Available 60.97GB, Used 59.5GB.  However when I look under Activity Monitor, Disk Usage it says Space Utilised 92.18GB, Space free: 28.29GB.  Questions:
    Why the difference?
    Which is more important for computer speed?
    How to I reduce "Space Utlised" to closer to "Used"?  (I've already moved 25GB of the more bulky, less immediate data to external storage from the computer, including emptying IPhoto Trash and the main Trash.  The Space Utilised dropped only from 95GB to 92GB--while the Used space dropped from 85GB to 60GB.)

    Iheartapple1970
    Just to let you I tried the reindexing before the Mendes advice and it had no effect.  Of course, I may have done it wrong. It was the HD icon from the desktop which I dragged into the Privacy window of Spotlight (and then did the +, OK, - and close Spotlight).  Should I have dragged in something else?  Or opened up the HD and dragged in all the contents?
    Also, there is a small section in my HD which is for my wife's account which has a separate user name and password, although it has no data in it and I set it up while under my administrator account original, so my MacAir may think I still "own" it; in any case, I did not get any sort of error message saying I did not have ownership of the entire HD.

  • Whats the functional difference between dbconole and using the Grid control.

    I know this may seem like a strange question, but I was wondering if I only have one instance on my server, would benefit would i gain if I installed and configured the grid control
    over the dbconsole that comes with the 11gr2?
    I know the Grid control can discover many databases, but what else can it do that the dbconsole cannot?
    thanks!

    Hi,
    Indeed good question.
    It depends on installation type you selected. But are responsible for user administration in terms of creating, deleting, updating and role assignment tasks to users and groups.
    --CUA is meant for ABAP Installation. CUA is responsible for entire landscape user administration works with RFC connection talking to all ABAP systems
    --UME is meant for Java installations, plus UME is responsible for handling communication between ABAP users and java users.
    UME
    For more details see below links all advantages and disadvantages of both systems and comparisons deliberately.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/3e3842b23d690de10000000a155106/frameset.htm
    Thanks,
    Amit Lal
    P.S Please don't forget to reward pts.

  • Regarding changing and using

    Hello experts:
        First thank you in advance for all your replies.
        would you please explain the difference of changing and using preferably by an example?
        couldn't thank you more.
    Best regards.
    Frank

    Hi,
    USING and CHANGING in PERFORMS means like this.
    USING- Call by value
    CHANGING- Call by reference
    Check the example below.
    PERFORM conv_atinnnam_no USING l_refbatch CHANGING w_refbatch.
    FORM conv_atinnnam_no USING    p_name
                          CHANGING p_no.
      CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
           EXPORTING
                input  = p_w_name
           IMPORTING
                output = p_w_no.
    ENDFORM.                    " conv_atinnnam_no
    The parameters passing under USING will not change if the corrosponding parameter in the FORM changes unless it is global variable. But in case of parameter under changing what ever changes we are making inside FORM will be reflected to Original variables.
    In case of global variables USING and CHANGING works in
    the same way.
    Thanks,
    Vinod,

  • What is the difference between task and change request?

    Hi all
    What is the difference between task and change request?
    thanks all

    Dear Ispit,
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/19/3f5bf8a4b011d285090000e8a57770/content.htm">Request Types and Task Types</a>
    <a href="http://help.sap.com/saphelp_sm32/helpdata/en/dd/cc86a571464559a2685a404397065b/content.htm">Change Transactions in Change Request Management</a>
    For more information about the SAP Change and Transport System (CTS), visit the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/57/38ddff4eb711d182bf0000e829fbfe/frameset.htm
    Transport Request is generated in following scenarios:
    1. Customizing Request - When doing or changing some customization.
    2. WorkBench Request - When configuration is cross-client. Eg Generating new Table, making changes in access sequence, Abap development, etc.
    Transport request is not generated for Master Data. For eg: Customer Master, Material Master, price master, etc.
    Benefit of Transport Request:
    SAP Landscape normally has 3- Tier system:
    Development Server - Where customization takes place. Transport request is generated at this level & then first transported to Quality server for testing whether it meets the requirement or not. Once the requirement is met in Quality server then Request is transported from Development Server to Production Server (Actual / Live System)
    Quality Server - Mainly useful for testing.
    Production Server Actual / Live server, where the real transactions are created & posted.
    Procedure to Release & Transport Request:
    1. In development server, go to T.Code: SE10 & select the check box Modifiable & enter
    2. In the next screen, you will see list of transport request created.
    Note: Transport request consist of main request along with sub request. These sub request hold the object to be transported.
    3. Expand the main request & you will be able to view the sub requests attached to main request.
    4. First release the sub requests.
    Note: To release the request, select the request ni & click on release request individually (Do not select release all request)
    5. Next release main request.
    6. Once the request is released sucessfully, imform the basis person to import the request to QA server.
    or
    If the authority is with you, through T.Code: STMS, select development server --> select request no & release to QA server. Here when it pops up client no, user id & password, maintain it of QA server & release the request to QA server.
    Reward points if this is helpful.
    Regards,
    Naveen.

  • Difference between Change request and Service request

    HI All,
    Can any body tell me the actual difference between Change request and Service Request. Does it have any difference ? Or they are same.

    Are you referring to the project Specific Terms ??? If yes, then following are the differences.
    Change Request - Suppose user is using a Sales Report which displays Revenue by Customer. Now the user wants to see the same by Product as well which is not available in the current report. So the user raises a Change request and the development team works on it to include the same and make it avaialable for the user.
    Service Request - These kind of requests are more likely raised when the user needs access to some system (raise service request to Security team), wants to move a transport to the Production box (raise Service request to Basis Team)..etc.

  • Difference between "change auth data " and "expert mode" in pfcg

    Gurus ,
    i need to know , what is the difference between
    "change  authorization data "
    and
    "expert mode for profile generation" in PFCG .
    and what is the significance of the three options that we get when we choose expert mode ?

    Hi Susin,
    To change the authorization data for the transactions assigned to the role, choose Change Authorization Data or Expert Mode for Profile Generation.
    If you are generating the profile for the first time, there is no difference between the two modes.
    When you change a role, you must regenerate the authorization profile. In this case, the status of the profile generation is displayed red or yellow at the top of the Authorizations tab page.
    If the status display is red, you must perform an authorization data comparison, since the menu was changed since the last profile generation or no authorization data exists.
    If the display is yellow, the authorization data for the role was changed and saved after the last generation. The generated profile is no longer current. You need to regenerate it.
    The significance of the three options that we get when we choose expert mode is as follows:
    Choose one of the options to maintain the authorization values (in normal mode, the correct option is automatically set):
    1> Delete and recreate profile and authorizations
    All authorizations are recreated. Values which had previously been maintained, changed or entered manually are lost. Only the maintained values for organizational levels remain.
    2> Edit old status
    The last saved authorization data for the role is displayed. This is not useful, if transactions in the role menu have been changed.
    3> Read old status and compare with new data
    If you change transactions in the role menu, this option is the preconfigured. The profile generator compares the existing authorization data with the authorization default values for the menu transactions. If new authorizations are added during this process, they receive the status New. Authorizations that already existed receive the status Old.
    Note the following during the comparison:
    Values for organizational levels that are no longer required are deleted, all others are retained. If new organizational levels are added, you need to maintain them.
    The standard authorization for the object S_TCODE is always automatically filled with the current transactions from the role menu. It cannot be copied or manually changed, only deactivated.
    Thanks,
    Saby..

  • Difference between PDS and PPM and which one should be used for SNP /ppds?

    Hi Gurus,
                 Just wanted to know what are the difference between PDS and PPM ?
    1. For what industrial products we use PDS and PPM in SNP and PPDS?
    2. which one can be refered to clients?
    Please let me know it will be really great if anyone let me know the answers
    Thanks & Regards,
    Raj

    Hi Rajkumar,
    I have given below the detailed comparative account of PDS Vs PPM. Please copy and put it in an excel sheet in different columns and then read which is easy to understand.
    PDS
    1. Production Data Structure (PDS) in APO 3.1 & Run Time Object (RTO) in 4.0 and above versions
    2. Master Data Object
    3. Useful for scenarios where the compoenent has got different validity periods
    4. Used as Master data Basis for Planning in SAP-APO
    5. Contains active Master data from iPPE (Integrated Product and Process Engineering) generated from a production version
    6. PPDS PDS & SNP PDS can be used as master data for planning
    7. Change Management, variant configuration & Phantom assemplies are supported in PDS
    8. Sub-contracting in SNP is fully integrated with R/3 is supported in PDS
    9. Direct transfer of SNP PDS from R/3 is possible
    10.Rapid Planning Matrix can be generated
    11. Not possible to maintain PDS directly in APO and can be used only in combination with R/3
    12. The transfer of data changes is simpler
    13. Not possible to create alternate SNP-PDS in std system for different mode combinations
    14. PDS can be automatically generated from two sources ie R/3 and iPPE
    PPM:-
    1. Production Process Model
    2. Master Data Object
    3. Cannot be used for scenarios where the component has got different validity period
    4. Used as Master data Basis for Planning in SAP-APO
    5. Contains active Master data generated from the combination of routing (BoM & receipe) and production versions
    6. PPDS PPM & SNP PPM's can be used as master data for planning
    7. Not supported by PPM
    8. Not supported by PPM
    9. Not possible here. SNP PPMs will be generated via PPDS PPMs
    10. Not possible
    11. PPMs can be directly created in APO and can be modified without R/3 also.
    12. Little Complex when compared to PDS
    13. Alternate SNP-PPMs can be easily created
    14. PPM can be generated automatically generated only from R/3
    PDS is used in industries wherein there are multiple components or assemblies having diffeent production versions whose validity periods are different.  PPM is being used typically in process industries, chemical industries.  PPM is very simple in its usage and very flexible in operations in terms of modifications at APO level and can be referred to client depending on the business requirement
    Regards
    R. Senthil Mareeswaran.

  • What is difference between modify and update i am using

    hi
    what is difference between mofify and update
    my requiremen is to have three condition checkec while mofifying or updating from a internal table
    the three fields are
    cus no
    status
    date these all are primary key in the database table
    so which sould i use modify or update
    there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record
    pls suggest whihc to use and how to implement the check on teh threee primary key
    like if modify ztable from table it_test
    now where condition ? can be used or not with modify? and if yes how
    if not should i use update will update create a new entry if no entry is there and please give syntex
    regards
    Arora

    Hi Nishant Arora,
    Modify: It works in performing two actions.
    They are: Insert + Update.
    For Example If a record that is exited in database, so you are modifying that record, it updates that particular record.
    Similarly, If the is not existed in the database, you are modifying it, it inserts a new record.
    Update: Update means just it updates the status, I mean it only updates the record. It doesn't inserts any new record if that particular record is not present in the database.
    These are the cases you need to write these statements.
    Syntaxes: :
    Go through this links please.,
    http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm
    Reward points if useful
    Cheers,
    Swamy Kunche
    Edited by: Swamy Kunche on Jun 11, 2008 2:41 PM

  • Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? Difference between Enterprise and SE?

    We’re seeing the following issue: sql - Can Oracle be forced to use the spatial index for sdo_filter in combination with an or clause? - Stack Overflow (posted by a colleague of mine) and are curious to know if this behaviour is due to a difference between standard and enterprise, or could we doing something else wrong in our DB config.?
    We have also reproduced the issue on the following stacks:
    Oracle SE One 11.2.0.3 (with Spatial enabled)
    Redhat Linux 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 20:59:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    11.2.0.3.0 Standard Edition and 11.2.0.4.0 Standard Edition (both with Spatial enabled)
    Microsoft Windows Server 2003R2 Standard x64 Edition
    However, the SQL works fine if we try it on Oracle 11.2.0.3.0 *Enterprise* Edition.
    Any help or advice would be much appreciated.
    Kindest Regards,
    Kevin

    In my experience sdo_filter ALWAYS uses the spatial index, so that's not the problem. Since you did not provide the explain plans, we can't say for sure but I think yhu is right: Standard Edition can't use the bitmap operations, and thus it'll take longer to combine the results of the two queries (because the optimizer will surely split this OR up in two parts, then combine them).
    BTW: when asking questions about queries here, it would be nice if you posted the queries here as well, so that we do not have to check another website in order to see what you are doing. Plus it will probably get you more answers, because not everyone can be bothered to click on that link. It would also have been nice if you had posted your own answer on the other post here as well, because my recommendation would have been to use union all - but since you already found that out for yourself my recommendation would have been a little late.

  • 1)Now I use Lightrom 5.7 how to upgrade to 6 or CC? 2) What is the difference between 6 and CC vercion? 3) When I used lightromm 3, I could see inEXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is ve

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    2) What is the difference between 6 and CC version?
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?

    1)Now I use Lightrom 5.7 how to upgrade to 6 or CC?
    Purchase the standalone upgrade from here: Products
    Download CC version from here: Explore Adobe desktop apps | Adobe Creative Cloud
    2) What is the difference between 6 and CC version?
    See this comparison chart: Compare Lightroom versions | Adobe Photoshop Lightroom CC
    3) When I used lightromm 3, I could see in EXIF the distance in meters till the object I took, in the later virsions that function disappeared, it is very sad  I am stiil waiting and hope that it would be possibble in the new  versions. Or this indication may  possible by setting?
    Rob Cole's ExifMeta plugin displays the Subject Distance field (and much more).  Unfortunately, his Web site appears to be down again.  He used to be very active here, but he hasn't posted in several months.

  • What is the use of AET? What are the differences between AET and EEWB?

    Hi,
    I would like to know about AET? What is the use of AET? What are the differences between AET and EEWB? Please help me out?
    Thanks,
    Satish

    Hi
    You can refer the following links for your question.
    Difference between AET and EEWB
    What is the use of AET? What are the differences between AET and EEWB?
    Difference between EEWB - UI Configuration Tool - AET
    http://senthilsapcrm.wordpress.com/2010/02/04/adding-custom-fields-in-sap-crm-7-0-using-aet/
    What is the main difference between eewb and aet tool ?
    Hope it is useful.
    Thanks and regards
    Preeti Viswanath

  • Difference between Customazation and Change request

    Hi All,
    Can anyone please describe the difference between Customazation and Change request?
    Please provide with 2-3 examples with scenarios.
    Edited by: 994943 on 20-Mar-2013 19:14

    Hi All,
    Can anyone please describe the difference between Customazation and Change request?
    Please provide with 2-3 examples with scenarios.
    Edited by: 994943 on 20-Mar-2013 19:14

  • Difference between GUI_UPLOAD and WS_UPLOAD

    Hi,
    Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??
    Thanks,
    Satish

    I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
      data: filename type string.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_upload
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf
             exceptions
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  no_authority            = 6
                  unknown_error           = 7
                  bad_data_format         = 8
                  unknown_dp_error        = 12
                  access_denied           = 13
                  others                  = 17.
    Regards,
    Rich Heilman

Maybe you are looking for