Coding for message
Hi experts,
i have a table with one field subtype which contains 4 values like x1,x2,x3,x4.
i want to give a message with pop up like "for these subtypes x1,x2,x3,x4 the materail nos are not assigned'"
plese suggest with sample code using message class..
praveen
Hi,
You could use FM:
POPUP_WITH_2_BUTTONS_TO_CHOOSE or
POPUP_WITH_3_BUTTONS_TO_CHOOSE or
AQ_INT_SHOW_MESSAGE_AS_POPUP
Rgds,
HR
Message was edited by: Hema Rao
Similar Messages
-
I recently switched the sim card in my iPhone when I moved from one country to another. When I put my local sim card in iMessage would not activate (just staying on 'waiting for activation' forever). This has not been a problem before. When I went to send/receive I saw the phone number there is still on the old one from the country I left. This is not the case in phone settings when I look for 'my phone number' or in facetime, which recognise the new number.
Plus I keep getting text messages from 'SMS Info'. They are just code, except that in there my new phone number is included among the code. The only other discernible characters are the letters 'REG-RESP?'. Perhaps this is something to do with an error in registering my new number.
I have tried-
1. Turning it off and on again.
2. Turning iMessage off and on again. This results in the usual 'it may cost you to reactivate with an SMS' popup on my phone screen, then a popup saying there has been a mistake, then one of these coded SMS messages.
3. Doing the above in combination with logging in and out of my apple id (as suggested on another forum post here)
4. Removing the new sim card and replacing the old one. Then turning off iMessage, replacing the new sim card and turning iMessage back on (of course powering the phone down and up)
None of these remedies have worked. The iMessage problem is affecting all sorts of my messages. Windows keep popping up saying that I may have to pay for an SMS to activate iMessage, except that it doesn't activate. The SMS messages from 'SMS Info' keep coming and I can't seem to get any of it to stop an just work normally.
I have looked in these forums already and can't see the same problem elsewhere. If someone could figure this out I would be most grateful.Hi,
When a Mac is "registered" for iMessages account with an Apple ID the Serial Number of the Mac is used to create an Auth Token as it is called for the Messages app that allows that Mac to work.
I would guess a similar process of linking the Number of the iPhone to a Hardware fact about the device is also in place.
I would contact Apple Support and check with them. (you might need to speak to a Level 2 person as Level 1 people are script led and try to fit everything into Software or Hardware categories where as sorting and Apple ID (which the Number is in this case) is normally Free).
I did find this iOS: Troubleshooting Messages - Apple Support
It starts off about sorting SMS that is not working.
This one has a bit on Unlinking an iPhone Number (with or without the iPhone) iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support
7:55 pm Tuesday; January 6, 2015
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
Error in account coding allocation Message no. SE508 in creation of SES
Hello guys, merry christmas.
We are creating a Service Entry Sheet (SES) from the transaction ML81N in reference to a Purchase Order. After selecting the service position 1 through the button Serv. Selection system gives the following message error: u201CError in account coding llocation - Message no. SE508u201D
The error happened last December 2008 and March 2009 and opened an OSS note, SAP have answered that there is an inconsistency in the table ESKL, for it sent me a program that detects the inconsistency in the table and whitens the "LOEKZ" generated by the inconsistency and the program corrects the inconsistency.
Were checked SAP OSS notes: 666314, 611563, 1087090 and 809317 and all are referring to that error occurs when the user exit has activated EXIT_SAPLMLSK_001, but not our case since we do not have activated.
I have OSS and open many messages like can not see the inconsistency of the table. I even made the same steps of the users and do not generate the error. We are seeing the error is random. These are the steps involving the process:
1. Go to ML81N
2. PO = 470000XXXX, item 1.
3. Posting XX.XX.2009
4. Push the botom Serv. Selection
5. Select line 1
6. Push botom Services
Appers the error "Error in account coding allocation"
Error Message Number: SE508
Transaction: ML81N
Tables: EKPO, ESLL, ESKL
I wonder if anyone has had this error on your system.
Our SAP version is 4.7 Enteprise ext. 200 Win / Ora.
I appreciate any help I can guide
Desirée C.
Happy New Year 2010 !Please read the FUNCTIONALITY written by SAP on EXIT_SAPLMLSK_001,especially one marked in BOLD letter,By applying the NOTES corrections ,definately if it's EXIT is not active it will not impact your existing system,if it's active it may rectify the error you are getting
FU EXIT_SAPLMLSK_001
Text
Set Account Assignment in Service Line
Functionality
The function module EXIT_SAPLMLSK_001 allows you to predefine the account assignment distribution in new service lines that are created. Beforehand, you must specify the account assignments and the percentages or quantities allocated to each account assignment in table T_ESKN. The function module is invoked in all purchasing documents with account assignment.
Parameters
I_ESLL
T_ESKN
Exceptions
Function Group
XMLU
Edited by: veer koraddi on Feb 24, 2010 8:36 AM -
Coding for Automatic execution
in our project we deal with three independent machines namely server,validation server and a client.the job of the validation server is to find the original ip address of the client and the finding operation is carried out secretly by the validation server.we have got the coding for finding the original IP address.but this coding should run automatically once the client receives the message from the validation server.So we require assistance in the form of coding in java to solve this problem.pls reply as early as possible.
its not like malware. In my project is to find the hacker. a person can spoof another IP address and send messages to others. so in order to find its original IP address we are writing module in my project, where we got code for finding IP address but it run explicitly which is not opt for my project. so we need to run that code in the hidden format for which we describe as the virus performance. Actually we don't need cod for virus.
Here is my code to find IP address
import java.net.InetAddress;
import java.net.UnknownHostException;
public class IPAdress {
public static void main(String[] args) {
try {
System.out.println(InetAddress.getLocalHost().getHostName());
System.out.println(InetAddress.getLocalHost().getHostAddress());
} catch (UnknownHostException e) {
e.printStackTrace();
Edited by: Serv on Mar 9, 2009 8:40 AM -
Coding for maintain the multip[le sessions
i have 1,00,000 records in a flat file how to maintain the multiple sessions
each session having 10000 records i want coding for how these multiple sessionssee the example program and the selection screen you can maintain how many records per session.
Report : ZMPPC015
Type : Data upload
Author : Seshu Maramreddy
Date : 05/26/2005
Transport : DV3K920025
Transaction: ??
Description: This ABAP/4 Program to Create Planned Independent
Requirement for SMI plants using MD61 Transaction.
It accepts tab-delimited spreadsheet input and
creates BDC sessions.
report zmppc015 no standard page heading
line-size 120
line-count 55
message-id zz.
Constants
constants : c_x type c value 'X'," Dynbegin
c_tcode type tstc-tcode value 'MD61'." Transaction Code
Variables
data : v_lines_in_xcel like sy-tabix,
l_tabix like sy-tabix,
v_trans_in_ssn type i,
v_ssnnr(4) type n," Counter
v_ssnname like apqi-groupid,
v_matnr(18) type c. " Material Number
Internal Tables
Internal table for file
data : begin of t_file occurs 0,
matnr(18) type c, " Material Number
berid(10) type c, " MRP Area
PLNMG01(17) type n, " Forecast Month -01
PLNMG02(17) type n, " Forecast Month -02
PLNMG03(17) type n, " Forecast Month -03
PLNMG04(17) type n, " Forecast Month -04
PLNMG05(17) type n, " Forecast Month -05
PLNMG06(17) type n, " Forecast Month -06
PLNMG07(17) type n, " Forecast Month -07
PLNMG08(17) type n, " Forecast Month -08
PLNMG09(17) type n, " Forecast Month -09
PLNMG10(17) type n, " Forecast Month -10
PLNMG11(17) type n, " Forecast Month -11
PLNMG12(17) type n, " Forecast Month -12
WERKS(4) TYPE C, " Plant
end of t_file.
Internal table for BDCDATA Structure
data : begin of itab_bdc_tab occurs 0.
include structure bdcdata.
data : end of itab_bdc_tab.
Selection-screen
selection-screen: skip 3.
selection-screen: begin of block id1 with frame.
parameters: p_name like rlgrap-filename
default 'C:\My Documents\InputFile.txt'
obligatory,
bdc session name prefix
p_bdcpfx(6) default 'ZPIRCT'
obligatory,
number for transction per BDC session
p_trnssn type i
default 2000 obligatory,
retain the BDC session after successfull execution
p_keep like apqi-qerase
default c_x,
user who will be executing BDC session
p_uname like apqi-userid
default sy-uname
obligatory.
selection-screen : skip 1.
Requirement type
parameters : p_bedae like t459u-bedae,
From Date
p_date like sy-datum default sy-datum obligatory.
selection-screen: end of block id1.
at selection-screen on value-request for p_name.
F4 value for Input file
perform filename_get.
main processing
start-of-selection.
To get the data from file to Internal table
perform getdata_fromfile.
loop at t_file.
hang on to xcel line num
l_tabix = sy-tabix.
if num-of-trnas-in-session = 0, create new BDC session
if v_trans_in_ssn is initial.
perform bdc_session_open.
endif.
begin new bdc script for rtg create trans
fill in bdc-data for prod.version maintenance screens
perform bdc_build_script.
insert the bdc script as a BDC transaction
perform bdc_submit_transaction.
keep track of how many BDC transactions were inserted in the BDC
session
add 1 to v_trans_in_ssn.
if the user-specified num of trans in BDC session is reached OR
if end of input file is reached, close the BDC session
if v_trans_in_ssn = p_trnssn or
l_tabix = v_lines_in_xcel.
perform bdc_session_close.
clear v_trans_in_ssn.
endif.
clear t_file.
endloop.
top-of-page.
call function 'Z_HEADER'
EXPORTING
FLEX_TEXT1 =
FLEX_TEXT2 =
FLEX_TEXT3 =
*& Form filename_get
F4 Value for input file
FORM filename_get.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_PATH = 'C:\Temp\ '
MASK = ',.,..'
MODE = 'O'
TITLE = 'Select File '(007)
IMPORTING
FILENAME = p_name
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 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. " filename_get
*& Form getdata_fromfile
Upload the data from file to Internal table
FORM getdata_fromfile.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
FILENAME = p_name
FILETYPE = 'DAT'
TABLES
DATA_TAB = t_file
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10.
if sy-subrc eq 0.
sort t_file by matnr .
delete t_file where matnr = ''.
clear v_lines_in_xcel.
describe table t_file lines v_lines_in_xcel.
if v_lines_in_xcel is initial.
write: / 'No data in input file'.
stop.
endif.
else.
write:/ 'Error reading input file'.
stop.
endif.
ENDFORM. " getdata_fromfile
*& Form bdc_session_open
BDC_OPEN_GROUP
FORM bdc_session_open.
create bdc session name = prefix-from-selectn-screen + nnnn
add 1 to v_ssnnr.
concatenate p_bdcpfx v_ssnnr into v_ssnname.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
GROUP = v_ssnname
KEEP = p_keep
USER = p_uname
EXCEPTIONS
CLIENT_INVALID = 1
DESTINATION_INVALID = 2
GROUP_INVALID = 3
GROUP_IS_LOCKED = 4
HOLDDATE_INVALID = 5
INTERNAL_ERROR = 6
QUEUE_ERROR = 7
RUNNING = 8
SYSTEM_LOCK_ERROR = 9
USER_INVALID = 10
OTHERS = 11.
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. " bdc_session_open
*& Form bdc_build_script
BDC Script
FORM bdc_build_script.
Local Variables
DATA : l_frdat(8) type c, " From Date
l_todat(8) type c, " To Date
l_frdat1(4) type c, " Year
l_frdat2(2) type c, " Month
l_frdat3(2) type c, " Day
l_tdate like sy-datum, " Subtract date(1)
l_todat1(4) type c, " Year
l_todat2(2) type c, " Month
l_todat3(3) type c. " Day
Get the material number from tables ZMSMI_FERR_RAW,
ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
perform get_matnr.
Screen 0100.
perform bdc_screen using 'SAPMM60X' '0100'.
perform bdc_field using 'BDC_OKCODE' '/EBDPT'.
perform bdc_field using 'AM60X-MATAW' 'X'.
perform bdc_field using 'AM60X-MATNR' T_FILE-MATNR.
perform bdc_field using 'AM60X-PRGRP' SPACE.
perform bdc_field using 'AM60X-PBDNR' SPACE.
perform bdc_field using 'RM60X-BERID' T_FILE-BERID.
perform bdc_field using 'AM60X-WERKS' SPACE.
perform bdc_field using 'RM60X-VERSB' '00'.
Converted the date as per MD61 Transaction.
From date
l_frdat1 = p_date+0(4).
l_frdat2 = p_date+4(2).
l_frdat3 = p_date+6(2).
concatenate l_frdat2 l_frdat3 l_frdat1 into l_frdat.
To Date
l_tdate = p_date - 1.
l_todat1 = l_tdate+0(4) + 1.
l_todat2 = l_tdate+4(2).
l_todat3 = l_tdate+6(2).
concatenate l_todat2 l_todat3 l_todat1 into l_todat.
perform bdc_field using 'RM60X-DATVE' l_frdat.
perform bdc_field using 'RM60X-DATBE' l_todat.
perform bdc_field using 'RM60X-ENTLU' 'M'.
Screen 0127
perform bdc_screen using 'SAPMM60X' '0127'.
perform bdc_field using 'BDC_OKCODE' '=WEIT'.
if p_bedae is initial.
perform bdc_field using 'T459U-BEDAE' space.
else.
perform bdc_field using 'T459U-BEDAE' P_BEDAE.
endif.
Screen 0100.
perform bdc_screen using 'SAPMM60X' '0100'.
perform bdc_field using 'BDC_OKCODE' '/00'.
perform bdc_field using 'AM60X-MATAW' 'X'.
perform bdc_field using 'AM60X-MATNR' T_FILE-MATNR.
perform bdc_field using 'AM60X-PRGRP' SPACE.
perform bdc_field using 'AM60X-PBDNR' SPACE.
perform bdc_field using 'RM60X-BERID' T_FILE-BERID.
perform bdc_field using 'AM60X-WERKS' SPACE.
perform bdc_field using 'RM60X-VERSB' '00'.
perform bdc_field using 'RM60X-DATVE' l_frdat.
perform bdc_field using 'RM60X-DATBE' l_todat.
perform bdc_field using 'RM60X-ENTLU' 'M'.
Screen 0200
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG01.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG02.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG03.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG04.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG05.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG06.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG07.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG08.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG09.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG10.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=S+'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG11.
perform bdc_screen using 'SAPLM60E' '0200'.
perform bdc_field using 'BDC_OKCODE' '=SICH'.
perform bdc_field using 'RM60X-PLN01(01)' T_FILE-PLNMG12.
ENDFORM. " bdc_build_script
*& Form get_matnr
Get the material number from tables ZMSMI_FERR_RAW,
ZMSMI_SNAP_RAW and ZMSMI_SIMP_RAW
FORM get_matnr.
clear v_matnr.
case t_file-werks.
when '0101'.
select single cmatnr from zmsmi_simp_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
when '0103'.
select single cmatnr from zmsmi_ferr_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
when '0102' or '0110' or '0111' or '0112' or '0113'
or '0114' or '0115' or '0116' or '0117'.
select single cmatnr from zmsmi_snap_raw
into v_matnr where matnr = t_file-matnr.
if sy-subrc eq 0.
clear t_file-matnr.
t_file-matnr = v_matnr.
endif.
endcase.
ENDFORM. " get_matnr
*& Form bdc_screen
BDC Script for Screen fields
-->P_PROG Program name
-->P_SCRN Screen Number
FORM bdc_screen USING p_prog
p_scrn.
clear itab_bdc_tab.
itab_bdc_tab-program = p_prog.
itab_bdc_tab-dynpro = p_scrn.
itab_bdc_tab-dynbegin = c_x.
append itab_bdc_tab.
ENDFORM. " bdc_screen
*& Form bdc_field
BDC Script for Screen fileds
-->P_NAM Field name
-->P_VAL Field value
FORM bdc_field USING p_nam
p_val.
clear itab_bdc_tab.
itab_bdc_tab-fnam = p_nam.
itab_bdc_tab-fval = p_val.
append itab_bdc_tab.
ENDFORM. " bdc_screen
*& Form bdc_submit_transaction
BDC_INSERT Function Module
FORM bdc_submit_transaction.
Load BDC script as a trqansction in BDC session
call function 'BDC_INSERT'
EXPORTING
tcode = c_tcode
TABLES
dynprotab = itab_bdc_tab
EXCEPTIONS
internal_error = 01
not_open = 02
queue_error = 03
tcode_invalid = 04.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
refresh itab_bdc_tab.
ENDFORM. " bdc_submit_transaction
*& Form bdc_session_close
text
FORM bdc_session_close.
CALL FUNCTION 'BDC_CLOSE_GROUP'
EXCEPTIONS
NOT_OPEN = 1
QUEUE_ERROR = 2
OTHERS = 3
skip 2.
if sy-subrc ne 0.
write: / 'Error Closing BDC Session ' , 'RETURN CODE: ', sy-subrc.
else.
write : / 'Session created:', v_ssnname,
50 '# of transactions:', v_trans_in_ssn.
endif.
ENDFORM. " bdc_session_close
Reward Points if it is helpful
Thanks
Seshu -
ABAP-Coding for EVERY Key figure in infocube 0RT_C02
Hello gurus;
Does anybody know which is the reason for Abap-coding for every key figure in infocube 0rt_c02 from InfoSource 2lis_13_vditm?
Thanks in advanced!
CsrHi,
this is done like this in the business content because the extractor is providing the data with a process key; this process key is then translated into meaningfull business objects (key figures);
fro instance ProcessKey 202 in application SD is reflecting Credit memos:
* Credit Memo
IF COMM_STRUCTURE-PROCESSKEY = '202'
AND COMM_STRUCTURE-BWAPPLNM EQ 'SD'.
* currency convert
IF COMM_STRUCTURE-COST <> 0. "Value in document UNIT
PERFORM LOC_CURR_CONVERT
USING COMM_STRUCTURE-COST "Value in doc UNIT
COMM_STRUCTURE-TRANS_DATE "Date for exchange
COMM_STRUCTURE-DOC_CURRCY "Document Currency
COMM_STRUCTURE-LOC_CURRCY "Local currency
* COMM_STRUCTURE-EXCHG_RATE "Exchanging rate
COMM_STRUCTURE-/BIC/ZEXRATEAC "Exchanging rate Acctn
CHANGING RESULT.
* the KPI's must be turned to positive because the SD-extractors
* allways deliver them neg. if it's a process back (e.g. return order)
RESULT = RESULT * ( -1 ).
UNIT = COMM_STRUCTURE-LOC_CURRCY.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
ELSE.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 4.
ENDIF.
ELSE.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 4.
ENDIF.
the above routine is quite self explaining the code.
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
Sample coding for creating a function moudle to post the Idoc
hi,
I am working on Inbound idoc,
Aim : to update the Ztable
I have created the message type , idoc type and the segment type.
For creating an idoc i have used the Function module IDOC_INBOUND_WRITE_TO_DB.
Now for posting the idoc, i need to create the function module, the main aim is to insert record to the Ztable, what should be my input and the output parameters,
Can u provide the sample coding for itAs you are dealing with a IDOC, the parameters will have to be standard as any other IDOC processing function module. For example take a look at IDOC_INPUT_BANK_CREATE.
You will have to read the data exactly the way the standard code does and the only change will be once you read the data how do you want to handle the data.
Regards,
Ravi
Note : Please mark all the helpful answers -
Hi help me on coding for a IDOC for a CATSDB TABLE
hi help me on coding for a IDOC for a CATSDB TABLE
Hi,
Check this fucntion module also.It can help you.
ALE_PTMGREXTWOSCHED_INSWCOST
Message was edited by:
Jayanthi Jayaraman -
HARD CODED EMAIL MESSAGES FROM AN ORACLE FORM
I have SMTP code in a WHEN-BUTTON-PRESSED TRIGGER which will preformat the recipient line, the courtesy copy line, the subject line, and a hard coded email message and then send the email to another co-worker inhouse in our organization whenever a user would press a button on an ORACLE FORM.
Would this same code be useful if the user wanted to send an email to another user in another organization millions of miles away? Do I have to be concerned about how the email system is set up in the other organization and code the program specifically for that particular organization? Here is the code that I am using.
PROCEDURE SEND_INFO
Sender varchar2 := :SUPPLY_REQUEST.NAME,
Recipient varchar2 := :SUPPLY_REQUEST.SENDNAME,
Recipient4 varchar2 := :SUPPLY_REQUEST.OTHNAME4,
Ccrecipient varchar2 := ' ',
Subject varchar2 := 'TODAY IS ANOTHER DAY OF YOUR LIFE',
Message varchar2 := 'IS THIS IS A GOOD DAY ?'
) IS
crlf Varchar2(2) := CHR(13)||CHR(10);
connection utl_smtp.connection;
Mailhost Varchar2(30) := 'erecemh1-bh.erec.army.mil';
header VARCHAR2(1000);
BEGIN
connection := utl_SMTP.open_connection(mailhost);
header := 'Date: '||TO_CHAR(NEW_TIME(SYSDATE,'EST','GMT'),'fm DD MON YY HH24:MI:SS AM')||crlf||
'From: '||sender||' '||crlf||
'To: '||recipient||','||recipient4||crlf||
'CC: '||ccrecipient||crlf||
'Subject: '||subject;
utl_SMTP.helo(connection, mailhost);
utl_SMTP.mail(connection, sender);
utl_SMTP.rcpt(connection, recipient);
utl_SMTP.rcpt(connection, recipient4);
utl_SMTP.open_data(connection);
utl_SMTP.write_data(connection, header||crlf);
utl_SMTP.write_data(connection, crlf ||message|| crlf);
utl_SMTP.close_data(connection);
utl_SMTP.quit(connection);
EXCEPTION
WHEN UTL_SMTP.INVALID_OPERATION THEN
DBMS_OUTPUT.PUT_LINE('INVALID OPERATION IN SMTP TRANSACTION.');
WHEN UTL_SMTP.TRANSIENT_ERROR THEN
DBMS_OUTPUT.PUT_LINE('tEMPORARY PROBLEMS WITH SENDING EMAIL - TRY AGAIN LATER.');
WHEN UTL_SMTP.PERMANENT_ERROR THEN
DBMS_OUTPUT.PUT_LINE('ERRORS IN CODE FOR SMTP TRANSACTION');
END;
In another step of the program, I have initialized the variables:
SUPPLY_REQUEST.NAME to '[email protected]'
SUPPLY_REQUEST.OTHNAME4 to '[email protected]'
SUPPLY_REQUEST.SENDNAME to '[email protected]'Would this same code be useful if the user wanted to send an email to another user in another organization millions of miles away?
Depends on your mail server. If your mail server allows email to be sent out of your organization, then yes, you can email to another organization millions of miles away (or further).
Do I have to be concerned about how the email system is set up in the other organization
Generally, no. However they can set up their system to block emails coming from a certain address.
and code the program specifically for that particular organization?
Nope, just make sure you have their correct email address. -
Need applescript for Messages to send Passbook .pkpass attachments
Hi - I'm trying to write an applescript to send iMessages to a list of recipient Phone numbers with Passbook .pkpass files as attachments.
Here's my simple sendMessage.applescript file
on run {targetBuddyPhone, targetMessage, targetFile}
tell application "Messages"
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy targetBuddyPhone of targetService
send targetMessage to targetBuddy
send file targetFile to targetBuddy
end tell
end run
I'm calling this from Terminal with command:
osascript sendMessage.applescript <Phonenumber> "Here's your Passbook coupon" Coupon.pkpass
When I execute the command, my targetMessage is correctly sent. However, the .pkpass file transfer says it is waiting for the recipient to accept the file transfer.
When I send it to my own iPhone, I don't receive any request to accept a file transfer.
How can I modify this script such that the file is properly attached to the iMessage and it sends with an auto-accept condition ?
Thanks if you can help,
AndrewRight click Job Definitions on the left navigation tab and create New Job definition. When prompted, select Mail type and click Create.
Now provide the HTML coding for your mail format inside the job definition and for dynamic values like Job definition, you can pass them from another job definition.
You can attach the files by mentioning the filename under the [Attachments] .
For this you must explicitly provide permissions to the directory where the files are stored in the server.
I recommend following the admin guide, which has clear examples.
thanks
Nanda -
Error: Couldn't find delivery channel for message
Hi All,
In our production environment, we sometime get the following error (Channel Audit Log):
2009-01-12 15:08:47 Error Unable to find channel ID
2009-01-12 15:08:47 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Couldn't find delivery channel for message: 496b9e98-9466-0109-e100-8000ac10a218.
2009-01-12 15:08:47 Error The message status set to NDLV.
This particular interface runs around 100 times a day without any issues, however around once or twice a month we get this error.
This is a synchronous interface.
Could be because of number of threads alloted for Synchronous messages in Visual Admin.
Thanks.Hi XIer
try doing a CPACache Refresh:
Http://<host>:50000/CPACache/refresh?mode=full)
Best regards,
Chris -
Hi i am using an iphone with imessage but I dont want to use that number on my ipad for imessage or facetime can I change this ??
Use a free gmail.com address on the iPad.
Using FaceTime http://support.apple.com/kb/ht4319http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268http://support.apple.com/kb/TS4268
iOS: FaceTime is 'Unable to verify email because it is in use'
http://support.apple.com/kb/TS3510http://support.apple.com/kb/TS3510
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/http://www.apple.com/ca/ios/messages/
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
http://support.apple.com/kb/HT5538http://support.apple.com/kb/HT5538
How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
Set Up Alert Sounds
http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
Extra FaceTime IDs
http://tinyurl.com/k683gr4http://tinyurl.com/k683gr4
Troubleshooting Messages
http://support.apple.com/kb/TS2755http://support.apple.com/kb/TS2755
Troubleshooting iMessage Issues: Some Useful Tips You Should Try
http://www.igeeksblog.com/troubleshooting-imessage-issues/http://www.igeeksblog.com/troubleshooting-imessage-issues/
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htmhttp://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Fix Can’t Sign Into FaceTime or iMessage iOS 7
http://ipadtutr.com/fix-login-facetime-imessage-ios-7/http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
FaceTime, Game Center, Messages: Troubleshooting sign in issues
http://support.apple.com/kb/TS3970http://support.apple.com/kb/TS3970
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90https://discussions.apple.com/thread/4649373?tstart=90
How to Block Someone on FaceTime
http://www.ehow.com/how_10033185_block-someone-facetime.htmlhttp://www.ehow.com/how_10033185_block-someone-facetime.html
My Facetime Doesn't Ring
https://discussions.apple.com/message/19087457#19087457https://discussions.apple.com/message/19087457#19087457
How to watch FaceTime calls on the big screen with Apple TV
http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetimehttp://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
Send an iMessage as a Text Message Instead with a Quick Tap & Hold
http://osxdaily.com/2012/11/18/send-imessage-as-text-message/http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
How to Send SMS from iPad
http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.htmlhttp://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
How to Receive SMS Messages on an iPad
http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.htmlhttp://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
Apps for Texting http://appadvice.com/appguides/show/apps-for-textinghttp://appadvice.com/appguides/show/apps-for-texting
You can check the status of the FaceTime/iMessage servers at this link.
http://www.apple.com/support/systemstatus/http://www.apple.com/support/systemstatus/
Cheers, Tom -
How to set/get the values thru Wedbynpro coding for User mapping fields
Hi All
In system object we have the user mapping fields like District,city,plant,Salesmanager.
now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
if anybody have sample codes of the same then it would be great help to me
Thanks in advance
Thanks
Trisha RaniHi Kavitha
Thanks for your reply
My requirement is exactly as follows.
1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement in system object.
i created the user mapping fields like Plant,SalesManager,District etc.
i also created the system alias name for the same system object
2) Now i came to persoanlize link and mapped the system object to the portal user.
while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
once we enter all the values and click on save then these usermapping values to be mapped to the portal user.
3) Now my requirement is , i want to control the usermapping field values thru webdynpro coding for setting/getting the values.
I need sample code of the same.
Please let me know if u need more details on the same.
Thanks
Trisha Rani -
How do I set up a new phone number for messaging and facetime on my iPad?
My iPad has it's own phone number through Verizon. Before I knew this, I had already set up messages to use my iPhone number. Now I can't figure out how to set up the iPad phone number for messages and facetime on the iPad.
Are you trying to message another Apple device?
Using FaceTime http://support.apple.com/kb/ht4319
Troubleshooting FaceTime http://support.apple.com/kb/TS3367
The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
http://tinyurl.com/a7odey8
Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/TS4268
Using FaceTime and iMessage behind a firewall
http://support.apple.com/kb/HT4245
iOS: About Messages
http://support.apple.com/kb/HT3529
Set up iMessage
http://www.apple.com/ca/ios/messages/
Troubleshooting Messages
http://support.apple.com/kb/TS2755
Setting Up Multiple iOS Devices for iMessage and Facetime
http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
FaceTime and iMessage not accepting Apple ID password
http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
Unable to use FaceTime and iMessage with my apple ID
https://discussions.apple.com/thread/4649373?tstart=90
Cheers, Tom -
I want to use iCloud for every thing else except for Messages. I do not want to send an iMessage and receive it on both my iPhone and Mac.
How do I do that?Howdy kingtonz,
If I understand you correctly, you want to limit to limit your use of the Messages application to non-iCloud sources such as text messaging through your phone carrier, is that right?
You can turn off the use of iMessages in Settings > Messages > iMessage. See this help article -
Messages settings - iPhone
Thanks for using Apple Support Communities.
Best,
Brett L
Maybe you are looking for
-
I have a Wireless router, which can do WEP, WPA and WPA2 encryption. If I have WPA2, then my desktop (Windows) can't remember the password, so that encryption is out for the mo, WPA won't work on our old laptop, and so WEP is all that's left. Every d
-
Update routine - Performance Tuning
Hi, To increase the performance, I have deleted some records in the data_package but these changes are not reflecting in the ALV output. We are getting old data only. If we toutch the standard ALV program it is a problem for other update routinies. P
-
Additional objects in JTable cells
I would like to place JSlider objects in a JTable, but I am overwhelmed with the renderer and editor things. Anyone got any ideas on how to do that? I suppose I need to override DefaultCellRenderer and DefaultCellEditor constructors.
-
Revision: 15252 Revision: 15252 Author: [email protected] Date: 2010-04-06 16:57:34 -0700 (Tue, 06 Apr 2010) Log Message: 1) SMILPlugin - SMILMediaGenerator class modified to support both live and vod smil files. SMILLoader modified to retain
-
OVS implementation in Adobe Interactive Form
Hi, I have to implement OVS in Adobe Interactive form, which will be part of WebDynpro component. I have done this in webDynpro, but i am not able to figure out how it is implemented in AIF. I am using NW04s SP09 , patch 2. Any documentation for im