AT END OF for char field not working

Hi all,
AT END OF (char field) not working,
I sorted the itab and also avoid the stars(*) problem also, but its not working.
Thanks in advance.
Edited by: Vijay Babu Dudla on Jan 28, 2009 11:01 PM

Hi, Niranjan
Test the following Sample Code it will solve out your Problem,
" This is not working properly right now.
TYPES: BEGIN OF t_name,
  name1(10),  " if You Change Cut the Name2 from the 2nd line and past it up to the Name one will work fine
  name2(10),
  amount1 TYPE p,
  amount2 TYPE p,
  END OF t_name.
DATA: it1_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
      wa_it1_sum TYPE t_name,
      it2_sum TYPE STANDARD TABLE OF t_name WITH HEADER LINE,
      wa_it2_sum TYPE t_name.
wa_it1_sum-name1 = 'AAAAAA'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 500.
wa_it1_sum-amount2 = 200.
APPEND wa_it1_sum  TO it1_sum.
wa_it1_sum-name1 = 'AAAAAA'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 500.
wa_it1_sum-amount2 = 200.
APPEND wa_it1_sum  TO it1_sum.
wa_it1_sum-name1 = 'BBBBBB'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 100.
wa_it1_sum-amount2 = 200.
APPEND wa_it1_sum  TO it1_sum.
wa_it1_sum-name1 = 'AAAAAA'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 500.
wa_it1_sum-amount2 = 10000.
APPEND wa_it1_sum  TO it1_sum.
wa_it1_sum-name1 = 'BBBBBB'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 105000.
wa_it1_sum-amount2 = 20500.
APPEND wa_it1_sum  TO it1_sum.
wa_it1_sum-name1 = 'BBBBBB'.
wa_it1_sum-name2 = 'AAAAAA'.
wa_it1_sum-amount1 = 21000.
wa_it1_sum-amount2 = 22000.
APPEND wa_it1_sum  TO it1_sum.
SORT it1_sum BY name1 name2.
LOOP AT it1_sum INTO wa_it1_sum.
  APPEND wa_it1_sum TO it2_sum.
  AT END OF name2. " When you will use this in this Condition it will give you wrong Because this row is on number two and
                   " it is not changing but the Row one is Changing so it will work fine if LEFT MOST
    SUM.
    wa_it1_sum-name1 = 'End Name 2'.
    wa_it1_sum-name2 = 'End Name 2'.
    APPEND wa_it1_sum TO it2_sum.
  ENDAT.
  AT LAST.
    SUM.
    wa_it1_sum-name1 = 'At Last'.
    APPEND wa_it1_sum TO it2_sum.
  ENDAT.
ENDLOOP.
Please Reply if need more help about it.
Kind Regards,
Faisal

Similar Messages

  • Help for date field not working after upgrade

    hi experts,
    In our BSP application for a page we had an inputfield (date).
    Onvaluehelp for input field we were calling the saphelpdate function.
    however after upgrade this functionality is not working properly as no pop up comes after clicking on the icon.
    we have upgraded to SPS 16 recently.
    please help me.
    regards,
    Arvind.

    Hi, I try upper case but nothing happen. This is all my code by far, I hope you can help me:
    DATA: BEGIN OF T_PCONT OCCURS 0,
          PCONT LIKE ZPSPERMISOS-PSOBKEY,
    END OF T_PCONT.
    DATA: BEGIN OF T_FIELDS OCCURS 0.
            INCLUDE STRUCTURE help_value.
    DATA END OF T_FIELDS.
    DATA: BEGIN OF T_VALUES OCCURS 0,
          VALUE(60) TYPE c.
    DATA: END OF T_VALUES.
    DATA: N TYPE i.
    SELECTION-SCREEN BEGIN OF BLOCK  b20 WITH FRAME TITLE text-b02.
      SELECT-OPTIONS:
        P_CONT FOR  ZPSPERMISOSH-PSOBKEY OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_INT  FOR  ZPSPERMISOSH-PARTNER OBLIGATORY NO-EXTENSION NO INTERVALS,
        P_FEC  FOR  ZPSPERMISOSH-ZFINICN NO-EXTENSION NO INTERVALS,    
        P_RAZ  FOR  ZPSPERMISOSH-ZRAZONFINIC NO-EXTENSION NO INTERVALS.
    SELECTION-SCREEN END OF BLOCK b20.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CONT-LOW.
      PERFORM P_HELP_P_CONT USING P_CONT-LOW.
    *&      Form  P_HELP_P_CONT
    FORM P_HELP_P_CONT  USING P_P_CONT.
      DESCRIBE TABLE T_PCONT LINES N.
      IF N EQ 0.
        T_FIELDS-FIELDNAME  = 'PSOBKEY'.
        T_FIELDS-TABNAME    = 'ZPSPERMISOS'.
        T_FIELDS-SELECTFLAG = 'X'.
        APPEND T_FIELDS.
        CLEAR T_FIELDS.
        SELECT PSOBKEY FROM ZPSPERMISOS
        INTO  TABLE T_PCONT.
        SORT T_PCONT BY PCONT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          CUCOL        = 10
          CUROW        = 1
          TABNAME      = 'T_PCONT'
          FIELDNAME    = 'PCONT'
        IMPORTING
          SELECT_VALUE = P_P_CONT
        TABLES
          FIELDS       = T_FIELDS
          VALUETAB     = T_VALUES.
    ENDFORM.                    " P_HELP_P_CONT
    Edited by: J. Garibaldi on Nov 25, 2009 11:14 AM
    Edited by: J. Garibaldi on Nov 25, 2009 11:16 AM

  • End jump for Play All not working

    Below is my question on an earlier post, followed by an answer from a forum member, which I thought was the solution. I followed his suggestion to link the play all button to Track 1, and then clicked in the track to get the track inspector and linked the end jump to Menu 1. It must have worked in the simulator, because I marked Steve's answer 'solved', but now when I play the discs I've burned, the play all button plays only the first selection and then return to the menu. Same thing happens in the simulator.
    So please tell me how to get that play all button to really play all. It's driving me crazy, and I have to recall 2 discs I sent out to clients so far. If someone could walk me through it, I'd really appreciate it, thanks!
    MY POST: I have 9 markers on the track for 8 selections, the 9th was added so that the track would play all the way through when the Play All button on the menu was clicked. When the user clicks on any one selection it plays through and returns to the menu. I can't get the Play to do that, it just stops at the end and the user has to click play to get the menu back on the screen. Again, the manual on page 490 mentions setting end jumps and says the end jump for the last marker is not linked to any targets, and must be set yourself. So I have tried several times to do this in an number of ways as suggested by the book. No go.
    Again, simplest possible explanation, please, as I've used a lot of time on this, and have lost most of my concentration and patience(!)
    thanks
    Dual 1.25 GHz PM/G4 Mac OS X (10.3.x) DVDSP3
    Steven Cohen
    Posts: 103
    Registered: Jul 10, 2001
    Re: End Jump Setting for Play All
    Posted: Aug 19, 2008 1:43 AM in response to: Keith Rodan
    Solved
    Click to reply to this topic Reply email Email
    Link the "Play All" button to the track, not the first chapter marker. Then click on the track. In the inspector, settings for the track will appear. For end jump, select menu 1. (or whatever you want it to jump to.) If you want each segment on the track to play individually and then jump back to the first menu, easiest way to do that is with stories. Check manual or do search of this forum on ways to do that. Hope that helps.
    Steve

    Hi Keith - there are several ways to do this. By far the simplest is to use stories, but there are two ways of doing that, too.
    Here's one way:
    Make sure you have the 8 markers that you need, and make sure that each marker has got an end jump on it to return you to your menu and the button for that section. Now add a single story and add ALL of the markers to that (drag them over from the story editor window left to right). You'll notice that the markers are labelled 'Chapter 1 Entry', which means you are not adding the end jumps to the story... each marker will play and then go on to the next in the sequence, ignoring any end jumps you have already put on the markers.
    Now set your play all button on your menu to go to the story container (NOT chapter 1 inside the story). All you other buttons should point to the relevant markers on the track and not in the story.
    Set the end jump for the story to go back to the 'play all' button on your menu, and set the menu call for the story to do the same. You can set the menu call for the markers as you want, too.
    You should now have a single track, eight markers with end jumps, a single story with 8 chapter entry markers in it and a disc that alows you to play a single marker or the entire lot.
    The alternative way to do this is to add your 8 markers as before (no need for 9), make sure there are NO end jumps on the markers and then add 8 stories. Put one marker into each story and set the end jumps on each story to go back to the relevant menu button. Set the menu calls for each story to do the same.
    Now set your single chapter play menu buttons to the relevant story container (and NOT the chapter inside it), and your pay all button to the track itself. Set the end jump and menu call for the track to go where you want them to.
    There are then at least two other ways to do this using scripts... but I figure these here should cover what you need right now! I'd recommend using the first method - it's quicker to set up and more simple to implement.

  • Copy Control for EEWB fields not working

    Hi Experts,
    I have added one custom field to CRMD_ORDERAM_H using EEWB, now i want this field to be copied from Quotation to Sales order. I have tried with the following options:
    1. Created new implementation Ztest for the Badi CRM_COPY_BADI with new filter value.
    2. Assigned the implementataion in Copy control for transaction types.
    3. Badi is getting triggered, but I am not able to copy the value to the sales order.
    I have written the following code in ORDERADM_H method:
    METHOD if_ex_crm_copy_badi~orderadm_h.
    constants
      INCLUDE crm_object_kinds_con.
      INCLUDE crm_object_names_con.
      INCLUDE crm_appointment_types_con.
    local data
      DATA:
        ls_orderadm_h_com    TYPE crmt_orderadm_h_com,
        lv_allowed           TYPE crmt_boolean,
        lv_ref_kind          TYPE crmt_object_kind,
        ls_input_field_names TYPE crmt_input_field_names,
        lt_input_field_names TYPE crmt_input_field_names_tab.
    IF cs_orderadm_h is not INITIAL.
        lv_ref_kind = gc_object_ref_kind-orderadm_h.
        CALL FUNCTION 'CRM_ORDERADM_H_OBJ_ALLOWED_OW'
          EXPORTING
            iv_ref_guid            = cs_orderadm_h-guid
            iv_objectname          = gc_object_name-orderadm_h
          IMPORTING
            ev_allowed             = lv_allowed
          EXCEPTIONS
            admin_header_not_found = 1
            OTHERS                 = 2.
        IF sy-subrc <> 0 OR lv_allowed <> 'X'.
    nothing to do
          RETURN.
        ENDIF.
        CLEAR ls_input_field_names.
        CLEAR lt_input_field_names[].
        ls_input_field_names-fieldname = 'ZZDEP2PVNDPGM'.
        INSERT ls_input_field_names INTO TABLE lt_input_field_names.
    ls_orderadm_h_com-guid = cs_orderadm_h-guid.
    ls_orderadm_h_com-ZZDEP2PVNDPGM = is_ref_orderadm_h-ZZDEP2PVNDPGM.
        CALL FUNCTION 'CRM_ORDERADM_H_MAINTAIN_OW'
          EXPORTING
            is_orderadm_h_com             = ls_orderadm_h_com
       IV_EXTERNAL_CALL              = FALSE
    IMPORTING
       EV_GUID                       = cs_orderadm_h-guid
          CHANGING
            ct_input_field_names       = lt_input_field_names
       CT_DOC_LINKS                  =
       CT_DOC_FLOW_FIELD_NAMES       =
    EXCEPTIONS
       HEADER_CREATE_ERROR           = 1
       HEADER_CHANGE_ERROR           = 2
       PARAMETER_ERROR               = 3
       PROCESS_TYPE_ERROR            = 4
       DELETION_NOT_ALLOWED          = 5
       NO_AUTHORITY                  = 6
       OTHERS                        = 7
        IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    able to get the values to ls_orderadm_h_com  and lt_input_field_names, but the value is not getting copied.
    Any idea on this?
    Thanks in advance.
    Regards,
    S Reddy

    Hi Reddy,
    You don't need to call functions like 'CRM_ORDERADM_H_MAINTAIN_OW' to update that attributes.
    All you have to do is to fill changing structure CS_ORDERADM_H that belongs to your target document, with the values you desire (the value for ZZDEP2PVNDPGM field for example). Then fill changing structure CT_INPUT_FIELD_NAMES with the field names that you want to update ('ZZDEP2PVNDPGM' for example).
    Kind regards,
    Garcia

  • CRM extractor 0CRM_SERV_PROCESS_H delta for ZZ-fields not working

    Dear all,
    We are experiencing trouble with a extractor 0CRM_SERV_PROCESS.
    We have extended the extract structure of this extractor with an append structure containing some custom date and text fields.
    When doing a full load or a delta init, all fields arrive properly in SAP BW.  In RSA3 in CRM, everything appears to be correct.
    When performing a delta update however, the custom fields appear as null in SAP BW while the standard fields are updated normally (null as in empty or 00000).
    After browsing thru this forum and some sap notes (661340, 692195, 871930, 887724, 892022) I still haven't found a solution.
    Does anyone have an idea of how to solve this?
    Thanks in advance
    Jan W

    HI,
    What is the logic you ahve used to populate the values for new appended fields ?
    Is it BADi, User Exits or mapping module enhancement ? Value population to custom field code should be checked throughly.

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • Bad data returned using DSEE6.3: JDBC Data View to DB2 for CHAR fields

    I have created a JDBC dataview to a DB2 database using com.ibm.as400.access.AS400JDBCDriver. When using ldapsearch, the data returned is inconsistent with that which is on the database. The DB2 table has data types of CHAR, DECIMAL, and NUMERIC. For the Decimal and Numeric fields, I am not experiencing a problem. The data returned here maps exactly to that which is on the table. For CHAR fields, I get mixed results.
    When defining JDBC attributes in DSEE, I mapped the sql-syntax attribute accordingly for each corresponding attribute on the DB2 table. As a side note, I also configured each attribute so the ldap-syntax = ces (Case sensitive). Also, I could not find a way to define the length of the char for my JDBC attribute. I'm not sure if there's supposed to be a way that I just haven't figured out yet.
    For the CHAR fields, in some cases I get what's on the data source. In other cases, I don't. I've tried to find a pattern but have been unlucky so far. Many fields with length of just 1 come back ok, but a few of length 1 are incorrect. Some fields bigger then length 1 are ok, but the majority come back with garbage. Coincidently or not, it almost looks like a hash of some sort. I'm wondering if there is a character on the datasource that's causing problems with DSEE figuring out where the end of the string is. I'm using NetBeans to look at the database, but I don't have direct access to the DB2 database at this point to see the data directly.
    Has anyone experienced something simliar or have any suggestions as to further research of this problem?

    Upon further testing I have found that the problem mentioned exists only when using ldapsearch. When I used an ldap browser, the char fields looked as expected.

  • Reflow in Adobe Reader for Android does not work

    The reflow option in my Adobe reader for Android does not work. The PDF book I am trying to read is too wide to be legible when I fit it into the screen (even in landscape), but the reflow button doesn't change that. When I click it, nothing happens. The only thing I know to do is to uninstall and re-install, but that did not work. Any other tips or ideas?

    Mehwish,
    Thank you so much for responding, and so quickly. I appreciate it.
    It does not appear as though the PDF I am trying to read would have an element in it that would block it from reflow, but that is always possible. It’s a textbook, and I understand that toward the end of the book there are some charts and diagrams, but I haven’t gotten to those chapters yet. So far, I’ve just been trying to use the Adobe Reader to read the introduction and first chapter and nothing I have done has made it reflow.
    I’m enclosing a copy of the entire book. Perhaps you can uncover something in it that I didn’t see.
    Thanks again for you help.
    Stan
    Dr. Stan G. Duncan
    123 Sumner St.
    Quincy, Massachusetts 02169
    617-855-7539 (hm)
    781-504-6875 (cell)
    215-647-7583 (fax)
    508-295-1630 (Ch)
    <mailto:[email protected]> [email protected]
    <http://homebynow.blogspot.com/> http://homebynow.blogspot.com
    <http://www.huffingtonpost.com/stan-duncan> http://www.huffingtonpost.com/stan-duncan

  • BDC for KE51 is not working

    Hi all,
    BDC for KE51 is not working.I did recording with my Func Consultant and I created the program,all the data is coming correctly in th structure RECORD.But when Iam running the transaction,in foreground mode(Display all screens) the data is not getting entered into the fields of the screen,few got entred and few are blank.When I tried to reprocess the recording,then also data is not getting entered into the fields.Data is there in the recording.
    What might be the problem?

    Hello Techies,
    i m having the same problem but in my program i have to extract the data from SAP server and again have to upload in other table on SAP so please help me how would i extract the data and after that upload it using BDC.
    Thanks

  • F4 help for 0MAT_SALES is not working in BI 7

    Hi Gurus,
    The F4 help for 0MAT_SALES is not working when distibution channel is selected as (!=02) in Bex Analyzer. But for all other values for distibution channel  i am getting values in F4 help.
    Since 02 is excluded it is supposed to give values for all other combination. but it not so.
    Could anyone of you please help me on this?
    Thanks in advance.

    Closing Thread

  • Short key for copy does not work all the time now.

    After I have installed the latest OSX - Yosemite, my short key for copy does not work all the time.  It is infrequent how it works. I'm using the same keyboard that I have always used, my wireless logitech keyboard for mac.  Please help.

    I've plugged in my default mac keyboard and the short key copy still does not work.

  • I have an iMac with OS Lion. The Smartart feature for Office for Mac will not work when I am logged on to my personal user account. It works with other user accounts on the same computer, and it works after "safe start". How can I fix the problem?

    The Smartart feature of Office for Mac will not work in my user account. It works for all other user accounts on the same computer, and it works after a "safe start". How can I fix the problem?

    You may also want to search/ask in the forums run by the people who make the product which is causing you problems:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011

  • FOR LOOP EXCEPTION not working !!! please help

    Hi,
    Why is the NO_DATA_FOUND execption not getting executed. ????
    Hereis the code....
    CURSOR newreccur IS
    SELECT * from emp_table;
    BEGIN
    v_file_handle := UTL_FILE.FOPEN('out','new.dat','W');
    BEGIN
    FOR emp_rec IN newreccur LOOP
    -- Write procurement records
    UTL_FILE.PUT(v_file_handle,'emp_rec.num');
    END LOOP;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    dbms_output.put_line ('No data found ')
    END;
    EXCEPTION
    WHEN UTL_FILE.INVALID_PATH
    THEN
    DBMS_OUTPUT.PUT_LINE ( 'Invalid Path ' || TO_CHAR (SQLCODE) );
    UTL_FILE.FCLOSE_ALL;
    END;

    cursor for loops do not raise no_DatA_found - they simply stop looping when they run out of data. you can set a variable within the loop, and then check it after the loop if you need to know if data was returned or not.

  • I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed. The serial # for 13 does not work. Any thoughts on how I can get a number for PSE 12?

    I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed 12.
    The serial # for 13 does not work. Any thoughts on how I can get a serial number for PSE 12?

    Hi
    There is a newer version of Resolution+ Plug-in released for an Qosmio X series
    [Resolution+ Plug-in v 1.1.2004|http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=381&selSeries=231&selProduct=7506&sel ShortMod=null&language=13&selOS=all&selType=400&ye arupload=&monthupload=&dayupload=&useDate=null&mod e=allMachines&search=&action=search&macId=&country =all&selectedLanguage=13&type=400&page=1&ID=82406& OSID=30&driverLanguage=42]
    try it out...
    If it has not been installed properly, try rebooting your computer and reverify.

  • My itnues for pc is not working :( it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    my itnues for pc is not working it shows that iTunes has stop working,I have downloaded Itnues many times but still it is not working, please help me

    Please helppppp

Maybe you are looking for