Specific smarthost based on email header data

Hi All
We plan on upgradeing to Exchange 2010 and then 2013. Our requirement is that we have a service provider who handles our bulk email and one that handles our non-bulk email
My Question is - in 2010 or 2013 Can Exchange be configured to inspect the email and based on a custom string in the header of the email (eg. X-Header BULKMAIL)  use a specific Send Connector who should use a specific smarthost
Thanks in advance

Hello,
Is there any update on this thread?
Thanks,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Simon Wu
TechNet Community Support

Similar Messages

  • IDoc to File with different file name and data based on the IDoc header dat

    Hi,
    I got a requirement to implement IDOC to file senario.  In this the Converted file should have the file name and file content based on IDoc Header data.  Means If one of the IDoc header field value is
    'A'  - then the file name recieved by reciever system should be 'A.txt' and with the columns A  B  C  D  F.
    'B'  - then the file name recieved by reciever system should be 'B.txt' and with the columns C  D  F.
    In both the case IDoc message type is same.
    Please suggest me what i need to do to achieve this.
    Thanks in Advance. ...
    Regards
    Sri

    Hi,
    As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same.  Each IDoc has one header record with the file name. Base on the  name in the IDoc header record, file needs to be created with different columns and file name. Means..
    IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent'  'child' 'descripion'.
    IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
    IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No'  'Materail' 'Description'.
    Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
    Thanks for your all help..
    Thanks & Regards
    Sreeni

  • OIM - Email notification to a specific user based on a dynamic rule

    Hello, After creation of account in a particular target resource I need to send an email to a specific user based on the location of the user (e.g area admin).
    In the notification tab of process tasks, I see only "Assignee", "Requestor", "User", "User Manager"? How can I achive the above specified requirement?
    Before posting this question, I tried to search the forum for any previous posts related to this. But I couldn't find any. May be I was not searching with right key words.
    Any help is appreciated. Thanks in advance.

    You'll need to custom code an adapter to send the email, then you can send to any user you want. Create a new task and trigger it off the completion response code. You can use the following apis:
    tcEmailNotificationUtil sendMail = new tcEmailNotificationUtil(ioDatabase);
    sendMail.setBody("Type your body here or use a string variable");
    sendMail.setSubject("Type your subject here or use a string variable");
    sendMail.setFromAddress("[email protected]");
    sendMail.sendEmail("[email protected]");
    Just populate the above pieces with the information needed.
    -Kevin

  • Date label in mail app on iPad not same as actual date in email header

    Hello everyone
    I've been experiencing some problems with my iPad's email, the date label (displayed in blue) when viewed in the list of emailed received, doesn't correspond to the actual email's date as displayed in the email's header. For example, when viewing the list of emails, the blue label shows the date as 'Yesterday' when the actual date the email was received at was 4 days ago! This also happens in a different way, the label shows 'Sunday' when the day it was received on was in fact Wednesday..this is becoming quite annoying as it keeps pushing the old email along with the emails that were actually recently received.
    I'd appreciate any suggestions for solving this issue..
    thanks!

    yes I have, also checked the time zone, just to be sure ;-)
    it just happened suddenly and I'm not quite sure what triggered it..
    anyway, thanks for your response.. I'd love to hear any other suggestions you might have..

  • How do you send an email to a specific person based on if a particular check box is checked?

    How do you send an email to a specific person based on if a particular check box is checked?

    Try the LiveCycle Designer forum.

  • Network based and a-gps, data use tests

    i was trying to find this kind of info, but only found others asking.
    i hope this is useful info for others, especially while roaming.
    skip to the bottom for conclusion,
    this is the process i took:
    i called nokia tech support,
    their phone support his horrible,
    the people on the phone don't actually know anything, and have to look up everything you ask them.
    they were the worst.
    i emailed nokia tech support.
    my message was:
    "i would like to know the difference between assisted gps positioning, and network based positioning. these are 2 of the 4 options on my nokia e66 for positioning methods. i would like to know if network based positioning uses internet data from my service provider to obtain my gps position. i am especially concerned with this function while i'm roaming internationally, as i do not want to be charged for roaming data use."
    in about half hour they responded w/ an answer, and then 45 min after that someone else responded w/ an answer.
    the first response, minus the hello's etc. was:
    "In response to your email, Assisted GPS and Network Based positioning methods generate costs related to data traffic so you will be charged for data use. Only "normal" GPS and Bluetooth GPS do not generate additional costs related to data traffic.
    Normal GPS is quite slow and does not work indoors. Therefore, it is recommended to enable at least A-GPS to get a faster position outdoors.
    Network based and Wi-Fi positioning also allow you to update your position inside buildings, but they cannot be used for navigation."
    the 2nd response was:
    "In response to your inquiry, the difference between Assisted GPS positioning (A-GPS) and Network based positioning is that,  A-GPS uses satellites while Network based positioning is based on information of your cellular network environment. It allows you to update your position inside buildings, but they cannot be used for navigation. Both positioning methods generate costs related to data traffic (unless you have configured the device to use Wi-Fi connection to make the internet connection). The cost may vary while you are on roaming. Kindly contact the service provider for information about data transmission costs."
    i can also respond w/ more questions, but instead did some tests, starting with sitting home, indoors, and eventualy moving to a window w/ lots of sky.
    test 1:
    i enabled:
    integrated gps
    network based
    assisted gps
    opened maps,
    set maps to be offline,
    set default internet access point to my home wlan network,
    closed maps,
    cleared all counters and the log on the phone's communication log.
    opened maps
    there is a pink circle around the area i may be in,
    the icon that would show gps satellite strength, changes to show the cell phone antenna icon.
    but the packet data counter is sending/receiving a total of around 3-8kb immediately, and over the course of time, it keeps adding up, every 1-2 minutes, and it is shown as packet data to/from the access point "at&t internet"
    over the course of ten minutes, it's been about 43kb.
    and i can tell on the phone's home screen that the packet data connection becomes active when it does.
    the maps kb indicator still says 0.0kb, with a line through the double arrow packet data symbol.
    test 2:
    now i exited maps,
    cleared the counters and logs
    i turned off a-gps.
    enabled only integrated gps and network based.
    i open maps,
    the same thing is happening as with the assisted gps on, except i connected to my home wlan once, in the middle of connecting to at&t internet 10 or so times.
    everything else is happening the same.
    test 3:
    i exited maps,
    cleared the counters and logs.
    enabled only integrated gps.
    i open maps, and there is no evidence of packet data connection, or wlan connection.
    nothing is showing up in the logs or packet counters, and there is no pink circle around where i may be.
    if i set maps to go online, w/ my wlan as the access point, or at&t internet, their respective icons show up on maps, as well as the phone's home screen.
    the phone's log show respective connections are made but w/ 0.0kb, and the phone's packet counter, as well as the maps kb usage, say 0.0kb.
    test 4:
    set maps to offline, w/ my wlan as access point.
    exited maps,
    turned phone off for a bit to test gps from cold start.
    turned on phone,
    cleared counters/logs,
    enabled only assisted gps and integrated gps.
    open maps, there's no pink circle around where i may be, just the red dot of where it thought i last was.
    there's about 4-5kb of data transfer,
    then i bring the phone to the window where there's a lot of clear sky, and my location is found pretty fast.
    i know that w/o assisted gps, w/ only integrated gps, it takes a while to get the gps signals.
    i went back and forth to/from the window, and there was packet data use again only once more, not continuously like w/ network based positioning.
    so to conclude my tests,
    setting the maps to be offline, still uses a-gps and network based positioning.
    network based uses a more data, continuously,
    which is the opposite of what i thought, i thought a-gps would use more, so i was using network based on and a-gps off while in canada. whoops.
    using assisted gps uses about 5-10kb, which, when roaming, according to at&t, they charge 1.95cents/kb.
    might be worthwhile for getting a quick gps signal, nothing worse than waiting forever for it to connect.
    the only way to be completely clear of data use is disable network based and assisted gps, or set the phone to offline mode.

    A-GPS: This uses information from cell network to get a rough idea of where you are. It then uses this information to figure out which satellites to look for. Result is a faster satellite lock. So A-GPS uses a few kB of data to get an initial position, but navigation is done using GPS satellites, which does not require ANY data connection.
    Network based: This uses information from the cell network to plot the current position when GPS satellite signal is not available, ie indoors, in a tunnel, etc. Position info derived from the cell network is not as accurate as that from GPS satellites, but serves as a stopgap until GPS signal can be re-acquired. Network based positioning used your data connection EACH TIME the satellite lock is lost. So the amount of data used is dependent on the quality of access you have to the GPS satellites. If you don't lose the connection to the GPS satellites, then you won't use any data.
    The ‘offline’ option within the Nokia Maps app only refers to street, POI, etc searches, NOT to A-GPS, Network based positioning or to connecting with the GPS satellites.
    If you want to navigate without using ANY data connection, set A-GPS off AND set Network based positioning off AND set the Internet option in Nokia Maps to Offline. Do this and you will not use any of your data connection allowance when navigating. There is no need to put the phone into flight mode.
    If I've helped you, you can thank me by clicking the green 'kudos' star on my post. Cheers.

  • How to display text value in the header data (Header text) of credit memo

    Hi...
    I need to display the text value of the text field in the header text of the header data in credit memo.
    The text values are stored in a ztable and i need to display it based on the billing document stored in vbrk (zfield) that was inserted during the creation of credit request..
    Appreciate your help on how to do this...
    Thansk and will surely reward the points..
    Kanthi..

    Hi kanthi ,
                   Read the value from Z Table and during the creation of cedit memo check out for some exit where u the value from The zTABLE AND use function module SAVE_TEXT with object and id in the header text .
    Please award if useful.

  • BADI ME_PROCESS_PO_CUST for changing header data

    Hello Experts,
    I'm using Method PROCESS_HEADER in Badi ME_PROCESS_PO_CUST in order to change some header data.
    I want to change header data depending on the partner data which are on header level.
    It works fine as long as there are data changed in the header or item level and not only on the partner screen.
    The method in this Badi isn't processed if only partner data are changed. But for me it is necessary to set a special field on the header depending on the partner data.
    Regards,
    Sven

    Hi,
    Firstly, for changing Header data without any INSERT/UPDATE?MODIFY statement, badi - ME_PROCESS_PO_CUST  will not be useful.
    As method you mentioned has no header parameters under CHANGING / EXPORTING clause.
    You can use the badi which has the parametrs you want in either change/ Export mode. It can be defined under table also.
    Below is the list of important badis gettign called, however none of them contains header values in change/export clause.
    ME_CCP_ACTIVE_CHECK
    MD_STOCK_TRANSFER
    ME_DEFINE_CALCTYPE
    ME_PO_PRICING
    ME_FIELDSTATUS_STOCK
    ME_COMMITMENT_STO_CH
    ME_COMMITMNT_PARKING
    ME_INFOREC_SEND
    ME_CHECK_SOURCES
    ME_PURCHDOC_POSTED
    Instead you can use enhacement MM06E005  Customer fields in purchasing document.
    Create a project under Transaction CMOD.
    Assign enhancement as Project component.
    You'll find Exit 012. At time of save you can change header im_ekko based on you parterner data tab.
    Regards,
    Amee.

  • Setting Message-ID email header from Oracle B2B backend in 11g

    Hi,
    Is it possible to set the Message-ID from the backend application via JMS header? Is there a JMS header exposed to set this message id in case of email transport? Will the email server able to honor this value that we set and send to Oracle B2B in 11g and send it as the email header (Message-ID)? Is this possible?
    The idea here is if my backend application can set this Message-ID value of the request message, then the response message which would be a reply to the initial message will have the value of the Message-ID in the property in-reply-to. Now if this in-reply-to is also exposed an a JMS header to the backend application, then i will be able to co-relate the request and the response messages.
    Please let me know at the earliest if this would be possible.
    Regards
    Kavitha

    Kavitha,
    Is it possible to set the Message-ID from the backend application via JMS header? Yes, please set the MSG_ID header (jca.jms.JMSProperty.MSG_ID). It will be used as Message-ID in Wire Message.
    , then i will be able to co-relate the request and the response messages.Generic Mail does not support correlation as of now. You may consider logging an enhancement request with support. If you are exchanging XML messages then you may consider using content based correlation at B2B.
    Regards,
    Anuj

  • Acrobat 7 Pro - form won't submit via email, and data won't submit either

    Hi. I am trying to create a form for end users at my website to be able to open the form in Reader, enter their data in the form, and click on the "Submit" button to email it back to me (or any other way it can come back would be okay... as long as I can get the data).
    In doing some research on program software needed to do this, I came to the conclusion I needed to have the Adobe suite (Acrobat Pro 7, Distiller 7, and Designer 7), and so I spent a lot of money obtaining this software. I also have just downloaded Reader 9.0 (the most recent).
    Here are some particulars:
    1. Following directions Ive found on Adobe online, and the Help files as well as in this forum, in the form (in Designer), I have the Submit button going to a URL of mailto:[email protected].
    2. I've saved the form as a Static PDF Form File in Designer. Things are going well.
    3. The form works great in PDF Preview all form fields are setup and act correctly. Super!
    4. I FTP my file to the appropriate website, where once the link to the form is clicked the form opens (in Reader) for my users. Perfect!
    5. The user then opens the form, and before they start to fill it out, a popup shows this:
    Sending Data Fields By Email. Please note: This form contains an email submit button. Clicking this button will email a data file containing data you type into this form. However, the form itself will not be sent. Remember, you cannot save a completed copy of this form with Adobe Reader 9
    Then you have the option to Dont show again and a button to Close.
    6. After clicking Close, the user is then able to fill in the fields. These fields are standard fields, nothing exceptional, nothing fancy, just text.
    7. At the end of the form is the Submit button. When a user clicks this, NOTHING happens. Even when you try to do the File/Send thing, the form will send, but none of the data. Im not so happy right now L
    8. In this forum, I now see directions to Reader Enable in Adobe Pro (I do have Adobe Pro). The directions say Advanced/Enable Reader (as in one of the above posts is stated, 'Advanced > Enable Usage Rights in Adobe Reader'). However, I do not have an Enable Usage Rights in Adobe Reader under my Advanced tab. So, continuing to read in other similar posts, I find others dont have this option either so, one question is, where is it??? ;-)
    9. Now I see what appears to be another piece of Adobe software that I need, that is LiveCycle? I think Im getting in over my head, as I dont understand
    I am new to all this, and am doing my best, but now Im totally confused. All I want to do is have my measly little form open up and have people fill it in and email it back to me so that I can take that data and work with it.
    I run (or am trying to run) a non-profit (i.e., Im paying 100% of the bill) website for local Humane Societies who can facilitate offering online Adoption Applications (this is the form Im trying to make happen). I got the form made, and its fillable its just not being able to be submitted online; and when it DID get submitted (first try or so), it came through with no data, and the .xml file data wouldnt populate.
    Bottom line question: Is this, what Im trying to do, feasible or not? Im just a simple soul trying to help out some animals. Im not a programmer, so if thats what it takes I guess Im gonna have to give up and forget it. I only wanted to help make things easer for folks to adopt a pet.
    Any help by anyone would be totally and gratefully appreciated. Thank you.
    keywords: empty form, form not submitting, can't email form, data not transferring, no data in form, can't submit form, can't submit data

    Hi, and thank you for the reply.
    I've already spent several hundred dollars on getting Adobe Acrobat software, and was hoping there was some work-around on this? What did people do before LiveCycle for instance when they needed to get data from submitted forms via email?
    Please don't misunderstand, but as in my example described above, what can a 3rd party do for me (to enable more 'robust rights') that I can't do myself? I'm trying to figure out if I have the software to do it, paid for the software that is "supposed" to do it, why then I need to pay more money to someone else to make the software do what it's supposed to? I sure don't want to have to pay someone to fix it each time I need to make a change in my form for instance...
    I'm confused I guess - I suppose the purpose of my asking on the forum here was to hopefully gain some know-how as how to go about doing this myself vs. paying someone else to do it for me. I want to learn, but just don't know where to start. Or, maybe the software I have just doesn't do what I believed it was capable of doing?
    Guidance and/or suggestions from all on this point would be very appreciated. Thank you.

  • Is terms of delivery and payment item data or header data

    Hello Gurus,
           is terms of delivery and payment item data or header data ? where does it configure ?
    Many thanks,
    Frank

    Dear Frank
    It is at header level only.  Whatever datas you maintain in customer master, by default, it will flow both in header and item level.  However, if you wish to change at item level, depending upon the requirement, you may do so based on which, there will be document split.
    thanks
    G. Lakshmipathi

  • Excel download problem :--- Header data duplicating in unexpected  columns

    Guys, 
       I   am  able  to  download  the  data onto  Excel  with   Header  data  but  the Header data duplicating in unexpected  columns RHS  upto  all  the  line item columns  below....Below  is  partial   excerpt... 
    Please help....
    DATA:
           BEGIN OF excel_wa,
                posnr               TYPE  vbap-posnr,           "Line Item
                matnr               TYPE  vbap-matnr,           "Mat#
                pmatn               TYPE  vbap-pmatn,           "Pric Mat
                zansicat            TYPE  zmarall-zansicat,     "AnsiCat#
                zansigrd            TYPE  zmarall-zansigrd,     "Grade
                zcurrvaltnarea      TYPE  zco002-zcurrvaltnarea,"Val Area
                zcurrcstusd         TYPE  zco002-zcurrcstusd,   "Cost$
                zzbrndnm            TYPE  mara-zzbrndnm,        "Brand
                zqedscgrp           TYPE  zglbprc-zqedscgrp, "QE Disc Grp
                mstav               TYPE  mara-mstav,        "Status
                prodh               TYPE  vbap-prodh,        "Prod Heir
                kwmeng              TYPE  vbap-kwmeng,       "Qty
                lprc                TYPE  konv-kbetr,  "List Price ZBP1
                sprc                TYPE  konv-kbetr,  "Std Pric ZNAA,ZNAX
                netpr               TYPE  vbap-netpr,  "Quot price
                mrgn                TYPE  konv-kbetr,  "margin%
           END   OF excel_wa,
           BEGIN OF sema_wa,
            posnr            LIKE ws-xxlt VALUE 'STRDFT',
            matnr            LIKE ws-xxlt VALUE 'STRDFT',
            pmatn            LIKE ws-xxlt VALUE 'STRDFT',
            zansicat         LIKE ws-xxlt VALUE 'STRDFT',
            zansigrd         LIKE ws-xxlt VALUE 'STRDFT',
            zcurrvaltnarea   LIKE ws-xxlt VALUE 'STRDFT',
            zcurrcstusd      LIKE ws-xxlt VALUE 'STRDFT',
            zzbrndnm         LIKE ws-xxlt VALUE 'STRDFT',
            zqedscgrp        LIKE ws-xxlt VALUE 'STRDFT',
            mstav            LIKE ws-xxlt VALUE 'STRDFT',
            prodh            LIKE ws-xxlt VALUE 'STRDFT',
            kwmeng           LIKE ws-xxlt VALUE 'N00ADD',
            lprc             LIKE ws-xxlt VALUE 'N02ADD',
            sprc             LIKE ws-xxlt VALUE 'N03ADD',
            netpr            LIKE ws-xxlt VALUE 'N02ADD',
            mrgn             LIKE ws-xxlt VALUE 'N00ADD',
          END OF sema_wa,
          BEGIN OF clhd_wa,
            posnr            LIKE ws-xxlt VALUE 'LineItem#',
            matnr            LIKE ws-xxlt VALUE 'Mat#',
            pmatn            LIKE ws-xxlt VALUE 'VC Mat#',
            zansicat         LIKE ws-xxlt VALUE 'AnsiCat',
            zansigrd         LIKE ws-xxlt VALUE 'Grade',
            zcurrvaltnarea   LIKE ws-xxlt VALUE 'ValnArea',
            zcurrcstusd      LIKE ws-xxlt VALUE 'Currency',
            zzbrndnm         LIKE ws-xxlt VALUE 'Brand',
            zqedscgrp        LIKE ws-xxlt VALUE 'QE disc',
            mstav            LIKE ws-xxlt VALUE 'Status',
            prodh            LIKE ws-xxlt VALUE 'Prod Heir',
            kwmeng           LIKE ws-xxlt VALUE 'Qty',
            lprc             LIKE ws-xxlt VALUE 'List Pric',
            sprc             LIKE ws-xxlt VALUE 'St.Disc',
            netpr            LIKE ws-xxlt VALUE 'Quote Price',
            mrgn             LIKE ws-xxlt VALUE 'Margin%',
         END OF clhd_wa,
         BEGIN OF hdtxt1_wa,
            vbeln      LIKE ws-xxlt VALUE 'Quotation#',
            kunnr      LIKE ws-xxlt VALUE 'Quote Date',
            kvgr3      LIKE ws-xxlt VALUE 'Rep Date',
            pltyp      LIKE ws-xxlt VALUE 'Pric List Typ & Currency',
            waers      LIKE ws-xxlt VALUE 'Sold To',
            knuma      LIKE ws-xxlt VALUE 'Ship To',
            datab      LIKE ws-xxlt VALUE 'Top Parent',
            datbi      LIKE ws-xxlt VALUE 'Sales Org/Sales Dist/CPA',
            note       LIKE ws-xxlt VALUE 'Net Sales',
         END OF hdtxt1_wa,
         BEGIN OF hdtxt2_wa,
            vbeln      LIKE ws-xxlt VALUE '',"Quotation#',
            kunnr      LIKE ws-xxlt VALUE '',"Quote Date',
            kvgr3      LIKE ws-xxlt VALUE '',"Rep Date',
            pltyp      LIKE ws-xxlt VALUE '',"Pric List Typ & Currency',
            waers      LIKE ws-xxlt VALUE '',"Sold To',
            knuma      LIKE ws-xxlt VALUE '',"Ship To',
            datab      LIKE ws-xxlt VALUE '',"Top Parent',
            datbi      LIKE ws-xxlt VALUE '',"Sales Org/Sales Dist/CPA',
            note       LIKE ws-xxlt VALUE '',"Net Sales',
         END OF hdtxt2_wa.
    DATA:
          ivbap      LIKE  STANDARD TABLE OF ivbap_wa,
          imat       LIKE  STANDARD TABLE OF mat_wa,
          icurr      LIKE  STANDARD TABLE OF curr_wa,
          ikonv      LIKE  STANDARD TABLE OF konv_wa,
          ivbpa      LIKE  STANDARD TABLE OF ivbpa_wa,
          ikna1      LIKE  STANDARD TABLE OF kna1_wa,
          iresult    LIKE  STANDARD TABLE OF result_wa,
    *Excel tables
          iexcel     LIKE  STANDARD TABLE OF excel_wa,
          isema_wa   LIKE  gxxlt_s,
          it_sema    LIKE  STANDARD TABLE OF gxxlt_s,
          ihkey_wa   LIKE  gxxlt_h,
          it_hkey    LIKE  STANDARD TABLE OF gxxlt_h,
          iotxt_wa   LIKE  gxxlt_o,
          it_otext   LIKE  STANDARD TABLE OF gxxlt_o,
          iptxt_wa   LIKE  gxxlt_p,
          it_ptext   LIKE  STANDARD TABLE OF gxxlt_p,
          ivkey_wa   LIKE  gxxlt_v,
          it_vkey    LIKE  STANDARD TABLE OF gxxlt_v.
    *Field-Symbols
    FIELD-SYMBOLS:
          <vbap>  LIKE   ivbap_wa,
          <vbpa>  LIKE   ivbpa_wa,
          <mat>   LIKE   mat_wa,
          <sema_wa>,
          <clhd_wa>,
          <hdtxt1_wa>,
          <hdtxt2_wa>.
    *Constants
    CONSTANTS:
          c_auart   TYPE  vbak-auart  VALUE  'AG', "AG = Quotn
          c_parvw1  TYPE  vbpa-parvw  VALUE  'AG',
          c_parvw2  TYPE  vbpa-parvw  VALUE  'WE',
          c_parvw3  TYPE  vbpa-parvw  VALUE  'ZT',
          c_kappl   TYPE  konv-kappl  VALUE  'V',
          c_kschl1  TYPE  konv-kschl  VALUE  'ZBP1',
          c_kschl2  TYPE  konv-kschl  VALUE  'ZNAX',
          c_kschl3  TYPE  konv-kschl  VALUE  'ZNAA',
          c_psize   TYPE  i           VALUE  65535.
    *&      SELECTION-SCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE  text-001.
    SELECT-OPTIONS:
        s_vbeln  FOR  ws-vbeln NO INTERVALS NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK a.
    *&      AT SELECTION-SCREEN.
    AT SELECTION-SCREEN.
      PERFORM validate_screen_entries.
    START-OF-SELECTION.
      PERFORM gather_quot_data.
      PERFORM gather_mat_data.
      PERFORM gather_ansi_data.
      PERFORM gather_customer_data.
      PERFORM gather_price_data.
      PERFORM process_consolidate_data.
    TOP-OF-PAGE.
      PERFORM write_header_data.
      PERFORM write_column_heading.
    END-OF-SELECTION.
      SET PF-STATUS 'XLS'.
      PERFORM display_output.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'XLS'.
          LOOP AT iresult INTO result_wa.
            CLEAR excel_wa.
            excel_wa-posnr       = result_wa-posnr.
            excel_wa-matnr       = result_wa-matnr.
            excel_wa-pmatn       = result_wa-pmatn.
            excel_wa-zansicat    = result_wa-zansicat.
            excel_wa-zansigrd    = result_wa-zansigrd.
            excel_wa-zcurrvaltnarea = result_wa-zcurrvaltnarea.
            excel_wa-zcurrcstusd = result_wa-zcurrcstusd.
            excel_wa-zzbrndnm    = result_wa-zzbrndnm.
            excel_wa-zqedscgrp   = result_wa-zqedscgrp.
            excel_wa-mstav       = result_wa-mstav.
            excel_wa-prodh       = result_wa-prodh.
            excel_wa-kwmeng      = result_wa-kwmeng.
            excel_wa-lprc        = result_wa-lprc.
            excel_wa-sprc        = result_wa-sprc.
            excel_wa-netpr       = result_wa-netpr.
            excel_wa-mrgn        = result_wa-mrgn.
            APPEND excel_wa TO iexcel.
          ENDLOOP.
          PERFORM set_up_xxl_structures.
          PERFORM download_xxl.
        WHEN OTHERS.
      ENDCASE.
      FREE: ivbpa, imat, ikna1, ivbap, ikonv, iresult, ws.
    *&      Form  set_up_xxl_structures
          text
    FORM set_up_xxl_structures.
      REFRESH: it_otext, it_sema, it_hkey, it_vkey.
      CLEAR:   result_wa, ivbpa_wa, it_otext, ws.
      MOVE  sy-repid  TO ws-title-repid.
      MOVE 'Section'  TO ws-title-reppart.
      WRITE sy-uzeit  TO ws-title-uzeit USING EDIT MASK '__:__'.
      MOVE  ws-title  TO ws-xxl-title.
      READ TABLE iresult INTO result_wa
                         WITH KEY vbeln = s_vbeln-low.
      READ  TABLE  ivbpa INTO ivbpa_wa
                         WITH KEY vbeln = s_vbeln-low
                                  parvw = 'AG'.
      CONCATENATE ivbpa_wa-kunnr '/'
                  ivbpa_wa-name1 INTO ws-soldto.
      CLEAR ivbpa_wa.
      READ  TABLE  ivbpa INTO ivbpa_wa
                         WITH KEY vbeln = s_vbeln-low
                                  parvw = 'WE'.
      CONCATENATE ivbpa_wa-kunnr '/'
                  ivbpa_wa-name1 INTO ws-shipto.
      CLEAR ivbpa_wa.
      READ  TABLE  ivbpa INTO ivbpa_wa
                         WITH KEY vbeln = s_vbeln-low
                                  parvw = 'ZT'.
      IF   ivbpa_wa-kunnr EQ space.
        CLEAR ivbpa_wa.
        READ  TABLE  ivbpa INTO ivbpa_wa
                           WITH KEY vbeln = s_vbeln-low
                                    parvw = 'AG'.
      ENDIF.
      CONCATENATE ivbpa_wa-kunnr '/'
                  ivbpa_wa-name1 INTO ws-tparent.
      DO.
        CLEAR: isema_wa, ihkey_wa, iotxt_wa, iptxt_wa, ivkey_wa.
        ASSIGN COMPONENT sy-index OF STRUCTURE hdtxt1_wa TO <hdtxt1_wa>.
        ASSIGN COMPONENT sy-index OF STRUCTURE hdtxt2_wa TO <hdtxt2_wa>.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
        CASE <hdtxt1_wa>.
          WHEN 'Quotation#'.
            <hdtxt2_wa> = 'Quotation#'.
          WHEN 'Quote Date'.
            <hdtxt2_wa> = 'Quote Date'.
          WHEN 'Rep Date'.
            <hdtxt2_wa> = 'Rep Date'.
          WHEN 'Pric List Typ & Currency'.
            <hdtxt2_wa> = 'Pric List Typ & Currency'.
          WHEN 'Sold To'.
            <hdtxt2_wa> = 'Sold To'.
          WHEN 'Ship To'.
            <hdtxt2_wa> = 'Ship To'.
          WHEN 'Top Parent'.
            <hdtxt2_wa> = 'Top Parent'.
          WHEN 'Sales Org/Sales Dist/CPA'.
            <hdtxt2_wa> = 'Sales Org/Sales Dist/CPA'.
          WHEN 'Net Sales'.
            <hdtxt2_wa> = 'Net Sales'.
        ENDCASE.
        MOVE : 1           TO ihkey_wa-col_no,
               sy-index    TO ihkey_wa-row_no,
               <hdtxt2_wa> TO ihkey_wa-col_name.
        APPEND ihkey_wa TO it_hkey.
        CLEAR ihkey_wa.
        CASE <hdtxt1_wa>.
          WHEN 'Quotation#'.
            <hdtxt2_wa> = result_wa-vbeln.
          WHEN 'Quote Date'.
            WRITE result_wa-erdat TO ws-dat1.
            <hdtxt2_wa> = ws-dat1.
          WHEN 'Rep Date'.
            WRITE result_wa-repdt TO ws-dat2.
            <hdtxt2_wa> = ws-dat2.
          WHEN 'Pric List Typ & Currency'.
            CONCATENATE result_wa-pltyp '/'
                        result_wa-waers INTO <hdtxt2_wa>.
          WHEN 'Sold To'.
            <hdtxt2_wa> = ws-soldto.
          WHEN 'Ship To'.
            <hdtxt2_wa> = ws-shipto.
          WHEN 'Top Parent'.
            <hdtxt2_wa> = ws-tparent.
          WHEN 'Sales Org/Sales Dist/CPA'.
            CONCATENATE result_wa-vkorg  '/'
                        result_wa-bzirk  '/'
                        ivbpa_wa-kvgr3
                        INTO <hdtxt2_wa>.
          WHEN 'Net Sales'.
            <hdtxt2_wa> = result_wa-netwr.
        ENDCASE.
        MOVE : 2           TO ihkey_wa-col_no,
               sy-index    TO ihkey_wa-row_no,
               <hdtxt2_wa> TO ihkey_wa-col_name.
        APPEND ihkey_wa TO it_hkey.
      ENDDO.
      DO.
        CLEAR: isema_wa, ihkey_wa, iotxt_wa, iptxt_wa, ivkey_wa.
        ASSIGN COMPONENT sy-index OF STRUCTURE sema_wa TO <sema_wa>.
        IF sy-subrc NE 0.
          ASSIGN COMPONENT sy-index OF STRUCTURE clhd_wa TO <clhd_wa>.
          IF sy-subrc EQ 0.
            MESSAGE e193 WITH 'OFIL Structures out of synch-Contact IT'.
          ENDIF.
          EXIT.
        ENDIF.
        ASSIGN COMPONENT sy-index OF STRUCTURE clhd_wa TO <clhd_wa>.
        IF NOT <sema_wa> EQ 'NOSHOW'.
          ADD 1 TO ws-xxl-tabix.
          MOVE: ws-xxl-tabix   TO isema_wa-col_no,
                <sema_wa>(3)   TO isema_wa-col_typ,
                <sema_wa>+3(3) TO isema_wa-col_ops,
                ws-xxl-tabix   TO isema_wa-col_src.
          APPEND isema_wa TO it_sema.
          IF ws-xxl-tabix LE ws-xxl-vrtkeys.
            MOVE: ws-xxl-tabix TO ivkey_wa-col_no,
                  <clhd_wa>    TO ivkey_wa-col_name.
            APPEND ivkey_wa TO it_vkey.
          ELSE.
            ADD 1 TO ws-xxl-attcols.
            MOVE: ws-xxl-attcols TO ihkey_wa-col_no,
                  10             TO ihkey_wa-row_no,
                  <clhd_wa>      TO ihkey_wa-col_name.
            APPEND ihkey_wa TO it_hkey.
          ENDIF.
        ENDIF.
      ENDDO.
    ENDFORM.                    " set_up_xxl_structures
    *&      Form  download_xxl
          text
         -->P_IHQEXCEL  text
    FORM download_xxl.  "TABLES  iexcel STRUCTURE excel_wa.
      DESCRIBE TABLE iexcel LINES ws-xxl-count.
      ws-xxl-from = 1.
      ws-xxl-to = c_psize.
      DO.
        IF ws-xxl-from GT ws-xxl-count.
          EXIT.
        ENDIF.
        IF ws-xxl-to GT ws-xxl-count.
          MOVE ws-xxl-count TO ws-xxl-to.
        ENDIF.
        ADD 1 TO ws-xxl-suffix.
        MOVE ws-xxl-suffix TO: ws-xxl-name+6(2),
                               ws-xxl-title+36(2).
        CALL FUNCTION 'XXL_FULL_API'
             EXPORTING
                  n_vrt_keys       = ws-xxl-vrtkeys
                  n_att_cols       = ws-xxl-attcols
                  n_hrz_keys       = ws-xxl-hrzkeys
                  data_starting_at = ws-xxl-from
                  data_ending_at   = ws-xxl-to
                  filename         = ws-xxl-name
                  header_1         = space
                  sema_type        = 'X'
                  so_title         = ws-xxl-title
             TABLES
                  data             = iexcel
                  hkey             = it_hkey
                  online_text      = it_otext
                  print_text       = it_ptext
                  sema             = it_sema
                  vkey             = it_vkey
             EXCEPTIONS
                  data_too_big     = 1
                  file_open_error  = 2
                  file_write_error = 3
                  inv_winsys       = 4
                  inv_xxl          = 5.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE e193 WITH 'dim_mismatch_data'.
          WHEN 2.
            MESSAGE e193 WITH 'file_open_error'.
          WHEN 3.
            MESSAGE e193 WITH 'file_write_error'.
          WHEN 4.
            MESSAGE e193 WITH 'inv_winsys'.
          WHEN 5.
            MESSAGE e193 WITH 'inv_xxl'.
        ENDCASE.
        ADD c_psize TO: ws-xxl-from,
                                ws-xxl-to.
      ENDDO.
    ENDFORM.                    " download_xxl

    Hello Friend,
    You can use GUI_DOWNLOAD FM to get the excel header if that's the only specific requirement.
    [Download Excel including header |Download Excel including header;
    Hope this helps.
    BR,
    Suhas

  • Base line date field ( header data 2nd tab) to be made noneditable in MIRO

    Hi friends,
    My requirment is to make Base line date field ( header data 2nd tab) to be noneditable in Tcode MIRO .
    This base line date should be noneditable only for one specific company code.
    Help me with some clues.
    regards
    Sathish

    why cant you use a screen variant....In SHd0..
    also check this..
    [http://forums.sdn.sap.com/click.jspa?searchID=37685778&messageID=8389969]

  • Default Values For Foreign Trade Header Data

    Hello,
    I have defined a price condition (ZPFR) to gather the price from the company to the custom office (the customs office through which the goods enter or leave the country).
    I want that price condition to be determined in the pricing procedure in foreign trades. The fields in the access sequence are the Plant and the Customs office. In customizing, in the point “Default Values For Foreign Trade Header Data”, I have defined a line for the Departure country, the Destination Country and the proper values for the Office of exit, Export Custom Office and Office of destination (the same that I have selected in the condition record). But when I create a sale document, this condition does not determine because the Customs office seems not to have any value in the document. Does anybody what I am doing wrong?
    Thank you in advance,
    Silvia

    You require to do thenecessay configuration for Foreign Trade Data:
    IMG --> Sales and Distribution --> Foreign Trade/Customs --> Basic Data for Foreign Trade --> (Do the necessary configuration here)
    In most probability, it will not default, but it is required to be maintained in Invoice (based on configuration)
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Email $header problem - need help

    I have designed a mail processing script to send POST data
    captured by a form to an email address specified by $to. It has a
    subject line ($subject). Now I want to add a ‘from’
    line which is to contain the email address submitted as one of the
    POST form fields (volunteerEmailaddress). This is all done in PHP.
    I took a crack at it (see below). The $to line and the
    $subject lines work just fine. The $header displays fine in the
    email but only the first piece (From: Volunteer Applicant), not the
    second piece (volunteerEmailaddress).
    Can anyone see what I have coded incorrectly and suggest the
    correct code to do this?
    Thanks!
    Carver
    //mail processing script
    $to = '[email protected]';// use your own email address
    $subject = 'Volunteer Application';
    // create additional headers
    $headers = 'From: Volunteer Applicant';
    if (!empty($email)) {
    $headers .= '\r\nReply-To: $volunteerEmailaddress';

    CarverW wrote:
    > Regarding email header injection attacks -- I have
    followed the tutorials in
    > your book and have in the include file what you have in
    your book in the file
    > process_mail.inc.php
    That should be fine. A lot of people just pick up scripts
    from outdated
    books or websites. So I wanted to make sure you were aware of
    the
    potential danger. You obviously are. ;-)
    > Your book has been excellent for my "learing curve" The
    'agony' of Chapter 10
    > was well worth it. I DO have a basic understanding,
    pretty much of each code
    > line but do get caught up in the syntax when I
    customize!
    Thanks for the feedback. I promise, the agony does eventually
    turn into
    pleasure - at least it does for most people.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for