AT NEW command for two fields

Dear All,
How to use AT NEW command in internal table for two fields.
Warm Regards,
N.Jain

Hi
  See the following code. It is useful for u.
DATA: BEGIN OF ty_batest,
        designation TYPE zba_test-designation,
        salary TYPE zba_test-salary,
        empno TYPE zba_test-empno,
        empname TYPE zba_test-empname,
        address TYPE zba_test-address,
      END OF ty_batest,
      it_batest LIKE TABLE OF ty_batest,
      wa_batest LIKE ty_batest.
SELECT * FROM zba_test INTO CORRESPONDING FIELDS OF TABLE it_batest.
SORT it_batest BY designation salary.
LOOP AT it_batest INTO wa_batest.
  AT NEW designation.
    WRITE: / 'Designation  :', wa_batest-designation,
           /(35) sy-uline.
  ENDAT.
  AT NEW salary.
    WRITE: / 'Salary : ', wa_batest-salary,
  ENDAT.
  WRITE: / 'Emp Name    : ', wa_batest-empname,
          / 'Emp Number  : ', wa_batest-empno,
          / 'Designation : ', wa_batest-designation,
          / 'Address     : ', wa_batest-address,
          / 'Salary      : ', wa_batest-salary NO-ZERO .
  SKIP.
ENDLOOP.
Regards
Bhuvana.

Similar Messages

  • How to set a new value for formula field in crystal reports xi?

    <p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text =  "&#39;Subreport Formula&#39;"  or</p><p>crxSubreport.FormulaFields.Item("description").Text =  "&#39;Subreport Formula&#39;"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • New command for radius-server source-ports

    I am trying to find the new command fro radius-server source-ports 1645-1646 since it appears to be depricated.  We use tacacs so we do not have the radius server specified but we do need to put in the ports.  Can someone please tell me the new command for radius-server source-ports?
    Thanks

    Both of the links that Peter posted are interesting and helpful. I would like to take a slightly different approach in answering your question.
    In every version of IOS there are certain commands that get inserted into running-config when a particular feature is activated. It looks like in your version the radius-server source-ports is one of those commands. I do not think it is anything that you should be concerned about.
    And I do not believe that having the radius-server source-ports command would prevent TACACS from working. I believe that there is likely to be some fault in your configuration. If you would post the aaa parts of the config then maybe we could see what the problem is.
    In my experience configuring aaa some of the common problems include not correctly identifying the TACACS server, not having exactly the same key configured on the Cisco device and the TACACS server, not having connectivity to the TACACS server (can the Cisco device ping the server, and can the server ping the device), or errors in the authentication or authorization prameters specified.
    Post some information and we will see what we can do.
    HTH
    Rick

  • How to use same Data Type and Length for two fields

    How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
    SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
    FROM bsik
    INTO TABLE it_bsik
    WHERE bukrs = p_bukrs
    AND lifnr IN s_lifnr.
    IF it_bsik IS NOT INITIAL.
    SELECT belnr gjahr awkey awtyp
    FROM bkpf
    INTO TABLE it_bkpf
    FOR ALL ENTRIES IN it_bsik
    WHERE belnr = it_bsik-belnr
    AND gjahr = it_bsik-gjahr.
    IF it_bkpf IS NOT INITIAL.
    SELECT belnr gjahr lifnr xblnr
    FROM rbkp
    INTO TABLE it_rbkp
    FOR ALL ENTRIES IN it_bkpf
    WHERE belnr = it_bkpf-awkey+0(10)
    AND gjahr = it_bkpf-awkey+10(4).
    ENDIF.
    ENDIF.
    Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
    Kindly clarify.

    Hi Saurabh,
    Please see the example code that I have developed for you. It will help you solve the problem.
    REPORT ZTEST_3 .
    tables : BKPF.
    data : begin of it_bkpf occurs 1,
             belnr type RE_BELNR,
             awkey type awkey,
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf.
    data : begin of it_bkpf1 occurs 1,
             belnr type RE_BELNR,
             awkey type gjahr,              " change the data type
             awtyp type awtyp,
             gjahr type GJAHR,
           end of it_bkpf1.
    data : begin of it_rbkp occurs 1,
             belnr type BELNR_D,
             gjahr type gjahr,
             lifnr type LIFRE,
             xblnr type XBLNR,
           end of it_rbkp.
    select belnr
           awkey
           awtyp
           gjahr
           from bkpf
           into table it_bkpf
           where BUKRS = 'TELH'.
    loop at it_bkpf.
    it_bkpf1-belnr = it_bkpf-belnr.
    it_bkpf1-awkey = it_bkpf-awkey+10(4).           "Here only append the required length.
    it_bkpf1-awtyp = it_bkpf-awtyp.
    it_bkpf1-gjahr = it_bkpf-gjahr.
    append it_bkpf1.
    clear it_bkpf1.
    endloop.
    select  belnr
            gjahr
            lifnr
            xblnr
            from RBKP
            into table it_rbkp
            for all entries in it_bkpf1
            where belnr = it_bkpf1-belnr
    This is just an example. Change the fields according to your requirement.
    Regards
    Abhii
    Edited by: Abhii on Mar 9, 2011 9:08 AM

  • Subtotal and grand total for two fields(iseg-buchm and iseg-erfmg)

    hi experts,
        how to do subtotal and grand total for two fields (iseg-buchm and iseg-erfmg).please help me on solving the problem.

    subtotal & grand total can be done in folowing way in ALV.
    1.Pass it_sort parametere to REUSE_ALV_GRID_DISPLAY
    2.Give the field name for sorting in it_sort-fieldname. it can be any field name  u want to sort ur data with.
    3.For iseg-buchm & iseg-erfmg mark do_sum = 'X'. in fieldcat
      gs_sort-spos = 1.
      gs_sort-fieldname = 'ANY FIELD NAME'.
      gs_sort-up = 'X'.
      gs_sort-subtot = 'X'.
      APPEND gs_sort TO et_sort.
      IF iv_fieldname = 'BUCHM'
      OR iv_fieldname = 'ERFMG'.
        gs_fieldcat-do_sum = 'X'.
      ENDIF.
      APPEND gs_fieldcat TO gt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
           is_variant              = ev_variant
          it_fieldcat             = gt_fieldcat[]

  • I just got iTunes 11.0. I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    I just got iTunes 11.0. From all the previous versions I'm used to being able to return to the beginning of a song by hitting 'enter'. What's the new command for skipping to the head of a song?

    Mmmmmm. Works OK for me. I've tried every variation I can think of. Play from playlist, play from library, shuffle on, shuffle off, single song repeat on/off, playlist repeat on/off.
    WAIT !!   Now I've found it  !!  It happens when I have the sidebar hidden and play a playlist from the PLAYLIST pane. Hitting Enter then takes me to the FIRST song in the playlist.
    WAIT AGAIN !!! In the time it took to write the above, it changed again and works properly. Well properly is not really true. It works if I stay in the PLAYLIST pane. If I switch to the SONGS, ALBUMS or ARTISTS pane, enter does nothing. BUT, if I switch to the GENRES pane, enter starts the first song there. AND, if I've switched away from the PLAYLIST pane and switch back, enter then starts the first song in the playlist.
    WOW !! That was a crazy ride. I think we can safely say that there is something awry.

  • F4 help for two fields in screen

    hello,
    I have two fields in my table control which need F4 help in the screen.
    But one F4 search exit is implemented, but it populates only one field.
    but, on clicking f4 for one field, it should populate both the fields together.
    do help me with this issue...
    Can POH in the screen populate up two fields together???

    Hi Krithika ,
    In addition to checking up the export parameters for the Search healp you will have to define the Search Help attachment also. I'll paste the SAP Help Text below but in Simple terms
    You Define a structure with the fields to be returned and define the screen elements based on that structure . So on selection the structure is returned with all values and the screen elements are in referance to structure so all values get posted in screen.
    Here is the SAP HELP part
    "" From SAP HELP
    A search help attachment is an assignment of a search help to a table, structure or data element, causing the corresponding search help to be automatically used to describe the input help process at this field when an ABAP Dictionary field is used in a screen.
    You can attach a search help as follows:
    1. Attach a search help to a structure or table field: The attached search help is available for all screen fields that refer to the table or structure field. There must be an assignment between the interface parameters of the search help and the fields of the table or structure for this type of attachment. In the input help process, this assignment results in a value transport between the corresponding fields (if they are known at least to the module pool of the screen) and the search help parameters. As for the foreign key definition, you can assign nothing, a constant or any other field (which is then sought in the module pool) to indivdiual search help parameters.
    2. Attach a search help to a table: The assigned search help is available for all screen fields for which the table is a check table. There must also be an assignment between the search help parameters and the key fields of the table for this type of assignment.
    3. Attach a search help to a data element: The attached search help is available for all screen fields that refer to the data element. If the search help is attached to a data element, an export parameter of the search help must be assigned to the data element. If the user chooses a row of the hit list in the input help, the contents of this parameter are returned in the corresponding screen field. More than one value is not returned when a search help is attached to a data element.
    The described attachments only take effect if the field was not yet assigned an input help in the screen definition. Such an assignment can be made with the mechanism PROCESS ON VALUE-REQUEST in the flow logic or by attaching a search help to the screen field in the attribute maintenance screen. A F4 help can also be assigned to the field in the flow logic by using VALUES or SELECT. In the latter case, the input help here behaves as if the table specified under SELECT were assigned to the field as check table.
    If more than one of the described mechanisms compete in defining the input help method of a screen field, the first one named will take effect. If none of the described mechanisms is available, the domain fixed values of the field will be used for the input help if necessary. If the domain of the field has no fixed values but has data type DATS or TIMS, the input helps that are assigned to these types are used for the input help. Otherwise there will be no input help available for the field.
    A search help attachment always belongs to the definition of the object to which the attachment is made (structure, table or data element). It is also maintained in the maintenance transaction for this object and transported with this object.
    <b>REWARD IF USEFUL. It Works for me here..get back if any doubts.</b>

  • SQL command for two databases

    I am attempting to write a SQL command for a Crystal report that links tables from two different databases, both of them Progress databases.I keep getting syntax errors that the table from the other db (meaning not the one I opened in DB Expert) can't be found. If someone has experience with Progress or otherwise has any ideas it would be greatly appreciated.

    I'm not familiar with Progress, but does it have something like MS SQL's OPENQUERY using Linked Servers (which allows you to query a different DB server from the one you're connected to)?  If not, you'll probably have to use two different SQL Commands to base the report on, then use Crystal to link the returned data sets.  (I'm assuming "a different database" means "a different database server", not a different database on the same server instance...)
    HTH,
    Carl

  • OVS for two fields in the same selct Option?

    Hi Experts,
    I am using select options in my view. I am using OVS for one field. I would like to use same OVS for another field in the same select option.
    I tried "case ovs_callback_object->context_attribute". Which return the field for which we press F4.
    But IT did not work here probably because this we can use only for context attributes fields.
    but But here I dont get the select option field.
    But in my case I have select options which are not mapped to any context attribute.
    How can I find , for which field in select options F4 help has been requested?
    Regards,
    Vishal.

    Hi,
    You can find which field in select options F4 help has been requested using I_OVS_DATA-M_SELECTION_FIELD_ID.
            CASE I_OVS_DATA-M_SELECTION_FIELD_ID .
                 WHEN 'PERNR'.
                 WHEN 'ENAME'.
                 WHEN OTHERS.
            ENDCASE.
    If you are using one OVS for more than one fileds, please remember that you need to provide different code for each fields at phase 0 (configuration) and phase 3 (apply result).
    Regards,

  • Setting up iTunes on new computer for two users

    I just got a new Windows 7 laptop and I'm trying to figure out how to transfer two distinct user libraries to the new computer.
    A little background: My wife and I have been using the same computer for years with different user accounts - she had her 30 GB iPod with all her music, and I had my 80 GB iPod with all my music and playlists. All of our music, however, has been saved and configured to work with an external hard drive (E:\iTunes).
    I'm keeping the external hard drive with the new computer, and since all the file paths are configured to match up with E:\iTunes, it seems like it should be really easy to make the switch to the new computer. But so far it isn't.
    I installed iTunes 9 on my new computer and set the default file path to the E: drive, enabled my iPod for disk use, and tried synching my iPod, but the only songs that transferred were those that I had purchased via the iTunes store -- which wasn't very many.
    What am I doing wrong? What do I need to do so that when I plug in my iPod the iTunes on my new computer replicates my old library, playlists and all? I don't want to manually copy over the entire E:\iTunes folder because there are a lot of tunes on there that I don't want or need -- files that I will eventually have to upload for my wife's account and her iPod.
    Any help the users on this forum can offer would be appreciated. Thanks!

    It depends on whether the entire iTunes folder, including all the library files, are on the external drive, or that drive contains only the music.
    First, resetting the location of the iTunes Music folder in the iTunes preferences, by itself, only sets where future purchases and imports go. In and of itself it won't reset where iTunes looks for tracks already in the iTunes library. That's all contained in your former library files. If those were on the old computer and no longer available, use the Add Folder to Library command in iTunes and select the folder on the external drive that contains the tracks. That will get them into iTunes, though you'll have lost all your playlists, ratings, and playcounts (which are also in the iTunes library files).
    If the iTunes library files are also on the external drive, launch iTunes while holding down the Shift key and navigate to and select the folder containing the library file.
    If the library files were on the old computer but you still have access to it, you may be able to copy the library file to the same place on your new computer, presuming the path to the external drive remains the same.
    Hope this helps.

  • Struts validator for two fields(conditional required)

    Have a Drop down and an input field.
    When user selects "Type 1" from drop down only then the input field is required. otherwise it's not a required field.
    Looking at the validator guide in struts maybe I have to create a new validator rule which should check if drop down value "Type 1". But not sure how to code to say that the input field is required here.
    How to do this?
    Thanks.

    Yes you have to check for drop down value "Type 1".
    when you hit on submit it goes to the validation function right ...
    there add a condition. Check if tpe 1 is selected , if so proceed validation the text box , else skip that validation and come out.

  • Separating values for two fields which is have same search help

    Hi Folks,
    I have one requirement like this. i have 2 fields in MM02 t-code. if i see F4 for those 2 fields it is showing 7 values in that search help. both fields are having same search help so that it is showing same 7 values for these 2 fields. but i want to separate this. if i click on the first fields then it has to show first 3 fields and if i click 2 field it has to show rest 4 fields. can any one suggest what to do for this. these 2 fields are not having search help exit and this one im doing in ECC 6.0.
    Regards..
    kanna

    Hi Rajesh,
    Your are mention related to MM02 which is standard t-code. I am not sure it is possible for that. It can be restrict through code level only..
    Regards,
    Kumar

  • I can't update my payment Inof.. Whenever I Put in the new card info it say invalid security code and I haven't been able to download any new apps for two months now

    I can't download any apps on my phone... I've played in and you credit card information and it keeps saying invalid security code

    No this was absolutely of no help what so ever!!!!1I have had this issue before and it was also a nightmare. I don't understand why you have to go thru so much pain until you can talk to a real person. I don't have 48 hours. I use this app to make money. I can't update it, so I can't use it, all because I can't update my info, which is clearly on the Apple side. Not my bank (like they first want to say), not me, I know who I am, but it must be something on apple's side. And to wait 48 hours for an email response to tragic . I can't believe a company with as much assets as Apple can't get a real person to help me sort this out. I had this same problem years ago, and it was the same mess. Whay do I keep doing this? Am I just one of the bovine masses who just have to have an iPhone? Yikes

  • Mapping isssue for two fields must be checked and passed to target field

    Hi all
            I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
    so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
    thanking you
    Sridhar

    >
    sridhar loganathan wrote:
    > Hi all
    >         I am using IDOCS, ORDERS05, in which i have shipment country in header level and Item level,
    > so in my mapping i must check if i shipment exist in item level , if it exists it should pass to target field, and if doesnot exist it should pass the header level data , is it possiable in graphical mapping , please help me
    > thanking you
    > Sridhar
    yes.
    lets call the item level shipment as itemshipment and the header level as headershipment.
    the logic will be;
                                     itemshipment                       
                                                    |
    itemshipment --- *exist* *if -- then* - TargetField
                                           |
                                        *else* - headershipment

  • What is the new command for "Save As" in iWork?

    How do I start a new file from an old file?

    If you have inside knowledge of anything going on at Apple, you can't share it here.
    If you don't, you are engaging in speculation.
    I encourage EVERYONE to file feedback the more who file the more likely something will be done.

Maybe you are looking for

  • How to modify a tree component dinamically

    Hi to everybody. I'm a problem with RichTree component when I try to run my application in jdeveloper 11g. In jsp page I have a RichInputText and a button component. When you click on the button, it modifies one String type variable: it stores the sa

  • RE: Adressing the Advance payment through RE

    Dear Team, I am addressing the Advance payment procedure through RE. In slandered sap we will debit  to the Vendor spl gl to Bank a/c as a credit. When i want to address the same thing through RE. When I configure the same through Replacement of acco

  • QM Inspection Characteristics table

    Hi, I am designing Inspection Report for QM Module, the thing is i am unable to find the tables for the data 1. Characteristic Specifications 2. Characteristic Results  like Characteristic Related complete data. And also can any one tell me what is t

  • PMS - OSA: Creation of appraisal document

    Hi Experts, While creating the appraisal document we have to mention "validity period" and "execution period". Kindly explain the difference between the both periods. 1. Do we need to mention validity period and execution period same, while creating

  • Jpeg thumbnails

    I recently uploaded pictures from my Sony dsc W7 digital camera to a friend's PC. I was able to see thumbnails of all the JPEG files on the camera, and only upload the desired photos. Returning to my Mac, I am unable to see the thumbnails. Any ideas