How can I change the sender email id in SO_NEW_DOCUMENT_ATT_SEND_API1
Hi,
I am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" to send an E-Mail. I have to use the sender's E-Mail address as a general one ( Not to the SAP login user's id ). How to do this.
Please advice.
Thanks in advance.
Hai Sabari
Check the following Code
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
DATA L_NUM(3).
Creation of the document to be sent
File Name
DOC_CHNG-OBJ_NAME = 'SENDFILE'.
Mail Subject
DOC_CHNG-OBJ_DESCR = 'Delivered Mail'.
Mail Contents
OBJTXT = 'Object text'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creation of the document attachment
LOOP AT ITAB_DATA.
CONCATENATE ITAB_DATA-PRODUCTOR
ITAB_DATA-VBELN
ITAB_DATA-POSNR
ITAB_DATA-MATNR INTO OBJBIN.
APPEND OBJBIN.
ENDLOOP.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'ORDERS'.
APPEND OBJHEAD.
Creation of the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'TXT'.
OBJPACK-OBJ_NAME = 'WEBSITE'.
OBJPACK-OBJ_DESCR = 'ORDERS.TXT'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
Completing the recipient list
target recipent
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
copy recipents
clear RECLIST.
RECLIST-RECEIVER = '[email protected]'.
RECLIST-EXPRESS = 'X'.
RECLIST-REC_TYPE = 'U'.
RECLIST-COPY = 'X'.
APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
Thanks & regards
Sreenivasulu P
Similar Messages
-
How can I change the default email account from which my messages go, without having to change it each time I draft a message? It currently assumes an email account that I rarely use. Thanks.
sorry, but I can't find the mail preference in the latest Yosemite OS. Do you know where I can find it?
Thank you
Don -
i have updated my iphone 5s to iOS8 but it has my old icloud account, how can i change the icloud email address as i can not get passed this page??
I do not know the log in details and no longer have that icloud email address !!
please help :-(That's Activation Lock. You will need to remember the Apple ID and password you used to set up the phone.
If you can't remember them, you can go to iforgot.apple.com to try to recover the information.
If you are the original owner of the phone & have proof of purchase, you can try calling Apple to see if they can assist also.
~Lyssa -
How can I change the sender details on emails sent from one of 2 iphones linked to my itunes?
I have 2 iphones set up on my itunes, one for me and one for my husband, when he sends an email from his iphone it shows as being sent by me not him. His hotmail email is set as the default on settings and it is his emails in the inbox,how can I change this?
Use Settings > iCloud. Choose Sign Out at the bottom and then Sign In with your iCloud ID.
-
How can I change the return email address in Mail?
Hi
Having just switched to a Mac and just got broadband I was quite pleased with myself managing to download an email into Mail....
However, we use a forwarding email address at bigfoot.com so that we can always quote the same email address whatever our ISP given address. How can I make this the default return email address on emails I send, rather than the [email protected] that we have been assigned?
Thanks in advance
stuart
MacBook (Intel) Mac OS X (10.4.7)Hi Stuart.
Open /Applications/Utilities/Terminal, type the following command (you can just copy it here, paste in a text editor, modify the email address, then copy the whole command again, and paste in Terminal), and press <Return>:
defaults write com.apple.mail UserHeaders '{"Reply-To" = "[email protected]";}'
The following article contains a more thorough description of this technique that takes into consideration the possibility that you might inadvertently overwrite other default headers by doing that:
How to Add a Reply-To Header to All Emails You Send in Mac OS X Mail -
I've created a pdf form using Adobe Live Cycle ES 8.2 and it has been working fine. Now I need to change the email address it gets sent to when the user clicks on the "Submit Form" button.
How can I change this email address?
Thank you in advanceYes, that is correct.
I did not manually add this button, so I am assuming it was somehow automatically created.
It worked great up until now that I need to change the "To:" email address.
I've look through the XML code associated this this email address and changed it every where I could find it, but it still hasn't changed my results. So, I have no idea how to change this and as stated above, if I create a new form it automatically sets it up to be sent to the wrong email address. Not sure why or how to change it?
Let me know if you need further info to help me out.
Thanks again -
I forgot the answers to my security questions. When I go to the link for help remembering my security questions it sends the email to an email address that is not mine. And I don't know how to make it send to one of the two correct email addresses I have entered. Any suggestions?
You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(108925) -
How can i change my verification email address
i used a foney email address but i didn't know it would have me verify it so how can i change the verification email address to send to a active email address. And i tried making a yahoo account for the foney email i used but yahoo says that email is not valid so any other ideas. please reply back really need help
You should be able to log into the account via the 'manage your apple id' button on http://appleid.apple.com and put a proper primary email address on the account ; or you can do it by logging into the account via the Store > View Account menu option on your computer's iTunes.
-
HT5312 how can i change my rescue email address?
I have forgotten my security questions for my apple id. i was wondering how can i change the rescue email address and change my security answers?
Reset Security Questions
Frequently asked questions about Apple ID
Manage My Apple ID
Or you can email iTunes Support at iTunes Store Support.
If all else fails:
1. Go to: Apple Express Lane;
2. Under Product Categories choose iTunes;
3. Then choose iTunes Store;
4. Then choose Account Management;
5. Now choose iTunes Store Security and answer the bullet questions, then click
Continue;
6. Sign in with your Apple ID and press Continue;
7. Under Contact Options fill out the information and advise iTunes that you would
like your security/challenge questions reset;
8. Click Send/Continue.
You should get a response within 24 hours by email.
In the event you are unsuccessful then contact AppleCare - Contacting Apple for support and service.
Another user had success doing the following:
I got some help from an apple assistant on the phone. It is kind of round about way to get in.
Here is what he said to do and it is working for me...
a. on the device that is asking you for the security questions go to "settings", > "store" >
tap the Apple ID and choose view"Apple ID" and sign in.
b. Tap on payment information and add a credit/debit card of your preference then select
"done", in the upper right corner
c. sign out and back into iTunes on the device by going to "settings"> "store" > tap the
Apple ID and choose "sign-out" > Tap "sign -in" > "use existing Apple ID" and you
should be asked to verify your security code for the credit /debit card and NOT the
security questions.
d. At this time you can remove the card by going back in to edit the payment info and
selecting "none" as the card type then saving the changes by selecting "done". You
should now be able to use your iTunes store credit without answering the security
questions.
It's working for me ...I just have to put in my 3 digit security pin from the credit card I am using.
Good Luck friends! -
HT1918 How can I change my rescue email?
I want to change my apple Id to my main email account but I have used it for my rescue email. How can I change the rescue email?!! Thanks
Kerraleigh wrote:
I want to change my apple Id to my main email account but I have used it for my rescue email. .
You cannot re-use an email address
Go to My Apple ID and click Manage your account."
More Info here
Apple ID FAQs > http://support.apple.com/kb/HT5622
Apple ID Support > http://www.apple.com/support/appleid/ -
My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?
I've changed the bill payer to myself but it stills says on emails that I sent that its from my mother.In order for the "From" field to show you options on the "from" addresses available, you must set them up in the Preferences > Accounts first.
I can't show you a screen shot of the from field because I currently only have one account, so the from address used is the default. However, when I had more than one, then options will show up in your compose/reply window.
You'd need to add an account here: -
How can I change the email address of my Apple identifyer?
I changed email provider*, it affects my apple identifier . When I buy something it used to send me emails to that old address. How can I change the email of my identifyer?
Today i bought something and it said it was the first time I used my machine to buy something and asked for my security questions, but I always bought with my ipad, this is not a new machine.
* I cancelled my account with Videotron so there is no way I can use the videotron email address anymore ( it was used for my identifyer email address)The only email address I see is the name of my apple identifyer. If I change it to the new address, won't I have 2 identifyer now? How about everything I have bought on the old email identifyer?
I think I am misunderstandiing something here... -
How can I change my rescue email or get rid of it? I need to change my email under my apple ID to the email that is my rescue email. It won't allow me to have the same email. I only have one email address and can no longer access the email address under my apple ID
Welcome to the Apple community.
Once you have created a rescue address, you cannot delete it, nor can you change it to the same address as used by your ID. There are numerous providers you can get additional email addresses from, such as Hotmail, Yahoo, Google etc etc. -
How can i change the email address for Icloud on my Iphone 4
I have inherited my wife's Iphone 4 when she upgraded to Iphone 5. The Icloud on the Iphone 4 is tied to her Apple ID. How can I change the Iphone 4 to my Apple ID? Thanks for any help.
For iCloud you go to Settings>iCloud and sign out and sign in with your iCloud account.
There are also many other setting that can be associated with here Apple ID like the following:
- Settings>iTunes & App Stores (sign out and sign in)
- Setting Mail
- Setting Messages and Settings>Facetime Add your own ID/email address and delete hers -
How can I change the settings wit mail so that when I delete my Verizon email from my iPhone it will also delete from my iPad too.... Seems like I shouldn't have to delete my email in three places...iPhone ..iPad ...and desktop
Don't know which email host you are using, but if this is a POP account, you can't do it. If IMAP, then deleting one email should delete it on all other devices.
Maybe you are looking for
-
Adobe Bridge CC will not launch OS 10.9.5
I've recently installed Adobe Creative Cloud onto a brand new Mac Pro. All the Adobe apps launch with no issue except for Bridge, which does not launch at all. The app icon bounces in the dock for a second, then disappears. I've tried uninstalling
-
Run java programs on computers without a SDK
Alright. So I wrote a java program on my computer. It has the SDK with JCreator and everything. However, I want to be able to run the program on my Laptop which doesnt have the SDK. It has Java installed yes, but no SDK. How would I run the program?
-
Everything in my console.log as "error loading prefs - creating defaults one" at the end of it. What does this mean, and what do I do to fix this problem. I have already re-set my pref folder, but that seems to not do
-
Choosing a port for Client/Server applications
Just going through the Sun tutorials and trying to establish a connection. In the KnockKnockClient example program they have initiated a new Socket with a server name and port number as follows: kkSocket = new Socket("taranis", 4444);I've changed the
-
Mrp run should exclude intercompany delivery shedule(PO)
Dear, I have scenario , THere are two company codes in which there are two different plants,one is manufacturing & ANOTHER IS Trading plant They are putting inter company PO for sale of material between these two plants. I am using planning strategy