Report with the command button

Hi folks,
i had got a set of selection screen in my report to populate the data to a Transparent Table, before saving the record we need to display the exact record to the user for conformation.
how we archive this one with the normal report.
Reg,
Hariharan

Hi Hariharan,
Check the logic below.
Create a PF status with a push button in the tool bar(SAVE).
Just WRITE the below statement and double click on 123 it will ask for GUI status creation.
SET PF-STATUS '123'.
Press yes. Now In Application tool bar option press + sign it will show u like items 1-7 items 8-14... Give ur text in any one. It will create a push button.
Now display ur report out put. When the user press save now it will ask for saving to data base or not? If the user press yes then it will update else it will not. Just copy paste this code in a sample programu will understand.
SET PF-STATUS '123'.
DATA: l_answer TYPE c.
WRITE 'text'.
AT USER-COMMAND.
CHECK sy-ucomm EQ 'SAVE_TO'. "This is the name given in PF status.
CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
  TITLEBAR                    = ' '
  DIAGNOSE_OBJECT             = ' '
    text_question               = 'Want to save the data to data base?'
  TEXT_BUTTON_1               = 'Ja'(001)
  ICON_BUTTON_1               = ' '
  TEXT_BUTTON_2               = 'Nein'(002)
  ICON_BUTTON_2               = ' '
  DEFAULT_BUTTON              = '1'
  DISPLAY_CANCEL_BUTTON       = 'X'
  USERDEFINED_F1_HELP         = ' '
  START_COLUMN                = 25
  START_ROW                   = 6
  POPUP_TYPE                  =
IMPORTING
   ANSWER                      = l_answer
TABLES
  PARAMETER                   =
EXCEPTIONS
   TEXT_NOT_FOUND              = 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.
IF l_answer EQ 1.
Update the databse.
ELSE.
Dont update'
ENDIF.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on Mar 21, 2008 5:19 PM
Edited by: Vinod Kumar Vemuru on Mar 21, 2008 5:22 PM

Similar Messages

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • Problem with the back button in the Alv ouput

    i have  refresh button in output of my alv report when i click on this it is getting refreshed ,now the problem is with the back button after refresh whn i click on back button it is not going to selection screen , i have to  click  the back button thrice  to come out to the selection screen ,if have refreshed  the ouput  screen twice .
    if i dont refresh the back button is working fine , So i have used "call to selection screen 1000" it coming  to selection screen without any problem  but in selection screen on clicking on back button it is again going back to output screen ,So please suggest what has to be done here .

    Hi Brahmananda,
    Please try to understand the flow of program and the screen navigation
    the click of BACK button triggers PAI and (to the best of my knowledge) you might have called the ALV screen number without any checks ( may be) so it is again taking to the ALV.
    try using
    in PAI
    module exit at exit-command
    in program
    module exit
    case ok_code
    when 'BACK'.
    LEAVE PROGRAM ( or any thing that you want it to be )
    endcase
    endmodule
    regards
    Ramchander rao.K

  • My mac mini will not shut down.  I need to manually shut it off with the power button.

    My mac mini will not shut down or restart.  I need to manually shut it off with the power button.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter "BOOT_TIME" (without the quotes) in the search box. Note the timestamps of those log messages, which refer to the times when the system was booted. Now clear the search box and scroll back in the log to the last boot time after  you had the problem. Select the messages logged before the boot, while the system was unresponsive or was failing to shut down. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V). Please include the BOOT_TIME message at the end of the log extract.
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    Still in Console, look under System Diagnostic Reports for crash or panic logs, and post the entire contents of the most recent one, if any. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if present (it may not be.) Please don’t post any other kind of report — it will be very long and not helpful.

  • Terrance Devlin answered a question about iPhoto (4-2012) re:copying iPhoto Library to an ExHD, and losing all the albums. I can't locate the "Choose Library" when I open iPhoto with the opt button. Can anyone help?

    I tried to move my images (over 25,000) to an External Hard drive to open up some memory, hoping to make my computer run faster. It took three hours to move the images and I see them all in the mac's menus. However when I try to open them with iPhoto now, none appeared. and when I tried to import them back to the main HD they come in to iPhoto just fine, but not with the albums nor any of the massive organization i'd created in the original. this represents years of images, and I can't imagine that I'd have to recopy them into folders/albums again.
    Terrance Devlin answered a similar question back in April of last year. He said to make sure the ExHD is formatted to MAC OS Extended (Journaled) and to move the library to the ExHD and then open iPhoto with the option button and select "Choose Library" from the resulting menu.
    Command "I" tells me that the new drive is formatted correctly. I can't locate the "Choose Library" when I open iPhoto with the opt button.
    First, I wondered if the application needs to be on the same drive as the Library. I sure would like to know if I can find out how to restore all the folders I had them in. Terrance's advice helped the user that had asked the question.
    Here's the url for that archived discussion: https://discussions.apple.com/thread/3849933?start=0&tstart=0
    Can anyone help? I'm using iPhoto 5. My MAC is an OS X version 10.4.11.
    thanks, brokenlom

    Here are Apple's instructions:
    If you are using iPhoto ’06 or earlier, you will need to follow these steps to tell iPhoto where the Library is now located:
    Hold down the Option key on the keyboard and open iPhoto. Keep the Option key held down until you are prompted to create or choose an iPhoto Library.
    Click Choose Library.
    Locate and select the iPhoto Library in its new location.
    (from http://support.apple.com/kb/HT1229 )
    Below (in the link below) is what you should see when holding down the option key and opening iPhoto. Keep holding down the option key until this dialogue comes up. You want to select the Choose Library button.
    http://appleclinic.wordpress.com/2008/04/06/change-default-dir-iphoto/

  • Problem true/false with the command SHOW_LOV

    Hello,
    I have a simple problem with the command SHOW_LOL
    When i press an Button with this trigger:
    LIST_OF_VALUES('hallo','OKI');
    And my Procedire like this:
    PROCEDURE list_of_values(p_lov in VARCHAR2, p_text in VARCHAR2) IS
    v_lov BOOLEAN;
    BEGIN
    v_lov := SHOW_LOV(p_lov);
    IF v_lov THEN
    MESSAGE('You have just selected a '||p_text);
    ELSE
    MESSAGE('You have just cancelled the List of Values');
    END IF;
    END;
    When ever i pressed the button, the procedure jumps into the else sector, but why?
    Because it is true, or not?
    When i alter the variable like this:
    v_lov := true;
    then it runs.
    Can you help me?
    Greetings

    example of help forms 6i.
    DECLARE
    a_value_chosen BOOLEAN;
    BEGIN
    a_value_chosen := Show_Lov('my_employee_status_lov');
    IF NOT a_value_chosen THEN
    Message('You have not selected a value.');
    Bell;
    RAISE Form_Trigger_Failure;
    END IF;
    END;

  • MacBook Pro: Where is the Command button?

    where is the command button? i need to hold the command and option button while connecting my ipod to itunes for something.

    It's the key with a cloverleaf and/or Apple symbol, depending on the keyboard you're using.
    http://en.wikipedia.org/wiki/Command_key

  • How to get the command button component id  in bean class?

    Hi All,
    I'm using adf 11g.
    I'm having three command button , which have some similar code to use on fire of these buttons.
    if it possible to catch the component id in bean , i can use the code with little parameter passing .

    Hi,
    You can get the command button from the actionEvent (if you are writing a generic actionListener) and from it, you can get the Text of the command button. Using which, you can process accordingly.
    If the text also same, then set some client attribute for the command button (check out [url http://docs.oracle.com/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_clientAttribute.html]af:clientAttribute), and from the actionListener, get the client attribute using getClientAttribute method and process accordingly.
    -Arun

  • Priority of the command buttons

    Hi, I have a problem and will be happy if someone help me....
    In my application I can not prioritize the command buttons. I want to display the command buttons in the order od priority. In MIDP API it says that we can do it by using the third field in the command line.
    I am doing like it is said but it shows them in another order which I could not discover yet.....
    for example. the following command should be the last one since it is the 19 command but it is the first one. Any one has an idea...
    Thanks
    preferencesCommand = new Command("pref", Command.SCREEN, 19);

    Your going to have to give a better description of what you're working with if you're going to get any help. Command is not standard java so obviously your working with somebody's code. You should bring it up with him/her

  • The pop-up dialog box, such as on Facebook, is truncated. It chops off the command buttons.

    The pop-up dialog boxes, such as those on Facebook, are truncated. The boxes are 1/2 of normal size with the bottom 1/2 gone, including the command buttons, making it useless. Since yesterday evening, ALL dialog boxes on Facebook and Zynga are affected. I can't post anything from the pop-up boxes.
    == This happened ==
    Every time Firefox opened
    == yesterday evening

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • My Mac acts as if I am holding down the Command button. Help?

    Every few minutes, why I try to type something, my Mac flips out and it tries to open applications, or print web pages. It acts like I am holding down the Command button, which I am not. When I try and open an application, it will open up the applications folder with the application that I want to open highlighted. I can not find ANYONE with this same issue, and I sure hope that someone knows how to fix it. Not happy about this right now.

    You may have a faulty keyboard. Try an external keyboard, either wired or wireless, and see if the problem stops.

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • I need a report with the following fields

    Hi All,
    I need a report with the following fields & G/L "Expenses" only.
    1)G/L Code.
    2) G/L Name.
    3) G/L Balance
    & Selection Criteria From Date, To Date , & Location(for me locations is PROFITCENTRE).
    Please some body suggest me an SQL Querry to fetch this result.
    Thanks in Advance,
    S. Mobin

    Hi!
    Individual G/L means i didn't understand
    check this for only Expence Acc
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Location nvarchar(20)
    set @FromDate = (Select min(S0.RefDate) from jdt1 s0 where s0.Refdate >='[%0]')
    set @ToDate = (Select max(S1.RefDate) from jdt1 s1 where s1.Refdate >='[%1]')
    set @Location = (Select max(s2.ProfitCode) from jdt1 s2 where s2.ProfitCode  = '[%2]')
    select
    J1.Account,
    max(A0.AcctName) as Name,
    j1.ProfitCode as Location,
    sum(J1.debit-j1.credit) as Balance
    From
    JDT1 J1,OACT A0
    Where
    J1.Account=A0.AcctCode and
    J1.RefDate >=@FromDate and
    J1.RefDate<= @ToDate and
    j1.ProfitCode=@Location and
    A0.GroupMask = 5
    Group By
    J1.Account,j1.ProfitCode

  • Stock report with the field... last stock changed at certain date?

    Is there any standard report with the date of the last change of the stock value and quantity?
    Points granted
    BR
    Saso

    Hi people,
    I want to know why MBEWH have not any material stock information for period when doesn´t exist any inventory movement for some materials, for example I have a case in 12.2006 period the material A have stock quantity 100 and value 1000 and the next period 01.2007  no stock movements were done for this reason the MBEWH had to had the same values stock 100 and value 1000 in 01.2007 period, but in MBEWH is missing, there is not any information for material A in this period.
    Anybody knows about this problem?
    Thanks.
    Lili.

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

Maybe you are looking for

  • My iphone 4 is on 4.3.2 and wont update to 5 even tho it says it is available. it keeps telling me my internet connection timed out when it didnt.

    i have been trying to add in the latest software and it downloads and almost runs through it all then errors at the end and tells me the internet connection has timed out even tho it hasnt and i have no internet issues. im not sure what i need to do

  • Photos in Photostream not on IPad

    The photos in my photostream in my icloud will not download to my ipad 4. I have tried a hard reset, I have turned photostream off on my ipad as well as deleted my icloud account from my ipad and resigned back in. I can't get it to work, all of my ph

  • Problems printing an InDesign document

    Hello I am trying to print an Indesign document with two layers - colour and text. Both layers are visible, but the colour layer won't print. Does anyone have and suggestions as to why this might be?

  • Folder structure in opportunity

    Hi All, We wanted to have a predetermined folder structure/template in the attachment tab of an opportunity so that the users would attach their files in the respective folders. Could anyone help me out with this. I tried the "define template for fol

  • User License for Netweaver as Java system

    Hello Experts, May i know how do i assign user license data to a user id created in UME? Like in ABAP Stack, we can assign the license type profressional using SU01, under tab license data. How do we perform the same thing in JAVA only system? If the