Idoc to file and email
We have a IDOC to file scenario. File is written on the FTP server. If the file is written successfully an email needs to be sent out and if for some reason the file cannot be written to the ftp server and error email should be sent out.
Can this be done without using the BPM?
I have some ideas using the OS scripts on the receiver channel and creating two interfaces instead of one. But though will throw it out there to check if someelse has a better idea.
Thanks
Hi Vicky,
You need to either go with BPM or via module processor.
Ref: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f96dbf-adca-3010-ffb5-daf2d1f0e276?QuickLink=index&…
Similar Messages
-
Examples needed for Idoc to file and IDOC to web services
Hi ,
Could any one of you give some examples which take me through step-by-step in building IDOC-TO-FILE and IDOC-TO-WEB SERVICES?
Regards,
XI Developer.Hi,
For IDOC scenario you need to first do the required configuration:
ALE configuration for pushing idocs from SAP to XI
/people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
Testing purpose u can use the below method:
IDOC testing using WE19
/people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters --> For Idoc sender: IDOC -file
IDOC configuration:
Please follow the below process for configuration:
Pre-requisites for Inbound IDoc to R/3 from PI:
Configuration required at Xi side:
Go to IDX1: configure the port.
Go to IDX2: load the DOC metadata.
Go to SM59: Create RFC destination which points to R3 system this is require in the case where your IDOC is sent to R 3 system,
Configiration required at R3 side:
Maintain Logical System for PI (SALE transaction):
Maintain Partner Profile for XI system(WE20):
Pre-requisites for Outbound IDoc from R/3 to PI:
Configurations required in R/3:
Maintain Logical System (SALE)
Define RFC Destination (SM59) which points to PI system
Maintain Port (WE21)
Maintain partner profile. (WE20):
Maintain Distribution Model (BD64):
File To IDOC - Part1 (SLD and Design):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
File To IDOC - Part2 (Configuration):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
File To IDOC - Part3 (Steps required in XI and R3):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
SOAP scenario:
YOu have to first create the WSDL through ID and import that WSDL in to IR external definition.
Refer the below thread and pdf:
How to use SOAP adapter:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
SAP AII - How to consume and expose webservices ?
Thnx
Chirag
reward points if it helps. -
What .plist file is responsible for the timestamp on files and emails?
The genius bar told me that the preference directory was responsible for all files and emails being time stamped with 8:32 am. By logging in as another user, this does not happen. So which .plist file needs to be recreated in order to fix this problem for this user?
The backup.lock file is open in Perl so I can't delete it and there are two perl.exe processes running which I didn't want to just stop one or both using Task Manager.
Below is an excerpt from the end of the dbbackup.log file:
VALIDATE TABLE "DBA"."SysServicesEnum"
VALIDATE TABLE "DBA"."SystemComponent"
VALIDATE TABLE "DBA"."SYSLOG_20130303"
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has missing index entries
Primary key for "SYSLOG_20130303" has mis
Is there a way to remove "SYSLOG_20130303" from the DB? -
Save data in a file and email the file
Dear all,
I have 2 vi files:
1. one vi file can store data into a file when it runs and stopped
2. another vi can send a file out through email when it is run.
Is it possible for me to run the first vi and stop after one hour (to store data into A file), then run the second vi file and stop (to send A file through email), and then run the first vi again immediately after running the second vi? This is because I need to send out my data saved hourly through email and get my 1st vi to continue running through out the day.
Due to the file path for my first vi and the second vi are the same, I keep getting error as below when either 1 vi is not stopped.
Error 5 occurred at Open/Create/Replace File in Write Spreadsheet String.vi->Write To Spreadsheet File (DBL).vi
Please advice. Thanks.
KimDear Ravens,
I tried to kill (remove) the event structure from my earlier code, but as I run it, I get the same error again- error 5.
I also tried to put time out value 200 at the timenode at the upper left of the event structure but the email part just never executed.
I searched thru the forum and found a several examples on state machine as attached. I tried the first attachment for my program but obviously I used the wrong one as you adviced. As for the other state machine examples that I downloaded, I couldn't figure out how to apply them for my case correctly. Can you advcice how can I implement state machine to get the results tat I need?... Pls gv me some clearer hints?
Attachments:
QueuedStateMachineWithEvents.vi 49 KB
StandardStateMachine_2MOD.vi 19 KB
JKI State machine.vi 75 KB -
Automatic Attach File and Email
I know can do the following to have page opened as a word
document. But how can I have, when opened as a word document be
automatically emailed to email recepients as a word attachment
without the user going through the file menu to attach and email
the file?
<cfheader name="Content-disposition" value="attachment;
filename=InsertionOrder_#PartnerID#.doc" />
<cfcontent type="application/msword"
reset="yes"></cfcontent>eziokolo wrote:
> I know can do the following to have page opened as a
word document. But how can
> I have, when opened as a word document be automatically
emailed to email
> recepients as a word attachment without the user going
through the file menu to
> attach and email the file?
>
> <cfheader name="Content-disposition"
value="attachment;
> filename=InsertionOrder_#PartnerID#.doc" />
> <cfcontent type="application/msword"
reset="yes"></cfcontent>
>
>
very confused... who's emailing to who???
do you want to email a word doc stored on your server to a
user when a
user requests to view the doc, or do you want a user to email
a word doc
from their computer to you when they are viewing it???
if the former, just use cfmail with cfmailpart tags before
your
streaming code above to email the doc to anyone you want....
in the latter case, you have no way of controlling it.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
Code to pickup app.server file and Email the same!!!
Hi,
I need to write an ABAP code to pickup a file in application server and Email the same file to the intended receipients--
Can i get the code pls?Hi Simran,
Please search the forum. There are many sample codes available for reading data in application server and mail sending.
User statements OPEN DATASET, READ DATASET and CLOSE DATA SET to get the application server data. Check F1 on these. You will come to know many interesting things.
Below is the sample code for mail sending.
DATA: li_reclist TYPE STANDARD TABLE OF somlreci1,
li_objpack TYPE STANDARD TABLE OF sopcklsti1,
li_content TYPE STANDARD TABLE OF solisti1,
lwa_reclist TYPE somlreci1,
lwa_objpack TYPE sopcklsti1,
lwa_content TYPE solisti1,
lwa_doc TYPE sodocchgi1,
l_lines TYPE i.
REFRESH: li_reclist[], li_objpack[],
li_content[].
CLEAR: lwa_reclist, lwa_objpack,
lwa_content, lwa_doc.
lwa_reclist-receiver = "Give ur mail ID here.
lwa_reclist-rec_type = 'U'.
APPEND lwa_reclist TO li_reclist.
"Here Loop at ur internal table and populate the data
lwa_content = 'Please Check with your sales team for more details'.
APPEND lwa_content TO li_content.
CLEAR l_lines.
DESCRIBE TABLE li_content LINES l_lines.
READ TABLE li_content INTO lwa_content INDEX l_lines.
lwa_doc-doc_size = ( l_lines - 1 ) * 255 + STRLEN( lwa_content ).
lwa_doc-obj_langu = 'E'.
CONCATENATE 'Sales order' vbak-vbeln 'deleted.' INTO lwa_doc-obj_descr
SEPARATED BY space.
CLEAR lwa_objpack-transf_bin.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = l_lines.
lwa_objpack-doc_type = 'RAW'.
APPEND lwa_objpack TO li_objpack.
*Sending the mail
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = lwa_doc
* PUT_IN_OUTBOX = ' '
COMMIT_WORK = 'X'
* IMPORTING
* SENT_TO_ALL =
* NEW_OBJECT_ID =
TABLES
PACKING_LIST = li_objpack
* OBJECT_HEADER =
* CONTENTS_BIN =
CONTENTS_TXT = li_content
* CONTENTS_HEX =
* OBJECT_PARA =
* OBJECT_PARB =
RECEIVERS = li_reclist
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
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Vinod. -
How to implement Exception Handling error in IDoc to File and RFC to File
Hi,
We are implementing the two below scenarios :
1. IDOC to File
2. RFC to File
We have to implement the Exception Handling for the above two cases. Kindly could you provide the inputs to implement the Exception Handling for the above two cases.
Please provide the precious inputs to implement this.
Thanks,
RameshHi Ramesh,
The exception handling for idocs
http://help.sap.com/saphelp_nw04/helpdata/en/dc/6b7f1543d711d1893e0000e8323c4f/frameset.htm
Exception handling in File to IDoc Scenario
For RFCs
Re: Passing SAP Exceptions to a sync SOAP Call
Error Handling when using RFC
Exception Handling while Calling RFC - BPM
handle exceptions in remote function modules
Regards,
Prateek -
How Do I Avoid Losing Formatting When Pages documents Are Converted to PDF Files and Emailed?
I put together a presentation piece with Pages, converted its 19 pages to pdf files, emailed the folder of pdf files to Staples for duplication, collation, and binding, and was disappointed to see some of my graphic frame formatting lost.
Can anyone please tell me how to avoid the loss in the future? 'Sure would appreciate it.
I was "raised" on Microsoft Publisher, then worked with Adobe Elements before switching to Mac. For the most-part, I find Mac OSX 10.7.5 a joy to use, but it takes me quite a while to figure out how to bridge differences between PC and Mac applications. Even though Mac applications tend to be straight forward, I loften find myself shaking my head and wondering how I could have been stumped so long by a little thing such as instant alpha. I don't want to chalk up this difficulty in adapting to old age, but could! (--Which translates: Please be easy on the old lady!) Thanking you in advance for such assistance as you might provide ...Upgrade to Mountain Lion OSX 10.8, much better than Lion.
I take it you are talking about Pages '09?
Your problem is probably with anything that has transparency eg fancy frames, 3D charts, shadows, reflections because Pages exports all these to too low 72dpi resolution in .pdfs.
Prepping files for commercial print is always a concern and you need at least some Pro skills, but Apple has made life even harder with key missing settings and inferior presets.
The subject of preparing for print is rather broad and detailed.
You may find more comprehensive advice here:
http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
Peter -
Problem with Date of files and email
Hi,
I have a MacBook with MacOSx snow Leopard 10.6.3.
I have a problem with the date showed for the files inside Finder and for my emails on Apple Mail. All files show a date with correct day and correct hour but with wrong month; all files have as month January. Except for files modified or email received in the last two days all the other files displayed by Finder (and also for email) have this wrong date. But when I want to attach a file to an email or insert a file (for example word) inside another file word the system displays correct date.
Someone had the same problem?
The version of Apple Email is 4.2 and the Finder is 10.6.4.You make no mention that you have checked your calendar settings.
System Preferences>Time & Date>Date & Time
Was this done?
I am not at my SL MBP at the moment but, the above should be the same and/or similar as the Tiger OS.
"MacOSx snow Leopard 10.6.3."
Update to OS 10.6.4, repair permissions and restart your computer.
!http://i50.tinypic.com/izvwo1.gif! -
Saving as PDF file and emailing not working
This began today. I always save my Illustrator CS5 15.0.2 files to PDF's. I send them to my clients as final proofs for them to approve. Today I have had 2 recipients say (these are multiple page files) that the are seeing only portions of each page, or duplicate pages that are different. They don't exist on my copies. I open the PDF files after saving and they look fine. Has something changed recently? Actually one person said they could see the PDF fine on their iPhone but not on their PC
PDFs are sometimes seen as "applications" by some online virus checkers. Web mail accounts can sometimes scan pdfs corrupting them. Not much you can do on your end other then possibly zip the pdfs before sending them.
Could also be a localized issue with Acrobat or Reader on your clients machines, which you can't do anything about. I always find providing links to download PDFs much more reliable than emailing the PDFs themselves. -
How to read an IDOC flat file and send it to XI
Hi,
I'm looking for a way to read a complicated Idoc structured flat file sent to XI by a legacy system and then pushing that data to and R/3 system. Can anyone recommend a good technique?
Thanks,
Steevehi steven....
this shud help u...
for FileXIIDoc
File->XI->IDOC (how to start?)
also check this blog for specifying adapter specific identifiers in this scenario
These are steps to follow:
STEPS IN DESIGN
1. Import idoc from the SAP System (SAP02) through imported objects.
2. Create Data Type, Message Type, Message Interface for the Outbound File.
3. Create Message Mapping with file Message and idoc (Matmas04)
5.Create Interface mapping between File Interface and the idoc.
Steps to be followed in Creation of Technical and Business System
Technical System
In SLD, click on technical landscape->New Technical System->WebAS ABAP.
Business System.
1.Goto Business Landscape->New Business System->Name the business system.
2. Choose the technical system that needs to be attached->WebAS ABAP->Technical System Name.
Preconfiguration steps for transfer of data to IDOCS
1.Create a RFC Destination in SM59 of XI Server of type.
2.In transaction IDX1 ,create a port for the client of XI server.
3. The port has to be displayed in the idx2 transaction and we should be able to view the idocs which we imported through integration repository.
Steps in Configuration
1. Goto service without party, right click->Assign a business system.
2. Choose the business system to be added.
3. Create a File Sender Service with communication channel for the same.
4. Create an idoc receiver channel under the business system. Mention the RFC Destination and the port created for the same.
5. Mention the logical Name in the Service->Adapter Specific Parameters of both the File Sender Service as well as the business system.
6. Make the Sender Agreement for theFile Sender with communication channel.
7.Create the Receiver Determination and Interface Determination for the business system.
8.Create the Receiver Agreement for the Business system.
TCODES for File>XI>IDoc
SM59-rfc destination on recving side
IDX1-port on recving side
IDX2-load metadata
Bus. service adapter specific Identifiers-->Logical sys name (check this blog:/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system )
we05-IDoc status records
BD54-Create Partner Number
We20-Create Partner Profile
and also go thru this blog...
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
hope it helps....
regards...
vishal
/people/michal.krawczyk2/blog/2005/03/29/xi-error--unable-to-convert-the-sender-service-to-an-ale-logical-system -
Every File and Email has Same Date
Hi
I've seen other similar problems on here but not identical, and nobody seems to have resolved them successfully anyway ...
All my emails, from different accounts, saved/inbox/stored on own computer/stored elsewhere have the same date, some insignificant date from the past (long before the date I bought the Macbook). I use Thunderbird, but it definitely seems to be a problem with Snow Leopard because it is also true of all the "last modified" etc dates when I try to open files in Microsoft Office - the same date appears every time. I've tried updating Snow Leopard - it doesn't help. Finder shows the file dates correctly.
I've tried adjusting the "set date automatically" settings and time zones etc, it doesn't make any difference.
Any suggestions?Hi
I've seen other similar problems on here but not identical, and nobody seems to have resolved them successfully anyway ...
All my emails, from different accounts, saved/inbox/stored on own computer/stored elsewhere have the same date, some insignificant date from the past (long before the date I bought the Macbook). I use Thunderbird, but it definitely seems to be a problem with Snow Leopard because it is also true of all the "last modified" etc dates when I try to open files in Microsoft Office - the same date appears every time. I've tried updating Snow Leopard - it doesn't help. Finder shows the file dates correctly.
I've tried adjusting the "set date automatically" settings and time zones etc, it doesn't make any difference.
Any suggestions? -
Swf files and email links in dreamweaver
Good evening everyone,
Need some help please
I have a button (swf) made in Flash and brought into Dreamweaver to act as an email link when clicked.
When testing, an extra browser window named "untitled" comes up behind the main email window which
pops up fine. I can't figure out where the extra blank "untitled" window is coming from.
swf was made in cs4 with as3 and imported into Dreamweaver cs4.
The following is the code used for the swf file.
var emailLink:URLRequest = new URLRequest("mailto:[email protected]");
email_btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(MouseEvent):void
navigateToURL(emailLink);
Thanks in advance,
[email protected]The extra browser window will not appear when you run the file live on a server. It is just one of the quirks with local Flash testing.
-
Query Ad for computers push to text file and email detail
Hi Guys,
I'm really stuck and i know its a basic question.
I'm trying to get the content of the outfile emailed out to report diskspace
Both parts work independently and i'm stuck on joining them .
Any help would be greatly appreciated.
Thanks
Get-ADComputer -Filter {name -like "*computer_name*"} | out-file C:\scripts\computers.txt
$body = Get-WMIObject Win32_LogicalDisk -filter "DriveType=3" -computer (Get-Content "C:\scripts\computers.txt") | Select SystemName,DeviceID,VolumeName,@{Name="Size(GB)";Expression={"{0:N1}" -f($_.size/1gb)}},@{Name="Free
Space(GB)";Expression={"{0:N1}" -f($_.freespace/1gb)}},@{Name="Free Space(%)";Expression={"{0:P2}" -f(($_.freespace/1gb) / ($_.size/1gb))}} | convertto-html
$emailFrom = "[email protected]"
$emailTo = "[email protected]"
$subject = "SQL Server Disk Space Reporting"
$smtpServer = "any_smtp.address.com"
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$MailMessage = new-object Net.Mail.MailMessage($emailFrom, $emailTo, $subject, $body)
$MailMessage.IsBodyHtml = $true
$MailMessage.ReplyTo = "[email protected]"
$smtp.Send($MailMessage)Fred has a good answer but I wanted to simplify this and make is easier to understand. How we format script makes seeing issues mch easier. Also using the pipeline makes the code more flexible.
Review the following:
$mailprops=@{
From='[email protected]'
To='[email protected]'
Subject='SQL Server Disk Space Reporting'
SmtpServer='any_smtp.address.com'
BodyAsHtml=$true
$body=Get-ADComputer -Filter {name -like "*computer_name*"} |
Get-WMIObject Win32_LogicalDisk -filter "DriveType=3" -computer $_.Name |
Select SystemName,
DeviceID,VolumeName,
@{Name="Size(GB)";Expression={"{0:N1}" -f($_.size/1gb)}},
@{Name="Free Space(GB)";Expression={"{0:N1}" -f($_.freespace/1gb)}},
@{Name="Free Space(%)";Expression={"{0:P2}" -f(($_.freespace/1gb) / ($_.size/1gb))}} |
ConvertTo-Html | Out-String
Send-MailMessage @mailprops -Body $body
Using $mailprops allows us to set a variable block at the beginning of the script or even in an external file.
Expanding the "select" statement this way makes it easy to see what is being formatted.
¯\_(ツ)_/¯ -
Drag files and emails from MS Outlook to Sharepoint 2013
We continually receive information, documents and files through MS Outlook that we need to share through our Sharepoint site. However, when we try to drag those documents and files from Outlook to Sharepoint it does not work. Instead I have to
drag the files to my desktop and then drag it into Sharepoint and then have to clean up the files from my already busy Desktop. Can the ability of dragging directly from Outlook into Sharepoint (including the actual email itself possibly) be investigated.
I think this would be a very useful feature.
Thank you
RayHi ray,By OOB its not possible to drag and drop files from outlook to share point.we need to save the outlook file in some whre desktop and can drag from there it self only.Please check the below links that explains more on drag and drop functionality.
http://expertsharepoint.blogspot.de/2013/12/how-to-upload-multiple-documents-in.html
Anil Avula[Partner,MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/
Maybe you are looking for
-
Basic script help for a newbie?!?!
Need help with a basic script, I need to display 5 input fields in a single dynamic field. And i need them to have a certain order of display, ie: input 1 is displayed on line 1, 2 on the next line, etc. any help would be appreciated I have been tryi
-
The "heat wave" on the screen happens when scrolling. It is driving me nuts!!!
-
when i try to download itunes 10 it freezes at about 75% i have tried closing everything down / restarting pc but it will not get any further than 75% please help!!!!!
-
AD and Local Network accounts take three attempts to log in successfully
Our lab's Mac Mini server is running a patched-up 10.9 + OS X Server (though this problem has persisted since 10.7) Our server is 'local' to our laboratory and serves 4-5 machines, 10-15 people. The server (and the connected machines) are bound to th
-
SAP installation isse - sap instance start error
Hi, I am trying to install sap ecc 60u ides. During start instance (22nd step of installation) sap couldn't start . sapinst log says: INFO 2007-04-22 09:02:55 State of instance TE2/DVEBMGS00 changed from ABAP: STARTING to ABAP: STARTING. ERROR 2