How to display multi-line popup message in user exit?
Hi,
I need to display a multi-line popup text message with controllable response buttons in a user exit.
I looked at POPUP_TO_CONFIRM with its DIAGNOSE_OBJECT, but I need substitution parameters and the FM doesn't support this functionality. So this won't meet my needs.
Does anyone have any suggestions (maybe with some example code?) about how to do this?
Thx.
Andy
Code:
LOOP AT I_KNB1 WHERE ZTERM NE ZPAGDESCR-ZZTERM.
IF SY-TABIX = 1.
IF I_TEXT_TABLE[] IS INITIAL.
PERFORM HEADER TABLES I_TEXT_TABLE.
REFRESH : I_T052U.
SELECT ZTERM ZTAGG TEXT1
FROM T052U
INTO TABLE I_T052U
FOR ALL ENTRIES IN I_KNB1
WHERE SPRAS = SY-LANGU AND
ZTERM = I_KNB1-ZTERM.
ELSE.
REFRESH : I_T052U.
SELECT ZTERM ZTAGG TEXT1
FROM T052U
INTO TABLE I_T052U
FOR ALL ENTRIES IN I_KNB1
WHERE SPRAS = SY-LANGU AND
ZTERM = I_KNB1-ZTERM.
I_TEXT_TABLE-TDLINE = TEXT-T01.
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDIF.
MOVE 'Company' TO I_TEXT_TABLE-TDLINE+0(10).
MOVE 'Payment' TO I_TEXT_TABLE-TDLINE+10(10).
MOVE 'Day' TO I_TEXT_TABLE-TDLINE+20(5).
MOVE 'Description' TO I_TEXT_TABLE-TDLINE+26(100).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
MOVE 'Code' TO I_TEXT_TABLE-TDLINE+0(10).
MOVE 'Term' TO I_TEXT_TABLE-TDLINE+10(10).
MOVE 'Limit' TO I_TEXT_TABLE-TDLINE+20(5).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
I_TEXT_TABLE-TDLINE = TEXT-T01.
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDIF.
MOVE I_KNB1-BUKRS TO I_TEXT_TABLE-TDLINE+0(10).
MOVE I_KNB1-ZTERM TO I_TEXT_TABLE-TDLINE+10(10).
LOOP AT I_T052U WHERE ZTERM = I_KNB1-ZTERM .
MOVE I_T052U-ZTAGG TO I_TEXT_TABLE-TDLINE+20(5).
MOVE I_T052U-TEXT1 TO I_TEXT_TABLE-TDLINE+26(100).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDLOOP.
ENDLOOP.
ENDIF.
IF NOT I_TEXT_TABLE[] IS INITIAL.
CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
TASK = 'DISPLAY'
TITEL = 'Inco term payment term mismatch'
IMPORTING
FUNCTION =
TABLES
TEXT_TABLE = I_TEXT_TABLE .
ENDIF.
Similar Messages
-
How to display multi line headings in procedural alv report
Hi experts,
How to display multi line heading in alv( procedural alv report) report.
some columns single line and some columns multi line in the same report.
ex:
solvent consumed solvent recovered
fresh | recovery recovery | spent batch no storage
I am using procedural alv .pls give me idea.Hi Ram,
Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
Thanks,
Duy -
How to display multi-lines text correctly (view only mode)
Hi,
I have a description field that includes multi-lines format, where the lines are being separated by
characters: chr(10) and chr(13).
When I’m using messageStyleText (or rawText) – I’m getting all the data in one line.
Can you please recommend of an OAF item that will display the text correctly?
Should I use another character as the line separator?
Thanks in advance,
RonaHi Rona;
rawText item supports HTML tags. so you can use br tag.
Best Regards;
GsrC.
Message was edited by:
GsrC -
How to display multi-line event in Ical
I read that you could display multiple lines of an event description in ical using Option-enter. This works...However, after I select "All Day" event, it reverts it back to single line display on my monthly view. I want to be able to print my ical Monthly View and I need the whole event description to display. Any suggestions?
I'm using ical 4.0.2Hi,
I don't think iCal does this.
Best wishes
John M -
How do you display multi line text
Hi
How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
In general, is there a way to display multi line text? What component is suitable for this, if there is one?
ThanksYou can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
<af:outputText escape="false"
value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo -
Hi,
I am having issues in displaying multi line text on a Text Item. Basically there is data in the database column DetailText which is stored like this with carriage returns :
If I look at the column in Toad it is formatted with all the carriage returns correctly eg.
Hello
World
When I display this in my StaticStyled Item it displays like "Hello World" in one line. I want to be able to display it as it is with the carriage return on 2 seperate lines.
I have looked in this forum and one search 2 places and one suggestion was to use RawText Item type. I have tried changing the Item Type to Raw Text and FormattedText but it doesn't make any difference. The lines are still displayed horizontally instead of vertically. Another place I saw was to use OAHTMLWebBean but doesn't show how I can do this.
This should be simple enough but I have searched the DevGuide and this forum and couldn't figure out the solution. Any help would be appreciated.
ThanksHi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil -
How to display horizontal line in top-of-page by using object oriented ALV?
How to display horizontal line in top-of-page by using object oriented ALV.
I am created top-of-page in object oriented alv.
But not be successes in showing horizontal line in it.
Can any one pls give solution for this..
Thanks and regards..Hi
Try like this
data: gt_list_top_of_page type slis_t_listheader. " Top of page text.
Initialization.
perform comment_build using gt_list_top_of_page[].
form top_of_page.
* Note to self: the gif must be loaded into transaction OAOR with
* classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.
* I Loaded NOVALOGO2 into system.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
* I_LOGO = 'NOVALOGO2'
* i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = gt_list_top_of_page.
endform. " TOP_OF_PAGE
form comment_build using e04_lt_top_of_page type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'A'.
ls_line-info = 'Special'(001).
fgrant = xgrant.
concatenate ls_line-info fgrant
'Stock Option Report to the board'(002)
into ls_line-info separated by space.
condense ls_line-info.
append ls_line to e04_lt_top_of_page.
endform. " COMMENT_BUILD
Use following syntex for footer print in alv:
* For End of Page
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
* For End of Report
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
check this link
http://abapprogramming.blogspot.com/
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
Changing width of a custom container dynamically
Display Page numbers in ALV
Insert picture in selection screen.
Logo in OO ALV Grid
Reward all helpfull answers
Regards
Pavan -
How to display 3 lines in an AnyChart candlestick flash chart ?
Hi,
I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<root>
<type>
<chart type="Candlestick">
<animation enabled="no"/>
<hints auto_size="yes">
<text><![CDATA[{NAME}
Niveau maxi: {HIGH}
Niveau moyen: {OPEN}
Niveau mini: {LOW}]]>
</text>
<font type="Verdana" size="10" color="0x000000" />
</hints>
<names show="yes" width="150" placement="chart" position="bottom" >
<font type="Verdana" size="10" color="0x000000" />
</names>
<values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
<arguments show="no" />
<candlestick_chart>
<bulls>
<background enabled="yes" color="White" />
</bulls>
<bears>
<background enabled="yes" color="Black" />
</bears>
</candlestick_chart>
</chart>
<workspace>
<background enabled="yes" type="solid" color="0xffffff" alpha="0" />
<base_area enabled="no" />
<chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
<background enabled="no"/>
<border enabled="yes" size="1"/>
</chart_area>
<name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
<font type="Verdana" size="14" color="0x000000" align="center" />
</name>
<x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</x_axis>
<y_axis name="Niveau" smart="yes" position="left_center" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</y_axis>
<grid>
<values />
</grid>
</workspace>
<legend enabled="no"/>
</type>
#DATA#
</root>Thank you for your kind help.
ChristianHi,
I have a nice Candlestick flash chart and I am using Anychart 5.1.2. i would like to display 3 horizontal bar lines on this chart.
The values on the y axis on these 3 bar lines are contained into 3 items. Do you have an idea on how to display these lines with the XML ? Here is the XML existing.
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<root>
<type>
<chart type="Candlestick">
<animation enabled="no"/>
<hints auto_size="yes">
<text><![CDATA[{NAME}
Niveau maxi: {HIGH}
Niveau moyen: {OPEN}
Niveau mini: {LOW}]]>
</text>
<font type="Verdana" size="10" color="0x000000" />
</hints>
<names show="yes" width="150" placement="chart" position="bottom" >
<font type="Verdana" size="10" color="0x000000" />
</names>
<values show="no" prefix="" postfix=" m ngf" decimal_separator="." decimal_places="0" />
<arguments show="no" />
<candlestick_chart>
<bulls>
<background enabled="yes" color="White" />
</bulls>
<bears>
<background enabled="yes" color="Black" />
</bears>
</candlestick_chart>
</chart>
<workspace>
<background enabled="yes" type="solid" color="0xffffff" alpha="0" />
<base_area enabled="no" />
<chart_area enabled="yes" x="80" y="50" width="670" height="280" deep="0">
<background enabled="no"/>
<border enabled="yes" size="1"/>
</chart_area>
<name text="&P8_SITE_AFF. - Niveau du &P8_DATE_DEBUT. au &P8_DATE_FIN. - Pas de temps : &P8_TRUNC. (DD : Jour, HH24 : Heure, MI : Minute)" >
<font type="Verdana" size="14" color="0x000000" align="center" />
</name>
<x_axis name="Niveau min : &P8_NIVEAU_MIN. m ngf - Niveau max : &P8_NIVEAU_MAX. m ngf - Niveau moyen : &P8_NIVEAU_MOYEN. m ngf" smart="yes" position="center_bottom" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</x_axis>
<y_axis name="Niveau" smart="yes" position="left_center" >
<font type="Verdana" size="14" color="0x000000" bold="no" align="center" />
</y_axis>
<grid>
<values />
</grid>
</workspace>
<legend enabled="no"/>
</type>
#DATA#
</root>Thank you for your kind help.
Christian -
How to display multi-channel image in the 'proxy'?
There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
int nSpotChannel = gChannelCount - 4;
PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
for(int i = 0; i < nSpotChannel; i++){
if( i != (nSpotChannel - 1) )
overlay[i].next = overlay + i + 1;
else
overlay[i].next = NULL;
overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
overlay[i].colBytes = 1;
overlay[i].r = 230;
overlay[i].g = 161;
overlay[i].b = 174;
overlay[i].opacity = 255;
overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
pixels.pixelOverlays = overlay;
Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
If you have other solution, please tell me. Many thanks!This is what I've been doing - was just curious if there was a way to see a more cohesive image.
If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
- Morgan -
How to display 2 lines of fieldcat in alv
hi,all.
I wonder how to display 2 lines of fieldcat in alv,no matter grid,list ,oo. whatever.
thanks in anvance.Hi,
it's only possible in alv-list (3 lines).
A. -
How can i display warning messages in user exit EXIT_SAPLMGMU_001 (MM02)
Hi all,
while modifying the material master using MM02, i have added new conditions to display messages in user exit EXIT_SPALMGMU_001.
But using this user exit i am not able to display warning messages.
Can you please help me with this?
Sample code which i have included in exit :
SELECT SINGLE mstav FROM mara
INTO w_mstav
WHERE matnr = wmara-matnr.
IF wmara-mstav NE w_mstav.
IF wmara-mstdv NE sy-datum.
wmara-mstdv = sy-datum.
MESSAGE w177(z03_mm) WITH text-s04 text-s21.
ENDIF.
ENDIF.
Thank you all in advance.As written in the SAP documentation of the Enhancement , you can only raise error message using a
MESSAGE .. RAISING APPLICATION_ERROR.
You could manage the "warning" yourself, sending an error first time and keeping a trace of the check in some STATICS variable, and not raising the error again if data input remains unchanged between two call of the include.
<i>----
EXIT_SAPLMGMU_001
Where Is the Customer Exit - EXIT_SAPLMGMU_001 called?
The customer exit is in function module MATERIAL_UPDATE_ALL. The
function module checks the data for errors (logical relationships,
foreign keys, fixed domain values, and so on) when the material master
is updated.
Use
o New fields
You can make checks possible for new fields of your own. These
checks must be identical to the checks that you carry out for your
new fields in online maintenance.
o Existing fields
For existing fields, you can extend and intensify the checks.
You can also change data for descriptions and general material data
(MARA). For example, the descriptions can be generated from attributes
of the material.
Limitations
You cannot bypass existing checks.
Interface to Application
The respective data of the current logical transaction is contained in
the structures, for example, in structure WMARA for MARA. Nonrelevant
structures are transferred with their initial values.
General material data that can be changed (CMARA) has the structure
MARU. This MARA view contains fewer internal fields than MARA itself. If
WMARA is filled, CMARA is also filled when accessed.
The customer exit contains the exception APPLICATION_ERROR for your
self-defined error situations.
Using the language element MESSAGE .. RAISING APPLICATION_ERROR, you can
terminate the current (logical) transaction and display your message in
the log. </i>
Regards -
Popup Message when user tries to click outside of a webpart - How To
Hi
I have a custom web part on a page. I would like to know how I can prompt a warning message to user if he/she clicks outside the webpart, say on a Quick Launch link.
There must a be way to do this right. Appreciate feedbacks and ideas.Hi,
Here you go. Pls check this
http://blog.mastykarz.nl/sharepoint-2010-application-pages-modal-dialogs/
Please remember to click 'Mark as Answer' on the answer if it helps you -
Hello Friends,
I am trying to give information message in User exit while creating PO
Is it possible to give message type ' I ' ???
If not how to give info message on to ME21N ??
Thanks,
AjayI'm not sure why that should be. Perhaps as gudise mahesh says it will not trigger in update mode? My code is straightforward and it does work. It outputs a message type i if the last person to amend a po tries to release it.
IF sy-ucomm = 'MERELEASE' AND
sy-repid = 'SAPLXM06'.
CLEAR wa_bekpo.
READ TABLE it_bekpo INTO wa_bekpo INDEX 1.
SELECT SINGLE ernam FROM ekko INTO l_uname
WHERE ebeln = wa_bekpo-ebeln.
IF l_uname = sy-uname.
e_cekko-ekorg = space.
MESSAGE i076(zmm).
LEAVE TO TRANSACTION sy-tcode.
ENDIF.
Exclude last person to change PO
SELECT * FROM cdhdr
INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
WHERE objectclas = c_class
AND objectid = wa_bekpo-ebeln
AND change_ind NE c_i.
IF NOT it_cdhdr IS INITIAL.
SORT it_cdhdr BY udate DESCENDING utime DESCENDING.
READ TABLE it_cdhdr INDEX 1 ASSIGNING <cdhdr>.
IF <cdhdr>-username = sy-uname.
e_cekko-ekorg = space.
MESSAGE i089(zmm).
LEAVE TO TRANSACTION sy-tcode.
ENDIF.
ENDIF.
ENDIF.
Sorry I couldn't be of much help. -
VA01 - Need to display an error popup message on line item check
Hi All,
I'm working on a user exit (report MV45AFZZ, form routine USEREXIT_FIELD_MODIFICATION).
I already have all the logic necessary - the one final piece that is left is to display an error pop-up message if the line item quantity is less than a certain number.
The pop-up should display when the enter key is pressed in the quantity field. Also, the pop-up should display if the SAVE button is pressed.
I tried using
MESSAGE 'Please increase quantity' TYPE 'E'.
This worked, but unfortunately it caused VA01 to terminate when I click off the pop-up. This is strange, since type 'E', unlike type 'A', should not do that.
I also tried POPUP_TO_INFORM, but that's just an informational message which does not prevent saving.
Any ideas ?
Regards,
Roman D.You can try this fm
CALL FUNCTION 'DD_POPUP_TO_CONFIRM_CANCEL'
EXPORTING
textline1 = text-902
textline2 = text-903
title = text-901
start_column = 25
start_row = 6
defaultpos = 'C'
IMPORTING
answer = cancel_rc.
CASE cancel_rc.
WHEN 'A'.
WHEN 'C'.
LEAVE PROGRAM.
WHEN OTHERS.
ENDCASE.
Based upon user inputs you can handle conditions (CANCEL_RC) accordingly. -
New lines created in excel when displaying multi-line text item value
Hi all,
I put the value of a multi-line text-item into a csv file :
DECLARE
file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
fExp VARCHAR2(256);
in_file Text_IO.File_Type;
linebuf VARCHAR2(4000);
BEGIN
fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
IF fExp IS NOT NULL
THEN
set_application_property(cursor_style,'BUSY');
in_file := Text_IO.Fopen( fExp, 'W');
linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
NVL(:com_bnc_possibles.titre,'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
NVL(:com_bnc_possibles.label_reg,'') || ';' ||
NVL(:com_bnc_possibles.nom,'') || ';' ||
NVL(:com_bnc_possibles.prenom,'') || ';' ||
NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
NVL(:com_bnc_possibles.motifs,'') || ';' ;
Text_IO.Put_Line( in_file, linebuf);
Text_IO.Fclose( in_file);
set_application_property(cursor_style,'DEFAULT');
END IF;
END;
And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
Or are there tips to remove CHR(13) characters from a multi-line text-item ?
Thank you very much indeed.
Message was edited by:
andrianiainaHi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil
Maybe you are looking for
-
I've been following a few threads here because I've had similar problems. I haven't seen a solution to this, however. I posted about frequent kernel panics, crashes and blue screens under BobMac, but when I went to log in for a further post the site
-
Upcasting and narrow casting in oo-abap
hi friends, please tell me clearly about the Up casting and Down casting with examples in OO-ABAP. thanks and regards. Moderator message : Search for available information, read forum rules before posting. Thread locked. Edited by: Vinod Kumar on Nov
-
Process Code for Goods Receipts
Hi Friends, Does Goods Receipt have Outbound Idoc? If so can you please tell me the Process Code and the function module for GR Outbound IDOC? Thanks in advance, Meghna.
-
Error files in db1\sysman\recv\errors
Windows 2003 SP1 ORACLE 10.2.0.3 There are a lot of error files being generated in \sysman\recv\errors for every database on the server. How can I stop this? It is bieng generated every minute. Can someone help? Regards
-
Hi Team, In Excel 2007,under the text or number filter the keyword entering search option should be there,but in my case search option is not there. I re installed and tried,it is an licensed Enterprise edition.please help to resolve this Regards, di