Idoc to flatfile and mail

Hello,
             I have a scenario  where i am converting the idoc to file and mailing the same after converting it to flatfile .I have used TransformMessageBean for doing so.Now I need to implement the TO Field (mail )dynamically based on the payload.
I tried to use the MultiMapping by using mail definition provided by XI ,but it results in mapping error.\
Can somebody guide me on this.
Thanks in Advance
Rajesh

Hello,
           I  have tried to do the same with the MessageTransformBean and two features are working fine independently.
1. Converted the file into Flatfile and mail
2. Execute the XSL Mapping for dynamic receiver.
Now i want to combine both above features i.e after transforming the content to flatfile ,i need to sent this file to  recipient based on payload field.
I tried to execute the same but i am stuck at XSLT error ,saying
com.sap.aii.af.ra.ms.api.RecoverableException: Error in XSLT Conversion: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 48, 44, 52(:main:, row:1, col:3):
Awaiting for replies
Rajesh

Similar Messages

  • Idoc to FlatFile and Flatfile to  Mail

    Hi all,
    I want to convert an Idoc into a FlatFile - this is no problem. But when the FlatFile is created I want to send the FlatFile via EMail as an attachment.
    How do I do this using Mail-Adapter ?
    I also thought to use an Unix Command to send the Email. With the file adapter it is possible to execute an Unix Command after the File was created.
    What is the better solution. And which Unix Commad do I have to use to send email (using SMPT).
    Many thanks.
    Elko

    hi elko,
    for sending a flat file as mail u use receiver mail adapter. so ur scenario will be file sender -- xi-- mail receiver.
    for this refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    and
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    [reward if helpful]
    regards,
    latika.

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

  • IDOC to Flatfile

    Hello expert!
    I have created a IDOC and now i want to pump the data from my IDOC to flat file! Is this possible? If Yes, please let me know how to do this and mail me to       [email protected]
    Thanks in Advance,
    MLN

    Hi,
    Use the function module IDOCS_OUTPUT_TO_FILE.
    There are other FM also available to send the data from IDOC to different systems.
    IDOCS_OUTPUT_TO_INTERNET   
    IDOCS_OUTPUT_TO_OWN_FUNCTION
    IDOCS_OUTPUT_TO_R2         
    IDOCS_OUTPUT_TO_R3         
    <b>Reward points if it helps.</b>

  • ALE distribution of HR master data to CRM - subtype CELL and MAIL

    Hello,
    Overview/Introduction:
    we are using the ALE distribution of HR master data to CRM. The distribution has already been set up and it is running. We know that the infotype communication (0105) is especially distributing the subtypes 0010 (e-Mail) and 0020 (telephone number). This e-Mail address and the telephone number are stored in the business partner in the CRM system.
    For this infotype 0105 there are also the subtypes CELL (cell phone) and MAIL (e-Mail address). Unfortunately this cell phone number and the mail address (from subtype MAIL) are not stored at the business partner in CRM.
    Our request is on the one hand to store the data from subtype CELL into the field mobile number of the business partner. And on the other hand we want to store the e-mail address of subtype MAIL at the business partner instead of subtype 0010.
    For some reason it seems that these requests canu2019t be setup within SAP standard.
    So we found SAP note 758426 which suggests to use the BAdI HRALEX_INBOUND and the report RH_ENHANCE_BP_TEMPLATE.
    Problem:
    Now the problem is that the BAdI does not get called! The BAdI is active! We tried to set break points -> unfortunately did not stop! And we also implemented an endless loop in the BAdI -> even with this the system did not u2018stopu2019!?
    Any ideas?
    Thank you,
    Roman

    Hi,
    First you need to create a distribution model using transaction BD64 : Edit > Model View > create.
    Then you will need to maintain fields for description and technical name. In partner box you need to enter the source system (HR) and the target system (FI) in the second field. Then you need to assign a message type and filter settings if you need it. You need to create this distribution model in source system (HR).
    After, still in BD64, go to environment > change partner profile or transaction WE20
    Select your target system and enter the corresponding message type ( HRMD_A or HRMD_ABA depends on your scenario) with the correct customizing (receiver port, packet size, idoc type, syntax check and output mode).
    Then please do the same things in your source system using WE20 for your source system and define your inbound parameters (Process code HRMD, processing by function module : use trigger immediately if it is not a production system or else trigger by background program and this case you will need to run report RBDAPP01 to process Idocs).
    Once done, then go back to your model view in your source system (BD64) and go to Environment > generate partner profiles. Then please go to Edit > Model View > distribute
    After all these settings done, it should work.
    Please also check out documentation :
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/82/933b90aa9e11d6b28800508b5d5211/frameset.htm
    Best Regards
    Christine

  • Idoc for materials and service for same contract.

    Dear All
       I have an scope where i have to migrate the data for material and services for the same contract.Is there an Idoc which does it so or otherwise ?Earlier in scope materials contracts have been loaded with the help of idoc type :- PURCONTRACT_CREATE01  and that of Service Contract using Idoc type :- BLAORD03.No customization is however permitted .Tcode for the same is ME32K.
    Regards
    Somnath

    Hi,
    It is not clear to me if you are working with sapscript or smartforms.
    You have only to find a variable which identifies the kind of invoice
    I do not know that variable so i use an example variable
    for sapscript:
    /: IF &VBDKR-FKTYP& = '1'
    /  INVOICE
    /: ELSE
    /  SERVICE ORDER
    /: ENDIF.
    In a smartform you can also do something like that.
    but There you work with conditions (eq, BOOLEAN)
    You have only to find the right variable
    success,
    Gr., Frank

  • Converting report to PDF and mailing

    Hi every one,
    I've gone through various threads and i'm aware of the Functional module's used to
    convert the report to pdf and mail it back.Like CONVERT_OTFSPOOLJOB_2_PDF, CONVERT_OTF_2_PDF and for mailing we have SEND_NEW_DOCUMENT_ATT_SEND_API1.
    I've worked with this but my problem is i'm not able to convet the report output to pdf.When i'm doing this i'm getting the output of my functional module converted to pdf like the number of header and item records available for the given data in the selection screen.
    Since all the threads i've gone through is converting the single internal table which has the output to pdf.
    But i've got the REUSE_ALV_HIERSQL_LIST_DISPLAY, hierarchial report which as known has got two internal tables.How to the same to this kind of report....More over is it possible to convert report to pdf in online without transfering it to spool and getting the spool id to convert it to pdf.........
    Any help or suggestions will surely be rewarded......
    Thanks in Advance.....

    Here is the complete code for you;
    It Converts spool request into PDF document and emails it.
    <b>http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm</b>
    Regards,
    Vishal

  • App store and mail won't open. Help!

    Just cleaned my iMac with Clean My Mac and now my app store and mail wont open. Please help.

    Delete the app from the machine, boot into recovery mode, and reinstall the OS.

  • App Store and mail don't work in mavericks on a Mac Pro mid 10

    App Store and mail don't work in mavericks on a Mac Pro mid 10
    During the day more and more functions of my MacPro (mid10) are down. Icons disappear, mail pop out every time, app store doesn't even come up, wifi connection to other devices like ipad and macbook air fails.
    Any suggestion to come over this terrible upgrade?

    App Store and mail don't work in mavericks on a Mac Pro mid 10
    During the day more and more functions of my MacPro (mid10) are down. Icons disappear, mail pop out every time, app store doesn't even come up, wifi connection to other devices like ipad and macbook air fails.
    Any suggestion to come over this terrible upgrade?

  • App store and Mail app are crashing in my mac air 10.9.5

    All my apps are crashing and i am not able to open any of them . App store for Software update and Mail app, Photos app are all crashing. I have OS X 10.9.5 in my system. I removed Parallels trail version and also Clean My Mac app, Still i have the issue,Please help me to resolve the issue,

    "CleanMyMac" purports to "clean up" "junk" files. What it really does is to corrupt the operating system and many applications.   
    The first thing you need to do is remove that software according to the developer's instructions. Never install it, or anything like it, again. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • IDocs for Invioce and Delivery

    Hi all,
    I have to send the customer the Invoice and Delivery confirmation for that order placed by him through an IDoc in background job.
    We are going for a standard IDoc for invoice and Delivery also but how to fill the data into that standard IDoc.
    1.Do we have standard report like (BD12, BD14, BD10 etc.)
    2.Should we develop a report to fill the data into that Idoc.
    Please help me to find standard report or please help me to write code for that standard IDoc.
    Thank you all in advance,
    Regards,
    Shalem.

    Hi Shalem,
    You need to do the following activities.
    - Setup condition record (t/code <b>NACE</b>) for shipping (V2) and billing (V3).
    - Setup output type (t/code <b>NACT</b>) for shipping (V2) and billing (V3) with transmission medium <b>A</b> (ALE).
    - Setup procedures (t/code <b>NACZ</b>) for shipping (V2) and billing (V3) if required.
    - Once the above setup are done, for any creation of billing and shipping will create entries into table <b>NAST</b> (Message Status).
    - Then you can create IDoc using this standard program <b>RSNAST00</b>. Please ensure your ALE and IDoc configuration have been done such as BD64, WE20, WE21 and etc.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Help please-"Application Not Responding" for Safari and Mail

    I read in one discussion that if Safari is slow, you can go to Font Book and select the fonts with a bullet to get rid of duplicate fonts. I did that, and then decided to disable some japanese fonts I don't use.
    Now Safari and Mail don't work. Mail won't open at all, and Safari launches but doesn't load and I get the spinning wheel.
    I used Disk Utility to fix permissions, and that didn't solve the problem, and now my Disk Utility also says "Application Not Responding".
    I also went back to Font Book and enabled all the fonts I disabled. Still nothing.
    ( I can use Netscape-so it's only Mac applications I guess)
    Any help is very much appreciated.
    Thanks!
    powerpc g4   Mac OS X (10.3.2)  

    I read in one discussion that if Safari is slow, you
    can go to Font Book and select the fonts with a
    bullet to get rid of duplicate fonts. I did that, and
    then decided to disable some japanese fonts I don't
    use.
    Now Safari and Mail don't work. Mail won't open at
    all, and Safari launches but doesn't load and I get
    the spinning wheel.
    I used Disk Utility to fix permissions, and that
    didn't solve the problem, and now my Disk Utility
    also says "Application Not Responding".
    I also went back to Font Book and enabled all the
    fonts I disabled. Still nothing.
    ( I can use Netscape-so it's only Mac applications I
    guess)
    Any help is very much appreciated.
    Thanks!
    powerpc g4 Mac
    OS X (10.3.2)
    Wow- i fixed it! I remembered that when I was in Font Book originally, there were some fonts disabled, and I enabled them.
    I couldn't remember EXACTLY which ones, but I disabled some I thought were the ones, and VOILA!
    Mail works, Safari works...what a relief!
    And it only took me HOURS...oh well.
    If this might help anyone, here are the fonts I disabled again-
    BeteNoirA Regular
    BoyzRGross
    Chrome Yellow
    Coventry Garden
    FancyPants
    HardlyWorthit
    PleasinglyPlump
    RaggMoppRegular
    Anyone know if I should throw these fonts away? maybe a stupid question, but I'm not very good at this stuff and hesitate to change anything.
    powerpc g4 Mac OS X (10.3.2)

  • Software update and now Safari and Mail open and then close immediately

    We installed the latest 8-1 software updates on our G4 and Cube.
    Now Safari and Mail open and then immediately quit on the Cube - but no peroblems are experienced on the G4.
    Do I need to reinstall Tiger and start over?

    A couple of things to try before taking those drastic measures.
    1. Repair permissions, restart.
    2. Boot with the install disk, launch Disk Utility, and verify/repair the disk.
    3. Boot into safe mode and see if it works there.
    4. Reinstall the 10.4.7 COMBO update, restart, repair permissions, and restart.
    If those don't work, consider Archive & Install rather than an Erase & Install. See http://www.apple.com/support/tiger/install/ for details.

  • Safari and mail will not load but i am connected to internet and can download form itunes and other sourses is that HD failure?

    Safari and mail will not load but i am connected to internet and can download form itunes and other sourses is that HD failure?  any suggestions ?  verify disk says its OK

    iOS 4: Updating your device to iOS 5 or later - Support - Apple
    iOS: Unable to update or restore - Support - Apple
    iTunes for Windows: iTunes Store connection troubleshooting
    See if any of these three may help.

Maybe you are looking for

  • How to restrict vendor open items to be picked to 45 during F110 process

    Hi experts, My client want to restrict vendor open items to be picked to 45 max during F110 payment run for each vendor. For example: If vendor " xyz" is having 60 open items at the time of payment run, it should allow max  to pick only 45 open items

  • Photo not maintaining alignment in preview! HELP!

    I'm tyring to make a portfolio website for film. I have several thumbnails which I've laid out pretty precisley. It looks great in design mode but when I preview it the picture farthest to the right goes way over to one side (I've attached a screenca

  • Can't get Edge Inspect CC to work

    I am using OSX Mavericks, Chrome 34, and Edge Inspect CC and I can't get the Chrome extension to talk to the (running) Edge Inspect. Don't know if it helps in the diagnosis, but I do have Chrome Canary also installed on my system. Suggestions?

  • Scrowing with touchpad not working when pdf file is opened in one of the the browsers tabs

    When I have a .pdf open from one of the browser's tabs I am not able to scroll with my touch pad in the rest of the browser's tabs. Once I close the tab with the pdf everything is working fine. I using Firefox on my Toshiba Satellite Pro laptop.

  • Rotate a Object Around Center Axis

    Hey peoples, new to flash here.  I'm using CS3 with ActionScript 3.0.  What I want is simple, and I've done some searching but nothing that can get me the right results.  I'm going to post a link that does exactly what I want: http://www.newgrounds.c