How to get GUID in DO_INIT method

Hi All,
I have a requirement to default the CC mail id's when a follow up email is created from complaint i am trying to acheive this
by redefining DO_INIT method and created a new method set_CCmailid where i am trying to call order_read to get the partner
functions and their mail id's.Plz let me know how should i get the guid to pass to order_read and attend functionality.
Thanks.

Hi Anjum,
You can try to read the current business transaction GUID in email view by reading global data context reference. Something like this:
*- Data dictionary
  DATA lr_gdc            TYPE REF TO if_crm_ui_data_context.
  DATA lr_bt             TYPE REF TO cl_crm_bol_entity.
  DATA lv_guid          TYPE crmt_object_guid.
*- Get current business transaction from global data context
  lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
  CHECK lr_gdc IS BOUND.
  lr_bt ?= lr_gdc->get_entity( name = if_iccmp_global_data_cont_con=>gdc_currentbt ).
  CHECK lr_bt IS BOUND.
  lv_guid = lr_bt->get_property_as_string( 'CRM_GUID' ).
Kind regards,
Garcia

Similar Messages

  • How to retrive guid in do_init method for send_mail

    Hi All,
    I have a requirement to default the CC mail id's when a follow up email is created from complaint i am trying to acheive this
    by redefining DO_INIT method and created a new method set_CCmailid where i am trying to call order_read to get the partner
    functions and their mail id's.Plz let me know how should i get the guid to pass to order_read and attend functionality.
    Thanks.

    Hi Anjum,
    You can find sample code in do_init method of the component.
          lv_form_value = server->request->get_form_field_cs( crmem_mail_link_bo ).
          IF NOT lv_form_value IS INITIAL.
            SPLIT lv_form_value AT '/' INTO ls_bo-instid ls_bo-typeid ls_bo-catid.
            gr_appl_email_data->settings-bo = ls_bo.
          ENDIF.
    Check this value "ls_bo-instid ", it would be guid of the document in general.
    Best Regards,
    Dharmakasi.

  • How  to get GUID for a transaction

    How to get GUID of a transaction in solution manager support desk.
    pls help reg this.

    Hi Kalpanashri,
    I would suggest you to go for recording of the transaction. Then you can get to know the tables of the related fields which you have entered value during recording.
    OR
    For checking individual fields, you can go for the <b>WHERE-USED LIST</b>.
    For Ex:
    Please go to SE11 and enter data type with MATNR.
    Then click on where-used list button and check only table type (the first option) and click on continue.
    The system will show list of tables that store value of MATNR field. You can do double click on the field name and system will take you to detail screen of the table fields. Then from here ... you browse the data as well.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • How to get GUID all of user in OU

    I have use exchang svr 2013 .
    How to get GUID of user all in OU ?
    currently i use scriptr exchange power shell
    $username = "username"
    $guid = (Get-Mailbox $username).ExchangeGUID
    $upn = (Get-User $username).UserPrincipalName
    $upnsuffix = $upn.Split("@")[1]
    $ServerName = "$guid@$upnsuffix"
    write-host $ServerName

    Store all mailboxes in that OU in a variable and use a foreach loop
    $mbx = get-mailbox -resultsize unlimited -organizationalunit "domain.com/OU"
    foreach ($m in $mbx)
    Your code
    How to apply in exchange power shell ?

  • How to get guid in oracle 8?

    Hi,
    how to get guid in oracle 8
    regards
    Dupont
    null

    Hi Anjum,
    You can try to read the current business transaction GUID in email view by reading global data context reference. Something like this:
    *- Data dictionary
      DATA lr_gdc            TYPE REF TO if_crm_ui_data_context.
      DATA lr_bt             TYPE REF TO cl_crm_bol_entity.
      DATA lv_guid          TYPE crmt_object_guid.
    *- Get current business transaction from global data context
      lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
      CHECK lr_gdc IS BOUND.
      lr_bt ?= lr_gdc->get_entity( name = if_iccmp_global_data_cont_con=>gdc_currentbt ).
      CHECK lr_bt IS BOUND.
      lv_guid = lr_bt->get_property_as_string( 'CRM_GUID' ).
    Kind regards,
    Garcia

  • How to get GUID of nav predecessor in Breadcrumb navigation

    Hello,
    we have implemented a Z-Component in which we can navigate from other standard components via i.e. follow-up transaction.
    I have the requirement to get the GUID of the transaction from which we came from.
    For example we are working at an offer and now navigate to the Z-Component via follow-up. I would now need the GUID of the offer we were working on, before we navigated away.
    I suppose that somewhere in the framework the navigation stack is saved, because a click on the back button within the webclient brings me back to exactly the offer I had opened before.
    Any idea how to get to that navigation information?
    Thanks in advance
    Best regards
    Victor

    Hello Victor,
    I think the best to share information between components is to bind to component controller or pass data via outbound/inbound plugs. Playing with breadcrumb history (in my opinion) won't help too much but if you want to investigate a bit in this area, take a look at interface if_bsp_wd_history_manager_disp, the reference to which you can get via
    lr_history_access = me->view_manager->get_history_manager_display( ).
      CALL METHOD lr_history_access->get_history
        IMPORTING
          values = lt_history.
    Best Regards,
    Yevgen

  • How to get Guid of all form libraries

    I have  a requirement where i should get guid of all form libraries so that i dont need to hardcode the Guid of form library in server object model.How can i achieve this..

    Hi Hemandra..
    Thanks for the response,I am looking to relink documents using the code below...Code is working well for single form library but i have 4 to 5 form libraries for which the code should be executed..how can i get this done.I am working with Infopath forms.
    protected
    void btnsubmit_Click(object
    sender, EventArgs e)
    if (RelinkDocuments())
    Label3.Text =
    "Success!!!";
    else
    Label3.Text =
    "Failure";
    private
    bool RelinkDocuments()
    try
    SPSite site =
    SPContext.Current.Site;
    SPWeb spWeb = site.OpenWeb();
    SPList spList = spWeb.Lists[new
    Guid("8E023C18-DAA3-4743-81B7-E034111544BC")];
    SPDocumentLibrary doclib = (SPDocumentLibrary)spList;
    string solutionUrl =
    SPHttpUtility.UrlPathEncode(spWeb.Url
    + "/" +
    doclib.DocumentTemplateUrl, true);
    foreach (SPListItem
    spItem in doclib.Items)
    //loop through the list items
    SPFieldCollection spFields = spItem.Fields;
    foreach (SPField
    spField in spFields)
    //loop through fields resetting them
    if (spField.Type !=
    SPFieldType.Computed &&
    spField.Type !=
    SPFieldType.Invalid && !spField.ReadOnlyField)
    try
    spItem[spField.InternalName] = spItem[spField.InternalName];
    catch (Exception
    e)
    SPContentType spContentType = spList.ContentTypes[(SPContentTypeId)spItem["ContentTypeId"]];
    if (spContentType !=
    null)
    //try to update the item with the content type's template url which is the updated one
    if (spContentType.DocumentTemplate.StartsWith("http://")
    ||
    spContentType.DocumentTemplate.StartsWith(
    "https://"))
    spItem[
    "TemplateUrl"] =
    SPHttpUtility.UrlPathEncode(spContentType.DocumentTemplate,
    true);
    else
    if (spContentType.DocumentTemplate.StartsWith("/"))
    spItem[
    "TemplateUrl"] =
    SPHttpUtility.UrlPathEncode(spWeb.Site.MakeFullUrl(spContentType.DocumentTemplate),
    true);
    else
    spItem[
    "TemplateUrl"] =
    SPHttpUtility.UrlPathEncode(spWeb.Url
    + '/' + spList.RootFolder
    + '/' + spContentType.DocumentTemplate,
    true);
    else
    //no content type found so default template url to solution Url
    spItem[
    "TemplateUrl"] = solutionUrl;
    spItem.Update();
    return
    true;
    catch (Exception
    ex)
    return
    false;

  • How to get data in WDDINIT method

    hi...
    how to get data passed through url in WDDINIT method, ... the data is comming in the inbound plug, but plug is executed after WDDINIT...
    thank you.

    Hello Kailash,
    By saying that your data comes in through Inbound Plug itself means that that is the point of access for the data. If there is some standard data, that you can provide through WDDOINIT (e.g. initilizations) but in case of navigation, plugs and events are the only way to send data.
    Hope this helps.
    Regards,
    Neha

  • How to get schedule data in method process_item

    hi, in ME21N, when creating a new PO I need the value of "Statics-relevant delivery date", in "Delivery Schedule" detail (SFLDT). I'm trying to get it like this (in method process_item):
    DATA: wa_meposchedule TYPE purchase_order_schedules,
              wa_sched type meposchedule.
    wa_meposchedule = im_item->get_schedules( ).
    at this point i don't know how to continue....
    I've also implemented method PROCESS_SCHEDULE like this:
    DATA: lw_schedule TYPE REF TO if_purchase_order_schedule_mm,
               l_schedule TYPE meposchedule.
    mmpur_dynamic_cast lw_schedule im_schedule.
    l_schedule = lw_schedule->get_data( ).
    EXPORT l_schedule FROM l_schedule TO MEMORY ID 'L_SCHEDULE'.
    In method PROCESS_ITEM, i tried this:
    DATA: l_schedule TYPE meposchedule,
    IMPORT l_schedule TO l_schedule FROM MEMORY ID 'L_SCHEDULE'.
    But in me21n it didn't work...
    thanks in advance !

    Hi Maria,
    I'm facing the same road block. Did you figure out how to get schedule line data into Process_Item?
    Thanks,
    K

  • How to get class and use method on it

    Hi,
    class State {
            String name
            Enum expectedValue
            public State(String name,Enum expectedValue){
                this.name = name;
                this.expectedValue = expectedValue;
    In the same class I need to have a method that takes a String and it should return matching
    Enum value. Since  class already have the expectedValue my idea is to get the Enum class ( using that if possible) and
    the call get() on it see my example below;
    Example:
    expectedValue is HwState.UPGRADED;
        public HwState convertActualToStateType( String actual){
            return  HwState.get(Integer.valueOf(actual));
    How can I get the Enum class (HwState) ? And then use it e.g. HwState.get() ?
    //mike

    Oracle is not allowing to Pesonlize the Buttons.

  • How to get Transferable in DragOver method?

    Hello,
    I build a Drag/Drop tree control. One of the tasks is to find out while dragging if what I drag can be dropped on the node I am currently dragging over. The only way (what I found out so far) to prohibit the drop while dragging is to look at the data flavour in the DropTargetListener.dragOver(...) method and if it is not the right flavour call event.rejectDrop(). In my case the flavour is always the same. To decide if I can drop or not I have to look into the object that is draged (the data in the Transfarable wrapper). I can not find a way how to retrieve the transfarable in the dragOver(..) method.
    Can someone please help!
    Thanks a lot,
    Andreas

    I have not looked into this that deeply, but I don't think you can actually get the data out of the dnd mechanism untill the drop.
    However...I you are only dealing with a tree to tree dnd event. You can cheat and pass a reference to the tree to your DropTargetListener (if it is a class other than the tree itself) to convert the drag event location to a tree node.
    Not a very clean design, but it will work for tree to tree events within the same tree..

  • How to get GUID of a milestone?

    Hi,
    In my requirement, I need to identify each and every milestone uniquely. I know that every milestone is assigned to a GUID.
    How to find out a GUID for a milestone? Where these GUIDs for milestones are stored? 
    Also, please tell me how to give our own number to a milestone at the time of it's creation?

    Hi,
    In my requirement, I need to identify each and every milestone uniquely. I know that every milestone is assigned to a GUID.
    How to find out a GUID for a milestone? Where these GUIDs for milestones are stored? 
    Also, please tell me how to give our own number to a milestone at the time of it's creation?

  • How to get class name and method name within a class method?

    Hi,
    In a java class, is it possible to get its class name and the class method?
    Please advise.
    Thank you.

    I mean whether there's any built-in command that will
    return the class name instead of code it ourself, for
    easier maintenance.
    Possible?
    this.getClass().getName();

  • How to get Snapshotid in  CreateDynaSet Method in VC++ (Using Oip8.tlb)

    While acessing the BFILE datatype in a table using the following
    code in VC+6.0 on WINDOWS-95 OraDb.'GetCreateDynaset' is
    throwing an Exception at 3rd parameter (i.e.,snapshot id).This
    parameter is OPTIONAL in VB6.0 and it worked in VB6.0 (with out
    SNAPSHOTID)
    How can i access BFILE datatype through vc++ program?
    OraSession OraSes;
         OraSes.CreateDispatch("OracleInProcServer.XOraSession");
         OraDatabase OraDb(OraSes.GetOpenDatabase
    ("prk_orcl", "scott/tiger", 0));
         OraDynaset ordyn;
    The error is occuring at the following lines
    ------>     variantt *vsp=new variantt(ordyn.GetSnapshot(),true);
    ------->     OraDynaset OraDyn(OraDb.GetCreateDynaset("select
    vdesc,vdata from voice_data",0,vsp));
         COleVariant index((short)1);
    OraBfile OraMusic(OraDyn.GetItem(index));
         OraMusic.Open();
         OraMusic.CopyToFile("aa.wav",4096,0,4000);
         PlaySound("aa.wav",NULL,SND_ASYNC);

    Hi,
    the approach mentioned is correct. However, this line
    (String)JSFUtil.getFromPageFlow("returnValue");
    wont work if you write the return value in a managed bean
    #{pageFlowScope.myBean.returnValue}
    You need to read it from the managed bean and not from the memory attribute
    Frank

  • How to get Guided procedures DC into track

    Hi All,
    I am trying to implement the functionality mentioned in the thread
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59?overridelayout=true
    But it says in order to implement that I need to import Guided Procedures related DCS  and I dont know which Software component consists of all the DCS which i need to check in and import into track so that when i open sap.com_SAP-EU_1 component i can see all the GP related dcs.
    Plz let me know the solution
    Thanks
    Bala Duvvuri

    Hi Bala,
    SAPPCUI_GP is the SCA which contains the related GP dc's.
    Regards
    Sreedhar

Maybe you are looking for

  • Jerky import & playback with 10.3.9 and QT 7.0.2

    Posting new topic as follow-on from prior topic. Sorry if making a hash of this, but pretty new to Discussions, Apple and iMovie! Have tried fixes offered by David Babsky (many thx!!), but no impact. David pointed me to discussions on "Jerky" playbac

  • Duplicate javascript references appearing in HTML files

    Every time I run Generate | Primary Layout (Webhelp) on my Robohelp projects, I see duplicate references to a number of Robohelp built-in javascript script files in the head section of my HTML files.  For example: <script type="text/javascript"  lang

  • Connecting digital camera to iPod

    I've imported my first movie directly from my Hp photosmart camera to my iPod, by using the special connector. iPod cannot play the movie and reports that Quicktime can be used. On my worldtour I only have my iPod and my camera. Is their another opti

  • HTML question - OT

    Hi! Sorry, I know this is not a Java question, but it's a short question. I'm designing a website, and have a RealAudio .avi file embedded into the sight. It's a burning firelplace. I am just trying to figure out the code snippet to make the audio ke

  • Display PCR in MSS

    Hi, Manager can create PCR in MSS. Once he fills details it goes to HR administrator. When HR is processing he will get action box like maintain pa30, pa40, view form,display form. pa30,pa40 is working fine, but when HR click the display or change fo