T code LTRS - Create include to multiple fields.

Dear Folks,
I have multiple fields for that i have to pass date and time which should be write in Include.
Please guide me how to do it in ABAP way. or any sample code.
- Regards,
Amol

Hi Amol,
zh_date = sy-datum wont work.
There is one way of achieving your requirement-
I will explain with an example here-
I have 2 tables for eg-
ZTEST1 ( with two fields mandt and matnr only in ECC)
ZTEST2 (with two fields mandt and matnr only in ECC)
step 1 Using LTRS - table settings I extend table ztest1 with two additional fields ZHDATE and ZHTIME.
step 2 Using LTRS - rule assignment and add logic in rule assignment as below rule -" event related"
and called an include specifically for ZTEST1 table
which has code-
if <WA_S_ZTEST1>-MATNR NE SPACE.(WA_S --indicates source fields)
  <WA_R_ZTEST1>-ZHDATE = SY-DATUM.(WA_R --indicates result set fields)
<WA_R_ZTEST1>-ZHTIME = SY-UZEIT.
ELSE.
   SKIP_RECORD.
ENDIF
I perform the same set of steps again for table ZTEST2 with a new include and same logic, just replaced ZTEST1 with ZTEST2.
You cannot have a common include for two tables if you are going for event related rule type.
Hope this helps you.
Regards,
Saritha K

Similar Messages

  • Program to Create Users in Multiple Clients at Once

    Hello experts.
    We have a multi-client architecture and I have to frequently create users in many of them at once.
    Is there a fast way or does anybody have ABAP code to create users in multiple clients by while also an existing users Roles?
    We have a program to copy the users, but I still have to go into every system and assign roles.  This is very tedious, so I would appreciate any help.

    Hello Valhalla,
    Try this way:
    BAPI_USER_CREATE1 is remote enabled so you can create RFC destination for the all the system
    you want to create users.
    Load all the rfc destination in one table.
    Load all the users need to be created in one table.
    Loop at rfc_dest_tab.
        loop at users_tab.
             CALL FUNCTION 'BAPI_USER_CREATE1' DESTINATION rfc_dest_tab-RFC_DESTINATION
      EXPORTING
        USERNAME         =  users_tab-USERNAME
      NAME_IN          =
        LOGONDATA        =
        PASSWORD         =
      DEFAULTS         =
        ADDRESS          =
      COMPANY          =
      SNC              =
      REF_USER         =
      ALIAS            =
      EX_ADDRESS       =
      UCLASS           =
    TABLES
      PARAMETER        =
      RETURN           =
      ADDTEL           =
      ADDFAX           =
      ADDTTX           =
      ADDTLX           =
      ADDSMTP          =
      ADDRML           =
      ADDX400          =
      ADDRFC           =
      ADDPRT           =
      ADDSSF           =
      ADDURI           =
      ADDPAG           =
      ADDCOMREM        =
      GROUPS           =
      PARAMETER1       =
      EXTIDHEAD        =
      EXTIDPART        =         .
    ENDLOOP.
    ENDLOOP.
    This will create required user in remote SAP systems.
    Hope this solves your issue!
    Thanks,
    Augustin.
    Edited by: Augustarian on Aug 22, 2009 11:52 AM
    Edited by: Augustarian on Aug 22, 2009 11:52 AM

  • How to create Using Formatted Text Field with multiple Sliders?

    Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
    my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
    // constructor
    label1 = new JLabel( "Individuals" );
    scroller1 = new JSlider( SwingConstants.HORIZONTAL,     0, 100, 10 );
    scroller1.setMajorTickSpacing( 10 );
    scroller1.setMinorTickSpacing( 1 );
    scroller1.setPaintTicks( true );
    scroller1.setPaintLabels( true );
    scroller1.addChangeListener(this);
    java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
    NumberFormatter formatter = new NumberFormatter(numberFormat);
            formatter.setMinimum(new Integer(0));
            formatter.setMaximum(new Integer(100));
    textField1 = new JFormattedTextField(formatter);
    textField1.setValue(new Integer(10)); //FPS_INIT
    textField1.setColumns(1); //get some space
    textField1.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField1.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField1.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField1.selectAll();
                    } else try {                    //The text is valid,
                        textField1.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    label2 = new JLabel( "Precision" );
    scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
    scroller2.setMajorTickSpacing( 10 );
    scroller2.setMinorTickSpacing( 1 );
    scroller2.setPaintTicks( true );
    scroller2.setPaintLabels( true );
    scroller2.addChangeListener(this);
    textField2 = new JFormattedTextField(formatter);
    textField2.setValue(new Integer(10)); //FPS_INIT
    textField2.setColumns(1); //get some space
    textField2.addPropertyChangeListener(this);
    //React when the user presses Enter.
    textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),  "check");
            textField2.getActionMap().put("check", new AbstractAction() {
                public void actionPerformed(ActionEvent e) {
                    if (!textField2.isEditValid()) { //The text is invalid.
                        Toolkit.getDefaultToolkit().beep();
                        textField2.selectAll();
                    } else try {                    //The text is valid,
                        textField2.commitEdit();     //so use it.
                    } catch (java.text.ParseException exc) { }
    // State Changed
         public void stateChanged(ChangeEvent e) {
             JSlider source = (JSlider)e.getSource();
             int fps = (int)source.getValue();
             if (!source.getValueIsAdjusting()) { //done adjusting
                  if(source==scroller1)   {
                       System.out.println("source ==scoller1\n");
                       textField1.setValue(new Integer(fps)); //update ftf value
                  else if(source==scroller2)     {
                       System.out.println("source ==scoller2\n");
                       textField2.setValue(new Integer(fps)); //update ftf value
             } else { //value is adjusting; just set the text
                 if(source==scroller1)     textField1.setText(String.valueOf(fps));
                 else if(source==scroller2)     textField2.setText(String.valueOf(fps));
    // Property Change
        public void propertyChange(PropertyChangeEvent e) {
            if ("value".equals(e.getPropertyName())) {
                Number value = (Number)e.getNewValue();
                if (scroller1 != null && value != null) {
                    scroller1.setValue(value.intValue());
                 else if (scroller2 != null && value != null) {
                    scroller2.setValue(value.intValue());
        // ACTION PERFORMED
        public void actionPerformed(ActionEvent event) {
        if (!textField1.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField1.selectAll();
        } else try {                    //The text is valid,
            textField1.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
             if (!textField2.isEditValid()) { //The text is invalid.
            Toolkit.getDefaultToolkit().beep();
            textField2.selectAll();
        } else try {                    //The text is valid,
            textField2.commitEdit();     //so use it.
        } catch (java.text.ParseException exc) { }
    ...

    if :p3_note_id is null
    then
    insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
    Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.

  • Creating process for multiple Date fields for update or insert in APEX

    hello there,
    could someone please help me?
    i have a form on Apex based on view that is based on three tables and updating and inserting ok using trigger instead of.
    i have a problem now as in my form i have around 75 fileds (items) incuding 30 or more date fields which could be populated or left blank or update later.
    so for each date field i have two boxs; one for date, input as dd/mm/yyyy (text field) and second for time, input as 23:45. All dates will be insert or update manually by user. so as i mentioned not all date fields could be poulated at one stage.
    so i have created some process and validations and all of them work fine but i came accross if date left blank then (:) giving me problem so i have done following further process for each date field. In real table all the date fields have data type date.
    declare
    v_my_var date; -- for first date field
    str_dy VARCHAR2(10);
    dt_indx date;
    str_tm VARCHAR2(20);
    tm_indx date;
    begin
    str_dy := :p4_first_date
    str_tm := str_dy||' '||substr(:p8_first_date_hh,1,2)||':'||substr(:p8_first_date_HH,4,2);
    dt_indx := to_date(str_tm,'DD/MM/YYYY HH24:MI');
    IF str_dy is not null then
    v_my_var :=dt_indx;
    ELSE
    v_my_var := NULL;
    END IF;
    update table 1 set my_date = v_my_var where d_id= :p4_d_id;
    end;
    above code work fine but one date field of course therefore i have to do same code for each date field with changes and initialise variable again and again for each field.
    so i like to ask is there any easy way that is more professional. i was thinking about the procedure and using collection or similar but honestly not much experience on that so could some one please help me?
    I will be very thankful.
    KRgds

    Hi,
    You can do the needful by re-using the code if you can give the item names as P8_DATE1, P8_DATE_hh1, P8_DATE2, P8_DATEhh2 etc..So your item name just differs by a sequence.
    Now you write function which will return desired date value taking above items as input. Pass item names to this function, get session state using APEX_UTIL.GET_SESSION_STATE('item_name') API.
    Now modify you code as
    FOR i IN 1..30
    LOOP
    v_date_array[i] = f_get_date('P8_DATE'||i, 'P8_DATEhh'||i);
    END LOOP;
    ....Now you have all date valus in array. Just write one update as follows
    UPDATE  TABLE1
    SET date1 = my_date_array[1], date2 = my_date_array[2]..
    WHERE ....Hope it helps :)
    Cheers,
    Hari

  • How can I create a search plugin for multiple fields

    There are a number of sites that have search capabilities but they require entries into multiple fields.
    One such site is for instance the IBM Employee directory.
    (http://www.ibm.com/contact/employees/servlets/lookup)
    On this site - in order to get usable results - I have to enter both First name and Last name of the employee I'm looking for.
    I created a search plugin for the site, however I wasn't able to split the entered text into two parts and provide them as separate fields for the form.
    Is there a way to do this?
    Regards,
    Imre

    Hi,
    This is excellent. Not search-plugin though but but this is as good as a search-plugin. (Even better, as I haven't seen any solution with the plugins for the problem.)
    I didn't know that it was possible to use javascript as bookmark location.
    Thanks,
    Imre

  • Error while Creating a formula for field AZNOR (T-Code : OP17)

    Dear Experts,
    i am facing a problem in Transaction OP17 while creating a formula for field AZNOR ( No of indivual capacity in work center) in work center (T-Code : CR02) .
    It shows the error
    The data object "F" has no component called "AZNOR''..
    Please let me know the solution..
    Thanks & Regards
    Birendra Kumar

    Hi,
    I have the same problem.
    Could You tell me witch is the correct origin?
    Thanks a lot!
    Bye
    Laura

  • Creating external table - from a file with multiple field separators

    I need to create an external table from a flat file containing multiple field separators (",", ";" and "|").
    Is there any way to specifiy this in the CREATE TABLE (external) statement?
    FIELDS TERMINATED BY "," -- Somehow list more than just comma here?
    We receive the file from a vendor every week. I am trying to set up a process for some non-technical users, and I want to keep this process transparent to them and not require them to load the data into Oracle.
    I'd appreciate your help!

    scott@ORA92> CREATE OR REPLACE DIRECTORY my_dir AS 'c:\oracle'
      2  /
    Directory created.
    scott@ORA92> CREATE TABLE external_table
      2    (COL1 NUMBER,
      3       COL2 VARCHAR2(6),
      4       COL3 VARCHAR2(6),
      5       COL4 VARCHAR2(6),
      6       COL5 VARCHAR2(6))
      7  ORGANIZATION external
      8    (TYPE oracle_loader
      9       DEFAULT DIRECTORY my_dir
    10    ACCESS PARAMETERS
    11    (FIELDS
    12         (COL1 CHAR(255)
    13            TERMINATED BY "|",
    14          COL2 CHAR(255)
    15            TERMINATED BY ",",
    16          COL3 CHAR(255)
    17            TERMINATED BY ";",
    18          COL4 CHAR(255)
    19            TERMINATED BY ",",
    20          COL5 CHAR(255)
    21            TERMINATED BY ","))
    22    location ('flat_file.txt'))
    23  /
    Table created.
    scott@ORA92> select * from external_table
      2  /
          COL1 COL2   COL3   COL4   COL5
             1 Field1 Field2 Field3 Field4
             2 Field1 Field2 Field3 Field4
    scott@ORA92>

  • Extend ABC Code clasification to include code = "D" MRP1 field -  tx MM01

    Hi All
    I need to extend ABC Code clasification to include code = "D"  in MRP1 - ABC Indicator field in TX MM01, can someboby tell me how pls!!
    thks in advance

    you cannot have a D for this field.
    See transaction MC40 which is used to calculate and update this field.  There is nothing to add a D in the analysis strategy section. So you would need to re-write this transaction as well if you want a D.
    Instead use the CC - Abc indicator field in storage location view. Here you can have a D.

  • Include Manager Lookup field on User Create & Modify form oim11g

    Hi Experts,
    I deleted the add manager field text box from the User modify and create page during customizations and published the sandbox. Now, as per the latest changes i needed to bring this field back. When I try to customize and add the content, I can see Manager field (In UserVO.xml) there. I added this field, but this field accepts long value not even text.
    Actually i want to have a lookup type manager field that shows the managers User login when a manager is selected. I can see the functionality implemented in 10g instance. But dont know how to do here.
    Please suggest!

    Thanks all for your suggestion.
    Our requirement, is we need to have a user defined field similar to how its there in "Organisation".
    For example we need to create an user defined field like "Service Holding" which holds different services say like Service 1, Service 2, Service 3 etc.
    Under each service there are multiple roles....
    Eg:
    Service 1 - Role 1, Role 2, Role 3
    Service 2 - Role 4, Role 5
    Service 3 - Role 6, Role 7, Role 8
    Is there a way to store multi-valued attribute in OIM UDF? If so, pls. guide us
    If its not possible we would need to create a Lookup field (something similar to Organization or Manager). User clicks on the button (lens button), which should invoke an API wherein he can select specific Roles and save in User. Eg. like Service 1 - Role 1#Service 2 # Role 5 and store in the backend database.
    Is this possible. Pls. guide.
    Regards,
    Karan

  • Create multiple assets (AS01) - maintain multiple fields can be configured?

    When creating multiple similar assets, system prompts if to maintain fields with different contents.
    The multiple fields that show are limited. I want to maintain certain fields eg. location, serial, license plate, etc.
    Can new fields be added to the maintenance? Please advise.
    Thanks.

    Hi,
    Multipal creation assets only give option cost centre ,Evaluation grp1,2,3,4,5

  • Multiple Field as a Part of the Single Search

    WOW, Jheadstart is the way to go!!
    Here is a quick question to expedite my learning process if you don't mind since my customer needs to see something in couple of weeks.
    I created a single search screen from a group based on what has been generated by the Jheadstart Designer, but only one field is generated. Now, at this point, is there a way to have multiple field generated or I need to customize the generated JSP or UIX screen? Same things for the methods that are involved, will I need to customized certain Action Class methods to include to two attributes as a part of this search.
    I thank you for your explanations and would greatly appreciate any sample codes available that you can refer to or explain.
    Kamran

    hi,Shalini.
    Using Message directly, you can not achieve what you want easily.
    Instead, i thought out one way, you can judge and check whether it can help you a little.
    You don't use the Message manager directly, that means: don't display your message.
    Now, you have one context attribute named "context_msg" which has type "String".
    In addition, you have defined one Link-to-action UI element  which is bound with the context attribute "context_msg".
    When you get the message, use the following
    message e001(ID) with <variable> into lw_msg.
    or if you use Exception class
    lw_msg = lo_exp->get_text( ).
    Then you can set the context attribute "context_msg" with the "lw_msg".
    Now, you can implement your action handler for the action of Link-to-action as you want, i.e. open another pop-up window.
    I don't know whether it can fit your requirement or not.
    Hope it can help you a little.
    Best wishes.

  • Multiple values for multiple fields sharing common id

    I'm new to Reporting Services and I need to create report based on a common child id that includes multiple values from multiple fields in several tables. I can combine all the values into one query for a list report; however, this causes the rows to duplicate
    multiple times based on the differing fields having multiple values (i.e. report contains various child ids and multiple medication dates/names, multiple health diagnoses with onset dates, multiple health service dates/values, multiple immunization types and
    service dates, etc). If I create a list report and try to use various tables, I run into problems with how the tables view the data due to the duplicating child id rows from multiple field values on that child id. If I hide duplicates for these different tables,
    I can run into spacing issues from the duplicating rows and/or hiding data that shouldn't be hid.
    I need the report to have the basic non-duplicating child info (id, name, basic health info) and then also have various sections that contain fields with numerous values (i.e. section for health issue name and onset dates, section for medication name and
    prescription dates, section for health service name and service date, etc). I would want a page break after each child id and would want all the child ids to be viewed/exported for printing purposes at the same time (i.e. not choosing one child id at
    a time to print or view the data). I have tried to create one main table on a list report with various subreports on the child id; however, this is hard for my machine to process (it takes forever) and I can only view/export one child id at a time when I use
    child id as the report parameter.
    Any help you can give this newbie would be greatly appreciate.
    Thanks,
    Melissa S.
    What's the best way for me to
    MelissaS

    Hi simpson213,
    According to your description, you have some questions about your report design.
    1. How to have non-duplicating child info?
    In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
    records on chid id and use First() function on other fields. 
    Reference: First Function (Report Builder and SSRS)
    2. How to  have various sections that contain fields with numerous values?
    We can also add these fileds into the child group of child and have them toggled by child id. 
    Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
    3. How to add a page break between each child?
    Right click on the Row Group(child id)->Page Break->Select between each group instance.
    Reference: Add a Page Break (Report Builder and SSRS)
    4. How to select multiple child id when rendering report?
    When creating parameter, select Allow multiple values in General.
    Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Create a custom multiple selection on screen - not selection-screen block

    Dear expert,
    I created a text field on screen for input selection, e.g field bname for USR02-BNAME. How can i create a CUSTOMIZE multiple selection plus a paste (from clipboard) feature on this screen (e.g. SCREEN 0002) like standard selection-screen from SAP when we create a report.
    For a better view on what i want:
    This text field already use F4 customize search help. I need a multiple selection lines (like standard selection-screen a button on the right side of select-options field).
    Remember, i don't create textfield from select-options parameter (e.q. SELECT-OPTIONS : XBNAME FOR USR02-BNAME),
    but on a screen.
    Anyone can help my case?.
    Thanks and Warm regards,
    Dondi.

    Had the same question from my users. This was the first hit i found but unfortunately without an answer. So for those with the same question, this is how i solved it (goede voornemen voor 2014). In my case the request is a complex selection on the LFA1 table.
    The screen contains two fields to enter the low/high value for lifnr (zdy_droogteschade-lifnr and zdy_droogteschade-lifnr_tot)
    Created a button on the screen, mark this as output only, when pressed the routine multi_select_crediteuren is performed wich uses the fm 'COMPLEX_SELECTIONS_DIALOG'.
    To top it all of, the icon on the button changes depending on the contains of the range table (in a routine called from the PBO).
    This only works when the button is marked as 'output only',
    Include the icon type pool: 'type-pools: icon.'

  • New to the product - question about validating multiple fields as a group

    I have a static form that I'm building from a word document.  Part of that form requires a person to fill any 3 out 5 text fields.
    Since it looks like scripts are applied on a field by field basis, is it possible to have a script that encompasses multiple fields? 
    Would any script need to be applied to each field in turn?
    Assuming the answer to question 1 is a yes, how would you script it to require x number of fields out of a total of y to have some sort of content in order to validate?
    I'm pretty familiar with JavaScript and am looking at the Scripting reference guides but was hoping for a helping hand to get me there quicker as I'm in a bit of a time crunch - doing 18 forms with validation and database connectivity by January 15 certainly qualifies in my book.
    I would assume you'd do something like this but am unsure of the syntax...
    Get values of each field
    Set a valid counter variable for the number of fields with content
    If field 1 is not empty, increment the valid counter
    (rinse and repeat)
    if the valid counter is less than 3 throw an error message
    Many thanks in advance for any help offiered

    1). Yes, scripting within Livecycle can be for a single field or even static text, images and other artifacts within the PDF. Really anything, within Adobe's reason, when it comes to scripting.
    2). It depends on what you want to do. Things like field validations, calculations and other instances where fields are tied togther really dictate how the script runs.
    3). Fields that have calculations or validations with them work in the same, I believe. So for example I have a PDF that I made that is an Excel-type sheet that contains a few hundred cells and every single one has some type of validation or calculation associated with it. I generally run the calculations/validations from the user inputting the data and then after that the script runs, but again, it really dpeneds on what you are doing and with what, so answering some of your questions are a bit difficult.
    Javascrip/Formcalc are wonderful tools within PDF, but don't forget the Action Builder (Tools -Action Builder). It is a set of preloaded actions that are turn-key. Just select the cells that will have the action and select the result you want from the preloaded list of actions, using those actions can get you very far, and most of all; they are quick to implement without researching code. So for example, you could use the Action Builder to create an action that checks certain fields and if they are null to return a 1 value to a specific numericField (these could be hidden). Then have a "total" numericField (this would be your counter) that adds all of those fields with the 1 in it. Then create another Action Builder for that "total" numericField and if it is less than 3, display a message box that is a warning.

  • Copy text from multiple fields to one field

    I would like to copy text from multiple fields into one field. Each of these smaller fields will only be allowed to have one character. The larger field will not be able to be edited.
    So far, I have thought of creating a naming heirarchy for these fields. I was going to then call upon the array of the parent and set the value of the parent to equal this array.
    var parent = this.getField("everything");
    var array = everything.getArray();
    var v;
    for(parent=0; parent<array.length; parent++)
    v = a + " " + v;               //Im guessing this line is incorrect
    parent.value = a;
    Any suggestions? or a better way of doing this.
    Thanks

    The code sample you provided is using AcroForm scripting and will not work in this form. There is another post similar to this one...have a look at this one it might help you out. It is doing the opposite of what you want but the concept of the loop and how each field is addressed inside ofthe loop is what you wil need.
    http://forums.adobe.com/message/2954517#2954517
    Paul

Maybe you are looking for

  • I have erased all the hard drive for some reason and I don't have anymore the windows version of my laptop,the question is below!

    hi, I like to know if somebody has a laptop with windows 8.1 installed and has a recovery  partition in the case of reinstalling windows 8.1.   somebody has erased all harddisk  with low level format for some reason. now this man has no more 8.1 to r

  • Lost text in document...

    I created a document in Pages with a border graphic and text box.  Now when I try and open the document the border graphic loads but the text box doesn't appear and I get a "document warning" window.  How can I restore my document?

  • Getting UTL FILE error trying to read from User_TUNE_MVIEW

    I am trying to set up a materialized view using the dbms_advisor.tune_mview which works and populates the user_tune_mview table. Supposedly I am supposed to be able to extract the suggested SQL from that table by a) logging on as sysdba and i) create

  • Jtable column name

    Hi frds, I developed a JTable for my java application and it is working fine but I need some modifications which i'm unable to do.my JTable is actually linked with mysql database and the data in Jtable comes from the database.my requirement is when i

  • Data load taking very long time between cube to cube

    Hi In our system the data loading is taking very long time between cube to cube using DTP in BI7.0, the maximum time consumption is happening at start of extraction step only, can anybody help in decreasing the start of extraction timing please Thank