Adding pushbutton in application toolbar of HR programs  using LDB

Hi all!
I have a requirement to add a pushbutton in the selection screen application tool bar for the HR programs when using LDB PNP.
Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button. When we are creating a new button for this by using the table fields sscrfields with the function key as 2.
But, the statement "SELECTION SCREEN FUNCTION KEY 1" is not showing any pushbutton in the application toolbar.
The same question is already posted in SDN but no reply.
Please provide your suggestion.
Thanks,
Rajan U

Hi all!
I have a requirement to add a pushbutton in the selection screen application tool bar for the HR programs when using LDB PNP.
Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button. When we are creating a new button for this by using the table fields sscrfields with the function key as 2.
But, the statement "SELECTION SCREEN FUNCTION KEY 1" is not showing any pushbutton in the application toolbar.
The same question is already posted in SDN but no reply.
Please provide your suggestion.
Ive found this keyword: SELECTION-SCREEN FUNCTION KEY n [ldb_additions].  Will this be useful??
Thanks,
Rajan U

Similar Messages

  • Pushbutton on application toolbar

    Hi,
    How to write code for pushbutton on application toolbar in a normal report program and functionality on that?
    Basic question. Please search before posting such basic questions
    Edited by: kishan P on Sep 2, 2010 3:09 PM

    Hi Chandrka,
    To create and appear push button in the screen you need to create a Push button.
    go to start of selection .
    add syntax.
    Set PF STATUS 'cutom'.  <-- Double click on the custom it will take you to se41 and add a button in application toolbar
    and write code in At-user command and handle it.
    Prabhudas

  • Pushbuttons on application toolbar of basic list 1

    Hi all,
    I want to do BDC for sales order creation  but before that my user want to validate item data based on some conditions (customised in system using user exit : idea is to avoid occureence of user exit by validating it on internal table level )
      So I will display the data in the list format and user will check it...and then execute BDC...for that I want some pushbuttons on application toolbar of basic list 1.....(not on selection screen)
    I am thinking of set pf-status...but how and where to set it?
    Any idea please........
    Thanks....

    Hi,
      You can place SET PF-STATUS just before the display list code.
    Regards,
    Sravanthi

  • How to disable statdard application toolbar button in O4TFN using BADI

    Hi,
    I want to disable standard application toolbar button in O4TFN using BADI, i want to disable it for specific users should be deactivated and for others it should be activated.
    Thanks in advance..

    Hi Ed,
    But in control panel -> user accounts -> Change user account control settings
     I can set the settings to always notify
    and default notify when programs try to make changes to computer.
    But I can't set it to never prompt because only administrator as power to do that and if I set never prompt in  administrator account the settings in standard user remains in
    always notify.
    so please let me know, if there is any other way to over come the problem.
    Main problem is application from unknown source always prompt for admin password.
    I need to disable it from prompting for admin password to run applications in standard accounts.

  • FM's used in report program using ldb pnpce

    hii all,
      will anybody provide me function modules that are used to populate data in report program using ldb pnpce.
    <REMOVED BY MODERATOR>
    thanks in advance
    regards
    Ashweeni.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 6:01 PM

    U can use all the FM's which were used for LDB PNP ..
    For ex : Use the below to get the payroll results ..
    To get the results directory
      call function 'CU_READ_RGDIR'
        exporting
          persnr          = peras-pernr
        tables
          in_rgdir        = pc261_tab
        exceptions
          no_record_found = 1
          others          = 2.
    to get evaluation periods ...
    call function 'CD_EVALUATION_PERIODS'
    There are no particular FM's that will populate data in report
    program .. please let me know what is the requirement ...

  • Adding Button on application toolbar on ABAP List display screen....

    Hello Gurus,
    I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar.
    If I want to add additional custom button on application toolbar on ABAP list display screen, how can I do it ? Please help.
    Regards,
    Jainam.
    Edited by: Jainam Shah on Oct 27, 2009 5:44 PM

    >
    Jainam Shah wrote:
    > In my case it just rights the data in ABAP screen as follows. I can't use ALV grid and stuff because its on older version.
    >
    >
    FORM LISTE_SCHREIBEN.
    >
    >   check = '@T9@'.
    >
    >   FORMAT COLOR COL_KEY INTENSIFIED OFF.
    >   WRITE: / SY-VLINE,
    >            check,
    >            BKPF-BUKRS,
    >            BKPF-BELNR,
    >            BKPF-GJAHR.
    >   FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    >   WRITE:   BKPF-BLART,
    >        (8) BKPF-BLDAT DD/MM/YY,
    >        (8) BKPF-BUDAT DD/MM/YY,
    >            BKPF-WAERS,
    >            BKPF-XBLNR,
    >         80 SY-VLINE.
    >   XAUSGABE = 'X'.
    >   HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
    >   IF BKPF-BKTXT NE SPACE.
    >     FORMAT COLOR COL_KEY INTENSIFIED OFF.
    >     WRITE: / SY-VLINE, CHAR4 UNDER BKPF-GJAHR.
    >     FORMAT COLOR COL_NORMAL INTENSIFIED.
    >     WRITE:   BKPF-BKTXT UNDER BKPF-BLART,
    >              80 SY-VLINE.
    >     HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
    >   ENDIF.
    > ENDFORM.
    >
    >
    > I have to select multiple lines and proces them. For one line I know I can use AT-LINE-SELECTION but this is multiple lines...
    What is your SAP system version?
    It seems to be displayed only in ALV. Well, if you can make it to display in LIST ... you can go with set pf-status.
    good luck

  • Multiple pushbuttons on application toolbar not fitting

    Hi ppl,
    I have a created a custom transaction wherein I need to display about 18 pushbuttons on the application toolbar.
    But, the problem is that all of these do not fit on the screen so I can see only about 10 buttons in my transaction (the last button is not even displayed completely).
    Please let me know if I can create a multi line application toolbar or is there any other solution for this?
    Regards.

    Hi ppl,
    I had a custom screen designed for my transaction.
    And I was able to display around 10 buttons on the application toolbar. No issues with that.
    Now, I have placed 9 pushbuttons on the application toolbar and the remaining are designed in the screen area.
    Thank you all for the quick and helpful replies.
    Regards.

  • How to create desktop application for simple server program using netbeans?

    Hi,can anyone help me on this one??
    I'm am very new to java,and I already trying different example program to create desktop applications
    for simple server program but it's not working.
    This is the main program for the simple server.
    import java.io.*;
    import java.net.*;
    public class Server {
    * @param args the command line arguments
    public static void main(String[] args) {
    try{
    ServerSocket serverSocket = new ServerSocket(4488);
    System.out.println("Server is waiting for an incoming connection on port 4488");
    Socket socket = serverSocket.accept();
    System.out.println(socket.getInetAddress() + "connected");
    PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
    BufferedReader in = new BufferedReader( new InputStreamReader(socket.getInputStream()));
    String inputLine;
    while ((inputLine = in.readLine()) != null){
    out.println(inputLine);
    System.out.println("Connection will be cut");
    out.close();
    in.close();
    socket.close();
    serverSocket.close();
    }catch(IOException e){
    e.printStackTrace();
    // TODO code application logic here
    }

    and this is the Main Processing :
    import java.awt.*;
    import java.awt.event.*;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    import java.text.*;
    import java.util.*;
    import java.net.*;
    import java.io.*;
    public class MainProcessing {
    private static final long serialVersionUID = 1L;
    static private boolean isApplet_ = true;
    static private InetAddress argIp_ = null;
    static private int argPort_ = 0;
    public TCPIP TCPIP_ = null;
    private InetAddress ip_ = null;
    private int port_ = 10001;
    static private boolean conectFlag = false;
    private BufferedWriter bw;
    FileOutputStream fos;
    OutputStreamWriter osw;
    public int[] current = new int[400];
    public int[] volt = new int[400];
    public int[] revolution = new int[400];
    public void init() {
    public void start() {
    if (isApplet_) {
    try {
    ip_ = InetAddress.getByName(getCodeBase().getHost());
    } catch (UnknownHostException e) {
    } else {
    ip_ = argIp_;
    if (argPort_ != 0) {
    port_ = argPort_;
    // IP&#12450;&#12489;&#12524;&#12473;&#12364;&#19981;&#26126;&#12394;&#12425;&#20309;&#12418;&#12375;&#12394;&#12356;
    if (ip_ != null) {
    // &#12467;&#12493;&#12463;&#12471;&#12519;&#12531;&#12364;&#25104;&#31435;&#12375;&#12390;&#12356;&#12394;&#12356;&#12394;&#12425;&#12289;&#25509;&#32154;
    if (TCPIP_ == null) {
    TCPIP_ = new TCPIP(ip_, port_);
    if (TCPIP_.getSocket_() == null) {
    System.out.println("&#12511;&#12473;&#65297;");
    // &#12456;&#12521;&#12540;&#12513;&#12483;&#12475;&#12540;&#12472;&#12434;&#34920;&#31034;
    return;
    if (TCPIP_ == null) {
    System.out.println("&#12511;&#12473;&#65298;");
    return;
    System.out.println("&#25104;&#21151;");
    conectFlag = true;
    try {
    TCPIP_.sendF();
    } catch (IOException ex) {
    Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("" + conectFlag);
    return;
    public void receive() {
    try {
    // Calendar cal1 = Calendar.getInstance(); //(1)&#12458;&#12502;&#12472;&#12455;&#12463;&#12488;&#12398;&#29983;&#25104;
    // int year = cal1.get(Calendar.YEAR); //(2)&#29694;&#22312;&#12398;&#24180;&#12434;&#21462;&#24471;
    // int month = cal1.get(Calendar.MONTH) + 1; //(3)&#29694;&#22312;&#12398;&#26376;&#12434;&#21462;&#24471;
    // int day = cal1.get(Calendar.DATE); //(4)&#29694;&#22312;&#12398;&#26085;&#12434;&#21462;&#24471;
    // int hour = cal1.get(Calendar.HOUR_OF_DAY); //(5)&#29694;&#22312;&#12398;&#26178;&#12434;&#21462;&#24471;
    // int min = cal1.get(Calendar.MINUTE); //(6)&#29694;&#22312;&#12398;&#20998;&#12434;&#21462;&#24471;
    // int sec = cal1.get(Calendar.SECOND); //(7)&#29694;&#22312;&#12398;&#31186;&#12434;&#21462;&#24471;
    byte[] rev = TCPIP_.receive();
    // System.out.println("&#21463;&#20449;");
    if (rev != null) {
    byte[] Change = new byte[1];
    int j = 0;
    for (int i = 0; i < 1200; i++) {
    Change[0] = rev;
    current[j] = decimalChange(Change);
    i++;
    Change[0] = rev[i];
    volt[j] = decimalChange(Change);
    i++;
    Change[0] = rev[i];
    revolution[j] = decimalChange(Change);
    } catch (NullPointerException e) {
    public int decimalChange(byte[] byteData) {
    int bit0, bit1, bit2, bit3, bit4, bit5, bit6, bit7;
    int bit = 0;
    for (int i = 0; i < 8; i++) {
    int a = (byteData[0] >> i) & 1;
    System.out.print(a);
    System.out.println();
    return 1;
    public void destroy() {
    // &#20999;&#26029;
    if (TCPIP_ != null) {
    TCPIP_.disconnect();
    if (TCPIP_.getSocket_() != null) {
    try {
    System.out.println("\ndisconnect:" + TCPIP_.getSocket_().getInetAddress().getHostAddress() + " " + TCPIP_.getSocket_().getPort());
    } catch (Exception e) {
    TCPIP_ = null;
    public boolean conect(int IP) {
    conectFlag = false;
    String address = "192.168.1." + IP;
    System.out.println(address);
    try {
    argIp_ = InetAddress.getByName(address);
    } catch (UnknownHostException e) {
    // xp.init();
    isApplet_ = false;
    start();
    return (conectFlag);
    public void send(String command, int value, int sendData[][], int i) {
    int j = 0;
    Integer value_ = new Integer(value);
    byte values = value_.byteValue();
    Integer progNum = new Integer(i);
    byte progNums = progNum.byteValue();
    try {
    TCPIP_.send(command, values, progNums);
    for (j = 1; j <= i; j++) {
    Integer time = new Integer(sendData[j][0]);
    byte times = time.byteValue();
    Integer power = new Integer(sendData[j][1]);
    byte powers = power.byteValue();
    TCPIP_.send(times, powers);
    TCPIP_.flush();
    } catch (IOException ex) {
    Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex);
    public void file(String name) {
    ublic void fileclose(String name, String command, int value, int sendData[][], int i) {
    try {
    fos = new FileOutputStream("" + name + ".csv");
    osw = new OutputStreamWriter(fos, "MS932");
    bw = new BufferedWriter(osw);
    String msg = "" + command + "," + value + "";
    bw.write(msg);
    bw.newLine();
    for (int j = 1; j <= i; j++) {
    msg = "" + j + "," + sendData[i][0] + "," + sendData[i][1];
    bw.write(msg);
    bw.newLine();
    bw.close();
    } catch (IOException ex) {
    Logger.getLogger(MainProcessing.class.getName()).log(Level.SEVERE, null, ex);

  • Pushbuttons on application toolbar in selection screen

    Hi,
    I have created 2 pushbuttons in the application tool bar of selection screen using pf-status.But the other icons in the standard toolbar were grayed out because of this.can anyone tell me why this is happening.

    Hi
    you need to define those other elements of the menubar in the PF-STATUS for example for back write -
    > BACK
    for cancel----->CANCEL for save
    use these predefined function codes
    PRI
    List
    CTRL-P
    Print displayed list
    %EX
    List
    Shift-F3
    Exit processing
    PICK
    Edit
    F2
    Event AT LINE-SELECTION
    RW
    Edit
    F12 , ESC
    Cancel processing
    %SC
    Edit
    CTRL-F
    Find
    %SC+
    Edit
    CTRL-G
    Find next
    BACK
    Goto
    F3
    Back one level
    P--
    CTRL-PgUp
    Scroll to first window page
    P-
    PgUp
    Scroll to previous window page
    P+
    PgDn
    Scroll to next window page
    P++
    Ctrl-PgDn
    Scroll to last window page
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on Jul 11, 2008 6:40 AM

  • Displaying a Push button in the application toolbar for an ALV report

    Hello everyone,
    Query:
    Is it possible to display a custom push button in the application tool bar while displaying an ALV report(1st one)?
    On pressing this custom push button will I be able to display another ALV report(2nd one) based on the selection made on the current ALV report(1st one)?

    Yes u can have pushbutton on application toolbar.
    You just have to use the new pf status in your report program.
    You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
    Have a look at below code for using the new status.
    TYPE-POOLS: slis.
    DATA: i_qmel LIKE qmel OCCURS 0.
    data v_repid type repid.
    SELECT * FROM qmel INTO TABLE i_qmel.
    v_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = v_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_structure_name = 'QMEL'
    TABLES
    t_outtab = i_qmel
    EXCEPTIONS
    program_error = 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.
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'TEST'.
    endform.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    data lv_ucomm type sy-ucomm.
    lv_ucomm
    = sy-ucomm.
    CASE lv_ucomm.
    WHEN 'BUTTON'. "Double Click line Item
    **Write ur functinality here
    endcase.
    endform.
    Also have a look at below links.
    http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
    ALV report
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Submit a program with LDB

    Hi,
    My Issue is when I execute a program (ZRHECM_PRINT_CRS Copy of  RHECM_PRINT_CRS) directily It is generating the output for me in the form of xstring, But when I submit it with same parameter inside a function module It is not going to (get) statement.
    This program is using pnpce(LDB)
    Is there a problem in submiting a program Using LDB?
    Here is what  I Submit .What should be done ?
    SUBMIT  zrhecm_print_crs  WITH pnppernr-low    = pernr
                                WITH PNPTIMED        = PNPTIMED
                                WITH p_carea         = p_carea
                                WITH p_ccatg         = p_ccatg
                                WITH p_cplan         = p_cplan
                                WITH p_crevi         = p_crevi
                                WITH pnpbegda        = begda
                                WITH pnpendda        = endda
                                WITH pnpstat2-low    = stat2
                                WITH pnpbtrtl-low    = btrtl
                                WITH pnpwerks-low    = werks
                                WITH pnppersg-low    = persg
                                WITH pnppersk-low    = persk
                                AND RETURN.

    You don't need two jobs, you can have 1 job with two steps,  each step would call the progam with the different variant.
    If you want to write a program which submits the program twice with two different variants, you can use the SUBMIT statement.  Here VARIANT1 is the name of a variant.
    SUBMIT ZREPORT01
           USING SELECTION-SET 'VARIANT1'
           AND RETURN.
    Regards,
    Rich Heilman

  • Adding a Button in the Application toolbar when using LDB for HR programs

    Hi Experts,
    I have a requirement to add a new button after execute button in the Application tool bar for the HR programs when using LDB PNP.
    Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button.          When we are creating a new button for this  by using the table fields sscrfields  with the function key as 2 we are not able to see the new button.
    can any one help me in this issue.

    please post your relevant coding with respect to the button
    A.

  • Adding a button in Application toolbar of Transaction IW32

    Hi ,
    I need to add a button in the Application Toolbar of standard transaction IW32,I tried copying the pf-status and adding it in the user exit exit_saplocih_006 also,but its not working.
    Please Kindly help.
    Regards,
    Ismail.

    I think you must create a copy of IW32 ( I am not wrong in SAP lingo they say repair) for example ZIW32. And add a button relevant gui status. (I have been looking Gui status of IW32 it is have more status. you must find true status)
    If you want change original source don't forget this a patch can change your code.

  • Changing of Application ToolBar pushbutton  base on the tab.

    Hi,
    I have a tabstrip with 2 tab. When the user come to the first screen ( 1st tab) the application toolbar will show 3 pushbutton, when the user select 2nd tab, the application toolbar must change to 2 pushbutton. 
    When the user click back on the 1st tab, it will show the 3 pushbutton again in the application toolbar. How to achieve that?
    Regards,
    Rayden

    Hi Rayden ,
    I am giving you an idea, just try this, in the mean time I will prepare a code for you and 'll post. What I understood is you want to display 3 Buttons in the application tool bar for the Tab 1 and 2 for the Tab 2.
    Just declare an internal table with type sy-ucomm.
    <b>Data:itab type standard table of sy-ucomm.</b>
    Now you 'll be having one screen say 1001 in which two subscreens 0101 and 0102. For the screen 1001 create all the 5 (3+2) buttons.
    Say you have a button called SAVE and function code is SAVE also.
    <b>Append save to itab.</b>
    Now when user will select the tab1 check the ok_code and in the PBO section for the screen 1001 you have to set the PF status as below.
    In that case suppose you don't want to display the SAVE button so what you have to do is
    <b>set pf-status 'PF_1001' excluding itab.</b>
    So you have to just write a logic to handle this scenario with tab2 also.
    Hope this would help you.
    Cheers
    Somnath

  • How many pushbuttons u can create in application toolbar in selection scree

    Hi
    How many pushbuttons u can create in application toolbar in selection screen? 
    Thank You

    Hi,
    Use SET PF-STATUS 'ZABC'.
    Double click on it.
    It will display Application toolbar. Create the buttons.
    I think the limitation is bcz of the LABEL of button, if you create buttons with a Single TEXT, then you would be able to create many buttons, including toggle button. The Toggle button would switch the buttons.
    i.e say initially 10 buttons are displayed along with toggle button. You click the toggle button , then remaining 10 buttons are displayed.
    Best regards,
    Prashant

Maybe you are looking for

  • Maximum PDF file size for browsers to cache?

    My site distributes daily newsletters via PDF that are typically about 2MB in size. A link is provided to the PDF, and when clicked, it opens the Adobe Reader plugin within the browser (Firefox, IE) and opens the file therein. Recently it was brought

  • Smart object & timeline

    In PS6 I'm having trouble synchonising an animated drummer [as a smart object] with the audio track from the original clip I've drawn inlayers - because, when I go to the smart object edit file, the audio isn't there. I tried to copy the track and pa

  • Interesting Situation Regarding OLE

    Hi professional I have two blocks on my form 1) order 2) item Order is a master block containg fields order_id, customer_id,date_order,date_shipped,sales_rep_id,total,payment_type,order_filled Item is a detail block containing fields order_id,item_id

  • Do Palettepanel and Adobe Air work together?

    Hallo! when I am working with Flex and the Adobe Flash Player everything is fine. I even can use the Adobe Paltettepanel to integrate my Flex applications in Adobe Indesign. But when I want to use the Palletepanel in an Adobe AIR application nothing

  • Unicode conversion in sap query

    i need to whether unicode conversion is possible in sap query