Receipient name in PR
Can I make 'Receipient name ' in PR mandatory for a PR type ?
When I check in configuration in 'Define screen layout at doc level' , the field 'Receipient name' is not available.
Hi,
Please check below path: -
SPRO >> Materials Management >> Purchasing >> Purchase Requisition >> Define Screen Layout at Document Level.
Here select your t-code - ME51N.
And check receipt field and make it mandatory.
Regards,
Mahesh Wagh
Similar Messages
-
Nokia 6500 Slide... Adding a receipiant of a text ...
Hi Guys,
I have just got a 6500 Slide today and when I go into a text message and into the To: Field i cant just enter the receipiants name.. you have to enter the phone number, or go through the menu and the add receipiant sub-menu.
I used to be able to just put the first few letters of a name in my contacts into the To: field and it would automatically find the name or give me a list of names that came close but this phone doesnt seem to be able to do it, I have had a read through the manual and there is no information about it.... Is this not a feature on this phone or do I need to select something within my phone? and if I do what do I select???
Many thanks
AndyThanks
Okay, my compiler / code generator is written in Java. Thus the output of javacc plays very well with the rest of the compiler. It is the output of my compiler that is C.
I currently have something like:
void State()
(Entry())?
void Entry()
<ENTRY>
<LEFTBRACE>
(nothing here yet)
<RIGHTBRACE>
}What does one do next? Do I define a token for (.*)? Then do something like x=<THAT_TOKEN> in the middle there? At some point I need to capture the actual code to place into my intermediate representation. None of the capturing parts of the input to the IR is done yet.
void Entry()
<ENTRY>
<RANGLEBRACE>
(something)
<LANGLEBRACE>
}Cheers
Rich -
To send email from Abap code in which we have notepad as an attachment.
Hi All,
I am facing one problem. I am sending a notepad as an attachment to a mail.
The reciepents name is in the distribution list. When I checked the notepad, Headers and the record are coming in the same line .
But it should come in the different line.
Here is the code.....
TYPE-POOLS: SLIS.
My final table is i_output.
TYPES: begin of TY_EMAIL,
field1(1) type c,
field2(8) type c,
field3(12) type c,
field4(34) type c,
field5(10) type c,
end of TY_EMAIL.
DATA: IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
W_CNT TYPE I,
W_SENT_ALL(1) TYPE C,
W_DOC_DATA LIKE SODOCCHGI1,
GD_ERROR TYPE SY-SUBRC,
GD_RECIEVER TYPE SY-SUBRC.
DATA: IT_EMAIL TYPE STANDARD TABLE OF TY_EMAIL WITH HEADER LINE.
START-OF-SELECTION.
PERFORM get_data.
PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
TABLES IT_MESSAGE
IT_ATTACH
USING 'subject of mail'
'TXT'
'FILENAME'
CHANGING GD_ERROR
GD_RECIEVER.
END-OF-SELECTION.
form get_data.
CONCATENATE 'HEADER1'
'HEADER2'
'HEADER3'
'HEADER4'
'HEADER5'
INTO IT_ATTACH SEPARATED BY '~'
APPEND IT_ATTACH.
LOOP AT I_OUTPUT INTO WA_OUTPUT.
IT_EMAIL-FIELD1 = WA_OUPUT-FIELD1.
IT_EMAIL-FIELD2 = WA_OUPUT-FIELD2.
IT_EMAIL-FIELD3 = WA_OUPUT-FIELD3.
IT_EMAIL-FIELD4 = WA_OUPUT-FIELD4.
IT_EMAIL-FIELD5 = WA_OUPUT-FIELD5.
CONDENSE: IT_EMAIL-FIELD1,
IT_EMAIL-FIELD2,
IT_EMAIL-FIELD3,
IT_EMAIL-FIELD4,
IT_EMAIL-FIELD5.
CONCATTENATE: IT_EMAIL-FIELD1
IT_EMAIL-FIELD2
IT_EMAIL-FIELD3
IT_EMAIL-FIELD4
IT_EMAIL-FIELD5
INTO IT_ATTACH SEPERATED BY '~'
APPEND IT_ATTACH.
ENDLOOP.
FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
PIT_ATTACH
USING P_MTITLE
P_FORMAT
P_FILENAME
CHANGING P_ERROR
P_RECIEVER.
DATA: BEGIN OF OBJPARA OCCURS 10 . "
INCLUDE STRUCTURE SELC. "
DATA: END OF OBJPARA. "
DATA: LD_ERROR TYPE SY-SUBRC,
LD_RECIEVER TYPE SY-SUBRC,
LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
LD_EMAIL LIKE SOMLRECI1-RECEIVER,
LD_FORMAT TYPE SO_OBJ_TP ,
LD_ATTFILENAME TYPE SO_OBJ_DES ,
LD_RECEIVER LIKE SY-SUBRC.
DATA SENT_ALL LIKE SONV-FLAG.
DATA WARNING_MAIL LIKE SOODK.
LD_MTITLE = P_MTITLE.
LD_FORMAT = P_FORMAT.
LD_ATTFILENAME = P_FILENAME.
Fill the document data and get size of attachment
CLEAR OBJECT_HD.
READ TABLE IT_ATTACH INDEX W_CNT.
OBJECT_HD-DOC_SIZE =
( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
OBJECT_HD-OBJ_LANGU = SY-LANGU.
OBJECT_HD-OBJ_NAME = 'SAPRPT'.
OBJECT_HD-OBJ_DESCR = LD_MTITLE.
OBJECT_HD-SENSITIVTY = 'F'.
CLEAR T_ATTACHMENT.
REFRESH T_ATTACHMENT.
T_ATTACHMENT[] = PIT_ATTACH[].
Describe the body of the message
CLEAR T_PACKING_LIST.
REFRESH T_PACKING_LIST.
T_PACKING_LIST-TRANSF_BIN = SPACE.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 0.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND T_PACKING_LIST.
Create attachment notification
T_PACKING_LIST-TRANSF_BIN = 'X'.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 1.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
APPEND T_PACKING_LIST.
Receipient Information for SAP Office.
MOVE: 'ZDIPIKA' TO RECEIVERS-RECNAM, "Receipient Name
'C ' TO RECEIVERS-RECESC, "Repeipient Type
' ' TO RECEIVERS-SNDEX, "Send Express
SY-DATUM TO RECEIVERS-RCDAT, "Message Date
SY-UZEIT TO RECEIVERS-RCTIM, "Message Time
'X' TO RECEIVERS-SNDCP. "Send Copy
APPEND RECEIVERS.
Add the recipients email address
CLEAR T_RECEIVERS.
REFRESH T_RECEIVERS.
T_RECEIVERS-RECEIVER = 'ZDIPIKA'. "LD_EMAIL.
T_RECEIVERS-REC_TYPE = 'C'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = OBJECT_HD
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
Populate zerror return code
LD_ERROR = SY-SUBRC.
IF SY-SUBRC NE 0.
MESSAGE A095(ZZ) WITH LD_ERROR.
ENDIF.
COMMIT WORK.
-- DEQUEUE THE LOCK CREATED BY SO_OBJECT_SEND -
CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
endform. " SEND_FILE_AS_EMAIL_ATTACHMENT
Thanks,
DipikaHi Deepika,
recently i struggled on this and i achieved success by doing as below
remember to keep packlist as RAW type like below:
t_packing_list-doc_type = 'RAW'.
do like this
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = t_attachment[]
IMPORTING
EP_SOLIXTAB = xtext[].
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
tables
packing_list = t_packing_list
OBJECT_HEADER =
CONTENTS_BIN = objbin
CONTENTS_TXT = it_message
CONTENTS_HEX = xtext
OBJECT_PARA =
OBJECT_PARB =
receivers = t_receivers
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8
<b>Kindly Reward points if you found this reply helpful</b>,
Cheers,
Chaitanya. -
Odd Bursting error i haven't seen before... maybe you have?
Running into an odd error when trying to run the 'XML Publisher Report Bursting Program' on a request that contains XML data generated from a datatemplate... if their is an RTF template associated with the data definition get the output with no issues.
My problem is when i try to burst the file using an email delivery type...
If something was wrong w/ the XML data i would think it would the request generating the data would fail, or at least fail when their is an rtf template associated with it?
Metalink isn't turning out to much info either... "shrug"
*********** OPP process Error: ***************
[10/19/08 7:45:09 PM] [OPPServiceThread0] Post-processing request 26821773.
[10/19/08 7:45:10 PM] [218204:RT26821773] Executing post-processing actions for request 26821773.
[10/19/08 7:45:10 PM] [218204:RT26821773] Starting XML Publisher post-processing action.
[10/19/08 7:45:10 PM] [218204:RT26821773]
Template code: BURST_STATUS_REPORT
Template app: XDO
Language: en
Territory: US
Output type: PDF
[10/19/08 7:45:11 PM] [UNEXPECTED] [218204:RT26821773] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:319)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 17 more
************** Control File ****************
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/PROGRAMS/LIST_BACKLOG/BACKLOG">
<xapi:delivery>
<xapi:email id="123" server="server.xyx.com" port="25" from="[email protected]">
<xapi:message id="123" to="[email protected]" attachment="true" subject="BackLog Report" reply-to="">backlog
attached</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output-type="excel" delivery="123">
<xapi:template type="rtf" location="/usr/tmp/Backlog.rtf"></xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
*************Request Log error: **************
XML/BI Publisher Version : 5.6.3
--Exception
null
java.lang.NullPointerException
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.getSystemTempDirectory(JCP4XDOBurstingEngine.java:413)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:106)
at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
*********** XML Structure Snipet **************
<?xml version="1.0" encoding="windows-1252"?>
<PROGRAMS>
<org_code>MPK</org_code>
<LIST_BACKLOG>
<BACKLOG>
<SCHEDULE_SHIP_DATE>2008-08-13T23:59:00.000-07:00</SCHEDULE_SHIP_DATE>
<ORDER_NUMBER>639429</ORDER_NUMBER>
<LINE_NUMBER>1</LINE_NUMBER>.....
Edited by: jeremy21 on Oct 19, 2008 8:04 PMIf you're still needing assistance on naming the email attachment (and you're bursting from EBS using XDOBURSTREP concurrent program); then here's a sample burst control file that names the email attachment baed on fields from the XML data:
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/APXCRRCR/LIST_G_PAY_GROUP/G_PAY_GROUP">
<xapi:delivery>
<xapi:email server="mailserv.domain.com" port="25" from="[email protected]" reply-to="[email protected]">
<xapi:message id="EMAIL" to="${C_RECIPIENT}" attachment="true" content-type="text/html" subject="AP Cash Requirements Report for Business Unit: ${C_BUSINESS_UNIT}">
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="AP_CashRequirementsReport_${C_BU_NO_PUNC}_${C_FNAME_ADDENDA}" output-type="excel" delivery="EMAIL">
<xapi:template type="xsl-fo" location="xdo://XXAP.XAPXCRRCRD_EXCEL.en.US" filter=".//G_PAY_GROUP[C_RECIPIENT!='NONE']">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
This one bursts each page to a user(s) identified in the XML (C_RECIPIENT) and names the attached file AP_CashRequirementsReport_<business unite name>_<first receipient name> and sends it as an excel file.
Jennifer -
Send a instant message on the SAP screen
Dear All,
Plz explain the process of sending an instant messges on the SAP screen (A small window comes with messge on the screen, irrespective of the transaction we are in)
Hope i am clear i want.
Regards
MadhuIf u have authorisation of sm02 then fine , or else , u can use SBWP , for the same purpose
Execute SBWP, and create a new message and while giving the receipient name , also tick the box of of Send Express , it will immediately flash on the user terminal.
AVS -
To send notepad as an attachment to email
Hi ,
I am facing one problem. I am sending a notepad as an attachment to a mail.
The reciepents name is in the distribution list. When I checked the notepad, Headers and the record are coming in the same line .
But it should come in the different line.
Here is the code.....
TYPE-POOLS: SLIS.
My final table is i_output.
TYPES: begin of TY_EMAIL,
field1(1) type c,
field2(8) type c,
field3(12) type c,
field4(34) type c,
field5(10) type c,
end of TY_EMAIL.
DATA: IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
W_CNT TYPE I,
W_SENT_ALL(1) TYPE C,
W_DOC_DATA LIKE SODOCCHGI1,
GD_ERROR TYPE SY-SUBRC,
GD_RECIEVER TYPE SY-SUBRC.
DATA: IT_EMAIL TYPE STANDARD TABLE OF TY_EMAIL WITH HEADER LINE.
START-OF-SELECTION.
PERFORM get_data.
PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
TABLES IT_MESSAGE
IT_ATTACH
USING 'subject of mail'
'TXT'
'FILENAME'
CHANGING GD_ERROR
GD_RECIEVER.
END-OF-SELECTION.
form get_data.
CONCATENATE 'HEADER1'
'HEADER2'
'HEADER3'
'HEADER4'
'HEADER5'
INTO IT_ATTACH SEPARATED BY '~'
APPEND IT_ATTACH.
LOOP AT I_OUTPUT INTO WA_OUTPUT.
IT_EMAIL-FIELD1 = WA_OUPUT-FIELD1.
IT_EMAIL-FIELD2 = WA_OUPUT-FIELD2.
IT_EMAIL-FIELD3 = WA_OUPUT-FIELD3.
IT_EMAIL-FIELD4 = WA_OUPUT-FIELD4.
IT_EMAIL-FIELD5 = WA_OUPUT-FIELD5.
CONDENSE: IT_EMAIL-FIELD1,
IT_EMAIL-FIELD2,
IT_EMAIL-FIELD3,
IT_EMAIL-FIELD4,
IT_EMAIL-FIELD5.
CONCATTENATE: IT_EMAIL-FIELD1
IT_EMAIL-FIELD2
IT_EMAIL-FIELD3
IT_EMAIL-FIELD4
IT_EMAIL-FIELD5
INTO IT_ATTACH SEPERATED BY '~'
APPEND IT_ATTACH.
ENDLOOP.
FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
PIT_ATTACH
USING P_MTITLE
P_FORMAT
P_FILENAME
CHANGING P_ERROR
P_RECIEVER.
DATA: BEGIN OF OBJPARA OCCURS 10 . "
INCLUDE STRUCTURE SELC. "
DATA: END OF OBJPARA. "
DATA: LD_ERROR TYPE SY-SUBRC,
LD_RECIEVER TYPE SY-SUBRC,
LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
LD_EMAIL LIKE SOMLRECI1-RECEIVER,
LD_FORMAT TYPE SO_OBJ_TP ,
LD_ATTFILENAME TYPE SO_OBJ_DES ,
LD_RECEIVER LIKE SY-SUBRC.
DATA SENT_ALL LIKE SONV-FLAG.
DATA WARNING_MAIL LIKE SOODK.
LD_MTITLE = P_MTITLE.
LD_FORMAT = P_FORMAT.
LD_ATTFILENAME = P_FILENAME.
Fill the document data and get size of attachment
CLEAR OBJECT_HD.
READ TABLE IT_ATTACH INDEX W_CNT.
OBJECT_HD-DOC_SIZE =
( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
OBJECT_HD-OBJ_LANGU = SY-LANGU.
OBJECT_HD-OBJ_NAME = 'SAPRPT'.
OBJECT_HD-OBJ_DESCR = LD_MTITLE.
OBJECT_HD-SENSITIVTY = 'F'.
CLEAR T_ATTACHMENT.
REFRESH T_ATTACHMENT.
T_ATTACHMENT[] = PIT_ATTACH[].
Describe the body of the message
CLEAR T_PACKING_LIST.
REFRESH T_PACKING_LIST.
T_PACKING_LIST-TRANSF_BIN = SPACE.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 0.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND T_PACKING_LIST.
Create attachment notification
T_PACKING_LIST-TRANSF_BIN = 'X'.
T_PACKING_LIST-HEAD_START = 1.
T_PACKING_LIST-HEAD_NUM = 1.
T_PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
T_PACKING_LIST-DOC_TYPE = LD_FORMAT.
T_PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
T_PACKING_LIST-DOC_SIZE = T_PACKING_LIST-BODY_NUM * 255.
APPEND T_PACKING_LIST.
Receipient Information for SAP Office.
MOVE: 'ZDIPIKA' TO RECEIVERS-RECNAM, "Receipient Name
'C ' TO RECEIVERS-RECESC, "Repeipient Type
' ' TO RECEIVERS-SNDEX, "Send Express
SY-DATUM TO RECEIVERS-RCDAT, "Message Date
SY-UZEIT TO RECEIVERS-RCTIM, "Message Time
'X' TO RECEIVERS-SNDCP. "Send Copy
APPEND RECEIVERS.
Add the recipients email address
CLEAR T_RECEIVERS.
REFRESH T_RECEIVERS.
T_RECEIVERS-RECEIVER = 'ZDIPIKA'. "LD_EMAIL.
T_RECEIVERS-REC_TYPE = 'C'.
T_RECEIVERS-COM_TYPE = 'INT'.
T_RECEIVERS-NOTIF_DEL = 'X'.
T_RECEIVERS-NOTIF_NDEL = 'X'.
APPEND T_RECEIVERS.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = OBJECT_HD
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = LD_SENDER_ADDRESS
SENDER_ADDRESS_TYPE = LD_SENDER_ADDRESS_TYPE
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL = W_SENT_ALL
TABLES
PACKING_LIST = T_PACKING_LIST
CONTENTS_BIN = T_ATTACHMENT
CONTENTS_TXT = IT_MESSAGE
RECEIVERS = T_RECEIVERS
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
Populate zerror return code
LD_ERROR = SY-SUBRC.
IF SY-SUBRC NE 0.
MESSAGE A095(ZZ) WITH LD_ERROR.
ENDIF.
COMMIT WORK.
-- DEQUEUE THE LOCK CREATED BY SO_OBJECT_SEND -
CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
endform. " SEND_FILE_AS_EMAIL_ATTACHMENTHI,
While sending notepad attachmen tyou need to take care of certain things
1.Pass the dat in RAW format
2. use line separater in the back as below
CONCATENATE it_attach con_cret into it_attach.
2.use SO_SOLITAB_TO_SOLIXTAB to convert your itab into hex.
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = t_attachment[]
IMPORTING
EP_SOLIXTAB = xtext[].
3. pass xtext to contents_hex
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
tables
CONTENTS_HEX = xtext -
Multiple Form Field Validation
I run throught these series of checks before submitting the variables to the .jsp script. Problem is that it will ignore the sender name and receipient name as long as there are two email addresses. Why is that?
if (sendername eq "") {
nameerrorTXT.text = "PLEASE ENTER YOUR NAME";
if (emailfrom.indexOf("@")<0 or emailfrom.indexOf(".")<0) {
emailfromerror.text= "PLEASE USE A VALID EMAIL ADDRESS";
emailfromTXT.text = "";
if (recipientname eq "") {
recipientnameerrorTXT.text= "PLEASE ENTER YOUR FRIEND'S NAME";
recipientnameTXT.text = "";
if (emailto.indexOf("@")<0 or emailto.indexOf(".")<0) {
emailtoerror.text= "PLEASE USE A VALID EMAIL ADDRESS";
emailtoTXT.text = "";
} else {
_root.sendername = sendername;
_root.recipientname = recipientname;
_root.emailfrom = emailfrom;
_root.emailto = emailto;
_root.emailsubject = sendername + " " + emailsubject;
_root.emailbody = emailbody;
_root.loadVariables("/jsp/sendMail.jsp", "POST");
sendernameTXT.text = "";
recipientnameTXT.text = "";
emailfromTXT.text = "";
emailtoTXT.text = "";
nextFrame();Thanks Klad,
I actually tried that route. The problem was that if any one of those 'if' statements were true the the function would stop and I needed the function to check AND respond to each field if needed. I found that the 'else' statement would fire regardless to all the 'if' statements except for the one just before it.
I'm sure there is a better way to do and I'd like to know how but I solved the issue by creating a last 'if' statement that lumped all the if statements together. This way I would achieve the error feedback needed AND keep the 'ELSE' statement from firing. See below
submitBNT.onPress = function(){
if (sendername eq undefined | sendername eq "") {
nameerrorTXT.text = "PLEASE ENTER YOUR NAME";
sendernameTXT.text = "";
if (emailfrom.indexOf("@")<0 | emailfrom.indexOf(".")<0) {
emailfromerror.text= "PLEASE USE A VALID EMAIL ADDRESS";
emailfromTXT.text = "";
if (recipientname eq undefined | recipientname eq "") {
recipientnameerrorTXT.text= "PLEASE ENTER YOUR FRIEND'S NAME";
recipientnameTXT.text = "";
if (emailto.indexOf("@")<0 | emailto.indexOf(".")<0) {
emailtoerror.text= "PLEASE USE A VALID EMAIL ADDRESS";
emailtoTXT.text = "";
if (sendername eq undefined | sendername eq "" | emailfrom.indexOf("@")<0 or emailfrom.indexOf(".")<0 | recipientname eq undefined | recipientname eq "" | emailto.indexOf("@")<0 or emailto.indexOf(".")<0) {
/// DO NOTHING
} else {
processMailForm(); -
How to open Outlook, generate an email with Web Dynpro ABAP
Hi Experts,
I have to generate an email which must be open with MS Outlook.
The body will be filled by values from the IView, then Outlook should be open and the email
should be shown so that the user can change or add s.th. in the email.
I tried it in a class with OLE2, but thats not possible with WD ABAP.
Could anybody help me with that problem???To generate the receipient name dynamically.
You have to create an context attribute of type string and bind this attribute with reference property of linktourl.
then create a local variable of type string. suppose name of the local variable is lv_mail.
You will be having mail ID of the receipient in any local variable suppoe in variable lv_mailid.
Now use the following line.
Concatenate 'mailto:' lv_mailid '?subject=<subject line>' into lv_mail.
Now set your context attribute with the value lv_mailid.
To generate there is one standard FM. Sorry I do not remember the name of that FM. -
hi there.... have a query and need a quick response....
in workflows, which is the standard method used to send mails.....
i am unable to access it so cannot really find out... if anyone can do it for me... <REMOVED BY MODERATOR>
Edited by: Prem Sharma on Apr 30, 2008 2:17 PM
Edited by: Alvaro Tejada Galindo on Apr 30, 2008 6:16 PMHi Prem
you can send the mails through workflow by using the transaction SBWP, go for new message.
give the receipient name as system username
and Receipent type--select SAP LOGON NAME option from drop down list, then press enter and click on send button on top left side.
<REMOVED BY MODERATOR>
Thanks
Abdul Samee
Edited by: Alvaro Tejada Galindo on Apr 30, 2008 6:17 PM -
Undeliverable Messages Coming Back Randomly
Just in the last week, we've had a handful of users receive bounce back messages saying they were not delivered. Generally, it will tell you what the issue is (user does not exist, attachment too large, etc.) but this one is no help. It is happening to internal
and external emails. If the user gets the bounce back, closes Outlook, reopens Outlook and then tries sending it, it seems to go through. Below is the error in the Undeliverable reply. I don't see any errors in the Event Viewer on the Exchange Server. I've
rebooted it but we're still having it occur.
'Receipient Name' on 1/2/2015 2:40 PM
This message could not be sent. Try sending the message again later, or contact your network administrator. Error is [0x80004005-00000000-00000000].Hi pantherguy,
Generally, Error [0x80004005-00000000-00000000] is caused by Message limits.
Pls check this helpful threads:
1 .
http://blogs.technet.com/b/asiasupp/archive/2011/06/10/messages-are-not-delivered-after-you-send-messages-to-a-large-number-of-recipients-by-using-an-office-365-account.aspx
2.
http://serverfault.com/questions/651868/exchange-2010-sp3-update-rollup-8-outlook-ndr-errors
I would also suggest you to check event logs for any exchange store issue.
Thanks , Prakash <br/> Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied. -
Strange sync error, haven't seen before
My Ipod had been working fine, but then it wouldn't sync, either manually or automatically. It says it's syncing, but none of the new songs would be added to my ipod. I also noted that it was showing the wrong album art....so I did the 5R's. Now I've got no music on my ipod, and I'm unable to sync anything on. If I look at songs under the ipod while it says it is syncing, it shows them grayed out for a second on the ipod, then they disappear.
I'm working on windows 2000 w/ newest software I can.
Anyone seen this before?If you're still needing assistance on naming the email attachment (and you're bursting from EBS using XDOBURSTREP concurrent program); then here's a sample burst control file that names the email attachment baed on fields from the XML data:
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/APXCRRCR/LIST_G_PAY_GROUP/G_PAY_GROUP">
<xapi:delivery>
<xapi:email server="mailserv.domain.com" port="25" from="[email protected]" reply-to="[email protected]">
<xapi:message id="EMAIL" to="${C_RECIPIENT}" attachment="true" content-type="text/html" subject="AP Cash Requirements Report for Business Unit: ${C_BUSINESS_UNIT}">
</xapi:message>
</xapi:email>
</xapi:delivery>
<xapi:document output="AP_CashRequirementsReport_${C_BU_NO_PUNC}_${C_FNAME_ADDENDA}" output-type="excel" delivery="EMAIL">
<xapi:template type="xsl-fo" location="xdo://XXAP.XAPXCRRCRD_EXCEL.en.US" filter=".//G_PAY_GROUP[C_RECIPIENT!='NONE']">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
This one bursts each page to a user(s) identified in the XML (C_RECIPIENT) and names the attached file AP_CashRequirementsReport_<business unite name>_<first receipient name> and sends it as an excel file.
Jennifer -
OESB: Runtime initialized in Repository container?
After installing a OESB 10.1.3.4 HA instances (2 containers ESB DT active/pasive, 2 containers ESB RT no BPEL) we are seeing in the log.xml of the ESB Design time container that both the repository and runtime get started.
we see
ESB bootstrap: Repository initialized
ESB bootstrap: Runtime initialized
what this does is that when the repository is initialized it also registers most of the services of file adapter and others..
it would´nt matter much however we have also setup the active-pasive file adapters and since the repository container starts the services it is allways the one to process the files ... the other containers are only used for web service invocations...
interesting enough the web services only start in the ESB RT containers.
can i shut down the ESB RT application in the Repository container?Hi. Maybe this is not your answer, but let me tell you my situation.
I have the same configuration.
Server1
- OracleAS1: OC4J_SOA -> esb-rt
- OracleAS2: OC4J_ESBDT -> esb-dt
Server2
- OracleAS1: OC4J_SOA -> esb-rt
- OracleAS2: OC4J_ESBDT -> esb-dt
In the start procedure (supposing everything is down), I start first the OracleAS2 of Server1 (or 2) and wait
some messages that indicate failed communication with the ESB Console (log.xml). Then I start OracleAS1. Some
minutes later, in OracleAS2's log.xml appears "ESB bootstrap: Repository initialized". Then in OracleAS1's log.xml
appear messages like "!!!!!!!!!!!!!Dequeue Receipient name : X_YYYY for topic" for each system listener. After
all listeners initiate, appears "ESB bootstrap: Runtime initialized".
Then, I do the same in Server2, but OC4J_ESBDT doesn't start due to the active passive conf (although sometimes
this do start, and the Server1's is automatically stopped :-\ ). Later I start OracleAS1 happening the same
with Server1's OracleAS1.
In the end (for OracleAS2):
Server1.
--------------------------------------------------------------+---------
ias-component | process-type | pid | status
--------------------------------------------------------------+---------
OC4JGroup:ESBDT_GROUP | OC4J:OC4J_ESBDT | 430260 | Alive
OC4JGroup:default_group | OC4J:admin_esbdt | 2596956 | Alive
ASG | ASG | N/A | Down
Server2.
--------------------------------------------------------------+---------
ias-component | process-type | pid | status
--------------------------------------------------------------+---------
OC4JGroup:ESBDT_GROUP | OC4J:OC4J_ESBDT | N/A | Down
OC4JGroup:default_group | OC4J:admin_esbdt | 1626274 | Alive
ASG | ASG | N/A | Down -
Hi,
I am going through the link https://wiki.sdn.sap.com/wiki/display/PLM/2.RecipientManagement - Recipient Management . I couldn't able to understand how to create recipient list.
Does I need to do anything in the customization for this ?
I opened a Doc. info record in CV02N ... Environment document distribution- recipient list - create. Recipient list field came-- I didn't get
Choose a recipient type, for example, Office user.
The initial screen for your chosen recipient type appears and you can create/maintain the appropriate master record.
Can you help in this.
Regards,
Sai KrishnaHi Sai,
You need to create a receipient list first. For this go to receipient list create and give some name example: sai
Then in second screen give the description and receipient name and type as below:
COV Post (print document list)
INT E-mail (originals as attachment)
LET Mail (document references as attachment)
ORI Mail (copy originals to server)
PLO Plot
RMA Business Workplace mail (originals as attachment)
RML Business Workplace mail (document references as attachment)
Then save this list and use for disrtibution.
I hooe this will resolve the query.
Regards,
Ravindra -
Change name on outgoing emails, so I am anonymous to the receipient?
Hello,
I am using the email manager on my Mac.
I have several email accounts set up and working fine, one of which I would like to remain anonymous when I send out mail. Right now my name shows up to the reader. Example: email address may be "[email protected]", but what shows up to the reader is "[email protected] AND "Bill Smith". I don't mind if the reader sees, "abc1", but I just want them to see "BJS", as opposed to "Bill Smith".
Is there a way to change this?The 'Bill Smith' is taken from the 'Full Name' field in Mail Preferences -> Accounts. Just edit that to include whatever 'name' you want recipients to see.
-
Central Confirmation (Goods receipient) in SRM 7.0
Hi
We are in Standalone Scenario and Upgrading from SRM 4.0 to SRM 7.0.
We want to use the Central Confirmation scenario where for one region (Based on countries) in Org structure we have One Central Goods receipient.
I have assigned the role /SAPSRM/RECIPIENT to the person. In the Requisitioner attribute I have added the names for which the Goods Receipient can do the confirmation. the Portal roles are also properly assigned to the user. he can see the POWL and Create Confirmation option in Portal.
I have created a SC and converted the same to PO. I wanted to do the Central Confirmation now. I try to search the PO in POWL query but it doesn't display any result. I also try to create confirmation using Create Confirmation option but there also I get "No documents matching the selection criteria".
Wanted to understand if there are any other settings that I might be missing. As a Central Receipient, why am I not seeing the Purchase Order for which I need to do the confirmation.
Thamks in advance.
Regards
RajHi Raj,
The requester attribute is used for Shop on Behalf functionality. This makes creating shoppingcarts and confirmations available for employees. Therefore i believe that the configuration of this attribute in your central recipient scenario is obsolete.
I think that you havn't configured the SYS attribute in your organizational schema. This attribute tells the system where to look for your inv/confirmation documents. Include all systems here, in your case: Add your local SAP SRM logical system name. This should resolve your problems.
Ps. Also try giving a (couple) of parameters when searching for your PO document from the central recipient transaction, this helps (speed up) searching for a reference document.
Kind regards,
Tim
Edited by: T. Schuffelen on Jul 14, 2010 12:29 PM
Maybe you are looking for
-
Losing source-target mapping from a data flow diagram process
Hi, When I reload a model design from an xml repository, I am losing source-target mappings from a data flow diagram process. I wonder why. The way it goes is: - I define a data flow diagram with information stores, processes, and flows. - Informatio
-
Finding Permutations of an Array
I was hoping I could get a little help on finding a way to cycle through an array and print all of the permutations of its elements. I have a short example of what I am trying to do. If someone could fill in the blank, I could understand how to use i
-
my iMac 5k with 4ghz i7 has a very loud fan once the i7 is used, e.g. for rendering and gaming. it's so loud (ca. 2500-3000 rpm) that there is no point in using the computer. can this somehow be fixed? it's not a graphics card issue but rather the i7
-
Hi, I want to connect to another user in database proceedure , and do some updation and insertion in that user and then switch back to where I am first. Any body can help me for this task. I tried with alter session set current_schema. But i can only
-
FIleclient to XI connection details :SRM Interaction
Dear all, I am struck up in proposing a solution to the client. Existing Flow. In the existing Topology, the suppliers are interacting with Commerce one using documents in XCVL format.The Suppliers connect the Commerce one site u