ALV OM. Avoiding pop-up closure
I created an ALV pop-up using the ALV OM.
I have to detect the moment when the user closes the window so to make some checks; according to the result of these checks the ALV pop-up must stay open so the user can make other changes.
Until now I don't succeed in avoiding the window closure when the user, for example, clicks on the close window icon.
What are the objects to use, or whatever else steps to make, to avoid the window closure?
Thanks in advance,
Antonino
Similar Messages
-
Is it Possible to display the output of the ALV list as POP-UP
Hi Experts,
Is it Possible to display the output of the ALV list as POP-UP, if yes then provide some ideas on it.
thanking in advance,
Samad.Hi samad, it is possible to display alv list as pop-up by using the FM " REUSE_ALV_POPUP_TO_SELECT"
try this sample code
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
I_TITLE = P1_TITLE
I_SELECTION = 'X'
I_ZEBRA = 'X'
I_CHECKBOX_FIELDNAME =
I_LINEMARK_FIELDNAME =
I_SCROLL_TO_SEL_LINE = 'X'
I_TABNAME = 'T_VBAP'
I_STRUCTURE_NAME = 'T_VBAP'
IT_FIELDCAT = T_FCAT2
I_CALLBACK_PROGRAM = 'ZTEST_ALV_POPUP'
IMPORTING
ES_SELFIELD = I_SELFIELD
E_EXIT = W_EXIT
TABLES
T_OUTTAB = T_VBAP.
i think it will solve your problem
Regards,
Vijay -
Avoiding POP-Ups while availability check carried out
Hi All,
how to avoid POP-Ups while availability check carried out and there is a shortage?
When u have 1000 items and u have to say ok for all messages like :
The sum of the requested quantity exceeds the sum
+of stock items
or
Delivery group 001: Item 000101 contains no confirmed schedule lines
its a lot of extra work for users-Where to desactivate those messages?
Thanks and best regards
LHi JP,
this was the 1 st option I have tried but still the POP ups are present.....
Maybe the message control is in the another place? -
How to avoid pop up appearing in the screen middle top when playing video full-screen ?
I created a landing page with embedded video hosted on Vimeo. When I click to play the video full-screen there's always a pop up window in the middle top saying the meaning like Vimeo is playing full-screen, press escape to get out of it. I don't want that pop up from appearing, I am wondering if any code I can put on the embedded video to prevent the pop up ? Thank you very much.
No, as a web developer, you can't tamper with that message. The point is to prevent a situation where the user is trapped in full screen, as would happen if full screen is initiated by the page and the page doesn't provide controls to exit full screen.
If users trust the site in question, they can check the "Never ask me again for this domain" checkbox to avoid the message in the future.
Users can also get rid of all such messages altogether:
# Install Stylish and restart Firefox when prompted.
#* https://addons.mozilla.org/firefox/addon/stylish/
# Click the Stylish icon on the navigation toolbar and choose Write New Style, then Blank style.
# Paste the following in the text box, give the style a name, then click the Save button.
<pre><nowiki>
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#fullscr-toggler,
#full-screen-warning-container {
display: none !important
</nowiki></pre>
If you don't want to install an add-on, you can use the ''userChrome.css'' file instead, but I don't recommend it. In that file, the first line of the style should only appear once at the top.
* http://kb.mozillazine.org/UserChrome.css -
ALV grid on pop-up in background mode
I have a report calling FM 'MESSAGES_SHOW' , which displays the messages in a pop-up in ALV grid format.
Now, when I run the report in background, the error messages are not shown.
Is there anyway to get around it ?Try with import parameter
BATCH_LIST_TYPE = 'L'.
a® -
This program is an example with a Grid list and a Popup list
The Sales Orders are displayed in the first list .
When a line is selected, the items of the order are displayed in a popup listFor the given selection parameters.select all the sales order fields(listed in report fields section) from VBAP by performing an inner join on VBAK where the sales order date and number match and the material group is equal to IM01 or IM02 or IM03 or IM04 or IM05 into an internal table A.
For the above slected sales order get the purchase requisition (BANFN) and purchase order type (BSART) from table VBEP into another internal table B loop through the sales order internal table A.
Read internal table B. If sy-subrc = 0 ,then select EBELN (purchase order number) from EBAN using purchase order requisition line item,item number of purchase requisition and purchase order number is not initial.If there is a purchase order number,then delete the sales order line from the internal table else move the purchase requisition number for each of the sales order number into internal table A.
Provide an ALV sort by sales order number and line item.
Display the output in ALV grid by using the FM REUSE_ALV_GRID_DISPLAY.
Provide menu lists for display ,sorting,select/deselect functionalities.
Note: check the standard report VA05 as an example for creating the output for this custom report.
For ALV variant use the FM_REUSE_ALV_VARIANT_F4 and REUSE_ALV_VARIANT_DEFAULT_GET to allow the user to save the variant and select it for displaying output.If any of the data (Z fields in VBAP) is blank,the cell in the column must be highlighted in red.
NAME Table/check box/radio button Selection option/parameter comments Default value
S_DATE VBAK-ERDAT S Sales order creation date Current date
S_VBELN VABAK-VBELN S Saled order/orders
P_ALVVAR DISVARIANT-VARAIANT P
Report field label Sap table Sap field name Field calculation comments
Sales order number VBAP VBELN
Line item VBAP POSNR
Created by VBAP ERNAM
Material master VBAP MATNR
description VBAP ARKTX
Material group VBAP MATKL -
How to avoid pop-up dialog? "Read From Spreadshee​t File.vi"
I am using LV2010 and VBAI2011.
I am using LV to write vi for my VBAI user interface. VBAI will send the inspection results to vi by "Update Inspection UI".
I am calling a "Run LabVIEW VI" from within the VBAI. This vi contains a sub-vi "Read From Spreadsheet File.vi"; the "file path" input to this sub-vi is a string control, which will be updated by a string value obtained in previous steps.
What happen is, when I run the Inspection, a windows "Choose File to Read" will pop up, even though I have already update the "file path" in VBAI. I guess this happens because the "Read From Spreadsheet File.vi" sub-vi didn't wait for the "file path" input, or rather the "file path" update was "too slow"
How to prevent this from happening?
Solved!
Go to Solution.
Attachments:
PQT_CurveFitting_Lookupxxx.vi 15 KBI didn't use your code but tried the attached simple VIs and they work well. Can you create a simple VBAI interface that just runs these two VIs and see if you are able to replicate the issue? The VIs are LabVIEW 2010 SP1
Attached is my VBAI inteface as well, which is 2011 SP1.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
Run1st.vi 10 KB
Run2nd.vi 11 KB
Test1.vbai 3 KB -
Need to avoid pop-up screen while printing shop paper
hi all ,
we have develop a z program to print shop paper for selected orders based on selection criteria. Once the output displayed (out put contain shop paper , printer,order no and operation no )for selection criteria user will select one or many records from output and click on print button. Once user select the print button the spool request has to be created,
problem :- when we select the print button in output display we are getting print pop-up screen
OutputDevice
Frontend printer HP
Copies 1
Page selection
Name
Title
Authorization
Spool retention pe
Archiving mode
Thanks in advance
jayasankarhi all ,
we have develop a z program to print shop paper for selected orders based on selection criteria. Once the output displayed (out put contain shop paper , printer,order no and operation no )for selection criteria user will select one or many records from output and click on print button. Once user select the print button the spool request has to be created,
problem :- when we select the print button in output display we are getting print pop-up screen
OutputDevice
Frontend printer HP
Copies 1
Page selection
Name
Title
Authorization
Spool retention pe
Archiving mode
Thanks in advance
jayasankar -
How to Avoid Pop up for Expand Mode Options
Dear Experts
In our Input schedules, we have two EVDRE Sheets.
1) Master Data EVDRE Sheet
2) The actual transaction data sheet.
On BEFORE_EXPAND event of the Second sheet we trigger the Expansion of First Master Data Sheet to get the exact EVDRE filters. However we are facing issue as during the first expansion the BPC gives message
Select the Expand Mode 1 ) Send Data and Clear Input 2) Clear Input.
Can you please help how can we avoid this message to be show on expansion of 1st EVDRE ?
You help is highly appreciated. I searched the SDN but could not find any answers.Hi Amurag,
Did you ever find a solution/workaround to this issue? -
HI Experts ,
if u go to transaction CNE1 & i put project number ,
and i remove the v from TEST RUN and i Execute,
i get pop-up with message : Actual values can be deleted.
i don't wont this pop-up how can i neutralize it?
i Try with Batch input, i recored the process and when i get the pop-up i push V and save,
but when i try to run process again i get the pop-up again .
i now that this transaction have user-exit GRWTAUTH
i can use it for cancel the pop-up,
i new in this topic ?
Regards
*i need direction i am stuck *
<REMOVED BY MODERATOR>
Regards
Edited by: Alvaro Tejada Galindo on Jun 12, 2008 2:26 PMHi,
Thanks i try what u tell and what i get is this after i do save ,
and i still get the pop-up i have to change something?
Best Regards
T CNE1
SAPLKAZB 1000 X
BDC_CURSOR RKAUF-TEST
BDC_OKCODE =RUN
RKAUF-TEST
BDC_SUBSCR SAPLCNEV_01_MASTER_DATA 0550BLOCK1
LKP74-PSPID E0-0005
BDC_SUBSCR SAPLKAZB 2450BLOCK2
RPSCO_X-VERSN_EV N01
RKAUF-TO 5
RKAUF-GJAHR 2008 -
i have gone through your various materials but mostly find computerese please simply without any superior language tell me how can i prevent nusiance pop ups
thank youhello, if you're getting a lot of unsolicited popups this might be a sign of malicious software being active on your pc. please go to ''firefox > addons > extensions'' & remove any suspicious entries (toolbars, things that you have not installed intentionally, don't know what purpose they serve, etc). also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
[[Remove a toolbar that has taken over your Firefox search or home page]]
[[Troubleshoot Firefox issues caused by malware]] -
Hi,
Im calling a pop up screen (which contains and editable alv grid) when pressing a button on a status of a OO alv grid. Then, i write something on this alv grid from pop up screen and finally, when i want to close the window, i clic on the x thats on the right upper corner of the screen.
When i do this, the program goes to the 'Module User command Input', where ive witten the sentences 'leave to screen 100 (first screen)', 'exit', 'leave screen', 'leave program'. Then it goes back to the 'Module status Output' (I dont know why it goes there) And finally nothing happens. The pop up window just wont close.
I really need so serious help with this.
Cheers,
Roberto.Hi,
have you tried the following two commands?
SET SCREEN 0.
LEAVE SCREEN.
Cheers -
Need Help in Interactive ALV Report
Hi guru's,
I need sample code of Interactive ALV when on selecting an particular field, it should open an another ALV windows or pop-up window. Please help me and points will be rewarded for the right code.
Regards
Rajiv Christopherhi,
may b it will b helpful 2 u.
INTERACTIVE ALV
REPORT Z50651_ALV_INTERACTIVE MESSAGE-ID ZMSG_50651
LINE-SIZE 100
LINE-COUNT 60
NO STANDARD PAGE HEADING.
******************TABLES DECLARATION*****************
TABLES : VBAP,MARA.
*****************TYPE POOLS**************************
TYPE-POOLS : SLIS.
****************INTERNAL TABLES**********************
DATA : BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN, "SALES DOCUMENT
POSNR LIKE VBAP-POSNR, "SALES DOCUMENT ITEM
MATNR LIKE VBAP-MATNR, "MATERIAL NUMBER
END OF IT_VBAP.
****************TEMPORARY VARIABLES******************
DATA : V_VBELN LIKE VBAP-VBELN."SALES DOCUMENT
DATA : V_MTART LIKE MARA-MTART. "MATERIAL TYPE
*****************FIELD CATALOG***********************
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
****************LAYOUT*******************************
DATA : WA_LAYOUT TYPE SLIS_LAYOUT_ALV.
***************VARIANT*******************************
DATA : G_VARIANT LIKE DISVARIANT.
****************SAVE*********************************
DATA : G_SAVE(1) TYPE C.
*****************EVENTS******************************
DATA : XS_EVENTS TYPE SLIS_ALV_EVENT,
G_EVENTS TYPE SLIS_T_EVENT.
******************PF STATUS**************************
DATA : PF_STATUS TYPE SLIS_FORMNAME VALUE 'SET_PF_STATUS'.
******************USER COMMAND************************
DATA : USER_COMMAND TYPE SLIS_FORMNAME VALUE 'SET_USER_COMMAND',
R_UCOMM LIKE SY-UCOMM.
****************SELECTION SCREEN************************
SELECT-OPTIONS : S_VBELN FOR VBAP-VBELN.
***************AT SELECTION SCREEN*********************
AT SELECTION-SCREEN.
PERFORM VALIDATE.
**************START-OF-SELECTION**************************
START-OF-SELECTION.
PERFORM GET_DETAILS.
PERFORM FIELDCAT.
PERFORM LAYOUT.
PERFORM VARIANT.
PERFORM SAVE.
PERFORM EVENTS.
PERFORM ALV_DISPLAY.
*********************FORMS*******************************************
*& Form validate
text
--> p1 text
<-- p2 text
FORM VALIDATE .
SELECT SINGLE VBELN
FROM VBAP
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'enter valid vbeln'.
ENDIF.
ENDFORM. " validate
*& Form get_details
text
--> p1 text
<-- p2 text
FORM GET_DETAILS .
SELECT VBELN
POSNR
MATNR
FROM VBAP
INTO TABLE IT_VBAP
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E000 WITH 'no details found'.
ENDIF.
ENDFORM. " get_details
*& Form fieldcat
text
--> p1 text
<-- p2 text
FORM FIELDCAT .
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'VBELN'.
WA_FIELDCAT-OUTPUTLEN = 10.
WA_FIELDCAT-SELTEXT_L = 'SALES DOC'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-OUTPUTLEN = 6.
WA_FIELDCAT-SELTEXT_L = 'ITEM'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-TABNAME = 'IT_VBAP'.
WA_FIELDCAT-FIELDNAME = 'MATNR'.
WA_FIELDCAT-OUTPUTLEN = 18.
WA_FIELDCAT-SELTEXT_L = 'MATERIAL NO'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
ENDFORM. " fieldcat
*& Form LAYOUT
text
--> p1 text
<-- p2 text
FORM LAYOUT .
WA_LAYOUT-ZEBRA = 'X'.
ENDFORM. " LAYOUT
*& Form VARIANT
text
--> p1 text
<-- p2 text
FORM VARIANT .
CLEAR G_VARIANT.
G_VARIANT-REPORT = SY-REPID.
ENDFORM. " VARIANT
*& Form SAVE
text
--> p1 text
<-- p2 text
FORM SAVE .
CLEAR G_SAVE.
G_SAVE = 'A'.
ENDFORM. " SAVE
*& Form EVENTS
text
--> p1 text
<-- p2 text
FORM EVENTS .
CLEAR XS_EVENTS.
XS_EVENTS-NAME = SLIS_EV_TOP_OF_PAGE.
XS_EVENTS-FORM = 'TOP_OF_PAGE'.
APPEND XS_EVENTS TO G_EVENTS.
ENDFORM. " EVENTS
*& Form TOP_OF_PAGE
text
FORM TOP_OF_PAGE.
WRITE :/ ' INTELLI GROUP'.
ENDFORM. "TOP_OF_PAGE
*& Form ALV_DISPLAY
text
--> p1 text
<-- p2 text
FORM ALV_DISPLAY .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = PF_STATUS
I_CALLBACK_USER_COMMAND = USER_COMMAND
I_STRUCTURE_NAME =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = G_SAVE
IS_VARIANT = G_VARIANT
IT_EVENTS = G_EVENTS
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBAP
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.
ENDFORM. " ALV_DISPLAY
*& Form SET_PF_STATUS
text
FORM SET_PF_STATUS USING EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'Z50651_PFSTATUS' EXCLUDING EXTAB.
ENDFORM. "SET_PF_STATUS
*& Form SET_USER_COMMAND
text
FORM SET_USER_COMMAND USING R_UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN 'DC'.
READ TABLE IT_VBAP INDEX RS_SELFIELD-TABINDEX.
IF SY-SUBRC = 0.
SELECT SINGLE MTART
FROM MARA
INTO V_MTART
WHERE MATNR = IT_VBAP-MATNR.
IF SY-SUBRC 0.
MESSAGE E000 WITH 'NO MATERIAL DESCRIPTION FOR SELECTED MATERIAL NO'.
ELSE.
WRITE :/ 'MATERIAL NO :',IT_VBAP-MATNR.
WRITE :/ 'MATERIAL TYPE :' , V_MTART.
ENDIF.
ENDIF.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'CLOSE'.
CALL TRANSACTION 'SE38'.
ENDCASE.
ENDFORM. "SET_USER_COMMAND
Reward if useful... -
Hi All,
I have generated an Editable ALV Report. Added one custom button on ALV toolbar. When I click this button, I should get a popup screen, this screen should contain all the Coloumns that are selected on the ALV.
for Example, I have an ALV output, with Matnr, MAktx,werks on the output. Now I select the coloumn Maktx and click on new button, my screen should contain only Maktx field and it should be ready to take the new value.
If I select two coloumns maktx and werks and click on new button of ALV toolbar, my pop screen should be ready to take 2 values.
Can any one please tell me how to design this screen, and call the screen.
Regards
RaviHi All,
I have generated an Editable ALV Report. Added one custom button on ALV toolbar. When I click this button, I should get a popup screen, this screen should contain all the Coloumns that are selected on the ALV.
for Example, I have an ALV output, with Matnr, MAktx,werks on the output. Now I select the coloumn Maktx and click on new button, my screen should contain only Maktx field and it should be ready to take the new value.
If I select two coloumns maktx and werks and click on new button of ALV toolbar, my pop screen should be ready to take 2 values.
Can any one please tell me how to design this screen, and call the screen.
Regards
Ravi -
Hello,
I am displaying a ALV report as POP-UP . Its developed based on OOPS ( gr_table->Display).
The ALV displaying the output perfectly when the records are less. For example, the ALV pop-up able to show the 50 records perfectly . If the records are more than 50 (example 500), then i have to scroll down to see the records from 51 to 500. When the records are high , the Alv trying to display the output.. but in a second, its throwing the dump((ASSERTION_FAILED)). Few times, its able to display the data, when i am trying to scroll down to see the below records..its throwing the dump (ASSERTION_FAILED). I tried with all possibilities but no luck. And no idea about ASSERTION FAILED DUMP.
Kindly help.
Regards,
VenkatHello Both,
Thanks for the reply. Please find the error details
The ASSERT condition was violated.
Error analysis
The following checkpoint group was used: "No checkpoint group specified"
If in the ASSERT statement the addition FIELDS was used, you can find
the content of the first 8 specified fields in the following overview:
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
" (not used) "
Probably the only way to eliminate the error is to correct the program.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"ASSERTION_FAILED" " "
"CL_DATAPTABLECACHE============CP" or "CL_DATAPTABLECACHE============CM00P"
"TRANSMIT_PACKET"
Any clue. Please.
Venkat
Maybe you are looking for
-
Help! How to restore LR 1.1 database backup
I run LR 1.1 under Windows XP. I have LR 1.1 setup to backup the database to an external hard drive. Once a week it prompts me to backup the database, which I do. In the middle of importing some raw files from a CF card, I received a message that my
-
This Apple ID has not purchasd lion
i cant instal OS X after format, because i bougt second hand MacBook air.
-
BI- Reports, Data from ECC6 (Call Related)
Hi Gurus, I have a couple of reports to be created in BI. My source system is ECC6 (Call Related) Reports are from the following tables AUFK PMSDO VBAK VBFA QMEL JCDS QMEL I want to follow the standard extraction method. Anybody please help me, how d
-
All, i need help again with progressbar? a couple of days ago i coded this on one system and it worked but now iam doing the same thing on another system it does work . The animation icon is running forever nonstop and below is my process: 1. i creat
-
Raw file created by Nikon D7000 with multi-exposure
After recent updates to ACR6.3 etc., I find all my photos taken by D7000 with multi-exposure turn into PINK colored when opened by ACR. I have no problem in opening other raw files taken by D7000 without multi-exposure nor those taken by D700 (not