Setting value in 'FROM' field while replying the mail

Hi,
I am working on one issue, In component CRMCMP_CCS_EML, while replying the email, i need to read the 'TO' field and on the basis of that i need to set the value in 'From' field. How can I recognize that this is a reply and not a new email. Also, could anyone please describe me in detail as i never work on email component before.
Regards,
Kamesh Bathla

This issue has been resolved.
I got the message mode by using
message_mode = typed_context->mail->messagemode.
got all the options for from address using
lt_from_addresses[] = typed_context->mail->GT_DEFAULT_FROM_ADDRESSES[].
got the original email address using
lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
CALL METHOD lr_gdc->get_entity
EXPORTING
name = c_currinboxitem
RECEIVING
value = lr_inbox_item.
CALL METHOD lr_inbox_item->get_property_as_value
  EXPORTING
    iv_attr_name = 'SOF_RCP_ADDR'
  IMPORTING
    ev_result    = lv_original_mail

Similar Messages

  • Value '61218XZEF ' from field ANZVERTR is not convertible into the DDIC

    Hi All,
    I struggling with this error can anybody pls help me.
    <b>Value '61218XZEF ' from field ANZVERTR is not convertible into the DDIC
    data type DEC in data record 1 . The field content could not be  transferred into the typed transfer structure.</b>
    This is occuring only in Prod, i have tested the same in Dev & QA but i didn't get this error.
    here the R/3 field ANZVERTR of type DEC length 6 is assigned to infoobject 0UCCNTRCNT of type DEC length 17 ( data element /BI0/OIUCCNTRCNT).
    i dont think its a problem right coz the infoobject has same type and larger size.
    i have another 3 fileds with the same problem.
    Is it a problem in BW or probelm in data being uploaded from R/3 side. coz the hasn't received in BW yet. the error says " The field content could not be  transferred into the typed transfer structure"
    Even i have PSA in parallel but data hasnt even came to PSA.
    when i check job overview in R/3 i saw a msg " Function module /BI0/QI0UC_SALES_STATS_020001 does not exist"
    when i checked this FM with other guy( coz i dont have access) it is there and is active.
    Pls anybody help me.
    Regards
    Robyn.

    Hi Arvind,
    That filed is a keyfigure coming from standard datasource 0uc_sales_stats_02 it  uses various different tables, iam not able to figure out where is it comin from.
    Is it sure that the problem is in R/3 side???
    if it is a problem in BW at least that data should have come through to PSA right??
    keyfigures coming from std. datasources goes through various extraction programs, its not field to field mapping from R/3 to BW in case of key figures i guess. correct me if im wrong.
    Regards
    Robyn.

  • Where the set value come from

    where is the set value come from, can the value come from Servlet
    create or replace
    PACKAGE BODY TRIGGER_test as
    function setStudentNum(sn in varchar2) return varchar2 as
    Begin
      staff_num := sn;
      return ('Success');
    Exception
    When OTHERS then
      return ('Error');
    End setStudentNum;
    function getStudentNum return varchar2 as
    Begin
      if (staff_num is not null) then
       return (staff_num);
      else
       return ('undefine');
      end if;
    End getStudentNum;
    end TRIGGER_test;

    Hjava wrote:
    >i am assuming that the function trigger_test.setStudentNum() gets executed first which will initialize the staff_num variabl
    when and how?
    Some 'other' bit of code somewhere.  How do we know, as we don't have your application/process code.  There will be something somewhere that calls the setStudentName function, so that when the getStudentName function is called it can return a value.  Values don't just magically appear.
    The only time there may be some code that initializes a value (other than in the declaration of the variable itself) is in a package body execution section e.g.
    SQL> create or replace PACKAGE TRIGGER_test as
      2    function setStudentNum(sn in varchar2) return varchar2;
      3    function getStudentNum return varchar2;
      4  end TRIGGER_test;
      5  /
    Package created.
    SQL> create or replace PACKAGE BODY TRIGGER_test as
      2    staff_num varchar2(30);
      3    function setStudentNum(sn in varchar2) return varchar2 as
      4    Begin
      5      staff_num := sn;
      6      return ('Success');
      7    End setStudentNum;
      8
      9    function getStudentNum return varchar2 as
    10    Begin
    11      return (staff_num);
    12    End getStudentNum;
    13  begin
    14    staff_num := 'undefined';
    15  end TRIGGER_test;
    16  /
    Package body created.
    SQL> select trigger_test.getStudentNum() from dual;
    TRIGGER_TEST.GETSTUDENTNUM()
    undefined
    SQL> select trigger_test.setStudentNum('1234') from dual;
    TRIGGER_TEST.SETSTUDENTNUM('1234')
    Success
    SQL> select trigger_test.getStudentNum() from dual;
    TRIGGER_TEST.GETSTUDENTNUM()
    1234
    As you can see, the first time the package is instantiated in memory (the first time we call any function in it), the package body execution section is called which sets the variable to "undefined" in this example, before the function itself is called to return what the value is.

  • How to set a default "from" field on outgoing Mail message

    i read through the last few pages of this support forum and googled my topic but i havent found a suitable solution.
    in Mail v 3 (3.4) there is a "From:" field in any outgoing mail. very useful for those of us with multiple non-accounts and/or .Mac aliases. i generally set a specific outgoing mail server (so that field is removed from outgoing email).
    my problem is how to set a default outgoing email address so that my recipients always get from a certain (eg work) email address when i am at work. at work, anything i send, i want to show my work email without always having to manually select the "FROM" field in the outgoing email.
    ( aside: i had read that Mail version 3 was supposed to auto-select any reply so that the reply would come from the same email i orginally sent as. this does not work on my mac.)
    This problem is exacerbated as Mail auto-rotates between my 4 email accounts/aliases (which are all listed (correctly) in the FROM field. it would be great if this list could be fixed with a default FROM address.
    eg i send an email from my work email address (FROM: [email protected]) the next email i send will be rotated through my list of .mac aliases. i.e. the next email i send will not be from [email protected], but from [email protected] the next time it might move on to [email protected] or it might revert to [email protected]
    any thoughts on how to fix?
    i have tried deleting the home/library/preferences/com.apple.mail.plist. that is fine, but any .mac aliases (which i do use, but i dont want to be listed in the "FROM" field) are listed in the "FROM" field, and are auto-switched through my Mail again.
    i looked through Rules and Automator, but no obvious help there. any thoughts?

    Did you try Preferences > Accounts > Account Information and entering these other email aliases in the Email Address: field, separated by commas? That would give you a pop-down menu in the New Message window letting you choose which alias to use when sending an email.
    If you go to Preferences > Composing, there should be a pop-down menu near the middle of that window labeled "Send new mail from:" which will let you choose any email address you have entered in the Account Information field mentioned above, or "Account of last viewed mailbox" as the default.
    Mulder

  • HT201342 Where is the from field in a Mac mail message?

    From an Apple information document:
    You can send email from your @icloud.com address by following these instructions:
    Begin composing a new email on the device of your choice.
    Select the From: field in your message.
    Choose your @icloud.com address from the list of addresses.
    Compose your message and send it.
    On number 2, where is the from field in a Mac mail message?

    Is there any way to move the default location of the event editing panel from the upper left corner of the display to somewhere in the middle?
    Try to scroll while the editing panel is open

  • Subject field while creating the change request

    Hi All
    I want to populate the subject field in the change request by default.

    Hi
    The automatic population of the subject field while creating the CR through folloup transaction from Support message.
    Regards
    Kumar

  • Hello all,     I have a 6G iPod Nano that I currently use as my primary watch. A week or so ago I started to experience a blank white screen when I press the "sleep/wake" button instead of the watch face (I have it set to wake from sleep to display the cl

    Hello all,
    I have a 14.88G iPod Nano that I currently use as my primary watch. A week or so ago I started to experience a blank white screen when I press the "sleep/wake" button instead of the watch face (I have it set to wake from sleep to display the clock). When I hard reset it, it will come back fine and the screen will respond and work as normal, as soon as I manually put it to sleep by pressing the "sleep/wake" button and then try to wake it the same thing happens and I have a blank white screen that doesn't respond to touch gestures or anything.
    What I have tried so far to no avail:
    Numerous hard restarts (holding the "sleep/wake" button with the volume - button).
    Tried this: iPod nano (6th generation): Hardware troubleshooting
    Changed the watch face to display.
    Recharged the device overnight (without full discharge).
    Since none of this works I'm out of ideas. Eventhough I have a 6G Nano it should no longer be under warranty since I was sent it as a replacement for a different (older) product.
    Any ideas? Is this a known problem? Thanks in advance for any insight any of you could provide. Also, what time is it??
    Regards,

    Hey,
    I have the exact same problem as you have described. I also used my ipod as a watch but starting from today, whenever I unlock it the screen turns white until a reset is done. Even a factory reset through itunes didn't fix it.
    Have you found any solution?
    Bah, this is annoying.
    //Gubbar

  • Import photo's from IPhoto while keeping the created albums alive?

    Can I import photo's from IPhoto while keeping the created albums alive?

    Can I import photo's from IPhoto while keeping the created albums alive?

  • How do I set up an Auto Away Message in the Mail program?

    How do I set up an Auto Away Message in the Mail program?

    You need a mail rule that sends a response to anyone who sends you an email.
    Here's a link that shows how.
    http://www.macobserver.com/tmo/answers/how-to-create-out-of-office-auto-email-re plies-with-os-x-mail

  • Landscape view while in the Mail application?

    Is there a way to use landscape view while in the Mail application?

    Not for the mail itself (reading or composing). Attachments do rotate into landscape mode, though.
    You can submit a feature request to Apple:
    http://www.apple.com/feedback/iphone.html

  • When I use hotmail to reply an email, the content of the mail I am answering not included.How can I keep the emails content when I forward or reply the mail?

    How to keep the content of email (hotmail) in firefox when to forward or reply the mail. This is not the case when I use Internet Explorer.

    See this:
    https://support.mozilla.com/en-US/kb/Blank+messages+in+Hotmail

  • Setting the From Address for Reply in Mail

    I am having trouble setting the default “From” address for replies in Mail. When I click on “Reply” the new window opens with a default mail address I do not wish to use. This can be changes by going into the drop down box and setting a different one. This is time consuming and it is easy to send from an inappropriate address.
    “Help” menu says that the default address ( top one in the drop down box) can be changed and gives these instructions:
    Set the From address
    Your messages are sent from the account of the currently selected mailbox. If you have multiple email accounts, you can specify a different account to use for sending all messages, or select an account just for the message you’re writing.
    To specify the account to use for sending all messages, choose Mail > Preferences, click Composing, and then choose an account from the “Send new messages from” pop-up menu.
    To specify an account just for the message you’re writing, click the From pop-up menu, and then choose an email address.&#8232;To change the order in which addresses are listed in the pop-up menu, reorder the addresses in the “Email address” field in the Account Information pane of Mail account preferences.
    When I open the Mail Account Preferences and go to Account Information there is no list of addresses in the “Email address” just the one for the particular account highlighted in the left column eg. “[email protected]” or “[email protected]” .
    I tried to move the order of the accounts in the left hand box but nothing wants to move. Clicking and holding to push one account over another seems not to work.
    Anyone got any ideas on how to fix this?
    NB: This is about "Reply". Default for "New Message" is setting fine.

    i found out how to do this finally!
    1) set up google gmail account to forward your emails to (from the [email protected])
    2) go to your gmail account
    3) go to settings (cog in right hand corner)
    4) go to 'accounts and import'
    5) go to 'send mail as'
    6) click 'Add another email address you own' - add your [email protected] address
    7) google will send a verification email with code to that email address.
    8) enter code
    9) go back to gmail account  >'send mail as' and select 'make default'
    10) close mac 'mail' program and reopen it.
    as long as you have gmail account selected as the primary account in MAIL - mail will now come throught as being sent from that  [email protected] address!!

  • I need to set values of 2 fields to 0 if the join condition is false

    I'll try to explain what I need to do as clearly as possible . I have three sub queries in my data model . My layout is group left .
    My first query :
    SELECT ALL BOEPAY_HD.BPH_RECP_NO_,
    BOE_PAY_HD.BPH_RECP_DATE, BOE_PAY_MODE.BPM_PAY_MODE, BOE_PAY_HD.BPH_ID,
    BOE_PAY_HD.BPH_DEC_CODE, BOE_PAY_HD.BPH_NAME1, BOE_PAY_HD.BPH_IMP_EXP_CODE,
    BOE_PAY_HD.BPH_SITE, BOE_PAY_HD.BPH_TOTAL, BOE_PAY_MODE.BPM_NUMBER
    FROM BOE_PAY_HD, BOE_PAY_MODE
    WHERE (BOE_PAY_HD.BPH_RECP_DATE BETWEEN TO_DATE(:st_date||' 00:00:00', 'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:en_date||' 23:59:59', 'dd/mm/yyyy hh24:mi:ss')
    AND (BOE_PAY_HD.BPH_RECP_NO = BOE_PAY_MODE.BPM_RECP_NO)
    Second query :
    It is linked to the first query with the primary key BPO_RECP_NO
    SELECT ALL BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE,
    BOE_PAY_OTH.BPO_RECP_NO
    FROM BOE_PAY_OTH
    On my report I display fields BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE in a repeating frame .
    The problem is when there is no data in table BOE_PAY_OTH for a particular BPO_RECP_NO , the second sub query is not executed.
    Columns(Values) in my layout overlap with values from the third query .
    I need to find a way to set values BOE_PAY_OTH.BPO_AMT, BOE_PAY_OTH.BPO_DTX_CODE to zero and display them so that there is no overlapping .
    Is there a way for me to achieve this .
    Please help . Thanks.

    This overlapping is usually dealt with in the layout by putting a frame in the appropriate place rather than in the queries. The frame stops items from
    moving up the page.
    Dave

  • Mask password field while rendering the page

    Dear All,
    I have made a application wherein I have 2 pages. The 1st page is a tabular diaplay of the data and the 2nd page(which is called from the 1st page after clicking on the link) is for adding/modifying the data. This is based on my user master table which has a "Password" field in it and it is not null field at the database level. I am not showing this password field on the 1st page(report). I am showing this field on the 2nd page while entering/modifying the data. I have set its display type as "Password" so that while adding the data, it is displayed as dot. But when I am trying to edit the same data, it is not showing me the data in the password field. So I am not able to save any changes to the existing data. If I change the display type to some other option then it works fine.
    Please suggest some solution.
    (We are using application express version 3.0.0.00.20)
    Minakshi

    Minakshi,
    We don't retrieve password form items from session state when rendering them. So you should be able to type a new value in and save the form. If you mean that you cannot save the form without entering a value for the password, then that is an expected effect of this same practice. You'll need to allow for a null value using an after-submit computation (which populates the item by selecting from the existing row) or handle it in a trigger on the table.
    Scott

  • Dynamic action with set value on date field

    Hi,
    I'm using APEX 4.02
    I'm trying to calculate the age based on the date of birth dynamically on a form. I'm trying to do this with a (advanced)dynamic action with set value.
    I'm able to get this kind of action working based on a number field etc, but NEVER on a date field.
    I've read all posts on this subject but so far no solution. Even if I try to simply copy the value over to another date field or typecast it to a string ( to_char function ) it does not work. So for me the problem seems to be in the source field being a date field.
    I've tried using the source value as is in a select statement :
    select :P33_GEBOORTEDATUM from dual;
    and also type casted based on the date format :
    select TO_DATE(:P33_GEBOORTEDATUM,'DD-MON-YYYY') from dual
    but still no luck.
    On the same form I don't have any issues as long as the calculation is based on number fields, but as soon as I start using dates all goes wrong.
    Any suggestions would be greatly appreciated. If you need any extra info just let me know.
    Cheers
    Bas
    b.t.w My application default date format is DD-MON-YYYY, maybe this has something to do with the issue .... ?
    Edited by: user3338841 on 3-apr-2011 7:33

    Hi,
    Create a dynamic action named "set age" with following values.
    Event: Change
    Selection Type: Item(s)
    Item(s): P1_DATE_OF_BIRTH
    Action: Set value
    Fire on page load: TRUE
    Set Type: PL/SQL Expression
    PL/SQL Expression: ROUND( (SYSDATE - :P1_DATE_OF_BIRTH)/365.24,0)
    Page items to submit: P1_DATE_OF_BIRTH
    Selection Type: Item(s)
    Item(s): P1_AGE
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

Maybe you are looking for