Dataload - Evaluate two different fields

Hi, I need to evaluate two different fields in a dataload rule and apply condition if true. for instance if field 1 is 600 and field 2 is 30 the change field 1 to 650.

Hi ,
I don't want to concatenate two fields nor display it in a single field, but I want to diplay two fields 1 below the other...
ie..If I am using write statement I would prefer,
loop at itab.
wirte: /2 itab-abcd,
        /2 itab-1234.
endloop.
my output will be:
abcd
1234.
If need to use da same logic in ALV how would I use ?? hope I am little more clear now..
Please advice
Karthik.

Similar Messages

  • Dataload - evaluate two fields for a condition

    Hi, I need to evaluate two different fields in a dataload rule and apply condition if true. for instance if field 1 is 600 and field 2 is 30 the change field 1 to 650.

    Hello Siggi,
    i have to create an delta enabled extractor for a database table.
    The database table (=EAUS) contains the fields "ERDAT" and "AEDAT".
    I'm a Newbie in ABAP und so i read some blogs, articles and how to do papers here.
    But my tests haven't work:
    1. I created a structure in SE11 for extraction. The structure contains all the of the database tabel (=EAUS)
    2. Then I created a data element "ZDATE" in SE11. I integrated ZDATE in the structure.
    3. Then I copied function group "RSAX" and function module "RSAX_BIW_GET_DATA_SIMPLE" in our namespace.
    4. I used the copied function module as a template and adapted the coding in the function module.   The coding is from the paper "Functional Module Based Delta Enabled Generic Datasource"   
    But i doesn't work. My deltaenabled generic datasource doesn't get the deltas. In RSA3 with update mode "D" no data records were selected. (I create new records in the database EAUS before I checked the extraction). The update mode "F" and "C" works.
    Can you help me and send me the coding of your function module?
    Many thanks!
    Jan

  • F4 HELP ON TWO DIFFERENT FIELDS OF A SCREEN .

    Hi Experts ,
    I have a screen  in which i have to aply f4 help on two different fields .
    1. Bussiness unit
    2. SAP GL Account .
    I  have applied for  Bussiness unit. by :
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1013.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1013.
       PROCESS ON VALUE-REQUEST.
    field B_UNIT MODULE SEARCHHELP_F4.
    But how i can apply on SAP GL Account  ,i have to use one more POV module or i can do it by using the same pov which i used for Bussiness unit.
    Please tell me how i can do with little bit code example.
    Regards,
    Premraj

    Hi,
    use one more FIELD statement and create one more module for GL a/c in same POV event.
    ex
    FIELD <GL a/c fld name> MODULE <Module name>.

  • Input in one formfield go to two different fields in a MySQL tablerow?

    Hi, I hope you can help me with this.
    How can I have input in one formfield go to two different fields in a MySQL tablerow without having the visitor to type out his input out twice?
    With the second one I would like to use md5.
    Any help is greatly appreciated.

    How can I have input in one formfield go to two different fields in a
    MySQL tablerow without having the visitor to type out his input out
    twice?
    You would need to write your query with the WHERE clause when you update to say "WHERE user=$userid".  That's the most basic way.  The $userid variable would need to come from either a session or a cookie if the user is logged in and you don't want them to enter the information again.  Or if this is from a previous page, the $userid could just be equal to the $_POST variable after sanitization.
    With the second one I would like to use md5.
    That's even simpler.  Before submitting the form, just do $md5_pass = md5($pass);
    http://us.php.net/manual/en/function.md5.php

  • Formula that looks at two different fields

    Hi,
    I posted this request for help not too long ago but didn't clearly explain what is needed. 
    When text is entered into a field (currentgoal1, currentgoal2 - each equaling 1), the formula needs to look at a different field (point1, point 2 - each holds a list box of with points 1, 3, 5, or NA) to see if "NA" was chosen.  If NA was chosen (rather than a point, 1, 3, 5) then the goalcount (total number of populated currentgoal fields) needs to subtract 1 from goalcount.  
    currentgoal 1 = 1 point
    currentgoal 2 = 1 point
    currentgoal 3 = NA
    3 goals, 2 points, 1 point field with NA
    Since one of the current goals is has a point of NA, the overall count of currentgoals in the goalcount field (total number of populated currentgoal fields) should state 2 with the totalpoints field (all points fields added together) stating 2. 
    How can the formula be adjusted to subtract a currentgoal with a chosen point of NA? 
    Formula used now for counting current goals:
    goalcount = 0
    != null){
    = goalcount + 1;
    != null){
    = goalcount + 1;
    (Table3.Row3.currentgoal3.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row4.currentgoal4.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row5.currentgoal5.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row6.currentgoal6.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row7.currentgoal7.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row8.currentgoal8.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row9.currentgoal9.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row10.currentgoal10.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row11.currentgoal11.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row12.currentgoal12.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row13.currentgoal13.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row14.currentgoal14.rawValue!= null){
    = goalcount + 1;
    if(Table3.Row15.currentgoal15.rawValue!= null){
    = goalcount + 1;
    = goalcount;
    this.rawValuegoalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    goalcount
    if
    goalcount
    (Table3.Row2.currentgoal2.rawValue
    if
    goalcount
    (Table3.Row1.currentgoal1.rawValue
    if
    var

    Sorry, I was trying to edit. Is this better?
    var 
    goalcount = 0
    if
    (Table3.Row1.currentgoal1.rawValue
    != null){goalcount
    = goalcount + 1;}
     if(Table3.Row2.currentgoal2.rawValue!= null){goalcount
    = goalcount + 1;}
     if(Table3.Row3.currentgoal3.rawValue!= null){goalcount
    = goalcount + 1;}
    this.rawValue= goalcount;

  • 'Join' two different field types together into a String - possible in Java?

    Not entirely certain whether this is a straightforward Java or more of a JDBC question:
    I have two fields, one is a String and one an integer. I need to concatenate these fields together to form one String, prior to performing an insert on a table. ie:
    String s = dbRS.getString("partition_name");    //get full string
    String partstr = s.substring(0, 14);      // get first 14 (alpha) characters
    int new_partition_number = max_partition_number + 1;      //create new unique partition number, incremented by 1Now I have
    - a String (partstr - i.e. "TN1234567890_")
    - an integer (i.e. 50)
    (NB. The number has to be an integer because it is subject to calculation elsewhere.)
    I wish to join these together into a String ("TN1234567890_50") and use the field in an inserted row. I've tried using
    String partition_string = new StringBuffer(partstr).append(new_partition_number ).toString();... but this doesn't work.
    I read on a forum that it's impossible to cast an integer to a String in this way in Java, which sounds pretty incredulous from where I am! However my Osborne Java 2 Complete Reference doesn't mention it at all.
    Any assistance will be very gratefully received!
    Thanks.

    wonder why he thinks you can't append an int to a StringBuilder.
    Works fine. Might of course not yield the expected result depending on expectations, but it works just fine.
    But then, the coding conventions reminiscent of C don't bode well.

  • Can a single LOV return values to two different fields?

    Hi,
    I have a scenario where I already have a LOV in the form which is assigned to a Field A. This LOV returns the value to field A. I have another field B which needs the same list of values. I can assign the same LOV to the field B as well, but can the value selected be returned to B?
    I can create another LOV with the same record group, but just wanted to know if its possible to use the same LOV again.
    Thanks

    Hi Karuna,
    You can achieve this by providing a third column in LOV (whose column width can be set to 0 to prevent it from being visible in lov) which can be comma-separated of two fields. This third field can then be assigned to the form field. And a substr() function call can get you both values.
    Hope this helps,
    Anantha
    [http://askanantha.blogspot.com]

  • Same text two different fields on one form

    HI.  I am trying to create button that allows me to copy text from one field to another on the same form.  In other words, at the top of my form i have a field for a "last name".  Under certain conditions i want to copy that "last name" into another field.  the button next to the latter field would ask "is the last name the same?"  if i hit that button then i want the text in the first field to import to the second field.  i think i need to use javascript but i can't write the asp.  help?

    George,
    These are the fields i want to copy.  Does the script look correct?
    // Get the value of the fields
    var v1 = getField("LENDER").valueAsString;
    var v2 = getField("TRUSTEE").valueAsString;
    var v3= getField("BORROWER").valueAsString;
    var v4 = getField("DATED_3").valueAsString;
    var v5 = getField("RECORDED_ 3").valueAsString;
    // Set the values of the other corresponding fields
    getField("LENDER_2").value = v1;
    getField("TRUSTEE_2").value = v2;
    getField("BORROWER_2").value = v3;
    getField("DATED_4").value = v4;
    getField("RECORDED_8").value = v5;

  • Order By Two Different Fields

    Dear All,
    I have a Table Like this,
    CREATE TABLE test_d (c_id VARCHAR2(10),i_no NUMBER,i_date DATE)
    which contains the data as,
    C_ID     I_NO     I_DATE
    1     2     19-Jan-2007
    1     3     19-Dec-2006
    1     4     19-Nov-2006
    1     5     19-Oct-2006
    1     6     19-Sep-2006
    1     1     19-Feb-2007
    2     6     19-Feb-2007
    2     5     19-Jan-2007
    2     4     19-Dec-2006
    2     3     19-Nov-2006
    2     2     19-Oct-2006
    2     1     19-Sep-2006
    Now, I want to write a Sql to find the records,for which i_no "1" i_date is greater than i_no "2" i_Date and respectively.

    SQL> select * from test_d
      2  /
    C_ID             I_NO I_DATE
    1                   2 19-01-2007 00:00:00
    1                   3 19-12-2006 00:00:00
    1                   4 19-11-2006 00:00:00
    1                   5 19-10-2006 00:00:00
    1                   6 19-09-2006 00:00:00
    1                   1 19-02-2007 00:00:00
    2                   6 19-02-2007 00:00:00
    2                   5 19-01-2007 00:00:00
    2                   4 19-12-2006 00:00:00
    2                   3 19-11-2006 00:00:00
    2                   2 19-10-2006 00:00:00
    2                   1 19-09-2006 00:00:00
    12 rijen zijn geselecteerd.
    SQL> select c_id
      2       , i_no
      3       , i_date
      4    from ( select test_d.*
      5                , max(i_date) over (partition by i_no) max_i_date
      6                , min(i_date) over (partition by i_no) min_i_date
      7             from test_d
      8         )
      9   where max_i_date > min_i_date
    10     and (  (   c_id = 1
    11            and i_date = max_i_date
    12            )
    13         or (   c_id = 2
    14            and i_date = min_i_date
    15            )
    16         )
    17   order by i_no
    18       , c_id
    19  /
    C_ID             I_NO I_DATE
    1                   1 19-02-2007 00:00:00
    2                   1 19-09-2006 00:00:00
    1                   2 19-01-2007 00:00:00
    2                   2 19-10-2006 00:00:00
    1                   3 19-12-2006 00:00:00
    2                   3 19-11-2006 00:00:00
    6 rijen zijn geselecteerd.Regards,
    Rob.

  • Pupulating two database fields from one form field

    Hopefully an easy query for someone with more experience than
    me!!!
    I have set up a form (PHP page) to add new users to a table
    in a MySQL database. So far, so good.
    The problem is that I want to use the value entered in one of
    the form fields (Email) to populate two different fields in the
    table (username and email). I realise that this is redundant, but
    it is necessary for other reasons that I won't go into here...
    I've tried using a hidden input field for username, but I'm
    just not sure what I need to specify for 'value'...
    The code for the input field is:
    <input name="Email" type="text" class="RequiredInput"
    value="" size="32">
    and the code for the hidden input is:
    <input type="hidden" name="username" value=Email>
    As you can see, this puts the text 'Email' in the field,
    rather than the value of the Email input...

    When I try an post a reply with the code attached I get this
    screen:
    The page you requested could not be found on our web site.
    You may wish to try one of the following links:
    Search
    Search the Adobe web site.
    Adobe Homepage
    Go to the Adobe homepage.
    Macromedia Flash Player
    Download the Macromedia Flash Player.
    Broken Link?
    Send us an e-mail.
    When the forum's working again I'll have another go at
    posting the code...

  • Sapscript - displaying two text fields after truncating the spaces.

    Hi Friends,
    In a sapscript, I have to display the name of the vendor which is in two different fields each of length 40 chars. The first one may be filled to the maximum and the remaining goes into the second field and may occupy only 30 or 35 chars. I need to display the two side by side and the space available is 70 chars. I am using an existing script and I am not able to print the two side by side. It is going to the next line. How do I truncate the trailing spaces of either field. Please help. It is quite urgent.
    Thanks,
    BP.

    Hi Bindu,
    use the perform to concatenate name1 and name2 to NAME and use this field in address command.
    Check with the following code:
    /:   DEFINE &ZNAME& = ''
    PERFORM ADDRESS IN PROGRAM 'PROGRAM'
    USING    &REGUH-ZNME1& 
    USING    &REGUH-ZNME2&                             
    CHANGING &ZNAME&                       
    ENDPERFORM                                      
    FORM address
              TABLES itab STRUCTURE itcsy
                     otab STRUCTURE itcsy.
    LOOP AT itab.
        CASE itab-name.
          WHEN 'REGUH-ZNME1'.
            l_name1 = itab-value.
          WHEN 'REGUH-ZNME2'.
            l_name2 = itab-value.
        ENDCASE.
      ENDLOOP.
    use the logic.
    Endform.

  • How to process reports with two different date fields

    Morning all,
    This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
    These two reports pull data from two different date fields and has different status check ups.
    Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
    Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
    The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
    I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
    Any ideas how to produce combined report which has two different date fields?
    Many thanks in advance
    Regards
    Jehanzeb
    What I

    Charliy,
    No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
    So its more like this:
    Klab->Max-Credit2--->Credit_date
    Sae->Maxmast->Order_header---Date entered.
    two dates totally different tables, dbs
    however, I will try your idea too and see if that works.
    Regards
    Jehanzeb

  • How to use same DFF for two different forms with :BLOCK.field reference

    Hi,
    Can anyone suggest how to use the same dff in two different forms by using :BLOCK.field reference.
    Scenario is the same DFF is referenced by two forms, viz. Form-1 & Form-2.
    Form-1 Reference Field is :BLOCK.field name, but the same block is not available in Form-2, which throws an error while opening it.
    Any pointers please.
    Thanks,

    In the environment I currently have access to do not have similar setup.
    Let say you setup the DFF1 default value to $HEADER.customer_name, the name of the DFF is CUSTOMER_NAME, description can be anything.
    In DFF2, default value should be a SQL, where you can reference the DFF1. For example, SELECT DECODE($FLEX.CUSTOMER_NAME, 'ABC', 1, 'DEF', 2, NULL) FROM dual
    In this case, you can reference the DFF1.

  • How to get different field in two are more different table using open sql

    Dear all,
              This SenthilMani am very new into sap abap am having doubt in reports how get the different fields from different tables like mara,marc,mard using open sql and native sql program give me some tips to get the data .
    with regards,
    senthil

    HI ,
      1) If u want to select data from more the two table then u can use FOR ALL ENTRIES.
             EX ..Open sql
                       select matnr from mara into table t_mara.
                      select matnr werks from marc into table t_marc for all entries in t_mara where matnr = t_mara-matnr.
      2) U can join more than one table.
               ex:
                   select mara~matnr
                              marc~werks
                    from mara join marc into table t_maramarc
                     on maramatnr = marcmatnr
    3) Using  native sql  ...only u can use JOIN statement

  • Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Is there a way that you can have two different text fields (email, phone) that one at least one of them must be completed before submitting the form? Can it be done using javascript in the validation tab? if so, how?

    Here is one solution:
    // mouse up action for submit button;
    function GetField(cName) {
    // get field object for cName field with error checking;
    var oField = this.getField(cName);
    if(oField == null) app.alert("Error accessing field named " + cName + "\nPleae verigy field name, spelling and capitalizeation.", 1, 0);
    return oField;
    } // end GetField function;
    var oPhone = GetField("phone");
    oPhone.required = oPhone.value == oPhone.defaultValue;
    var oEmail = GetField("email");
    oEmail.required = oEmail.value == oEmail.defaultValue;
    if(oPhone.required && oEmail.required) {
    app.alert("Missing required fields.", 1, 0);
    } else {
    app.alert("Submitting form", 3, 0);
    // additional code for submission;

Maybe you are looking for

  • Open a parameter report by clicked event

    Hi friends I created a parameter report in oracle portal 10g. Do we have some way to pass a parameter and open this report in code ? or by clicked event? It seems that we have not ability to use a link to do by a clicked event in oracle portal applic

  • Connecting two external Firewire HDs and work with them

    I have two external HDs. One is a 1TB MyBook, permantently connected to my Mac via Firewire (my entire iTunes and iPhoto libraries are in there), and a smaller 120GB portable SmartDisk, that I use to backup my startup disk periodically using SuperDup

  • Rendering in color

    I have rendered all my clips in color. I have checked very carefully to make sure everyone of them says completed and has the green label. So when I send them back to FCp it says not all of my clips have been rendered. This is not so , when I created

  • Iphone will not sync with iTunes!!!! PLEASE HELP!!!

    My iphone has always synced up with my macbook no problem but recently when I plug it in and walk away I come back and the sync bar is half full and will not go any further.  I have tried turing off airport and restarting the phone and comp but nothi

  • 100% width slideshows

    HI!  I am a photographer, trying to show my gallery in 100% width.  Obviously, this being my work, it is important to show the whole image. When doing 100% it seems to be cutting off my images with fill frame proportionately.  I know I can make it fi