Adding value of one field into another field and should  display it

Hai Experts,
i have problem try help me plz,
my problem is:
i have some fields like A,B,C,D,E.in my ddic table and i designed a screen with same fields
so here i want have values on gallons
ex : think
E = order value
C = gallons
and when i enter each value in order value it should go sum with gallons and should display on screen ,it should not save in table,when i open screen next time it should not show any values

Hi  ,
U Can try the   UserEXIT  PBAS0001 component  EXIT_SAPFP50M_001 . The code in the Include Program  ZXPADU01  looks  something  like  this .
DATA: I0002 TYPE P0002.
  CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.
  CASE INNNN-INFTY.
    WHEN '0002'.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
        EXPORTING
          PRELP = INNNN
        IMPORTING
          PNNNN = I0002.
      MOVE I0002-VORNA  TO I0002-RUFNM.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PNNNN_TO_PRELP
        EXPORTING
          PNNNN = I0002
        IMPORTING
          PRELP = INNNN.
  ENDCASE.
U can also  implement  the  same in the BADI  HRPAD00INFTY   method  BEFORE_OUTPUT . The  same   code  should  work

Similar Messages

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • Compare values of one field and populate another field

    Hi,
    I have a requirement something like this:
    Taking example of carrid and connid fields of table sflight.
    lets say carrid has values like AABB, CCDD etc in sflight table.
    Now i would like to read the first two characters of carrid's values(only AA of AABB or CC of CCDD) and based on this i want to populate connid. Any suggestions please?

    hi,
    if carrid + 0( 2 ) = 'AA'  ( first two letters..)
    try to use  offset function....
    rgds,
    raj

  • How to copy the attribute values of one instance  into another instance.

    Say I have 3 instances and two attributes name ,id.
    inst1 : id:1 ,name:abc
    inst2: id:2 ,name:bcd
    inst3: id:3 ,name:efg
    now I want
    inst: id:1 ,name:abc
    bcd
    efg
    i.e is need to abort instance inst2 & inst3 before that copy the names bcd & efg to inst1.
    Please let me know how to do this its very urgent.

    Hi,
    The tricky part of this is to provide your third instance a way to find the other two instances. Finding instances in a process is a bit like finding rows in a database. When doing a SELECT statement in a database, you have a primary key that will guarantee you that you'll only retrieve one row. In Oracle BPM there are a couple ways to do this. One way is to use the instance's id (the predefined variable id.id) to search for the two instances. Another is to use a "correlation" to find the instances.
    This example assumes you'd like to look at instances based on a search filter. This filter assumes that you have a customerId variable that both of the instances share. It only returns those instances currently inside the process (the SearchScope logic below being set to "StatusScope.ONLY_INPROCESS" in the logic below). The only incoming variable it needs is the "customerId" variable that has already been set to some value in the other instance. Note that this uses the Fuego.Papi.ClientBusinessProcess object. This logic creates a search filter and only returns instances that meet a certain criteria (the two instances in the process). Once you get the instance, the "getVar()" method retrieves the "name" instance variable. This assumes that you have an instance variable "customerNames" defined as a String array that you are using to store the names retrieved from the two instances. The "abort()" method aborts the two instances it finds in the search.
    cbp as ClientBusinessProcess = ClientBusinessProcess()
    connectTo(cbp, processId : "/NameOfYourProcessHere")
    instF as InstanceFilter = InstanceFilter()
    create(instF, processService : cbp.processService, viewId : "TypeSearch")
    instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL,
                                  statusScope : StatusScope.ONLY_INPROCESS)
    logMessage "Customer Id is: " + customerId  using severity = DEBUG
    addAttributeTo(instF, variable : "customerId",
                              comparator : IS, value : customerId)
    for each inst in getInstancesByFilter(cbp, filter : instF) do
       // get the value of the order's amount for the instance
        instanceVarValue as Object = getVar(inst, var : "name")
        customerNames[] = String(instanceVarValue)
        logMessage "Customer name is: " + String(instanceVarValue) 
                 using severity = DEBUG
        // aborts the instance in the process
        inst.abort()
    endHope this helps,
    Dan

  • Copy the value from one item into another

    Hi,
    I have a page with 2 items on it: Field1 and Field2. When the user enters a value in Field1 and tabs out, I want to copy the value to Field2.
    I have changed the setField1 method in the VORowImpl to call setField2 passing in the same value.
    In the JHeadstart definition file I have set the Depends On Item property of Field2 to be Field1.
    When I run the page and put a value in Field1 the page autosubmits as expected and the setField1 method runs. Unfortunately, the value does not appear in Field2.
    Any ideas?
    Thanks,
    Gavin

    Hi Steven,
    Checking the box does indeed get the value from Field1 into Field2.
    What I want to do, though, is to populate Field2 from Field1 only if Field2 is empty. Unfortunately, Field2 is now cleared before the setter of Field1 executes and so it always overwrites Field2.
    Any ideas?
    Thanks,
    Gavin

  • Exporting and importing a field value from one screen to another in BSP

    Hi All,
    I am working on a BSP application which consists of multiple screens. I have to export the value corresponding to a value selected from a drop down and import it in another screen so that in the next screen values can be populated corrsponding to the value selected in the drop down in the first screen.
    I tried using SET/GET parameter and also EXPORT/IMPORT so that I can get value from one screen into another screen but both the statements are not working in BSP....
    Please help...
    Vivek Gupta
    Edited by: guptav_infy on Feb 21, 2010 11:33 AM

    Hi All,
    This question is still un answered. please reply ..
    Vivek

  • Inserting data from one table into another table using PL/SQL

    HI,
    I am trying to insert values from one table into another using PL procedure, the values I want to retrieve from the table riverside1 are charac_id and charac_type and insert these values into another table called riverside2 , the stored procedure zorgs_gorfs(x,y) accepts two parameters which are 2 charac_id's of d characters in riverside1 then using insert statements inserts these characters from riverside1 into riverside2.
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (x);
    INSERT INTO riverside2
                   (charac_id)
              VALUES
                   (y);
          END zorgs_gorfs;
    /This works but the problem im having is that when I also try to insert the charac_type as well as the charac_id it doesnt work below is the code:
    CREATE OR REPLACE PROCEDURE zorgs_gorfs(x IN NUMBER, y IN NUMBER) AS
         BEGIN
              INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);
          END zorgs_gorfs;
    /can someone kindly sort me out

    modify this sql
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id = x);as
    INSERT INTO riverside2
                   (charac_id,charac_tye)
              VALUES
                   (Select
                        charac_id,
                        charc_type
                   FROM
                        riverside1
                   WHERE
                        charac_id in ( x,y));But my suggestion would be consider revising your approach. It does not look that good.
    Thanks,
    karthick.

  • Importing values from one spreadsheet to another

    I have created 2 Numbers spreadsheets to track my vacation expenses this year.  Is it possible to automatically import a value from one spreadsheet into another? They are both in the same workbook, one keeps track of mileage and fuel expenses, and the other keeps track of all other expenses.
    Thanks in advance for your help.
    -Nancy

    Hi Nancy,
    To reference a cell on a different sheet or table, when you come to the point in your equatino where you need the address of the remote cell, just navigate to the remote cell and click on it, then continue typing or hit Return if that is the last item in the equation.
    Of course you can also just enter the remote address manually. The syntax is Sheetname :: Tablename :: Cell.
    If the table name is unique in the document, it is not necessary to use the sheet name.
    About the names of things in Numbers - a little different than in Excel.
    The entire document is referred to by Apple as a Spreadsheet, just to be consistent with the industry. I believe you called it a Workbook, an Excel term. Most folks here simply call it a Numbers Document.
    What you called a Worksheet is a "Sheet" in Numbers.
    Within a Sheet you can have multiple Tables, Graphics, Text Boxes, etc.
    In Numbers, Tables are treated like Named Ranges in an Excel Worksheet. They should be kept to just the size needed for the data, and it's best to isolate separate collections of data in separate tables.
    Regards,
    Jerry

  • Transfer field value from one screen to another screen

    hi gurus,
    I am using field exit in mm02, i want to transfer field value from one screen to another screen. I am using Export, Import, Some FM like DYNP.......
    but not getting the value.
    can any one give idea about this.
    Thanks in Advance,
    Sudheer.

    I THINK IN FIELD EXITS SOME RESTRICTION IS THERE YOU CAN NOT USE CALL TRANSACTION OR CALL SCREEN. I DONT KNOW WHAT IS YOUR ACTUAL REQUIREMENT. BUT YOU ARE TRYING TO CALL TRANSACTION USING MEMORY ID OR SOMETHING THEN I THINK IN FIELD EXIT YOU CAN NOT DO THAT. PLS CORRECT ME IF I AM WRONG
    REGARDS
    SHIBA DUTTA

  • How to assign value of one filed to another  field in reports

    Hi..
    How we can copy the One field value to another field nd how to use group by in query to generate reports.
    Reply...
    Thanks
    Neetu
    Edited by: Philip Eller on Jun 27, 2008 9:49 AM
    Edited by: Rui Pereira on Jul 8, 2008 5:26 PM

    Dear Neetu,
    If you would like to assignt he value of one field to another in PLD, you can try the following.
    1. You can link the two fields by using the property Link
    2. In the fomula field for one of the fields, just mention the name of the other field.
    For example
    You have two fields F_118 and F_180
    Scenario 1 :
    In the "Link" property of the field F_180,  choose F_118
    Scenario 2:
    In the "Formula" for the field F_180, write "F_118"
    For using group by in query, Once you have created a query with the "Query Generator" you can create the reports based on query through the "query manager".
    REgards
    Arshdeep

  • Adding multiple same-name nodes from one xml into another

    Hi,
    Following on from my question the other day (Adding multiple different nodes from one xmltype into another), I now have a slightly more complex requirement that I cannot work out where to start, assuming that it's something that can reuse some/all of yesterday's work (thanks again, odie_63!). ETA: I'm on 11.2.0.3
    So, here's the (slightly amended) xml along with yesterday's solution:
    with sample_data as (select xmltype('<root>
                                           <xmlnode>
                                             <subnode1>val1</subnode1>
                                             <subnode2>val2</subnode2>
                                           </xmlnode>
                                           <xmlnode>
                                             <subnode1>val3</subnode1>
                                             <subnode2>val4</subnode2>
                                           </xmlnode>
                                         </root>') xml_to_update,
                                xmltype('<a>
                                           <b>valb</b>
                                           <c>valc</c>
                                           <d>
                                             <d1>vald1</d1>
                                             <d2>vald2</d2>
                                           </d>
                                           <e>vale</e>
                                           <f>valf</f>
                                           <g>
                                             <g1>valg1</g1>
                                             <g2>valg2</g2>
                                           </g>
                                           <h>
                                             <h1>valh1</h1>
                                             <h2>valh2</h2>
                                           </h>
                                           <multinode>
                                             <name>fred</name>
                                             <type>book</type>
                                             <head>1</head>
                                           </multinode>
                                           <multinode>
                                             <name>bob</name>
                                             <type>car</type>
                                             <head>0</head>
                                           </multinode>                                        
                                         </a>') xml_to_extract_from
                          from   dual)
    select xmlserialize(document
               xmlquery(
                 'copy $d := $old
                  modify (
                    insert node element extrainfo {
                      $new/a/b
                    , $new/a/d
                    , $new/a/f
                    , $new/a/h
                    } as first into $d/root
                  return $d'
                 passing sd.xml_to_update as "old"
                       , sd.xml_to_extract_from as "new"
                 returning content
             indent
    from sample_data sd;
    That gives me:
    <root>
      <extrainfo>
        <b>valb</b>
        <d>
          <d1>vald1</d1>
          <d2>vald2</d2>
        </d>
        <f>valf</f>
        <h>
          <h1>valh1</h1>
          <h2>valh2</h2>
        </h>
      </extrainfo>
      <xmlnode>
        <subnode1>val1</subnode1>
        <subnode2>val2</subnode2>
      </xmlnode>
      <xmlnode>
        <subnode1>val3</subnode1>
        <subnode2>val4</subnode2>
      </xmlnode>
    </root>
    However, I now need to add in a set of new nodes based on information from the <multinode> nodes, something like:
    <root>
      <extrainfo>
        <b>valb</b>
        <d>
          <d1>vald1</d1>
          <d2>vald2</d2>
        </d>
        <f>valf</f>
        <h>
          <h1>valh1</h1>
          <h2>valh2</h2>
        </h>
        <newnode>
          <name>fred</name>
          <type>book</type>
        </newnode>
        <newnode>
          <name>bob</name>
          <type>car</type>
        </newnode>
      </extrainfo>
      <xmlnode>
        <subnode1>val1</subnode1>
        <subnode2>val2</subnode2>
        <type>book</type>
      </xmlnode>
      <xmlnode>
        <subnode1>val3</subnode1>
        <subnode2>val4</subnode2>
        <type>car</type>
      </xmlnode>
    </root>
    If it's easier, I *think* we would be ok with something like:
    <newnode>
      <type name="fred">book</type>
      <type name="bob">car</type>
    </newnode>
    The closest I've come is:
    with sample_data as (select xmltype('<root>
                                           <xmlnode>
                                             <subnode1>val1</subnode1>
                                             <subnode2>val2</subnode2>
                                           </xmlnode>
                                           <xmlnode>
                                             <subnode1>val3</subnode1>
                                             <subnode2>val4</subnode2>
                                           </xmlnode>
                                         </root>') xml_to_update,
                                xmltype('<a>
                                           <b>valb</b>
                                           <c>valc</c>
                                           <d>
                                             <d1>vald1</d1>
                                             <d2>vald2</d2>
                                           </d>
                                           <e>vale</e>
                                           <f>valf</f>
                                           <g>
                                             <g1>valg1</g1>
                                             <g2>valg2</g2>
                                           </g>
                                           <h>
                                             <h1>valh1</h1>
                                             <h2>valh2</h2>
                                           </h>
                                           <multinode>
                                             <name>fred</name>
                                             <type>book</type>
                                             <head>1</head>
                                           </multinode>
                                           <multinode>
                                             <name>bob</name>
                                             <type>car</type>
                                             <head>0</head>
                                           </multinode>                                        
                                         </a>') xml_to_extract_from
                          from   dual)
    select xmlserialize(document
               xmlquery(
                 'copy $d := $old
                  modify (
                    insert node element extrainfo {
                      $new/a/b
                    , $new/a/d
                    , $new/a/f
                    , $new/a/h
                    , element newnode {
                                       $new/a/multinode/name
                                       ,$new/a/multinode/type
                    } as first into $d/root
                  return $d'
                 passing sd.xml_to_update as "old"
                       , sd.xml_to_extract_from as "new"
                 returning content
             indent
             ) fred
    from sample_data sd;
    Which produces:
    <newnode>
      <name>fred</name>
      <name>bob</name>
      <type>book</type>
      <type>car</type>
    </newnode>
    - obviously not right!
    Can anyone provide any hints? I've tried searching for similar examples, but I mustn't be putting in the right search terms or something!

    odie_63 wrote:
    or, similarly, to get the alternate output :
    copy $d := $old
    modify (
      insert node element extrainfo {
        $new/a/b
      , $new/a/d
      , $new/a/f
      , $new/a/h
      , element newnode {
          for $i in $new/a/multinode
          return element type {
            attribute name {data($i/name)}
          , data($i/type)
      } as first into $d/root
    return $d
    So we're going with the second method, but I've discovered that the "$i/name" node is not always present. When that happens, I would like to use a default value (for example, "george"). I promise I've searched and searched, but I'm completely failing to turn up anything that sounds remotely like what I'm after (seriously, I can't believe my google-fu sucks this badly!).
    Is there a simple way of doing it? The only thing that I've found that looks vaguely relevant is "declare default namespace...." but I'm not sure that that's the correct thing to use, or if it is, how I'm supposed to reference it when populating the attribute value.

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • Select a number of fields between one field and another

    Hello,
    Is there any way to make a SELECT to show a number of fields between one field and another,
    without writting all the fields one by one ?
    For example, I have one table with these fields:
    TABLE EMPLOYEE:
    ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
    and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
    write in the SELECT all the fields one by one.
    Is this possible?
    Thank you very much.
    Sorry for my english it's not very good.

    Swam wrote:
    Hello,
    Is there any way to make a SELECT to show a number of fields between one field and another,
    without writting all the fields one by one ?
    For example, I have one table with these fields:
    TABLE EMPLOYEE:
    ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
    and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
    write in the SELECT all the fields one by one.
    Is this possible?
    Thank you very much.
    Sorry for my english it's not very good.If you use the DBMS_SQL package to execute your query you can reference the columns by position rather than name.
    One examples of using DBMS_SQL package:
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    cur       PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
      3    cols      DBMS_SQL.DESC_TAB;
      4    ncols     PLS_INTEGER;
      5    v_min_col NUMBER := 2;
      6    v_max_col NUMBER := 4;
      7    v_val     VARCHAR2(4000);
      8    v_bindval VARCHAR2(4000);
      9    v_ret     NUMBER;
    10    d         NUMBER;
    11  BEGIN
    12    -- Parse the query.
    13    DBMS_SQL.PARSE(cur, 'SELECT * FROM emp', DBMS_SQL.NATIVE);
    14    -- Retrieve column information
    15    DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
    16    -- Display each of the column names and bind variables too
    17    FOR colind IN v_min_col..v_max_col
    18    LOOP
    19      DBMS_OUTPUT.PUT_LINE ('Column:'||colind||' : '||cols(colind).col_name);
    20      DBMS_SQL.DEFINE_COLUMN(cur,colind,v_bindval,4000);
    21    END LOOP;
    22    -- Display data for those columns
    23    d := DBMS_SQL.EXECUTE(cur);
    24    LOOP
    25      v_ret := DBMS_SQL.FETCH_ROWS(cur);
    26      v_val := NULL;
    27      EXIT WHEN v_ret = 0;
    28      FOR colind in v_min_col..v_max_col
    29      LOOP
    30        DBMS_SQL.COLUMN_VALUE(cur,colind,v_bindval);
    31        v_val := LTRIM(v_val||','||v_bindval,',');
    32      END LOOP;
    33      DBMS_OUTPUT.PUT_LINE(v_val);
    34    END LOOP;
    35    DBMS_SQL.CLOSE_CURSOR (cur);
    36* END;
    SQL> /
    Column:2 : ENAME
    Column:3 : JOB
    Column:4 : MGR
    SMITH,CLERK,7902
    ALLEN,SALESMAN,7698
    WARD,SALESMAN,7698
    JONES,MANAGER,7839
    MARTIN,SALESMAN,7698
    BLAKE,MANAGER,7839
    CLARK,MANAGER,7839
    SCOTT,ANALYST,7566
    KING,PRESIDENT,
    TURNER,SALESMAN,7698
    ADAMS,CLERK,7788
    JAMES,CLERK,7698
    FORD,ANALYST,7566
    MILLER,CLERK,7782
    PL/SQL procedure successfully completed.
    SQL>Of course, if you were going to do this properly you would bind the correct datatypes of variables based on the types of the columns (the type information is also available through the describe information)

  • Move values of one field symbol to other field symbol of different structur

    Hi all,
    i need to move values of one field symbol to other field symbol of different structure.
    I need to perform operations like MOVE-CORRESPONDING on two field symbols of different structure.
    How can i achieve this?
    field symbol 1 have 2 field and field symbol2 have 4 fields....
    Best Regards,
    Vijay.

    Hi,
    You can use -
    MOVE-CORRESPONDING <struct1> to <struc2>.
    In this case it will move the contents of the components from struct1 to struct2 that has identical names.
    You can refer this link also-
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm
    Regards,
    Sujit

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

Maybe you are looking for

  • How to modify a ViewObject Query programmatically?

    Hello, I have the following case. A SQL-query of an EO-based VO is defined by design in the Jdev wizard by default. That works in most of the cases. However, sometimes I need to programmatically filter the results by changing the content of the query

  • BOE hangs, java.lang.OutOfMemoryError: PermGen space,

    Good day, I have an issue when working in the CMC that everything hangs and the following errors appear: java.lang.OutOfMemoryError: PermGen space and Exception in thread "Business Objects - Sessions Clean up" java.lang.OutOfMemoryError: PermGen spac

  • Call in forms 9i

    Hi, I have a PL/SQL statement in a trigger: call(:block_name.field_name); It can be compiled in 6i Forms, but not 9i Forms. What does this statement do? Is it similiar to call_form()? Is there a corresponding functionality in 9i Forms for it? Thanks.

  • Export Settings not working

    I added a video to convert and converted it.  Then I went to Edit>Reset Status. Next, I tried to go to Edit>Export Settings and I cannot. What am I missing?

  • BP for "Non Portlet" pages

    What is the best practice for organizing pages (static or dynamic) that are not portlet pages? For instance, "Contact Us" type pages that we want to be 'in the portal' but not necessarily as a portlet? do they necessarily need a webflow? what is cont