How to find the value of a variable in other program

How to find the value of a variable in other program say I am in a FM and this FM is being called in from other program and I want to know some of the variable details of the program from the FM itself. Imagine if this is a txn. and I need to know the details from some of the programs while executing the same transaction
Regards
Vin

Hi Vinayak,
     you will be having your first program values in internal table or some variables,
    when you are calling the second program you wii use like this,
    SUBMIT <Second Program Name> USING SELECTION-SCREEN '1000'
                       WITH s_emp(second program select-options)   IN t_emp(first program variables)
                       WITH p_chk   EQ t_chk
                       WITH p_r1    EQ t_r1
                       WITH p_month EQ t_month
                       WITH s_cust1 IN t_cust1
                       WITH p_r2    EQ t_r2
                       WITH s_cust2 IN t_cust2
                       WITH s_week  IN t_week
                       AND RETURN.
you have pas like this to get your first program details.

Similar Messages

  • How to get the value of a variable defined in javascript in JSP

    how to get the value of a variable defined in javascript in/through JSP????

    In Javascript you can use the DOM to access the input element and set it's value before submitting the form. Then it's value will just be passed.

  • How to get the value of a variable in FOX?

    Hi,
    In the FOX program how to get the value of a variable defined in planning area?
    can anyone give me some sample code?
    thanks

    Adding to the last reply,
    you can use VARI(variable) to get the count of the values.
    In the latest version of BPS, you may also use the following new foreach construct:
    FOREACH var IN VARIABLE  variable_id.
    Regards - Ravi

  • How to change the value of a variable in new ABAP debugger.

    Hi Guys,
                 I can't change the value of a variable in the new ABAP debugger.. when I change its revert back to old value. but this is not the case with the old version. How to do this..
    Cheers
    Senthil

    Hi,
    1. Dobule click in the variable in the variable tab.
    2. Click the Change icon in Detail.Dis.
    3. enter the new value and press enter
    Refer
    [http://www.sapdb.info/new-abap-debugger/|http://www.sapdb.info/new-abap-debugger/]
    [http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm]
    <removed_by_moderator_together_with_points>
    Regards,
    SB
    Edited by: Julius Bussche on Jun 24, 2008 8:21 AM

  • How to find the Values of SAP Gateway Server Host  and Gateway Service Valu

    Hi All,
    I installed SAPR/3 4.7 EE on Windows. For configuring SLD and LDAP i am unable to give the SAP Gateway Server Host and Gateway Service values.
    Can any one plz suggest me how to find these values.
    Regds
    Phanikumar

    Hello, SAP Gateway Server Host and Gateway Service are used to set up rfc connectivity, that is the host name and the system number where your sld and ldap is responding, if you have no sld and no ldap , just simply uncheck that options while installing.
    Have a nice week end, Luciano.

  • How to set the value of process variables/payload using a managed bean?

    Hello,
    Someone can give me an example about how to set the values of a process payload in a managed bean?
    thank you!

    Try this:
    jsf page:
    <af:selectOneChoice label="Select Suburb"
    requiredMessageDetail="Select a suburb"
    valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
    validator="#{selectOneChoiceBean.validate}"
    unselectedLabel="None" autoSubmit="true"
    binding="#{selectOneChoiceBean.selectOneChoice}"
    value="#{selectOneChoiceBean.value}">
    <f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
    </af:selectOneChoice>
    backing bean:
    public class SelectChoiceBean {
    private List<SelectItem> selectionList;
    private String value = "B";
    private RichSelectOneChoice selectOneChoice;
    public SelectChoiceBean() {
    initSelectionList();
    public void setSelectionList(List<SelectItem> selectionList) {
    this.selectionList = selectionList;
    public List<SelectItem> getSelectionList() {
    return selectionList;
    public void onValueChanged(ValueChangeEvent valueChangeEvent) {
    System.out.println(valueChangeEvent.getNewValue());
    // Add event code here...
    public void validate(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    private void initSelectionList() {
    selectionList = new ArrayList<SelectItem>();
    selectionList.add(new SelectItem("A", "A label"));
    selectionList.add(new SelectItem("B", "B label"));
    selectionList.add(new SelectItem("C", "C label"));
    public void setValue(String value) {
    this.value = value;
    public String getValue() {
    return value;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    }

  • How to find the value of STO

    hi SAP gurus,
    pls help me out.
    is there any T-code to find the values of STO made.

    Hi Gaurav
    PLease use the Tcode ME81
    Regards
    Aasif

  • How to find the value variable

    Hi, I am doing looping and dynamically creating the variable, after this, I will get the string that is the variable. In this stage how can I get the variable value.
    For Example, pls look into the follow proc
    CREATE OR REPLACE PROCEDURE VALUE_TEST AS
    MYSTRING1     VARCHAR2(100);
    MYSTRING2     VARCHAR2(100);
    A     VARCHAR2(100);
    B     VARCHAR2(100);
    BEGIN
         MYSTRING1     := 'FIRST VALUE';
         MYSTRING2     := 'SECOND VALUE';
         FOR I IN 1..5 LOOP
              A := 'MYSTRING' || I;
              B := 'MYSTRING' || I;
              DBMS_OUTPUT.PUT_LINE(A || ' ' ||B);
         END LOOP;     
    END;
    When I print the value of A, I should get the value of MYSTRING1, that is 'FIRST VALUE'.
    If anybody know, how to do that, pls let me know ASAP.
    Thanx a lot.
    Vijay.P

    Hi Vijaykumar...
    In A := 'MYSTRING' || I; you are NOT replacing your variable named 'A' with the variable named 'MYSTRING' concatenated to the value of the loop counter.
    You are replacing you variable named 'A' with a character string 'MYSTRING' concatenated to the value of the loop counter. The confusion may come from the fact that the name of the variable is a character string that is identical to the character string in your replacement statement.
    So you get...
    MYSTRING1 MYSTRING1
    MYSTRING2 MYSTRING2
    MYSTRING3 MYSTRING3
    &....The PL/SQL compiler intreprets the characters between the 's as a character string.
    To get...
    FIRST VALUE1 FIRST VALUE1
    FIRST VALUE2 FIRST VALUE2
    FIRST VALUE3 FIRST VALUE3
    &....remove the ' so the PL/SQL compiler will reconize it as a named variable.
    If you are trying to construct a variable name using concatenation, that cannot be done in PL/SQL without dynamic sql, a somewhat more complicated endeavor.
    Good luck. Hope this helps.

  • How to set the value of a variable in a cluster in LabVIEW from C#?

    Hi guys, I'm working on a small c# program, which using the interface provided by LabVIEW.  And I know that, using lv.SetControlValue(name, value) can set a variable just on the front panel. But in my case, there're several clusters on the front panel. So it confused me how to set the variables in these clusters. For example there's a cluster named clusterA, and a variable in it named valueA, I've tried something like this:
    lv.SetControlValue("clusterA.valueA",1);
    but it totally not work. Anyone has some experience about this stuff? Thanks a lot!!
    Solved!
    Go to Solution.

    Hey guys, thanks a lot for all your reply. I just find a simply way to solve this porblem. For example, there a cluster named "ClusterA", and there are only two control values in it, which are: an int value named "IntA" (default value IntA = 10)and a  string value named "StringA" (default value StringA = "abc"). In C# if you invoke the method:
    var clusterA = (Array) vi.GetControlValue("ClusterA");
    you will get an Array looks like: clusterA = {10, "abc"}; Then if you want to change IntA to 123, you just need to do:
    clusterA.SetValue(123, 0); // 123 is the value, 0 is the index of IntA in the array clusterA, after this clusterA = {123, "abc"}
    After this, you just need to give the array back to LabVIEW by using:
    vi.SetControlValue("ClusterA", clusterA);
    and now see the panel in you LabVIEW, the IntA is changed.

  • How to find the value of date char used as exception aggregation reference

    Hi BI Gurus,
    On a BEx report I need to list three things by material:
    1)   the open (not yet delivered) Purchase Order quantities
    2)   the PO quantity to be delivered next and
    3)   the date that belongs to the next delivery
    The model supports these data i.e. for each material I can list all open quantities by Purchase Order / Item / Schedule line and the scheduled delivery dates are also available as a characteristic.
    Determining 1) is easy – as the drilldown is fixed (materials only) the open quantities get summarized for all PO-s belonging to the materials.
    To determine 2) I used a Calculated KF simply including KF 1) “=Open PO Qty” in the definition and setting Exception Aggregation (first value) with a reference char of the delivery date. This gives back the Open PO Quantity to be delivered first.
    My question is about how to determine the 3rd value (actually this is not a KPI but a characteristic value). In other words, for each materials I would need to determine the first among all of the possible delivery date char values of the open PO Items / schedule lines. This is the date the quantity shown in the 2nd KPI will be delivered on.
    Does anybody have an idea how to approach this issue?
    Thanks for you help in advance,
    Attila

    Hi Olivier,
    Thanks for your suggestion. I got a bit closer with the replacement path formula variable and the CKF. I tried to apply the same logic of KPI 2) but for some reason it did not work. Actually, it delivers the right value but only when 0SCL_DELDAT (Scheduled delivery date) is in the drilldown… But what I need is the first delivery date by Material only, and without this 0SCL_DELDAT drilldown.
    Any other ideas?
    Thanks and bye,
    Attila

  • How to get the value of a variable in group footer in the report footer also

    I have a placed a formula as below at the group footer and the report footer. The data is grouped on the basis of duedays which is again formula and the value in that is appearing correctly.
    Whilereadingrecords;
    Global Numbervar CNTONE;
    Numbervar P := P+1;
    IF P = 1 AND {@DUEDAYS} = 0
    THEN CNTONE := {spSUPPLIERSOA;1.INVOICEBAL}
    ELSE IF P>1 AND  {@DUEDAYS} = 0
    THEN CNTONE := CNTONE + {spSUPPLIERSOA;1.INVOICEBAL}
    At the group footer I get the value correctly for CNTONE but when I place the formula in Report footer I get the value for CNTONE as 0.
    Please do let me know how I could get the same value in the report footer also.
    Regards
    Sreejith J

    Hi Abhilash;
    When I give the statement whileprintingrecords then my above formula sums up only the first record and the last record of the group and when I give whilereadingrecords it adds up all the data in the group correctly.
    The formula that you mentioned for the report footer had worked out and it is showing my result correctly.
    I did not put up the reset formula on the group footer because as the group changes I had used another variable in another formula for example for the second group I used
    Whilereadingrecords;
    Global Numbervar CNTTWO;
    Numbervar Q := Q+1;
    IF Q = 1 AND {@DUEDAYS} = 30
    THEN CNTTWO := {spSUPPLIERSOA;1.INVOICEBAL}
    ELSE IF Q>1 AND  {@DUEDAYS} = 30
    THEN CNTTWO := CNTTWO + {spSUPPLIERSOA;1.INVOICEBAL}
    I have set up total 5 such formulas as the number of groups that will be formed is 5. I have put up these formulas on the group footer and suppressed it as I dont want to get it displayed.
    The as you suggested the solution for Report Footer I did that and getting the result correctly.
    I dont know I may be following a longer procedure
    Take Care
    Sreejith J

  • How to find the previous path environment variable in windows 2008

    I am reconfiguring the Hyperion 11.1.2, and later, I installed the ODI. And them when I come back to reconfigure the Hyperion, it cannot be reconfigured, and say cannot find the path parameter. And I check the PATH environment variable, and find it is showing a dumy value, do we have a way to recover the previous PATH envirnment variable?

    To get the source IP address, you will need to enable File Share auditing: http://technet.microsoft.com/en-us/library/dd772690%28v=ws.10%29.aspx
    Otherwise, you can simply disconnect the user session.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • How to find the value that is in structure???

    hi experts,
                 i am changing standard form QM_INSP_RESULT I have an field MITTELWERT in QGRES
    ie QGRES-MITTELWERT where QGRES is a structure .i need the value that is present in the field.How to find it.

    Hi Manikandan Muruganandham ,  
    To find fields the refined search is through Transaction SE84.
    Go there and find the fields of your choice.
    1> <b>ABAP DICTIONARY</b>
    2> <b>FIELDS</b>
    3> Select <b>Table fields</b> to know where you can find the field of your choice.
    Reward Points if useful.
    Thanks,
    Tej..

  • How to Get the value of a variable which is inside other variable

    Hi All Experts,
    I have some tricky kind of situation. Actually there is one deep structure <is_input>-create_posting_lock_req-request_body-reference and this path is stored in a variable v_field.
    i mean to say the value of v_field is <is_input>-create_posting_lock_req-request_body-reference i.e. the path.
    now i want to value stored in this path to go to some other varible v_field2.
    Kindly help me with the situation.
    I even tried to use
    v_field2 = ( V_field ), but it dint help.
    Thanks a lot experts

    field-symbols:    <fs_field> TYPE any.
      LOOP AT lo_strucdescr_ref->components INTO ls_components.
        CLEAR ls_components1.
        READ TABLE lo_strucdescr_ref1->components INTO ls_components1 WITH KEY name = ls_components-name.
        IF sy-subrc EQ 0.
          CLEAR lv_field.
          CONCATENATE lc_struc ls_components-name INTO lv_field SEPARATED BY '-'.
         lv_field = ls_components-name.
          ls_extensionin-valuepart1 = ls_components-name.
          unassign <fs_field>.
    assign (lv_field) to <fs_field>.
    *move <fs_field> to lv_var.
         move <fs_field> to ls_extensionin-valuepart2.
          APPEND ls_extensionin TO lt_extensionin.
          clear ls_extensionin.
        ENDIF.
        clear ls_components.
      ENDLOOP.
    this is the code and it dumps if i declare the field symbol as character, for charater field i don have any problem

  • How to Print the Value of a variable inside a PL/SQL package

    Hi Friends,
    Here is my Scenario
    I have a PL/SQL Package. Let us call it Baseline Package.
    This Package includes a dynamically built merge Statement.
    Execute Immediate v_merge_query.
    I have a procedure which replaces which few Keywords from the Package Text and Creates a new one depending on Inputs I provide. (This is something like a Code generator)
    Now while Creating the new package, I need to print the Value of v_merge_query.... I Need s Static Query to be Printed inside the new package and not a dynamic query.
    My Question is "Is there a way to print the value of the variable inside a different PL/SQL package?
    Thanks in Advance,
    Mohit

    Print where?
    That PL/SQL code is server-side code. It runs in an Oracle server process.
    That server process does not have a keyboard. Or a screen/monitor. Or display canvas. Or an attached printer.
    That server process is incapable of "printing" as that is not its job or responsibility and not part of its environment.
    What is can do is record data for the client to look at afterwards. This can be done using static PL/SQL session variables. Or a SQL table.
    The former is done by DBMS_OUTPUT - a very primitive interface for writing text into a static PL/SQL string array. That btw resides in expensive private process server memory. The client can query the array after a database call and render the contents.
    PS. Also keep in mind that bind variables are critical for performance and server robustness - especially when (ab)using dynamic SQL.

Maybe you are looking for

  • Problem reconnect my photos.

    I am using Photo shop Elements 4.0, but I am having problems now reconnecting my photos, they show up with a red circle on upper left corner. Is there a way to enlarge Font on work area? It is so small and on a dark gray back ground. Please help me o

  • Import pages to numbers

    hi  i need to  import  pages to numbers  i have  put in numbers cost and vat  number in pages and need to  export it to numbers to add vat and cost  every year  3% thanks craig wilson

  • SRT (Soap Runtime) service on sicf could not be started or found.

    Hello all, I have the following problem: I built an enterprise service from ABAP and now i want to generate its WSDL, but when i'm trying to do that, the system throws me several errors like: http://server:8000/sap/bc/srt/ could not be started or fou

  • Inline Query Sum

    hi i am using 2 inline queries, from both queries am getting values in outer query i need to find out the sum of amount total. here is the query select  customer_name,branch, round((revenue)/100000,2) revenue,round(((sum(revenue)- sum(ap_amount))/100

  • Event from message

    Is it possible to make an event in iCal from a message from Mail.app ?