Copy as icon on Application Tool bar

Hi Friends,
My requirement is like this. There is an button as COPY on application tool bar. when u select a row and click tht button the same record is copied and inserted into a new row at the end of all the records.
Can any one explain me hw to solve this or if any one has does this can u post the code.
Thanks and I appreciate u r help.
with regards,
chaithanya.

Hi Chaithanya,
Please check my sample code from other thread.
WHEN 'COPY'.
      READ TABLE TC-COLS INTO COL WITH KEY SCREEN-INPUT = '1'.
      IF SY-SUBRC = 0.
        CALL SCREEN 200 STARTING AT 03 01 ENDING AT 32 4.
        IF COPY_OK = 'ENTER'.
          LOOP AT I_BINLOC INTO ZMBINLOC WHERE ZMARK = 'X'.
            ZMBINLOC-WERKS = COPY_WERKS.
            ZMBINLOC-LGORT = COPY_LGORT.
            ZMBINLOC-ZMARK = ' '.
            INSERT ZMBINLOC INTO I_BINLOC INDEX SY-TABIX.
          ENDLOOP.
          SORT I_BINLOC ASCENDING BY WERKS LGORT ZBINLOC.
          DELETE ADJACENT DUPLICATES FROM I_BINLOC.
          DESCRIBE TABLE I_BINLOC LINES TC-LINES.
        ENDIF.
      ENDIF.
Regards,
Ferry Lianto

Similar Messages

  • Custom icon at application tool bar in transaction CJ20N

    Hi,
    Experts my requirement is to create a custom Icon in the Application tool bar of CJ20n transaction
    kindly suggest me  any user exit or badi   or enhancement spot for this to implement .
    i have tried menu exit CNEX0009 but it ill create entry  at the menu item,
    there are other exits CNEX0006    but is not showing any thing
    i need to create icon at the application tool bar.
    i have found a enhancement spot but it say it can implemented by SAP only kindly  let me know how  implement it
    any help in this regard will appreciated....

    i think in this is case u have to make use of user exits.
    Regards
    Prabhu

  • Re: ALV Grid Application Tool Bar

    Dear Experts,
                 I am displaying a report in ALV grid. In the application tool bar. 'save layout' and 'change layout' icons were missing.if i want to put those icons on application tool bar where i have to change? if anybody knows pls. help on this.
    Thanks in advance.
    Thanks and regards,
    Harish babu

    Hello Harish
    The parameter I_SAVE (of method SET_TABLE_FOR_FIRST_DISPLAY) can have several setting(<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/bf/3bd1369f2d280ee10000009b38f889/content.htm">ALV Grid Control</a>):
    I_SAVE
    Determines the options available to the user for saving a layout:
    'X':         global saving only
    'U':         user-specific saving only
    'A':         corresponds to 'X' and 'U'
    SPACE:       no saving
    In addition, you have to provide parameter IS_VARIANT:
    IS_VARIANT
    Determines the layout to be used for displaying the output table. If you use this parameter, you must at least fill field REPORT of the structure of type DISVARIANT
    Regards
      Uwe

  • Icon with push button on application tool bar

    hi
    how we place icon along with pushbutton on application tool bar on selecteion screen.
    thanks in adv

    Hi,
    you can check the code below for test,
    TYPE-POOLS icon.
    TABLES sscrfields.
    DATA functxt TYPE smp_dyntxt.
    Parameters: test(1) TYPE C.
    SELECTION-SCREEN: FUNCTION KEY 1.
    INITIALIZATION.
      functxt-icon_id   = ICON_GRAPHICS.
      functxt-quickinfo = 'graphics'.
      functxt-icon_text = 'Graphics'.
      sscrfields-functxt_01 = functxt.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
        WHEN 'FC01'.
    Message 'Button 1 pressed' TYPE 'I'.
        WHEN OTHERS.
      ENDCASE.
    START-OF-SELECTION.

  • Push button in the application tool bar in the standard LDB PNP

    Hi ABAPERS,
    I have a  requirement that in the selction screen to use the standard LDB PNP beyond that I need to pass one push button in the selection screen 1000 ( in the application tool bar beside execute button) actually i  passes the push button in the gui status but its not refelcting in the output  and in the initilization event also i passed even then its noty working,
    initialization.
      move 'Cluster ID'(010) to sscrfields-functxt_01.
    Thanks and Regards,
    Deepthi.

    Pavan,
    write code like this
    TABLES: USR02,       "Logon data
            SSCRFIELDS.  "FIELDS ON SELECTION SCREENS
    STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
    SELECTION-SCREEN: FUNCTION KEY 1.
    SELECTION-SCREEN begin of BLOCK b1.
      PARAMETERs p1 type i.
      SELECTION-SCREEN end of BLOCK b1.
    INITIALIZATION.
    SCREEN ICON LEFT AND RIGHT
      SSCRFIELDS-FUNCTXT_01 = 'Button'.
      start-OF-SELECTION.
    Thanks
    Bala Duvvuri

  • Regarding list display + button on application tool bar

    Hi guru's
    I have a requirement like i need to select one particular record in the list display and prees on the button which is placed on the application tool bar.Then i should get one more screen where i can enter some details.
    As per my knowledge it is possible only in grid display.
    Kindly let me know if it is possible.
    It would be great help if sample coding is provided.

    Hi Ajay,
                You can do this in alv list display also.
    Copy the standard gui status in ur program using tcode SE51->user interface>copy->target prog name.activate it
    and add a button there.Use FM <b>'REUSE_ALV_EVENTS_GET'</b> to get user-command event.
    sample code :
    form Z8_EVENTCAT  using    p_i_eventcat TYPE SLIS_T_EVENT.
    DATA : L_EVENT TYPE SLIS_ALV_EVENT.
    FOR GETTING ALL 17 EVENTS
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = P_I_EVENTCAT
    EXCEPTIONS
       LIST_TYPE_WRONG       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR L_EVENT.
    READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_PF_STATUS_SET INTO L_EVENT.
    IF SY-SUBRC = 0.
    MOVE 'Z8_PF_STATUS' TO L_EVENT-FORM.
    APPEND L_EVENT TO P_I_EVENTCAT.
    ENDIF.
    CLEAR L_EVENT.
    READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_USER_COMMAND INTO L_EVENT.
    IF SY-SUBRC = 0.
    MOVE 'Z8_USER_COMMAND' TO L_EVENT-FORM.
    APPEND L_EVENT TO P_I_EVENTCAT.
    ENDIF.
    form Z_MENU using p_extab type slis_t_extab.
    SET PF-STATUS 'MENU_LIST'.
    endform.                    " Z_MENU
    form z8_user_command using p_ucomm type sy-ucomm
                               p_selfield type slis_selfield.
      case p_ucomm.
      WHEN '&IC1'.
    call screen 100.
    endcase
    endform.
    Reward points if helpful.
    Regards,
    Hemant

  • Application Tool bar

    Hi,
      I am using ALV containers , is it possible to put  the Grid tool bar to be on the application tool bar?
    Thanks
    DN.

    Hi Dn,
    1. If you are using containers, then probably
        u can copy the GUI STATUS
        from Function Group
        SLVC_FULLSCREEN (For Grid Display Related FM)
        into your program.
        (Use SE80 For copying)
    2. After Copying, Activate the GUI STATus
       in your program
       and use SET PF-STATUS
    Hope it helps.
    Regards,
    Amit M.

  • To disable the Application tool bar button in ALV report

    Hi Everyone,
    Iam using REUSE_ALV_GRID_DISPLAY to display ALV report.
    Now my requirement is to disable(I mean grey out) a application tool bar button.
    Thanks in advance
    Moderator message: please search for available information and try yourself before asking.
    locked by: Thomas Zloch on Sep 23, 2010 11:38 AM

    We can disable the buttons on the application toolbar as below.
    *To Exclude a few buttons from the Application tool bar
    data: it_excluding type slis_t_extab.
    data: wa_excluding type slis_extab.
    wa_excluding-fcode = '&OUP'.
    append wa_excluding to it_excluding.
    wa_excluding-fcode = '&ILT'.
    append wa_excluding to it_excluding.
    wa_excluding-fcode = '&ODN'.
    append wa_excluding to it_excluding.
    and in the FM.....
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program      = sy-repid
            i_callback_pf_status_set = 'ZPICK'
            is_layout               = itlayout
            i_callback_user_command =  'LIST1'
            i_grid_title            = <fs>
    *       i_callback_top_of_page  = ' '
            it_fieldcat             = itfieldcat[]
            it_excluding            = it_excluding
    But,no idea on how to disable the  whole application tool bar itself ?
    K.Kiran.

  • How can i disable a button in the application tool bar of a standard trans?

    Hi Experts,
       I want to disable the create button in the application tool bar of the standard transaction cv03n. Is there any method?

    Hi,
    In the include 'LCV110F19', the GUI is being called for the screen.
    This is the actual code being called.
    WHEN c_dms_create.
          SET PF-STATUS 'D100CREATE'.
          SET TITLEBAR  'D100CREATE'.
    You can try to code something like below.
    DATA: itab TYPE TABLE OF sy-ucomm.
    APPEND 'CREATE' TO itab.
    SET PF-STATUS 'D100CREATE' EXCLUDING itab.
    Kindly reward points by clikcing the star on the left of reply,if it helps.

  • New entries tab not appearing in tcode VOR1, VOR2 in application tool bar

    Hi guru's
    Suddenly overnight the new entries tab present in the application tool bar seems to have been vanished from tcode VOR1 & VOR2, in the sandbox, development & quality server, even when the client is open, i.e in tcode SCC4 we have allowed changes to be made, protection level is "0" and changes to repository and cross-client customising allowed.
    Please suggest where & what are the other changes I have to make so that I can get the new entries tab in tcode VOR1 & VOR2
    Thanks & best regards
    satish

    Hi Venkat
    That is where the problem lies. The sales organisation, distribution channel & division has been defined & assigned and even the respective sales area's has been assigned to the respective document types.
    But still the system ECC 6.0 does not allow to create any sales orders because the assgnment in tcodes VOR1 & VOR2 is still pending and the entries do not appear there by default.
    Once again the  distribution channels and divisions has to be assgined to the respective sales organisations in VOR1 & VOR2
    But since the new entries tab is absent I am not able to create any new sales orders because the assignment in tcodes VOR1 & VOR2 is pending.
    Please suggest a solution.
    Thanks
    satish

  • User exit/ BADI in f-32 / f-28 for adding application tool bar button

    Hi Experts,
    There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
    I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.         
    Any help is apreciated!
    Is there any EXIT ? Because I can not find it too.
    Regards,
    Nitin

    where you did the enhancement?
    I have to create the IDOC once Clear docuemnt is created.. It may help me.

  • IPages will not allow me to move an icon off the tool bar

    Wanting to remove an icon from the tool bar.
    I right clicked on the tool bar > Went to Custums > Tried Dragging the icon out = would not work
    I also tried to add an icon and it would not work

    I'm guessing this is what you're asking about in the Mac version of Pages (no 'i'). You can also choose Customize Toolbar… from the View menu. It's not at all clear how you're dragging an icon out or in. You need to click, hold & drag without releasing the click until the icon is where you want it.

  • Why are icons in mail tool bar not in color

    why are icons in mail tool bar not in color and iphoto also

    iVmichael wrote:
    Monochromatic, Orwellian Dullness everywhere, totally hate the look it's a step backwards not forwards. It's absolute b****cks to say this is being 'more inclusive' when it turns so many people OFF!
    Have you done a sampling of all users, or only those users that don't like it? While I don't mind it, I don't think I even noticed it at first until someone pointed it out.
    I note that if you get Info on an item the icon is still colour so this is some OS level (we know best) overaly that's turning everything bland and boring, it would be nice if Apple let the user actually chose this rather than force it upon them ... just like Microsoft I'm sad to say.
    Microsoft? The '90s are over. But regardless of what decade you are living in, Apple has never been too big on end-user customization of the operating system. Apple has always discouraged the use of "themes" whereas Microsoft will allow people to do pretty much whatever they want.
    The file system icons are still the same as they have always been. The new monochrome icons are clearly a design trend more than any change to the underlying operating system. If you turn off the expanded view in any file save dialog (other than in Safari), you can still see the old, glorious, multicoloured icons. If you really wanted to, I'm sure you could change the system-level images and make Finder and Mail look just like they used to.

  • Add bottons on the application tool bar of the standard selection screen

    Hi All,
    I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
    pls help on this.

    Hi Sridhar,
      Try the Code below. It places two buttons on the selection-screen along with the execute button.
    TABLES sscrfields.
    PARAMETERS: p_carrid TYPE s_carr_id,
                p_cityfr TYPE s_from_cit.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    INITIALIZATION.
      sscrfields-functxt_01 = 'LH'.
      sscrfields-functxt_02 = 'UA'.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
          WHEN'FC01'.
          p_carrid = 'LH'.
          p_cityfr = 'Frankfurt'.
        WHEN 'FC02'.
          p_carrid = 'UA'.
          p_cityfr = 'Chicago'.
      ENDCASE.
    START-OF-SELECTION.
      WRITE / 'START-OF-SELECTION'.
    Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
    Regards,
    Swapna.

  • How to add button on application tool bar of standard transaction

    Hi All,
    Can any one let me know how to ADD the button in on application tool bar of standard transaction by using SHD0 transaction or any other solution.While adding the button I don't want do any code modification.
    Thanks,
    Vijay

    HI
    SHD0 is used to create and maintain Screen and Transaction Variants..
    to know more about Screen and trransaction variants click on this link
    http://help.sap.com/saphelp_47x200/helpdata/en/67/232037ebf1cc09e10000009b38f889/content.htm
    we can create Transaction Variants Using SHD0 Transaction.
    Transaction Variants and Screen Variants
    Transaction variants can simplify transaction runs as they allow you to:
    Preassign values to fields
    Hide and change the 'ready for input' status of fields
    Hide and change table control column attributes
    Hide menu functions
    Hide entire screens
    In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
    Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
    There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
    A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
    In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
    No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).

Maybe you are looking for

  • Import XML data to textfields in a PDF file

    Can I use LiveCycle Designer 8.2 to auto populate textfields in a PDF-file with data from a XML-file when the user opens the PDF-file? If so, how will I do it? Is there any guide? It works fine in the Livecycle Designer preview but when I open the PD

  • ITunes crashes after 10.5.0.142 install

    I didn't have any trouble until the update earlier this week.  I import audiobooks on CD; if the information is missing when the CD is recognized, I was (before install) able to right click on the CD name under "Devices", and then in the new popup wi

  • Require coding logic

    Hi, I need a logic for the below requirement, Internal table 1 will have around 13 fields ex: a, b, c, d,.. m Interanal table 2 has a field called FIELD which will have the field name ex a,b,c,d.. (field name is nothin but the fields in the internal

  • Fortran Compiler Bug? USE statement renaming

    The Fortran compiler f90: Sun Fortran 95 8.2 Patch 121020-05 2006/12/08 complain, incorrectly I believe, about a renaming in a USE statement. Here is the source code: MODULE mod INTEGER :: m CONTAINS SUBROUTINE sub_mod(m1,x) INTEGER, INTENT(in) :: m1

  • Digital Publishing Suite Help | Supported feature list

    This question was posted in response to the following article: http://helpx.adobe.com/digital-publishing-suite/help/supported-feature-list.html