Add fill data in previous  work area

Dear moderator,
below  is the data from jcds table, where i want to add new column ie (End date )in work area, which would add next date of the change field(stat) to the previous field . Is there any solution? i was tried for "on change on" , but it is add current field's record..not the previous one.....Would be pls help ??????????????
Stat                 Udate      
E0001          26.10.2010     (As- Is)
E0010          27.10.2010   
E0011          28.10.2010   
E0011              30.10.2010
E0012          01.11.2010    
E0013          02.11.2010    
Stat                     Start date         End date                                  
E0001          26.10.2010     27.10.2010
E0010          27.10.2010     28.10.2010  (To-Be)
E0011          28.10.2010     30.10.2010
E0012          01.11.2010     02.11.2010
E0013          02.11.2010     02.11.2010

Hi,
I don't know if i understand your question correctly, but I hope this helps:
    SORT t_jcds BY udate DESCENDING.
    CLEAR w_jcds.
    LOOP AT t_jcds ASSIGNING <f_jcds>.
      IF w_jcds IS INITIAL.
        w_jcds = <f_jcds>.
        <f_jcds>-enddate = <f_jcds>-udate.
        CONTINUE.
      ENDIF.
      <f_jcds>-enddate = w_jcds-udate.
      w_jcds = <f_jcds>.
    ENDLOOP.
    SORT t_jcds BY udate.
regars,
Paulo.

Similar Messages

  • Can you add fill color to outlines that are fills too? (colorizing a drawing after Live Trace)

    I have a cartoon drawing that I plan to scan in and run Live Trace on to get into Illustrator.  To add color to all the white areas,, generally I would create a fill the shape of the area behind the traced area and color it.  With this one, I have a LOT more areas than I am use to.  Is there a way to just select one of these areas and tell it to put a color in instead of creating a shape of that area in each spot?  I know this sounds confusing!

    Convert the Live-Traced object to a Live Paint object and fill distinct areas with the Paint Bucket tool. Check help files for more info.

  • How to read data from dynamic work area.

    Hi guys,
                I have created dynamic table and work area for report.
    i have populated few values in dynamic work area.
    Now i want to read that data from work area again for calculation.
    i can not use local varialbes to store those values as i dont know how many such variables i need to read.
    that will be known only at run time.
    So as per my knowledge i have only 1 option...to read those all values from work area.
    Kindly help me .... how can i read data which is stored in dynamic work area.

    Hi Kiran,
    Following is not exact code, but exact solution to your problem:
      LOOP AT <dyn_table> ASSIGNING <dyn_wa>.
          l_tabix = sy-tabix.
          ASSIGN COMPONENT 'KOTAB' OF STRUCTURE <dyn_wa> TO <l_kotab>.
          IF <l_kotab> IS ASSIGNED AND <l_kotab> IS INITIAL.
            <l_kotab> = gt_tabs-kotab.
            MODIFY <dyn_table> FROM <dyn_wa> INDEX l_tabix.
          ENDIF.
        ENDLOOP.
    I am hardcoding KOTAB as I was sure about that being in the dynamic structure.
    You can loop on the field catalogue, which you used to create dyamic table,  to use the FIELDNAME to read all the fields of the work area (structure) of your dynamic table.
    thanks,
    Aabhas
    Edited by: Aabhas K Vishnoi on Sep 24, 2009 8:12 PM

  • Hi cani use multiple statment to past data frm different work area

    hi i am doing like this is it ok
    LOOP AT it_inv_data  INTO wa_inv_data.
    READ TABLE it_zfi_inv_master INTO wa_inv_master  WITH KEY
                                    CUSIP = wa_inv_data-CUSIP.
              IF SY-SUBRC = 0.
               wa_maturity-cusip = wa_inv_data-CUSIP.
               wa_maturity-status = wa_inv_data-status.
               wa_maturity-zdate = wa_inv_data-zdate.
               wa_maturity-CREDSUPP =  wa_inv_master-CREDSUPP.
    here ineed some data from wa_inv_data and some from wa_inv_master can i combilnely use this as above using data from wa_inv_master and wa_inv_Data to pass to wa_maturity
               APPEND wa_inv_data TO it_maturity.
               CLEAR: wa_inv_data.
              endif.

    Hi,
    It is possible to do it. Your logic is almost right.
    You can use Move-corresponding to assign values from workarea if the field names are same in the source and target fields.
    Loop at itab1 into wa1.
    move-corresponding fields of wa1 to wa3.
    read table itab2 into wa2 with key key1 = wa1-key1.
    move-corresponding fields of wa2 to wa3.
    append wa3 to itab3.
    endloop.
    Regards,
    Lakshmi.

  • How to add appointment date into CRMD_ORDER TCODE

    Hello i am trying to add 3 dates into the appointment area of the TCODE CRMD_ORDER,i am making this action into de BADI ORDER SAVE, and depents of a specific date of the TCODE i make the 3 differs dates after that ,i fill the input fields tables and of course the appointment tables too, after of that i call the function module CRM_ORDER_MAINTAIN and i send the both table to the this Fucntion module, and when go out of the ORDER_SAVE BADI i am expecting to have the result into the CRMD_ORDER TCODE, but i coudn´t save these dates. (in this example i send only one date)
    InputFields
    ls_input_field-ref_handle = lv_handle_h.
    ls_input_field-ref_guid = iv_guid. "Guid del Documento
    ls_input_field-ref_kind = 'A'.
    ls_input_field-objectname = 'APPOINTMENT'.
    ls_input_field-logical_key = 'ZV01'. "Indica que la fecha es Presentacion de proyecto
    ls_fielname-fieldname = 'DOMINANT'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'DURATION'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'RULE_NAME'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'SHOW_LOCAL'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMESTAMP_FROM'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMESTAMP_TO'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMEZONE_FROM'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIMEZONE_TO'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    ls_fielname-fieldname = 'TIME_UNIT'.
    ls_fielname-changeable = 'X'.
    INSERT ls_fielname INTO TABLE ls_input_field-field_names.
    INSERT ls_input_field INTO TABLE et_input_fields.
    appointment table
    wa_appointment-ref_guid = iv_guid.
    wa_appointment-ref_kind = 'A'.
    wa_appointment-timezone_from = 'CST'.
    wa_appointment-timestamp_to = '0'.
    wa_appointment-timezone_to = 'CST'.
    wa_appointment-appt_type = 'ZV01'.
    wa_appointment-timestamp_from = lv_timestamp.
    APPEND wa_appointment TO it_appointment.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
    it_appointment = it_appointment
    CHANGING
    ct_input_fields = it_input_fields
    EXCEPTIONS
    error_occurred = 1
    document_locked = 2
    no_change_allowed = 3
    no_authority = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    So does anybody have any idea how to make this?
    Thanks a lot for you help.

    You can modify the following coding which is working fine for me...
      ls_field_names-fieldname = 'DOMINANT'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'DURATION'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'RULE_NAME'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'SHOW_LOCAL'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIMESTAMP_FROM'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIMEZONE_FROM'.
      INSERT ls_field_names INTO TABLE lt_field_names.
      ls_field_names-fieldname = 'TIME_UNIT'.
      INSERT ls_field_names INTO TABLE lt_field_names.
          CLEAR lt_appointment.
          ls_appointment-ref_handle = '0000000001'.
          ls_appointment-appt_type = 'REQ_DLV_DATE'.
          ls_appointment-ref_kind = 'A'.
          ls_appointment-ref_guid = <lf_order_data>-guid.
          ls_appointment-timestamp_from = lv_timestamp.
          ls_appointment-timezone_from = sy-zonlo.
          APPEND ls_appointment TO lt_appointment.
          CLEAR ls_input_fields.
          ls_input_fields-ref_guid = <lf_order_data>-guid.
          ls_input_fields-ref_kind = 'A'.
          ls_input_fields-ref_handle = '0000000001'.
          ls_input_fields-objectname = 'APPOINTMENT'.
          ls_input_fields-logical_key = 'REQ_DLV_DATE'.
          ls_input_fields-field_names = lt_field_names.
          INSERT ls_input_fields INTO TABLE lt_input_fields.

  • Buttons in Work Area Toolbar

    How can I add/remove buttons to a work area toolbar?
    Thanks for your help!

    Hi Dave,
    If you want to add or remove buttons in a toolbar, you need to have a look at the Controller Implementation Class of the View or Overview Page to which you want to add a button. In this class you will find back the method: IF_BSP_WD_TOOLBAR_CALLBACKGET_BUTTONS where the list of buttons is filled and where you can add or remove buttons. And you will find back the method IF_BSP_WD_TOOLBAR_CALLBACKGET_NUMBER_OF_VISIBLE_BUTTONS where the number of visible buttons is defined.
    Kind regards,
    Carl

  • ALV Report: How to pass the variable in Work area to the FM ? Please help !

    I want to pass the field in the work area which contains the floating point numbers to FM 'FLTP_CHAR_CONVERSION_FROM_SI'. This the correct FM, I have tested.
    If I specify the field with Tab name in FM , It says its not an internal table with header line.
    Please help me, How should can I proceed further and pass the field to FM and get it back in work area.
    And an other issue is I want to sum the particular field in the output.
    Is there a way to do using 'PF-STATUS', if so how ? or what is the alternative for this ?
    Please help me with my issues.
    I'm new to ALV reports.
    Thanks in Advance !

    Hi,
    For your FM issue, i think you are trying to pass the field in the FM as ITAB-field, while you should be taking the data in the work area first and then pass this work area in the FM as WA_ITAB-field.
    I hope this will resolve your prob.
    I mean loop at the table and take the values into work area, update the internal table with changed value. This way by the end of loop you will have all your fields converted.
    Please explain a little more about your second doubt, it is unclear(to me atleast).
    Edited by: DeepakNagar on Jul 28, 2011 6:08 PM

  • Question related to work area

    I have a work area of the format yyyymm. I want to transfer first 4 digits to another work area which is like year and the next 2 digits to another work area which is like month? Can you suggest me a sample code here?
    Thanks,
    Krishen

    Hi Krishen,
    U can achieve this by Splitting of a variable(date YYYYMM in the work area) into two or more variables .. using the OFFSET concept given by SAP ....
    here goes ...
    Data : var1(4) type c, "year
           var2(2) type c. "month
    U have the date in the work area as YYYYMMDD lets say ... date = YYYYMMDD
    now u have to assign the data to the variables ....
    var1 = date+0(4). "YYYY
    var2 = date+4(2). "MM
    The above means
    u are assigning the first 4 characters (YYYY) of the variable DATE to VAR1
    and the next 2 characters starting from 'M' (MM) to VAR2
    thats one of the way how u split the work area into two or more ........
    Cheers ....................
    Kripa Rangachari

  • How do I add another movie to the project area to work on without it being attached to a previous project?

    How do I add another movie to the project area to work on without it being attached to a previous project?

    No.  I have a number of items in the Event Library.  I am trying to move some of them to the Project Library and when I do it attaches itself to the other project I have there.

  • After updating to v. 24.0 (and restarting) ALL add-ons (regardless whether they work or not) are marked "(disabled)", and clicking Enable button does nothing

    After updating to v. 24.0 (and restarting, several times) ALL add-ons (regardless whether they work or not) are marked "(disabled)". I tried clicking "Enable" button for each add-on and nothing happened. There is only one add-on which is marked as incompatible with this version (but it was also incompatible with previous version, and so marked).
    Clicking "Update Add-ons", gives a short list of add-ons but "Install Updates" button is pale and doesn't work. I can only sort list by name or last update.
    Also, I disabled Ask Toolbar and that went well. When I click "Enable" button (button works ONLY for this add-on) it takes forever to get note: “Ask Toolbar will be enabled after you restart Firefox”, I used to get this info in seconds time before this update. (I do not really want Ask Toolbar, I just used it to see whether if I disable and then enable an add-on might do the trick.)
    Bottom line – I can not tell if add-on works (i.e. if it is enabled or disabled) unless I try using it.
    Even when I posted this question and installed Troubleshooter, it's also marked as "(disabled)"

    You're welcome
    Are this screenshots from an extension window because the built-in about:addons page looks different?

  • How to fill Dynamic work area or field symbol?

    HI All,
    I have created dynamic work area(field symbol) by using following code. Now I want to fill the work area with values which are there in other internal table.
    * Create dynamic internal table/structure
      call method cl_alv_table_create=>create_dynamic_table
        exporting
          it_fieldcatalog = it_fieldcat
        importing
          ep_table        = dyn_table.
      assign dyn_table->* to <fs_table>.
    * Create dynamic work area and assign to Field Symbol
      create data dyn_line like line of <fs_table>.
      assign dyn_line->* to <fs_wa>.
    My <FS_WA> contains:
    ROW1
    ROW2
    ROW3
    ROW4 as fields in it without having any data.
    I have other internal table.. where I have FIELDS and Data like following:
    FIELD1  FIELD2   FIELD3
    ID1 ROW1 A1
    ID1 ROW2 A2
    ID1 ROW3 A3
    ID1 ROW4 A4
    ID2 ROW1 B1
    ID2 ROW2 B2
    ID2 ROW3 B3
    ID3 ROW1 C4
    Important thing that I have to share with you is... Source table of my Internal table and Source structure to create my dynamic table are same.
    This dynamic table has fields... with "FIELD2" values.
    Thanks,
    Naveen.I

    Create a dynamic internal table
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = lt_fcat
        IMPORTING
          ep_table        = lt_dy_table.
    Create dynamic work area and assign to FS
      ASSIGN lt_dy_table->* TO <fs_dyn_table>.
      CREATE DATA lt_dy_line LIKE LINE OF <fs_dyn_table>.
      ASSIGN lt_dy_line->* TO <fs_dyn_wa>.
    Define WA
      CREATE DATA dref TYPE (iv_struc_name).
      ASSIGN dref->* TO <fs_final>.
    Populate dynamic table from the file
      OPEN DATASET iv_path FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        DO.
          READ DATASET iv_path INTO ls_str.
          IF sy-subrc <> 0.
            ev_failed = abap_true.
            EXIT.
          ENDIF.
          SPLIT ls_str AT ';' INTO TABLE lt_dyn_tab.  " columns
          LOOP AT lt_dyn_tab INTO ls_dyn_tab.
            READ TABLE lt_struc_fld INTO ls_struc_fld INDEX sy-tabix.
            IF sy-subrc EQ 0.
              MOVE ls_struc_fld-fieldname TO ls_fieldname.
              ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_dyn_wa> TO <fs_val>.
              IF sy-subrc = 0.
                <fs_val> = ls_dyn_tab.
              ENDIF.
              ASSIGN COMPONENT ls_fieldname OF STRUCTURE <fs_final> TO <fs_val>.
              IF sy-subrc = 0.
                <fs_val> = ls_dyn_tab.
              ENDIF.
            ENDIF.
          ENDLOOP.
          APPEND <fs_dyn_wa> TO <fs_dyn_table>.
          APPEND <fs_final> TO et_table.
          UNASSIGN: <fs_val>.
        ENDDO.
      ENDIF.
      CLOSE DATASET iv_path.

  • HT203128 iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.

    iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.
    - it's all said in the title. I can't understand why the developers turn things bad ... risking loosing Apples valuable customers.
    More examples needed? (check out the communities and the reviews)
    - OSX: Maverick to Yosemite = not recommended (check it out > http://roaringapps.com/apps)
    - iPad: older versions as iPad2 should not upgrade to iOS7/8 (it's not supporting its hardware accordingly, it's designed for the latest hardware)
    - iTunes (it's possible to rollback to 10.7 - 11.4, but you need to breech OSX system security framework)
    - Pages (was a real alternative for many of us, each update reduced features and created incompatibility to older work files)
    The list could easily extend to ...

    You can offer Apple feedback here: http://www.apple.com/feedback/
    as for "
      "@Apple, I want a $100 gift card for the inconvenience"
    dream on.

  • HT4623 Could not activate cellular data network. You are not subscribed to a cellular data service" "Cellular Data Plan Usage-There is no data remaining on your current plan. Would you like to add more data now?"what is the best thing i can do with this p

    Could not activate cellular data network. You are not subscribed to a cellular data service"
    "Cellular Data Plan Usage…There is no data remaining on your current plan. Would you like to add more data now?"what im going to do whit this problem??

    I have done that and it is definitely on.  My husband has the exact same phone and I upgraded his IOS at the same time, but this problem is not happening to his phone (we are also on the same plan, so our service should be the same).  Our settings appear to be identical and my phone is showing the 3G symbol at the top, so I can't understand why it won't access the network.
    I've turned it on and off twice and have reset all settings with my iTunes account, but it still isn't working.
    I'm not a complete idiot with this sort of stuff - I have tried all the obvious things.

  • CS5.5 - Go to previous or next visible item in time ruler (keyframe, marker, work area beginning or

    The
    Go to previous or next visible item in time ruler (keyframe, marker, work area beginning or end)
    J & K
    Does not work at all here.
    Perhaps I am misunderstanding the nature of this feature but from reading the text in the manual I would come to expect
    that hitting i.e. J&K - would go the next visible item in the ruler be that a Keyframe or Marker etc... However, when I hit K timeline takes me to the end of the composition and J to the beginning. And I have a lot of markers set.
    Any Ideas
    Thanks

    It works on layer markers and keyframes, but not comp markers. Furthermore, it will also not work, if index items have been scrolled out of view or are shy even if the property streams and their keyframes are otherwise visible. This has never been any different, but it's quite annoying.
    Mylenium

  • When my iPhone is connected (via the Lightning cable) to the usb port in my car, the alert tones are no longer played through the car speaker or the phone.  This previously worked, but has randomly stopped working, help!

    When my iPhone is connected (via the Lightning cable) to the usb port in my car, the alert tones are no longer played through the car speaker or the phone.  This previously worked, but has randomly stopped working. help!

    I took my iPhone to the Service center of M/s RSG INFOTECH PRIVATE LIMITED on April 17, 2014.
    Why are you posting in this forum about what occured with an independent service provider?  How is is at all relevant to Apple??  In fact, service by any person or business not authorized by Apple voids any waranty.

Maybe you are looking for

  • Any news on ADS in cloud..?

    Hi, In the TechEd presentation SAP Interactive Forms by Adobe – Today and Tomorrow it was mentioned that Adobe Document Services are coming to the cloud... in 2014. I have searched around, but don't find any new information. Has anybody heard any new

  • User Authentication for subfolder not working in Web Browser

    We are using Oracle Application Server 10.1.2.3 and Database Server 10.2.0.5 for our application. One of the functionalities of the Application is to send emails with attachments. The logic is that the Application would generate the attachment file o

  • MS SQL DB User Management Connector Unable to Select Multiple Server

    Hi, We are trying to connect to multiple server using MS SQL DB user management connector but receive the error below when selecting server. <Sep 3, 2012 4:28:59 PM MYT> <Error> <XELLERATE.APIS> <BEA-000000> <Class/Method: tcLookupOperationsBean/getL

  • Cheque writer process issue

    In payroll International HRMS i have defined 2 payment methods with 2 different currencies. USD - BG currency KSH - Kenyian Shilling There are 50 employees attached to the USD currency payment method and 800 employees are attached to KSH currency pay

  • Question about SDK dependencies for PHP

    Dear Sirs, I'm having a problem when I was creating the connection with my azure storage account. so I have the folloowing questions: Is the folder structure of Azure SDK and its dependencies are correct? In the case the folder structure is not corre