Pop-up message with table value

hello all,
i have to display a pop-up message while saving invoice documents in FB60, i m using the customer exit for the same.
but problem is that i have to display some values also in pop-up screen and there should be two pushbutton for user selection like 'OK' and 'CANCEL'. can anyone plz tell me which function module should i use? i tried POPUP_TO_CONFIRM, POPUP_TO_CONFIRM_WITH_MESSAGE, and POPUP_TO_CONFIRM_WITH_VALUE.
pop-up message must be like....
'atleast one document has been entered.'   " this is text only
Vendor   :   211111 - product distribution.    "vendor & description from ITAB
Refrence :  Test1                                          " Ref from ITAB
Do u want to continue to save?
OK -CANCEL  
Regards saurabh

hi gopinath,
i passed the FB60 screen number and now it is working, so now only u check that what i write, is it fine or not?
and please let me know can i increase the size of POP-UP box because all contents are not coming as desired line and spaces?
please suggest.
  tables : bsip, lfa1.
  TYPES: BEGIN OF t_tab,                   " Structure
           xblnr like bsip-xblnr,
           belnr like bsip-belnr,
           name1 like lfa1-name1,
           end of t_tab.
  DATA: lt_itab TYPE TABLE OF t_tab with header line.  "local internal table
  data : lwa type bseg.       " Local work area
  data : lwa1 type bkpf.      " Local work area
  constants: text1(80) type c value 'Atleast one document has been entered with same vendor name and Reference Data.'.
  constants: text2(10) type c value 'Vendor:'.
  constants: text3(10) type c value 'Reference:'.
  data: message type string,
           l_answer type c.
  read table DOC_ITEM_TAB index 1 into lwa.
1
  if sy-subrc = 0.
    read table DOC_HEAD_TAB index 1 into lwa1.
2
    if sy-subrc = 0.
      select single xblnr belnr from bsip into lt_itab where LIFNR = lwa-LIFNR
                                                   and XBLNR = lwa1-XBLNR
                                                   and SHKZG ne 'S'.
3
      if sy-subrc eq 0.
        select single name1 from lfa1 into lt_itab-name1 where lifnr = lwa-lifnr.
        concatenate text1 text2 lwa-LIFNR '-' lt_itab-name1 text3 lwa1-XBLNR into message separated by space.
        call function 'POPUP_TO_CONFIRM'
       exporting
        titlebar                    = 'Duplicate Check'
        text_question               = message
        text_button_1               = 'OK'
        icon_button_1               = 'X'
        text_button_2               = 'Cancel'
        icon_button_2               = 'X'
           default_button              = 1
        display_cancel_button       = ' '
       START_COLUMN                = 25
       START_ROW                   = 6
   importing
       answer                      = l_answer
   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 = '2'.
          leave to screen 1100.
        else.
        endif.
else.
      endif.
3
    else.
    endif.
2
  else.
  endif.
regards.

Similar Messages

  • How to skip the Print Screen List pop-up message with standard T-code?

    Dear Experts,
    I want to do not see the Print Screen List pop-up message with standard T-code.
    Ex, sm66, sm51
    click on print button -> Print Screen List pop-up message(SAPGUI) -> print windows dialog (X)
    click on print button -> print windows dialog (O)
    Is it possible to disappear it?
    Thanks,
    Lee

    Hello Mr.Lee,
    If you are refering to the print icon on the toolbar (CTRL+P), then no, it is not possible.
    This printer dialog is necessary for front-end printing so you can choose the active printer.
    Regards,
    Jude

  • How to change stored procedure with Table Valued Parameter

    I am not sure how to change the normal stored procedure with Table Value Parameter.Do I have to create a separate Table or do I have to create a datatype. Can you please help me with this
    ALTER PROCEDURE [dbo].[uspInsertorUpdateINF]
    @dp_id char(32),
    @dv_id char(32),
    @em_number char(12),
    @email varchar(50),
    @emergency_relation char(32),
    @option1 char(16),
    @status char(20),
    @em_id char(35),
    @em_title varchar(64),
    @date_hired datetime
    AS
    BEGIN
    SET NOCOUNT ON;
    MERGE [dbo].[em] AS [Targ]
    USING (VALUES (@dp_id, @dv_id , @em_number, @email, @emergency_relation, @option1, @status, @em_id, @em_title, @date_hired))
    AS [Sourc] (dp_id, dv_id, em_number, email, emergency_relation, option1, status, em_id, em_title, date_hired)
    ON [Targ].em_id = [Sourc].em_id
    WHEN MATCHED THEN
    UPDATE
    SET dp_id = [Sourc].dp_id,
    dv_id = [Sourc].dv_id,
    em_number = [Sourc].em_number,
    email = [Sourc].email,
    emergency_relation = [Sourc].emergency_relation,
    option1 = [Sourc].option1,
    status = [Sourc].status,
    em_title = [Sourc].em_title,
    date_hired = [Sourc].date_hired
    WHEN NOT MATCHED BY TARGET THEN
    INSERT (dp_id, dv_id, em_number, email, emergency_relation, option1, status, em_id, em_title,date_hired)
    VALUES ([Sourc].dp_id, [Sourc].dv_id, [Sourc].em_number, [Sourc].email, [Sourc].emergency_relation, [Sourc].option1, [Sourc].status, [Sourc].em_id, [Sourc].em_title, [Sourc].date_hired);
    END;

    It's not clear how you would change the procedure. But assuming that you want to replace the existing scalar parameters with tabular input, this is how you would do it. You first create a table type:
    CREATE TYPE  Insertor_type AS TABLE
        (dp_id                char(32),
         dv_id                char(32),
        em_number            char(12),
        email                varchar(50),
        emergency_relation   char(32),
        option1              char(16),
        status               char(20),
        em_id                char(35),
        em_title             varchar(64),
        date_hired           datetime)
    Then you change the procedure header:
    ALTER PROCEDURE [dbo].[uspInsertorUpdateINF] @tvp Insertor_type READONLY AS
    And finally you change the USING clause:
       USING (SELECT dp_id, dv_id , em_number, email, emergency_relation, option1, status, em_id, em_title, date_hired
              FROM   @tvp) AS [Sourc] ON [Targ].em_id = [Sourc].em_id
    The rest is fine as it is.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Pop-Up message with OK button in main page

    All,
    Below is my client's requirement....
    when ever user login into Oracle EBS, before going to Home Page a pop-message with OK button should display and user must and should click OK button to proceed further...
    I am planning to to extend the CO (OAHomePageCO) of /oracle/apps/fnd/framework/navigate/webui/HomePG ... is this is a correct approach or please provide your valueable inputs on this one...
    Thanks in advance

    All,
    any inputs on this requirement?

  • Pop-up menu with defined values

    I am working on creating an invoice in Numbers and am wanting to create values that are tied to my pop-up menu on a cell. For example, if 'Travel day' is selected on my pop-up menu in cell A2, then I would like $300 to come up in cell C2 automatically. Or, if 'Work day' is selected in cell A2, then I would like to have $450 come up in cell C2. Is this possible? Help please

    You pop-up will need three values: a 'blank' (actually a single space character), Work day, and Travel day.
    For C2, you could use a pair of nested IF statements:
    =IF(A="Work day",450,IF(A="Travel day",300,"")
    For a menu with more possibilities, you might want to take a look at LOOKUP or VLOOKUP in the iWork Formulas and Functions User Guide.
    The guide can be downloaded via the Help menu in Numbers. The search function in the guide will take you quite quickly to a description of either of these functions, with examples of how each may be used.
    Regards,
    Barry

  • SQL Server Multiple JOINS with Table Value Function - query never ends

    I have a query with 4 joins using a table value function to get the data and when I execute it the query never ends.
    Issue Details 
    - Table value function 
        CREATE FUNCTION [dbo].[GetIndicator] 
          @indicator varchar(50),
          @refDate datetime
    RETURNS 
    TABLE
    AS
    RETURN
    SELECT
    T1.Id ,T1.ColINT_1, T1.ColNVARCHAR_1 collate DATABASE_DEFAULT as ColNVARCHAR_1 ,T1.ColNVARCHAR_2 ,T1.ColSMALLDATETIME_1, T1.ColDECIMAL_1, T1.ColDECIMAL_1
    FROM TABLE2 T2
    JOIN TABLE3 T3
    ON T2.COLFKT3 = T3.Id
    AND T3.ReferenceDate = @RefDate
    AND T3.State != 'Deleted'
    JOIN TABLE4 T4
    ON T2.COLFKT4 = T4.Id AND T4.Name=@indicator
    JOIN TABLE1 T1
    ON T2.COLFKT1=T1.Id
    - Query
        DECLARE @RefDate datetime
    SET @RefDate = '30 April 2014 23:59:59'
    SELECT DISTINCT OTHERTABLE.Id As Id
    FROM 
    GetIndicator('ID#1_0#INDICATOR_X',@RefDate) AS OTHERTABLE
    JOIN GetIndicator('ID#1_0#INDICATOR_Y',@RefDate) AS YTABLE  
    ON OTHERTABLE.SomeId=YTABLE.SomeId
    AND OTHERTABLE.DateOfEntry=YTABLE.DateOfEntry
    JOIN GetIndicator('ID#1_0#INDICATOR_Z',@RefDate) AS ZTABLE
    ON OTHERTABLE.SomeId=ZTABLE.SomeId
    AND OTHERTABLE.DateOfEntry=ZTABLE.DateOfEntry
    JOIN GetIndicator('ID#1_0#INDICATOR_W',@RefDate) AS WTABLE 
    ON OTHERTABLE.SomeId=WTABLE.SomeId
    AND OTHERTABLE.DateOfEntry=WTABLE.DateOfEntry
    JOIN GetIndicator('ID#1_0#INDICATOR_A',@RefDate) AS ATABLE  
    ON OTHERTABLE.SomeId=ATABLE.SomeId
    AND OTHERTABLE.DateOfEntry=ATABLE.DateOfEntry
    Other details:
    - SQL server version: 2008 R2
    - If I execute the table function code outside the query, with the same args, the execution time is less the 1s.
    - Each table function call return between 250 and 500 rows.

    Hi,
    Calling function in general is a costly query. And definitely joining with a function 5 times in not an efficient one.
    1. You can populate the results for all parameters in a CTE or table variable or temporary table and join (instead of funtion) for different parameters
    2. Looks like you want fetch the IDs falling to different indicators for the same @Refdate. You can try something like this
    WITH CTE
    AS
    SELECT
    T1.Id ,T1.ColINT_1, T1.ColNVARCHAR_1 collate DATABASE_DEFAULT as ColNVARCHAR_1 ,T1.ColNVARCHAR_2 ,T1.ColSMALLDATETIME_1, T1.ColDECIMAL_1, T1.ColDECIMAL_1, T4.Name
    FROM TABLE2 T2
    JOIN TABLE3 T3
    ON T2.COLFKT3 = T3.Id
    AND T3.ReferenceDate = @RefDate
    AND T3.State != 'Deleted'
    JOIN TABLE4 T4
    ON T2.COLFKT4 = T4.Id AND T4.Name=@indicator
    JOIN TABLE1 T1
    ON T2.COLFKT1=T1.Id
    SELECT * FROM CTE WHERE Name = 'ID#1_0#INDICATOR_X' AND Name = 'ID#1_0#INDICATOR_Y' AND Name = 'ID#1_0#INDICATOR_Z' AND Name = 'ID#1_0#INDICATOR_W' AND Name = 'ID#1_0#INDICATOR_A' AND ReferenceDate = @RefDate.
    Or you can even simplify more depends on your requirement.
    Regards,
    Brindha.

  • Calendar. Annoying pop-up message with Using calendar OS X Mavericks. When it tries to connect to iCloud it gives me VERY annoying pop-up message, that it can't connect and that server responds with CalDAVAddSubscriptionCalendarQueueableOperation: 400.

    Using calendar in OS X Mavericks. When it tries to connect to iCloud it gives me VERY annoying pop-up message, that it can't connect and that server responds with CalDAVAddSubscriptionCalendarQueueableOperation: 400.
    Help me please, really need my calendar!

    Hello Steve
    The simple and quick fix is right-clicking on that little Safe icon in the system tray (near the system clock) and choose Stop Backup/Synchronization. Do you see that icon?
    Turn it on and off as needed. Did this work for you?
    Scott

  • Strange Issue with Pop-up LOV with key value return

    Hi,
    I have a region, containing several LoV items. One of the items is of type PoP-up LoV with return key value.
    Now when i run this page, i get page cannot be found error. But, If i a change the item type to select list with submit ( and not pop up lov with return key), I am able to run the page. It does not give me page cannot be found error.
    Please suggest some pointers as to why I am running into this issue when item type is pop-up lov with return key value.
    Regards,
    Rave.
    Edited by: Rave on May 13, 2009 5:13 AM

    what version of apex are you using? Can you recreate the problem on apex.oracle.com?

  • Problem with Table Value Set

    Hi,
    i have created a Table value Set for showing Vendor_site_code in DFF
    XXXX_VENDOR_NAME
    Table Application :Purchasing
    Table Name:PO_VENDORS
    Value:VENDOR_NAME
    ID:VENDOR_ID
    XXXX_VENDOR_SITECODE
    Table Application :Purchasing
    Table Name:PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS
    Value:PVS.VENDOR_SITE_CODE
    ID:PVS.VENDOR_SITE_ID
    where/order by: where PV.VENDOR_ID=PVS.VENDOR_ID
    XXX_ITEM
    Table Application :IVENTORY
    Table Name:MTL_SYSTEM_ITEMS_B
    Value:PVSSEGMENT1||'-'||SEGMENT2||SEGMENT3
    ID:PVS.INVENTORY_ITEM_ID
    where/order by:WHERE ORGANIZATION_ID = cs_std.get_item_valdn_orgzn_id
    i am facing the below error when opening the Form related to that DFF
    APP-FND-01564: ORACLE error 1722 in FDFGVD
    Cause: FDFGVD failed due to ORA-01722: invalid number.
    The SQL statement being executed at the time of the error was: SELECT PVS.VENDOR_SITE_ID,PVS.VENDOR_SITE_CODE VALUE, PVS.VENDOR_SITE_CODE DESCRIPTION, NVL('N', 'N'), NVL(TO_NUMBER(NULL), -1), NULL, NVL('Y', 'Y'), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0) FROM PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS WHERE ( PV.VENDOR_ID=PVS.VENDOR_ID) AND PVS.VENDOR_SITE_ID = :X and was executed from the file &ERRFILE.

    Can you say where have you placed this valueset - which DFF, in which form?

  • Problem with Table value QAMR....

    Hi All,
    I am developing one report from QALS, QAMR for PRUEFLOS.  The result value is always stored 1.240000000+02 format in table (QAMR).
    1) What is required to do to get this value exactly same as entered. I mean suppose it is entered as 0.124 or 124 but when getting the value, I have to assign some decimal places and the value is shown 0.124 and 124.000
    2) If I enter the value 0, it is shown as zero. If I don't enter the value, then also it is shown as zero. (In this case I want blank display ). Both the cases, the table value is 0.0000000+00. Please advise
    Thanxs.
    Umesh

    just take it in type p variable it will automatically take the value.. this is because the data element is defined as float ...
    if you want blank uinstead of 0 then you have to take in a char var...
    regards
    shiba dutta

  • Entity Framework - Execute Stored Procedures With Table Valued Patameter

    How to pass a table valued parameter to a stored procedure in Entity Framework using ExecuteSqlCommand or SqlQuery method?
    Following is my code - 
    DataTable dataTable=new DataTable();
    dataTable.Columns.Add("col1", typeof(int));
    dataTable.Columns.Add("col2", typeof(bool));
    dbContext.Database.ExecuteSqlCommand("exec stored_proc @tvp",
                            new SqlParameter() { SqlDbType = SqlDbType.Structured, ParameterName = "@tvp", Value = dataTable }
    This throws an exception saying 'The table type parameter '@tvp' must have a valid type name.'

    You must set the TypeName property of the SqlParameter to the name of your table type that you have defined in the database:
    SqlParameter param = new SqlParameter();
    param.SqlDbType = SqlDbType.Structured;
    param.ParameterName = "@tvp";
    param.TypeName = "dbo.YourTableType";
    param.Value = dataTable;
    dbContext.Database.ExecuteSqlCommand("exec stored_proc @tvp", param);
    Of course you must define the table type in the database first:
    CREATE TYPE dbo.YourTableType AS TABLE
    ( col1 int, col1 bit )
    Please remember to the following page on MSDN for more information:
    https://msdn.microsoft.com/en-us/library/bb675163(v=vs.110).aspx
    Hope that helps.
    Please also remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to  display a popup window with tables values to input

    hi experts,
    I need to display a popup  displaying values of table in UI.
    Is there any function module to dispaly a popup.

    Hi Ashwini,
    There is no function module to call the pop up in CRM UI.
    You need to follow following steps:
    1. Create an event handler for your click event on which you want to call this pop up.
    2. Create a Z component with a table view and in the table view, define the context nodes and attributes you want to use in the  pop up view.
    3. In the .htm coding of this view, define the layout and buttons you want on this pop up view.
    4. Go to Runtime Repositry, create a ViewSet, ViewArea and in this View Area add the table view you created just now.
    5. Create a MainWindow in the Runtime repositry and add the same table view you created.
    6. Now come back to the main Component and add Component Usage (e.g CUXYZ) .......
    7. While Creating the Component Usage, mention Component Name as your Z Component name and in the Interface View, choose MainWindow from the F4 help.
    8. Go to event handler method of your main Component/View and create separate methods for creating your pop up and handling the close event of the pop up as well.
    For seeing the coding, you cna refer to any standard pop up handling and do the coding in similar format.
    I hope this will helps you.
    Thanks
    Vishal

  • Handling unpredicted error message with return value of the same  in BDC

    Hi all,
    When i create a bdc program to create a purchase order , the screen stops at an message (of type I).
    in background mode (eg : Sometimes becoz of condensing problem in fields and character conversion).
    In such cases i need to move on with transaction by handling this popup.
    Is there any way that i could atleast handle an information(Non critical) message and make the value of the message as always 'OK' .

    Hi,
    FORM populate_data  USING    value(p_fieldname)
                                 value(p_fieldval).
      CLEAR t_bdcdata.
      bdcdata-fnam = p_fieldname.
      bdcdata-fval = p_fieldval.
        Condense p_fieldname.
        Condense p_fieldval.
      APPEND t_bdcdata.
    ENDFORM.                            
    Hope this Code will Work.
    Provide me with your Code  i will try to  help you....
    Thanks
    kalyan.

  • Pop-up message with buttons

    Hi all,
    When user press a button, I want to pop up a messagebox showing the message "Do you continue the process? " with "OK" and "Cancel" buttons. ( like MessageBox of Visual Basis).
    Sure, the action will be changed by the button pressed.
    In such case, should I use dialog window(jsp)? or is there other way to make it?
    I've tried javascript and it worked. But I want to make it with JSF/ADF if it's possible..
    I'm using JSF + ADF BC.
    Thanks in advance.
    Hiro

    Hi,
    check this: http://stegemanoracle.blogspot.com/2006/03/re-usable-prompt-to-save-changes.html
    Frank

  • Pop up message with Contract Number if Contract exists in ME21N in MM

    Hi Experts ,
    We have ECC6.04 system.We are NOT usning Pur. Requisition.
    While creating PO by  ME21N transaction code  ,w.r.t. Contract if Contract is exist, then we need to find out the contract Number manually for each material in the req Pur. Org., which is very tedious task.
    We can craete PO from Contract as a follow on document in ME33, but still 1st we need to find out the contrcat and then go to display of it and then craete Release Order (PO)...but it is not necessary that we will use single contract of same Vendor.
    Currently , if contract is exist and we are craeting the PO w/o contract , then system gives Warning Message that '"... but does not gives me Contract Number & item No.
    I'm exploring some enhancement, which will give me pop screen with the Contract Number & item No or system will directly insert the Contract Number and item in the item overview with all the detials picked up from it 9from source list)...while creating the PO in ME21N code.
    Can anyone suggest, whether it is possible to achive the above by doing any custom devolopment or user exit..etc
    Thanks
    NAP

    You can maintain the contract in source list. On creating purchase order you can go to environment-source list---there you will see the contract number, item number  and validity.  If the requirement is to see the contract number and item number can  be done in this way without any enhancement.
    REgards
    Sangeeta

Maybe you are looking for