Doubt on Using in subroutines

Hi friends,
I am using perform statement like
perfrom get_data using gi_data changing gi_output.
in the form of get_data i need to change gi_data where gi_data is a internal table but while coming out of form i need the gi_data to have the same value as i had before.
Is using is not like Call By value??
but now even if i pass through using the value is getting changed when it come out of form..
is there any ways to implement this please help me ......

Hi Gokul,
Kindly do check the thread that you have already opened for the same issue.
Please do not create multiple threads for similar issue.
Do close one thread anc check the replies that you have received in the other.
Best Regards,
Ram.

Similar Messages

  • Use of subroutine entry in form processing

    Hi,
    Can anybody pls explain the use of subroutine ENTRY and what it has got to do with output type. Im working on script and smartforms and need to know the process behind it. I hope i explained my question well.
    Rgds
    Sid

    Your configuration usually points to a formname, a program, and an start subroutine for SAPScript, at least.  SAP routinely named the start subroutine ENTRY.  Inside ENTRY, you will see that what usually happens is a reference to the structure NAST, where output controls, like copy counters, etc.,  and the document number (OBJKY) are stored and passed into the output form driver program.

  • How to find the sapscripts using certain subroutines?

    Hi all,
    I have to find out the list of sapscripts using a subroutine of a program, i.e. inside the sapscripts, there is a script "perform XXX in program YYY".
    Any quick method to find out a list of sapscripts using subroutine XXX with program YYY?
    Thanks.

    Hi,
    I don't thing there is a table or functionality.  check the documents for that program if maintained.
    Cheers,
    Sasi

  • Doubt about using automation testing in mtm and vs 2012

    Hi
    Ive a doubt in using mtm and vs 2012. I wanna test a software by automation method
    1) whether i should record the steps in visual studio and attach the recorded file to mtm and test
    or
    2) can i record the script(steps) in mtm and run the automation testing in mtm, if you say yes what are the step.
    Plz help me out for both 1 and 2 by tell the steps.
    Thank you
    Reguards
    Pavan kumar R 

    Hi Pavan,
    It is based on the detail requirement to choose them.
    Do Coded UI test in visual studio 2012, we could record the action and playback, link tests to test case that in MTM, we also could base on the detail requirement to modify the code.
    Do manual or automated test in MTM 2012, we also could record the action and playback, but can’t modify the code (need do it in vs), we could do automated tests in lab environment
    # System Testing Your Application Using Microsoft Test Manager
    http://msdn.microsoft.com/en-us/library/jj635157(v=vs.110).aspx
    For the automated test in MTM, you could refer to these steps below:
    Create tests
    Check in TFS
    Link test methods to test case
    Queue a build
    Create lab environment in mtm
    Do automated test
    More information, please refer to:
    # Essential Guide for Running Automated Tests from a Test Plan
    http://msdn.microsoft.com/en-us/library/ff472576(v=vs.110).aspx
    If we record the action (script/steps) in the MTM, we could
    playback the test, if we want do the automated test for that recording, we could generate the code in VS and link that test to the test case, after that we could do automated tests.
    # Generating a Coded UI Test from an Existing Action Recording
    http://msdn.microsoft.com/en-in/library/dd286652(v=vs.110).aspx
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Use of subroutines in SAPScripts

    When we are calling a subroutine from Script is it possible to retrieve an internal table from the program and use it in the script for printing data?
    for eg:PERFORM <subroutine name> IN PROGRAM <program name> using<var1>
    chnging<var2>.Can Var1 or var 2 be an internal table?

    hi Savitha,
    Var1 and Var2 are defintely tables, but does not serve the purpose of passing internal table values from print program. They are tables of structure ITCSY which has only two fields, NAME (field name) and VALUE (field value). Meaning for one field, there can be only one entry.
    Please see the code attached below:
    PERFORM get_attn IN PROGRAM zprogname USING var1 CHANGING var2.
    FORM get_attn TABLES in_tab STRUCTURE itcsy
                         out_tab STRUCTURE itcsy.
      DATA: v_name2 TYPE kna1-name2,
            v_attn TYPE string,
            v_kunnr TYPE knvk-kunnr,
            v_offset TYPE i,
            err_str TYPE string,
            w_tab   TYPE itcsy.
    * Get Customer Number
      READ TABLE in_tab INTO w_tab WITH KEY name = 'DKADR-KONTO'.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    INTO err_str .
      ENDIF.
    * Get Assistant name
      MOVE w_tab-value TO v_kunnr.
      v_offset = 10 - STRLEN( v_kunnr ).
      SHIFT v_kunnr RIGHT BY v_offset PLACES.
      OVERLAY v_kunnr WITH '0000000000'.
      SELECT SINGLE name2 FROM kna1 INTO v_name2
                          WHERE kunnr = v_kunnr.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    INTO err_str .
      ENDIF.
      CLEAR w_tab.
      READ TABLE out_tab WITH KEY name = 'ATT_NAME' INTO w_tab.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'W' NUMBER sy-msgno
                    INTO err_str .
      ENDIF.
      MOVE v_name2 TO w_tab-value.
      MODIFY out_tab INDEX sy-tabix FROM w_tab.
    ENDFORM.                    "get_attn
    Hope this helps,
    Sajan Joseph.

  • Doubt in using :Function Module : MS_CONVERT_TO_OTHER_CURRENCY

    Hi ,.
    In the Function Module :MS_CONVERT_TO_OTHER_CURRENCY.
    I have to export following parametes:
    DATE            
    FROM_CURRENCY   
    FROM_AMOUNT     
    TO_CURRENCY     
    COMPANY_CURRENCY
    RATE  (optional)    .
    Here my doubt is :what is the purpose of COMPANY_CURRENCY .What value i have to populate here , how i have to find the  company currency?
    I think we have to find this COMPANY_CURRENCY  based on the sales organization.
    Please update me regarding this COMPANY_CURRENCY .
    Thanks,
    Suresh.

    Have you tried using 'CONVERT_TO_FOREIGN_CURRENCY' instead?
    DATA: v_amount TYPE p DECIMALS 2.
    CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY'
    EXPORTING
    date = sy-datum
    foreign_currency = 'INR'
    local_amount = '1.00'
    local_currency = 'USD'
    IMPORTING
    foreign_amount = v_amount
    EXCEPTIONS
    no_rate_found = 1
    overflow = 2
    no_factors_found = 3
    no_spread_found = 4
    derived_2_times = 5
    OTHERS = 6.
    IF sy-subrc = 0.
    WRITE: / 'US dollar to Indian rupees - ', v_amount.
    ENDIF.

  • Doubt  in using html:checkbox in struts

    Hi all,
    In my jsp page i have 2 checkboxes name mandatory and active.
    <html:checkbox property="mandatory" value="true"/>
    <html:checkbox property="active" value="true"/>
    Insertion of data works fine,and now my doubt is about the edit mode.
    In edit mode,depending on th value of thethese fields wheteher 0 or 1,checkbox should be checked.how can it be done?
    In th corresponding for,the properties I declared as boolean values.Also reset method is provided .
    Anyone pls help.
    thanks

    It's rather nasty, but you could wrap all your strings in <html></html>. Even so you still have to use entities, but the
    following displays what you want:JLabel lbl = new JLabel("<html>&lt;html>&lt;/html></html>");

  • Doubt about uses of OBIEE

    I have some doubts about the possible uses of OBIEE. It happens that using OBIEE sometimes users demand report of an "analytical" type, that is aggregated analysis through OBIEE’s Answers, selecting data from dimension tables and measures from fact tables. That’s the ordinary purpose of business intelligence tools!!!
    Some other times though, users demand to perform through Answers analyses of an "operating" type, that is simple extractions of some fields belonging to dimension tables, linked between each other through joins, (hence without querying fact tables): that happens because some of the tables brought in the datawarehouse are not directly linked to any fact table. In this way users want to use Answers to visualize data even for this kind of extractions (or operating reports).
    Is this a correct use of the tool or is it just a “twisted” way of using it, always leading eventually to incorrect extractions? If that’s the case, is it possible to use instead BI Publisher, extracting the dataset through the "Sql Query" mode in a visual manner? The problem of the latter solution, in my case, relies in the fact that users are not enough skilled from the technical point of view: they would prefer to use Answers for every extraction, belonging both to the first type (aggregations) and the second one (extractions), that I just described. Can you suggest a methodology to clarify this situation?

    Hi,
    I understand your point... But I think OBIEE doesn't allow having dimension "on their own", they must be joined to a fact table somehow. This way, when you do a query in answers using fields of two dimension tables a fact table should be always involved. When dimensions are conformed, several fact tables may be used, and OBIEE uses the "best" one in terms of performance. However, there are some tricks that you can do to make sure a particular fact table is used, like using the "implicit fact column" in the presentation layer.
    So back to your point, using OBIEE for "operational" reporting as you call it is a valid option in my experience, but you have to make sure that the underlaying star schema supports the logic that your end users expect when they use just dimension fields.
    Regards,

  • Doubts about use of REPORTS_SERVERMAP with Forms11g HA

    Hi,
    I'm configuring a Linux 64bits Forms/Reports 11g HA environment, the point is that i have two nodes, each one with its Forms and Reports servers, let's say FormsA and ReportsA for the first node and FormsB and ReportsB for the seconde node.
    i want FormsA to be able to call reports from ReportsB and FormsB to be able to call reports from ReportsA.
    I've been reading about REPORT_SERVERMAP
    http://docs.oracle.com/cd/E12839_01/bi.1111/b32121/pbr_conf003.htm#autoId5
    But i have some doubts about its use:
    1. I will not use a shared cluster file system or any way of cache solution, i will only have my rdf files on each node, and i'm wondering if just by configuring this parameter i will be able to get the effect mentioned above ??
    2. The link provided says "Using RUN_REPORT_OBJECT. If the call specifies a Reports Server cluster name instead of a Reports Server name, the REPORTS_SERVERMAP environment variable must be set in the Oracle Forms Services default.env file"
    In fact i'm using RUN_REPORT_OBJECT but
    what is the Reports Server cluster name ?? and where do i find that name ??
    3. Is this configuration well defined:
    REPORTS_SERVERMAP=clusterReports:ReportsA;clusterReports:ReportsB
    4. At forms applications when using RUN_REPORT_OBJECT, can i assume that the report server name will be the cluster name specified at the REPORTS_SERVERMAP ??
    5. Which files should i modify rwservlet.properties or default.env ??
    Hope you can help me :)
    Regards
    Carlos

    Hi,
    1. I will not use a shared cluster file system or any way of cache solution, i will only have my rdf files on each node, and i'm wondering if just by configuring this parameter i will be able to get the effect mentioned above ??
    --> In such case what could go wrong is
    Suppose Run_report_object executed jobs successfully to ReportsA
    But web.show_document command for getjobid failed ( as ReportsA went down by this time)
    --> You will not get the output shown ( though job was successful)
    If shared cache was enabled, then Even if ReportsA is down, other cluster member ( say ReportsB)
    will respond back to web.show_document.
    Point 2,
    --> Under HA is it highly recommended to use web.show_document ( a servlet call) to execute reports. This is to help use all HA features at the HTTP , Webcache or load balancer level.
    However if there is migrated code or Run_report_object is must, then the recommendations as you see in the pointed document is must.
    REPORTS_SERVERMAP setting needs to be configured in rwservlet.properties file and also in default.env Forms configuration file to map the Reports Server cluster name to the Reports Server running on the mid-tier where the Load Balancer forwarded the report request.
    For example FormsA, ReportsA, cluster name say rep_cluster
    default.env file
    REPORTS_SERVERMAP=rep_cluster:ReportsA
    Where "rep_cluster" is the Reports Server cluster name and "ReportsA" is the name of the Reports Server running on the same machine as FormsA
    rwservlet.properties file
    <reports_servermap>rep_cluster:ReportsA</reports_servermap>
    At default.env this is not a valid entry
    REPORTS_SERVERMAP=clusterReports:ReportsA;clusterReports:ReportsB
    what is the Reports Server cluster name ?? and where do i find that name ??
    --> This is created via EM on the report server side.
    Would recommend to refer following documents at the myoracle support repository
         How to Setup Reports HA (High Availability - Clusters) in Reports 11g [ID 853436.1]
         REP-52251 and REP-56033 Errors When Calling Reports From Forms With RUN_REPORT_OBJECT Against a Reports Cluster in 11g. [ID 1074804.1]
    Thanks

  • Using external subroutine

    my subroutine is written in one program.
    I m using it in another program.
    i checked with the breakpoint...
    The control goes to the subroutine fetches the data in the structure but when the control returns to the main program the structure is empty.
    Now wat should i do either write the routine in the same program or have to use import & export memory which is best based on performance.

    hi
    let us also the location of the subroutine..i mean in differnt client no or in the same. If the subroutine is in the same client no..then you can use the Perform statement in the sapscript to call the extra functionality from the print program or in any location but with in the same system(client).
    In case of external subroutine, i think you need to use the client-specified statement in the print program while selecting the data.
    eg.
    select f1
              f2
              f3
              from zzkna1
              into i_tab
              cleint-specified where mandt = <client no from where you are fetching the data>
    this may work.
    regards,
    shamim.

  • DOUBT IN USING AN APPROPRIATE STRUCTURE!!

    Good Morning guys,
    I have a doubt in selecting an appropriate structure in forms builder , in order to store the results of a select statement, but i also want this structure to have the ability to retrieve some results parametrically. My basic application is written in Powerbuilder 7 and i want to transfer it in forms builder. Powerbuilder as the most of you know, has datawindows and my basic target is to find an appropriate structure which will have similar properties with datawindows, in order to use them in forms builder. I hope to be clear. So if anyone has dealt with powerbuilder and forms i hope to help me. Are there any structure except from recordgroup and datablocks i can use, and if no which one of thse 2 have i to use?
    Thanx in advance,
    Bill.

    If you need this structure to have the ability to retrieve some results parametrically,
    you can use data block based on a ref cursor, table of record, or FROM clause.
    See Forms help:
    Building and Running a Form
    - Modifying a Form
    -- Adding a Block
    --- Creating a data block from a procedure that uses a ref cursor
    --- Creating a data block from a procedure that uses a table of records
    --- Creating a data block from a FROM clause
    Regards,
    Zlatko Sirotic

  • Doubt with use of PCD Tools

    Dear Experts.
    I am changing  the texts of the the pages and Worksets used for Manager Self-Service(I am using MSS with BP 1.41). For this I am using the PCD Tools and translate the text to the Spanish.
    I have the following doubt:
    The change that i did when I want transport the package to the enviroment of production, this change also pass?
    Best Regards.
    Carmen

    Carmen,
    yes you can do that
    check these links
    http://help.sap.com/saphelp_sm32/helpdata/de/10/521640b7b6dd5fe10000000a155106/content.htm
    portal content translation transport
    Thanks
    Bala Duvvuri

  • Some doubts in using resource-ref,connection pool n Data-source

    Hi all ,
    I need little bit clarification in the following points.
    1) Does the connection pool which is created can be displayed in JNDI Tree???
    I am seeing only DataSOurce in the JNDI Tree Only.
    2)In case of Bean Managed Persistance, in ejb-jar.xml,
    I had given the following info.
    <resource-ref>
             <res-ref-name>ramukkDataSource</res-ref-name>
             <res-type>javax.sql.DataSource</res-type>
             <res-auth>Container</res-auth>
         </resource-ref>Does the <res-ref-name> refers to Datasource Name??
    In weblogic-ejb-jar.xml
    <reference-descriptor>
           <resource-description>
              <res-ref-name>ramukkDataSource</res-ref-name>
              <jndi-name>ramukkpool</jndi-name>
           </resource-description>
         </reference-descriptor>Here <jndi-name> refers to connection pool as per weblogic bible book.
    If so when i deployed my ejb into the server iam getting Datasource cant be found.
    If i had given like the following,
    In ejb-jar.xml
    <resource-ref>
              <res-ref-name>jdbc/ramuJndi</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
         </resource-ref> In weblogic-ejb-jar.xml
         <reference-descriptor>
              <resource-description>
               <res-ref-name>jdbc/ramuJndi</res-ref-name>
               <jndi-name>jdbc/ramuJndi</jndi-name>
           </resource-description>
        </reference-descriptor>Then only my ejb code is successfully deploying doing some work which is as per xpectation.
    Can any body tell why I have to give the same name for <res-ref-name> n <jndi-name>??
    I am working on this problem from last one week. Still not found the solution.
    Connection Pool Creation
    GENERAL::
    Name : ramukkpool
    url : jdbc:mysql://localhost:3306/test
    Driver Classname: com.mysql.jdbc.Driver
    Properties :
    user = root
    Password = XXX
    create
    TARGETS::
    i had shifted myServer from left side to right side n clicked >>Apply
    (Techncially can we say this as deploying the connection pool into server ???????????
    If not how to deploy the connection pool into server??)
    I did not get any errors in the console.
    Now i am creating a datasource
    CONFIGURATION:
    Name : ramukkDataSource
    JNDIName: jdbc/ramuJndi(Does we have to follow this convention only?? i.e JNDIName should start with jdbc/ only)
    PoolName: ramukkpool
    create
    TARGETS::
    I had shifed myServer from left to right n >>Apply.
    Now also i did not get any errors in the console.Thanx(in advance),
    ramu

    I have read the documentation.
    I changed my class to oracle.jdbc.pool.OracleConnectionCacheImpl from
    oracle.jdbc.pool.OracleConnectionPoolDataSource
    I observed in the EM that the Open JDBC Connections and Total JDBC Connections are the same. When I used oracle.jdbc.pool.OracleConnectionPoolDataSource my Total JDBC Connections was increasing and Open JDBC Connections remains 0.
    My question still remains unanswered, could some kindly help.
    Q? I have defined a data source in JDeveloper using
    oracle.jdbc.pool.OracleConnectionCacheImpl
    In my java bean I am using the code pasted below to make a connection to database.
    Can some one tell whether I am using the correct method of connection pooling mechanism or do I need to make some changes? This application uses JSP and used by lots of people which hits database very frequently.
    Any help is highly appreciable.
    Thanks in advance.
    *******Code to make connection*********
    private javax.naming.InitialContext context = null;
    private javax.sql.DataSource jdbcURL = null;
    private static final String url = "jdbc/ProdCoreDS";
    public boolean openConnection()
    try
        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    context = new javax.naming.InitialContext();
    jdbcURL = (javax.sql.DataSource)context.lookup(url);
    con =  jdbcURL.getConnection();
    return true;
      catch(Exception e)
           System.out.println("Error in the Connection  "+e);
        e.printStackTrace();
                 return false;
         }}

  • Doubt in using SO_NEW_DOCUMENT_ATT_SEND_API1

    Im haveing a problem in this same FM.
    I want to send via e.mail the file attach of service object .
    I use the fm SO_DOCUMENT_READ_API1 to to read file.
    The problem is that I can not get the FM, I think I wrong to set some information, since sending is correct but the file is not readable.
    Someone has to send me an example?
    tanks in advance

    Hi,
    check out this sample code:
      data: objcont like solisti1 occurs 10 with header line.
      data: doc_data like sofolenti1.
    call function 'SO_DOCUMENT_READ_API1'
             exporting
                  document_id    = '545645555'
             importing
                  document_data  = doc_data
             tables
                  object_content = objcont
             exceptions
                  others         = 1.
    reward appropriate points.
    Regards,
    mansi.

  • Use of subroutine in SapScript

    Hi Friends,
                  I am passing two parameters as input from sapscript perform statement and i want one field from database table as output.
                  In abap editor i have created two internal tables of the type ITCSY for input and output parameters. <b>The name field of the internal table i have created is getting populated but the corresponding value field is not getting populated,</b> so my further logic is not processed and i am not gettin the desired result i.e. it it displaying nothing.
                 Can you guide me on the same?
    Regards,
    Nikhil

    Hi,
    My code is as follows in which i have ynbemployeetable in database from which i am taking empname and empgender as input and i want  empid as output.
    I have written following perform statement in se71.
    PERFORM GET_DETAILS IN PROGRAM ZNIK_SSCRIPT_NEW_AS5
    USING &YNBEMPLOYEETABLE-EMPNAME&
    USING &YNBEMPLOYEETABLE-EMPGENDER&
    CHANGING &EMPID&
    ENDPERFORM
    I have written following form in se38 abap editor. in this the input-value field is not getting populated.
    FORM get_details TABLES input STRUCTURE  ITCSY
                            output STRUCTURE ITCSY.
    DATA : z_empname LIKE ynbemployeetable-empname,
                z_empgender LIKE ynbemployeetable-empgender,
                z_empid type i.
    READ TABLE input with key 'YNBEMPLOYEETABLE-EMPNAME'.
    CHECK sy-subrc = 0.
    z_empname = <b>input-value</b>. "Not getting populated
    READ TABLE input with key 'YNBEMPLOYEETABLE-EMPGENDER'.
    CHECK sy-subrc = 0.
    z_empgender = <b>input-value.</b>  "Not getting populated
    SELECT SINGLE empid FROM ynbemployeetable
    INTO z_empid
    WHERE empname = z_empname and empgender = z_empgender.
    output-name = 'EMPID'.
    MOVE z_empid TO output-value.
    MODIFY output INDEX 1.
    ENDFORM.
    Can you help me know why it is not getting populated and what is the mistake?

Maybe you are looking for

  • How can iTunes 4.2 be newer than iTunes 6.0.5?

    I have iTunes 4.2 installed on my G4 running OS 10.3.9 and I want to upgrade to iTunes 6.0.5. When I run the installer and get to the Installation Type window all the packages under action are disabled. If I move the cursor over the word Disabled I g

  • Does Adobe Flash Show up In Launchpad?  (Not in Utilities)

    Just was curious if Adobe Flash Player appears in Launchpad or not.  I see that it is in the Finder/Applications/Utilities/Adobe Flash Manager...but if I look at my Applications Folder in the Dock - its  nowhere to be found...and in Launchpad, I dont

  • Problem in AGR_1251 download

    Hi All, I am using AGR_1251 to list all auth. objects and their field values in a role. When I download it to an excel file,I find that a few rows are merged in one column. This makes the purpose of listing fail Has anyone else faced the same issue.P

  • Folder with question mark, cannot reinstall 10.4

    Yesterday when I open my computer it was frozen. After rebooting it a folder with a question mark came up. After I tried to reinstall the original software (10.4) the computer came up with a message saying that the software cannot be reinstalled. The

  • Journal Voucher concept in FICA

    Hi Friends, We all know that we have a very good feature in SAP FICO  module that is of journal voucher(JV) by using which we can pass any adjustment entry from one GL to other. Debit one GL & credit the other. Now As far as i know in SAP FICA module