Need to display Information message in two lines - Alignment problem
Hi all,
In a screen program, I am trying to display an information/Confirmation message to confirm few things from user side. For this I am using POPUP_TO_CONFIRM FM. This FM enables me to display a text question.
My question would be "'New Price 400 is lesser than particular Product's Regular Price."
"Do you want to continue and save the changes made?".
I am finding it difficult to align these two lines in the popup window.
I want to be displayed in two lines. Just like how it appears above.
Please guide thro this.....
Thanks,
Rajan
Check the following function Module:
CALL FUNCTION 'POPUP_WITH_2_BUTTONS_TO_CHOOSE'
EXPORTING
* DEFAULTOPTION = '1'
diagnosetext1 = 'New Price 400 is lesser than particular Products Regular Price'
DIAGNOSETEXT2 = 'Do you want to continue and save the changes made?'
* DIAGNOSETEXT3 = ' '
textline1 = ' '
* TEXTLINE2 = ' '
* TEXTLINE3 = ' '
text_option1 = 'YES'
text_option2 = 'NO'
titel = 'TEST'
* IMPORTING
* ANSWER =
Regards,
Gurpreet
Similar Messages
-
How to show warning message in two Lines.
Hi,
Can some one please let me know how to show a warning message in two lines. I have created a Message in EBS in two lines but it still displays on the page in a single line.use bundled exception.
ArryList peerExceptions = new ArrayList();
peerExceptions.add(new OAException(....));
peerExceptions.add(new OAException(....));
OAException.raiseBundledOAException(exceptions);
--Prasanna -
How to display mapviewer labels in two lines instead of one?
Hi,
I have been using the addJDBCTheme to display the map along with the labels as follows:
mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || ':' || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
So the label is displayed as col1Value:col2Value.
Now I need to display the label as follows:
col1Value
col2Value
I tried using this
mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || chr(10) || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
But it doesnt work. This displays col1Valuecol2Value
So I tried using this:
mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 label_value from table_name UNION ALL SELECT geom, col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
This actually works. Meaning it displays the label in two lines. But the two lines are almost attached together, there is no space between them at all. It is sometimes very difficult to read.
Would really appreciate any suggestions to resolve this issue.
Is there any other solution to display a label in two lines? I tried changing the label style to set the line-height. But that does'nt work either.
LakshmiMultiline label aren't supported as yet.
JayantDoes MapViewer 10.1.3 (the latest version for present) support it? -
ALV-Need to display total in top/first line!!!
Hi,
i have 3 numerical fields in my ALV output. I need to display the total in top/first line in output and download the same in excel into local system.if possible send me the sample code to how to do it.
Regards,
Nandha.TABLES : BSEG , BKPF.
TABLES: SSCRFIELDS.
TABLES: ITCPO.
DATA :FLAG TYPE I, MAINTAIN TYPE I,
FLAG1 TYPE I,
FLAG2 TYPE I,
FLAG3 TYPE I.
DATA :BEGIN OF ITAB_BKPF OCCURS 0,
BUKRS LIKE BKPF-BUKRS,
GJAHR LIKE BKPF-GJAHR,
BELNR LIKE BKPF-BELNR,
BLART LIKE BKPF-BLART,
BUDAT LIKE BKPF-BUDAT,
END OF ITAB_BKPF.
DATA :BEGIN OF ITAB_BSEG OCCURS 0,
BUKRS LIKE BSEG-BUKRS,
GJAHR LIKE BSEG-GJAHR,
BELNR LIKE BSEG-BELNR,
BUZEI LIKE BSEG-BUZEI,
BSCHL LIKE BSEG-BSCHL,
HKONT LIKE BSEG-HKONT,
DMBTR LIKE BSEG-DMBTR,
MWSKZ LIKE BSEG-MWSKZ,
ZUONR LIKE BSEG-ZUONR,
KOSTL LIKE BSEG-KOSTL,
FISTL LIKE BSEG-FISTL,
FIPOS LIKE BSEG-FIPOS,
SGTXT LIKE BSEG-SGTXT,
END OF ITAB_BSEG.
DATA BEGIN OF ITAB_BKPF_BSEG OCCURS 0.
INCLUDE STRUCTURE ZBKPF_BSEG.
DATA END OF ITAB_BKPF_BSEG.
*DATA ITAB_BKPF_BSEG LIKE TABLE OF ZITAB_BKPF_BSEG WITH HEADER LINE.
DATA i_print LIKE TABLE OF ITCPO WITH HEADER LINE.
TYPE-POOLS : SLIS , kkblo.
DATA:TEXT2(30) VALUE 'Voucher Print',
GS_LAYOUT TYPE SLIS_LAYOUT_ALV,
CT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
IT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_SORT TYPE SLIS_SORTINFO_ALV,
WA_SUBT LIKE SLIS_EV_SUBTOTAL_TEXT,
WA_I_EVENT TYPE SLIS_ALV_EVENT,
TEMP_CAT TYPE SLIS_FIELDCAT_ALV
DATA : TEXT2538(16) VALUE 'Voucher Printing'.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.
"Company code
SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.
"Accounting Doc No
PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.
"Fiscal year
SELECT-OPTIONS: S_BLART FOR BKPF-BLART MODIF ID M03,
"Document type
S_BUDAT FOR BKPF-BUDAT MODIF ID M04.
"Posting date
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
IF S_BELNR IS NOT INITIAL.
FLAG = 1.
ENDIF.
IF S_BLART IS NOT INITIAL.
FLAG1 = 1.
ENDIF.
IF P_GJAHR IS NOT INITIAL.
FLAG2 = 1.
ENDIF.
IF S_BUDAT IS NOT INITIAL.
FLAG3 = 1.
ENDIF.
SELECT
BUKRS
GJAHR
BELNR
INTO CORRESPONDING FIELDS OF TABLE ITAB_BKPF
FROM BKPF
WHERE BUKRS EQ P_BUKRS
IF SY-SUBRC NE 0.
MESSAGE E000(ZPROJ).
ENDIF.
IF FLAG NE 0.
DELETE ITAB_BKPF WHERE
NOT ( BELNR IN S_BELNR AND GJAHR EQ P_GJAHR )
ENDIF.
IF FLAG1 NE 0.
DELETE ITAB_BKPF WHERE
NOT ( BLART IN S_BLART AND BUDAT IN S_BUDAT )
ENDIF.
IF FLAG2 NE 0.
DELETE ITAB_BKPF WHERE
NOT ( GJAHR EQ P_GJAHR )
ENDIF.
IF FLAG3 NE 0.
DELETE ITAB_BKPF WHERE
NOT ( BUDAT IN S_BUDAT )
ENDIF.
SELECT
BUKRS
GJAHR
BELNR
BUZEI
BSCHL
HKONT
DMBTR
MWSKZ
ZUONR
KOSTL
FISTL
FIPOS
SGTXT
FROM BSEG
INTO TABLE ITAB_BSEG
FOR ALL ENTRIES IN ITAB_BKPF
WHERE
BUKRS EQ P_BUKRS AND
BELNR EQ ITAB_BKPF-BELNR AND
GJAHR EQ ITAB_BKPF-GJAHR
LOOP AT ITAB_BKPF.
LOOP AT ITAB_BSEG WHERE BUKRS EQ ITAB_BKPF-BUKRS AND
BELNR EQ ITAB_BKPF-BELNR AND
GJAHR EQ ITAB_BKPF-GJAHR.
MOVE-CORRESPONDING ITAB_BSEG TO ITAB_BKPF_BSEG.
* MOVE-CORRESPONDING ITAB_BKPF TO ITAB_BKPF_BSEG.
APPEND ITAB_BKPF_BSEG.
ENDLOOP.
ENDLOOP.
LOOP AT ITAB_BKPF_BSEG.
ITAB_BKPF_BSEG-ZMENG = ITAB_BKPF_BSEG-DMBTR.
MODIFY ITAB_BKPF_BSEG TRANSPORTING zmeng.
ENDLOOP.
PERFORM CHANGE_CATALOG.
PERFORM ALV_DISPLAY.
FORM CHANGE_CATALOG .
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'BUKRS'.
TEMP_CAT-SELTEXT_L = 'Company Code'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 30.
TEMP_CAT-HOTSPOT = 'X'.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'BELNR'.
TEMP_CAT-SELTEXT_L = 'Document No.'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-HOTSPOT = 'X'.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'GJAHR'.
TEMP_CAT-SELTEXT_L = 'Fiscal Year'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
TEMP_CAT-HOTSPOT = 'X'.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'BUZEI'.
TEMP_CAT-SELTEXT_L = 'Item'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 5.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'BSCHL'.
TEMP_CAT-SELTEXT_L = 'Posting Key'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'HKONT'.
TEMP_CAT-SELTEXT_L = 'Account'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'DMBTR'.
TEMP_CAT-SELTEXT_L = 'Amount'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
TEMP_CAT-DO_SUM = 'X'.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'MWSKZ'.
TEMP_CAT-SELTEXT_L = 'Tax'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'ZUONR'.
TEMP_CAT-SELTEXT_L = 'Assignment'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'KOSTL'.
TEMP_CAT-SELTEXT_L = 'Cost Center'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'FISTL'.
TEMP_CAT-SELTEXT_L = 'Fund Center'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'FIPOS'.
TEMP_CAT-SELTEXT_L = 'Commitment Item'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
CLEAR TEMP_CAT.
TEMP_CAT-FIELDNAME = 'SGTXT'.
TEMP_CAT-SELTEXT_L = 'Text'.
TEMP_CAT-TABNAME = 'ITAB_BKPF_BSEG'.
TEMP_CAT-DDICTXT = 'L'.
TEMP_CAT-OUTPUTLEN = 15.
APPEND TEMP_CAT TO CT_FIELDCAT.
GS_LAYOUT-ZEBRA = 'X'.
<b>GS_LAYOUT-TOTALS_BEFORE_ITEMS = 'X'.</b>
data : text like slis_ev_subtotal_text value 'total'.
gs_layout-subtotals_text = text.
*gs_layout-totals_only = 'X'.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'BUKRS'.
WA_SORT-SPOS = 1.
WA_SORT-UP = 'X'.
*wa_sort-group = '*'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'BELNR'.
WA_SORT-SPOS = 2.
WA_SORT-SUBTOT = 'X'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'GJAHR'.
WA_SORT-SPOS = 3.
WA_SORT-SUBTOT = 'X'.
WA_SORT-UP = 'X'.
APPEND WA_SORT TO IT_SORT.
CLEAR WA_SORT.
WA_SORT-FIELDNAME = 'DMBTR'.
WA_SORT-SPOS = 4.
APPEND WA_SORT TO IT_SORT.
gs_layout-subtotals_text = 'total'.
ENDFORM.
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 = ' '
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
* I_STRUCTURE_NAME =
IS_LAYOUT = GS_LAYOUT
IT_FIELDCAT = CT_FIELDCAT
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS =
IT_SORT = IT_SORT[]
* IT_FILTER =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
I_SAVE = 'A'
* IS_VARIANT =
* IT_EVENTS =
* IT_EVENT_EXIT =
* IS_PRINT =
* IS_REPREP_ID =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE 0 = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IR_SALV_LIST_ADAPTER =
* IT_EXCEPT_QINFO =
* I_SUPPRESS_EMPTY_DATA = ABAP_FALSE
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = ITAB_BKPF_BSEG
* 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
*i_calLback_user_command = 'USER_COMMAND'.
FORM USER_COMMAND
USING UCOMM LIKE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
DATA wa LIKE LINE OF ITAB_BKPF_BSEG.
DATA itab LIKE TABLE OF ITAB_BKPF_BSEG WITH HEADER LINE.
READ TABLE ITAB_BKPF_BSEG index SELFIELD-TABINDEX INTO wa.
APPEND ITAB_BKPF_BSEG TO ITAB.
ENDLOOP.
CALL FUNCTION '/1BCDWB/SF00000204'
* EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS = i_ctrl
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS = i_print
* USER_SETTINGS = 'X'
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
ITAB_BKPF_BSEG = ITAB
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
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. "user_command -
Need to display the messages in a view which has the pop up on it
Hello all,
I have a view(View 1) in which if i click a button a pop up is being displayed.
Now on the pop up(which has view 2 of window 2) i have a button(Ok) and if i click it then based on a condition i need to close the pop up and then display the message in the message area of View 1.
Now if i click the button on the Pop up then it is being closed and the message is not being displayed on view 2.
I think the message is being displayed on the pop up and is being closed after that.
How can i display my message on View 1.
Any ideas...Please help
Thanks in advance,
ShravanHi Shravan,
Create Message area in view1.
and also give VIEW name wile displaying error message and try.
* report message
CALL METHOD lo_message_manager->REPORT_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT =
* PARAMS =
* MSG_USER_DATA =
* IS_PERMANENT = ABAP_FALSE
* SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CONTROLLER
VIEW = VIEW1 .
Cheers,
Kris. -
Not able to Display Information message fully
Hi Gurus,
Here I hav some problem in displaying a information message in the output.
My requirment is to display a information message--->
MESSAGE i008(zmsgkc1) with 'Chapter Id is not updated Please log a complain with IBM Helpdesk with ChapterID no'.
fully in the output of program
BUT
while we r executing it it is showing information message in the o/p like with below fragmented text
'Chapter Id is not updated Please log a complain wi'
As we know maximum character limit for displayin info messge is 72 but if it is more than 72 like my case how should i approach to solve the problem.
Is there any other way to display my full message what i mentioned above ???
pls hlp
Regards
Saifur RahamanHi Saifur Rahaman.
Try the following code and Function Module.
CONSTANTS: c_msg1 TYPE string VALUE 'Chapter Id is not updated',
c_msg2 TYPE string VALUE 'Please log a complaint with IBM',
c_msg3 TYPE string VALUE 'Helpdesk with ChapterID no'.
CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
EXPORTING
I_MSGID = '0'
I_MSGTY = 'I'
I_MSGNO = '000'
I_MSGV1 = c_msg1
I_MSGV2 = c_msg2
I_MSGV3 = c_msg3.
You'll get a pop up with the information message. If you click on the information message you can see the entire message.
Hope that this helps you with your requirement. Reward accordingly.
Thanks and Regards,
Maddineni Bharath. -
Unable to display information message written inside badi
Hi All,
In customer creation i want to display Info message after pessing save button. I have written the message inside the badi. I can see my message in debugging mode in status bar, which on debugging mode off can't able to see. I tried with more than 25 scenarios got from SDN forum as well as suggested by someone.
Please reply if u have implemented sucessfully the same kind of reqirement.
Thanks in advance.Hi Keshav,
I wrote message inside the method preset sale area of badi customer_add_data.
The message ls "Message 'some text' type 'I' "
In debugging mode when the cursor reaches to my message then as soon as i press F5, this message get displayed in the status bar and with one more F5 it disappears.
So like this i wrote that the message appears only in fraction of second that when without debugging mode i process the transaction it doesn't appears and i can't see this.
Thanks. -
Need to display multiple messages
Hi All,
I have a requirement, wherein, I have to display a list of messages on screen. How to go about it? Is there any function module or something that displays a popup with the messages given?
Thanks,
Raj.hi,
you can use Inernal table to store the messages
You can use FM 'SLS_MISC_SHOW_MESSAGE_TAB'.
DATA: it_messages LIKE sls_msgs OCCURS 0 WITH HEADER LINE.
START-OF-SELECTION.
CLEAR it_messages.
MOVE '001' TO it_messages-num.
MOVE 'message001' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '002' TO it_messages-num.
MOVE 'message002' TO it_messages-msg.
APPEND it_messages.
CLEAR it_messages.
MOVE '003' TO it_messages-num.
MOVE 'message003' TO it_messages-msg.
APPEND it_messages.
CALL FUNCTION 'SLS_MISC_SHOW_MESSAGE_TAB'
TABLES
p_messages = it_messages
EXCEPTIONS
NO_MESSAGES_PROVIDED = 1
OTHERS = 2
thanks
jaideep
*reward points if useful.. -
What do I need to use unified messaging for single line voice mail
I am a solo practitioner, and would like to use UM to answer calls to my business number, locate me on my cell phone if appropriate, or give a non-business hours message, and take a secure message.
I do not want to use cell phone voice mail due to security concerns. I currently have a number that goes straight to a hippa compliant voice mail service only, but will not follow me on my cell. What is the minimal set up I need to forward calls to UM? Do
I actually need a physical phone, or would just a sim chip or some other service work?Hello,
Here is the entry for Exchange Online Forum:
https://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicesexchange
Thanks,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Simon Wu
TechNet Community Support -
Line Alignment Problem while sending Fax from SAP Script
Moderator message: please do not post the same question in different forums
Hi Experts,
While sending fax the horizontal lines are not displaying till the end of the page.
But in the print preview the lines are displying till the end.
If this is printed using local printer the lines are printing fine but the problem is with the fax.
Please provide me a solution for this.
Regards,
Rajesh.
Edited by: Matt on Nov 25, 2008 2:51 PMPuzzling.
I've seen where the printed output doesn't match the print preview but not a fax not matching a print.
Do you use SAPConnect or the older SAPComm method for faxing?
How do you produce the horizontal lines? BOX commands, ULINE, '-', etc.? -
Error message need to display on other screen
Hi All,
I have implemented the enhancement implimentation for one perticular transaction code and i am valdating the one field in the one sub screen and i am displaying the error message. but its displaying in that subcreen.
But my requirment is i need to display that message in another sub screen.
can any body tell me how it is possible to do the validations on one screen and displaying the error message in another screen.
Thanks.HI,
Is that subscreen is under tabstrip.....then you can use the sy-ucomm ....
Thanks,
Shailaja Ainala. -
I want to display a message like
The one in c#, or windows programming environment. Is it possible?
A dialog box should appear when needed and display a message.
How can I achieve that?
Thanks in advance.
Regards.
Deniz.hi,
yes it is possbel to have a pop window but for that you need to use some function modules some of them are mentioned below hope they help you.
1. <b>POPUP_WITH_WARNING</b>-->this is used to display warning
2 .<b>POPUP_TO_DECIDE</b>--> in this user gets 3 line of text and 3 options to choose
3.<b>POPUP_FOR_CONDITIONS</b>--> this an other fm used for dynami or condition during run time
4.<b>POPUP_TO_DISPLAY_USERDATA</b>--> this is intresting fm try it your own...
and you can have many more
just goto tcode <b>SE37</b> and write <b>POPUP_*</b> and then <b>F4</b> you will get a whole list of popup function module.
hope this information will help you and don't forget to reward points. -
Dear all,
I have a requirement in WEB DynPro, Our ESS system using WEB DynPro.
In ESS leave system need to display error message.ie
once leave approved, employees are not allowed to change the leave.
Any idea to write code to display error message.
Thanks.
Shruthi.Error messages can be displayed in two ways:
1. In the message area
2. As a popup
Below are the code snippets for it.
1.
* get message manager
DATA lo_api_controller TYPE REF TO if_wd_controller.
DATA lo_message_manager TYPE REF TO if_wd_message_manager.
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
CALL METHOD lo_message_manager->report_error_message
EXPORTING
message_text = 'Error message'.
2.
"Display Popup
DATA: l_popup TYPE REF TO if_wd_window,
l_text TYPE string_table.
APPEND `Error Message` TO l_text.
l_popup = wd_comp_controller->wd_get_api( )->get_window_manager( )->create_popup_to_confirm(
text = l_text
close_button = abap_false
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_error
window_title = 'Error'
window_position = if_wd_window=>co_center ).
l_popup->open( ).
Hope this helps! -
How to display Popup message in ABAP Web Dynpro
Hi All,
Is it possible to display popup messages like SAP to collect information from the user? is it possible to display information messages like SAP? If possible, Please let me know how to handle in Web Dynpro.
Thanks & Regards,
IA Kumar.Agree with the two firend on my head :).
you can find a demo from: SWDP_TEST(package)--> WDR_TEST_POPUPS also.
I have a lazy idea, two step:
1. create a popup function module;
2.call the function module;
function module:--Begin--
FUNCTION ZFUNM_CONFIRM .
""Local interface:
*" IMPORTING
*" REFERENCE(P_API) TYPE REF TO IF_WD_VIEW_CONTROLLER
*" REFERENCE(P_CMP_API) TYPE REF TO IF_WD_COMPONENT
DATA:
L_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER,
L_CMP_API TYPE REF TO IF_WD_COMPONENT,
L_API_MAIN TYPE REF TO IF_WD_VIEW_CONTROLLER,
L_POPUP TYPE REF TO IF_WD_WINDOW,
L_TEXT TYPE STRING_TABLE.
wd_this type ref to IF_MAIN,
wd_comp_controller TYPE REF TO IG_COMPONENTCONTROLLER.
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
L_WINDOW_MANAGER = P_CMP_API->GET_WINDOW_MANAGER( ).
APPEND 'POPUP text' TO L_TEXT.
L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
TEXT = L_TEXT
BUTTON_KIND = 4
MESSAGE_TYPE = 1
CLOSE_BUTTON = ''
WINDOW_TITLE = 'messagebox Title'
WINDOW_LEFT_POSITION = L_CONF_CONTEXT-WINDOW_LEFT_POSITION
WINDOW_TOP_POSITION = L_CONF_CONTEXT-WINDOW_TOP_POSITION
WINDOW_POSITION = L_CONF_CONTEXT-WINDOW_POSITION
WINDOW_WIDTH = L_CONF_CONTEXT-WINDOW_WIDTH
WINDOW_HEIGHT = L_CONF_CONTEXT-WINDOW_HEIGHT
L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
BUTTON = IF_WD_WINDOW=>CO_BUTTON_YES
ACTION_NAME = 'YES'
ACTION_VIEW = P_API
IS_DEFAULT_BUTTON = ABAP_TRUE ).
L_POPUP->SUBSCRIBE_TO_BUTTON_EVENT(
BUTTON = IF_WD_WINDOW=>CO_BUTTON_NO
ACTION_NAME = 'NO'
ACTION_VIEW = P_API
IS_DEFAULT_BUTTON = ABAP_FALSE ).
L_POPUP->OPEN( ).
ENDFUNCTION.
function module:--End--
call the function module Begin----
METHOD ONACTIONDELETE .
DATA:
L_API TYPE REF TO IF_WD_VIEW_CONTROLLER,
L_CMP_API TYPE REF TO IF_WD_COMPONENT,
NODE_ZTAB_PROJ TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_ZTAB_PROJ TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_ZTAB_PROJ TYPE IF_ZV_PROJ_DISPLAY=>ELEMENT_ZTAB_PROJ,
SELECTED_ELEM TYPE WDR_CONTEXT_ELEMENT_SET .
navigate from <CONTEXT> to <ZTAB_PROJ> via lead selection
L_API = WD_THIS->WD_GET_API( ).
L_CMP_API = WD_COMP_CONTROLLER->WD_GET_API( ).
CALL FUNCTION 'ZFUNM_CONFIRM'
EXPORTING
P_API = L_API
P_CMP_API = L_CMP_API.
IF WD_THIS->A_DEL = ''.
EXIT.
ENDIF.
NODE_ZTAB_PROJ = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_ZV_PROJ_DISPLAY=>WDCTX_ZTAB_PROJ ).
IF ( NODE_ZTAB_PROJ IS INITIAL ).
EXIT.
ENDIF.
ELEM_ZTAB_PROJ = NODE_ZTAB_PROJ->GET_LEAD_SELECTION( ).
ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
DELETE FROM ZTAB_PROJ
WHERE COMCODE = STRU_ZTAB_PROJ-COMCODE
AND PROJID = STRU_ZTAB_PROJ-PROJID.
WD_THIS->ONACTIONSELECT(
WDEVENT = WDEVENT " Ref to cl_Wd_Custom_Event
LOOP AT selected_elem .
ENDLOOP.
ELEM_ZTAB_PROJ
@TODO handle not set lead selection
alternative access via index
Elem_Ztab_Proj = Node_Ztab_Proj->get_Element( Index = 1 ).
@TODO handle non existant child
if ( Elem_Ztab_Proj is initial ).
endif.
get all declared attributes
ELEM_ZTAB_PROJ->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = STRU_ZTAB_PROJ ).
ENDMETHOD.
call the function module End---- -
How can i display a message box when error comes in jsp?
Hi,
i need to display a message box whenever an error comes in my jsp. Actually my appln is that i am creating a bar chart using one applet by taking data from the database. When a user does not select a number data for y axis, now in the centre of the web page one java error is coming. "not in number format". it is looking very odd.
so i want to display the error in a message box whenever it comes as above. pls help me how can i do the same...
Regds,
Abhi...Hi,
thanx for ur response. so u mean to say that i can
display the errors in the web page itself instead of
displaying as a message box?Either way. You can have the JSP send a message to the applet to display a message box. Or you can just have the JSP do it. or you can have the applet detremine if the JSP would produce an error and then display the message it would display.
>
actually i am using servlets. jsp pages are used only
as the front end. all the background works are doing
in servlet only.It should be the same in any case. Is the applet connecting to the JSP pages or are you having the browser do it?
>
pls get back...
Maybe you are looking for
-
Hi all, I'm PHP programmer, and i have some questions in my area. I have 3 Apple computers (MacBook Air, MacBook and MacBook Pro). There is one site, made by our group, that doesn't work properly on my MacBook Pro and MacBook Air, while other sites w
-
After Setting Up SSO Managed Server Won't Start
I am using the Oracle supplied white paper to set up SSO using Active Directory. Following those instructions everything was working and testing correctly until I added the NegotiateIdentityAsserter provider to the list of WLS providers. Now the mana
-
Problem finding data in an Oracle Database using CMP beans
I am having a problem retrieving data from an Oracle database that has a date as part of the key. This data was loaded into my database via a batch process writing in java using java.sql.Date to store the date information. When calling the findByPrim
-
How import CDs in Lossless Format with Error Correction?
When I check the error correction option and try to import a CD in Apple Lossless format, it pretends to import the CD very quickly -- it takes less than 30 seconds -- but the tracks have no data. If I uncheck error correction, I can import the CD ju
-
Safari Bookmarks and Time Machine
I've lost all my valuable Safari Bookmarks. How do I recover them from Time Machine Any suggestions