BP_CONT: not getting the contact person email value from custom controller
Hi Experts
not able to find the email address in any of the context node, actually my requirement is while creating the BP contact , get the email address BP_ADDR/StandardAddress STRUCT.E_MAILSMT . take this email id and check whether this email id exists in system if exists throw the error while saving . for this I did the codin in BP_CONT component on save method but while saving some times my custom controller is getting initiated some times it was not containing any value , kindly let me know how can I get the email value of contact person in BP_CONT component in view BPCONTOverview .
here is my code on method eh_onsave
lr_curo_bpcont_custcntrlr ?= me->get_custom_controller( controller_id = 'BP_CONT/BPCont' ).
IF lr_curo_bpcont_custcntrlr IS BOUND.
TRY.
lr_entity_privstdaddr ?= lr_curo_bpcont_custcntrlr->typed_context->privstdaddr->collection_wrapper->get_current( ).
lv_privstdaddr_e_mailsmt = lr_entity_privstdaddr->get_property_as_string('E_MAILSMT'). " Get runtime email value of contact person
lr_entity_bpcategory ?= lr_curo_bpcont_custcntrlr->typed_context->builheader->collection_wrapper->get_current( ).
lv_partner_category = lr_entity_bpcategory->get_property_as_string('BP_CATEGORY'). " Get Partner Category value
CATCH cx_sy_ref_is_initial cx_sy_move_cast_error cx_crm_genil_model_error.
ENDTRY.
ENDIF.
here the problem is some times I'm getting the value and some times I'm not getting value the related objects also through get related entities contact person emial is not getting populated any where
kindly help what is going wrong
Thanks & Regards
Rajasekhar
Hello Rajasekhar,
Could you please share how you resolved this issue? I have the exact same requirement (duplicate check based on email).
Kind regards
Similar Messages
-
How to get the Contact person name of Account site level contact person
Hi All,
I have contact person defined at account level and other at account site level.
I am trying to print the site leve contact name in my AR Invoice report.
What i used is bill_to_site_use_id a input in the below query
select hp2.party_name
from
HZ_CUST_SITE_USES_ALL hcs,
HZ_CUST_ACCT_SITES_ALL has,
hz_party_sites hps,
hz_parties hp,hz_parties hp2,
hz_relationships hr
--HZ_ORG_CONTACTS HO
where hcs.CUST_ACCT_SITE_ID=has.CUST_ACCT_SITE_ID
and hps.PARTY_SITE_ID=has.PARTY_SITE_ID
and hp.party_id=hps.PARTY_ID
and hr.subject_id=hp.party_id
and hr.RELATIONSHIP_TYPE = 'CONTACT'
and hp2.party_id=hr.OBJECT_ID
and hr.OBJECT_TYPE ='PERSON'
--and ho.PARTY_RELATIONSHIP_ID=hr.relationship_id
and hcs.SITE_use_ID=3398 -- from (ra_customer_trx_all)
But I get two records. So how can I differentitate the account contact and site contact.
Am I missing any table or join. Or is the input provieded is not fine.
Please help
ThanksHi -
Please use the below code to get the Contacts at the Account level.
where Sold to Org id is the Customer Account Id.
SELECT hp2.person_last_name||', '||hp2.person_first_name
FROM apps.hz_parties hp,
apps.hz_parties hp2,
apps.hz_relationships hr,
apps.hz_cust_accounts hca
WHERE 1 = 1
AND hca.party_id = hp.party_id
AND hca.cust_account_id = :sold_to_org_id
AND hr.subject_id = hp.party_id
AND hr.relationship_type = 'CONTACT'
AND hp2.party_id = hr.object_id
AND hr.object_type = 'PERSON'
AND hp.party_id = hr.subject_id
Thanks
Vyaghresh
Edited by: user11990386 on Jun 20, 2011 2:33 PM -
How to get the Dynamic UI component value from JSFF page to any managedbean
HI ,
We have list of bean objects in jSF page we are iterating the list of bean using the forEach loop and displaying the value into Input type text (UI component) value filed .
If we try to get the UI component value in Managed bean we are not getting the dynamic values .
The below piece of code used to retrieve the dynamic values from the JSF page doesn't have any form :
UIComponent component = null;
FacesContext facesContext = FacesContext.getCurrentInstance();
if (facesContext != null) {
UIComponent root = facesContext.getViewRoot();
component = findComponent(root, componentId);
then component type casting to the based on UI component which we trying to access and getting the value as " NULL " ..Please let me know how to get the dynamic values form the JSF ?
Please let me know if any other approach or any changes required on above ?
ThanksHi,
the root problem is this
<h:inputText id="it3" value="#{familyList.ctn}" />
<tr:commandButton text="Save" id="cb3"Note how each row writes to the same managed bean property, thus showing the same data. Instead your managed bean should expose a HashMap property that you then apply values to using a key/value pair. The key could be the ID of the field, which then you also should dynamically define e.g. cb<rowIndx>. The command button could then have a f:attribute assigned that has the row HahMap key as a value. This way you truly create value instances for the object
Frank -
Not getting a handle to Seeded VO from custom region controller
Hi Freinds,
I am embedding a custom region to a seeded page by personalization.
I have an AM and VO for custom region.
When i am trying to call a seeded VO from my custom region controller i am not able to get a handle to it properly.
I tried to get rootAm and then i called seeded VO. Some times i will get control but not able to create a rowsetiterator for that VO.
OAApplicationModule rootAm=pageContext.getRootApplicationModule();
oracle.jbo.ViewObject spupdateVo=rootAm.findViewObject("SpecialInformationUpdateVO1");
RowSetIterator tblvorow= tblVo.findRowSetIterator("sptblVoRow");
it is erroring at line 3.
please help me to understand how to get a handle to seeded VO from custom region controller.
My requirement is to loop through that seeded VO records.
Thanks in advance..
JyothiHi,
I think you need to extend the controller at the pageLayout Region which would have access to all the regions and also their corresponding AMs.
--Sushant -
Fm to get the Contact person address if he doesn't ve thn his comp address
Hi Gurus,
This is seema,,am new to CRM .... got a doubt ... thought of posting it here...
My req is i need to find out a contact person full address , incase if he does not have the address then i should refer to his company(has contact peron for) address and get it...
am searching for FM where i cld achieve the above requirement..
I had given a search for this before giving for a post...but i could not get it ...
In the same requiremetn, i need to find out the person (employee) who is responsible for creating and his job title.. any FM to get employee details with his job title?
Thanks for all your time.
Seema
Edited by: seema rajjot on Apr 6, 2010 3:00 PMHi Seema,
You can get the address of CP from tables BUT020, BUT021_FS, ADRC and ADR2 etc., In case if the CP address is empty, go table BUT051 and get the Company affiliated to it using the Relationship type BUR001. Then get the address of Company using the same tables again. Refer to the below link, it has details about how to read the BP address by Address type. If you want to read the default address use address type XXDEFAULT.
[Read BP Address based on Address type and Update Address|http://www.divulgesap.com/blog.php?p=MTA5]
Hope it helps.
Regards,
Ravikiran -
Not getting the "under review" email after 2nd time re-submitting podcast.
I started by doing a test podcast (this has no real podcast info, the audio of it was simply me saying I was testing the feed to see if it would work). I submitted my podcast to the iTunes store and shortly after, I received an email saying thank you, my podcast is under review and I would receive an email later if it was approved or not. About 3 days later, I received an email saying it was rejected because it appeared to be a test podcast.. to shape it up, and re-submit when it was complete. I got to work and completed the podcast with chapters, artwork, voice, intro, outro, and all the text information needed. I went back to the iTunes store to submit the completed podcast, but never received that initial "thank you for submitting, it's under review, we'll let you know" ... email. I waited a few days, and nothing. It seems as though since I submitted a "BS" podcast at first, they're rejecting anything else I submit. Is my feed bad? or what could be the problem? Please help, thanks.
my feed:
feed://web.me.com/djchuckc/siteone/Melodica/rss.xmlTechnically speaking, your feed appears to be OK: it can be subscribed to manually from the 'Advance' menu in the iTunes application (a process which does not involve the store).
However, your episode appears to consist of a collection of commercially issued tracks. If this is indeed the case, and if you do not have either the written permission of the copyright owners, or a licence from a recognized authority, then the iTunes Store is likely to reject your podcast on grounds of breach of copyright. If they do so I would expect them to notify you, though the email is usually a blanket one which implies that the rejection is on technical grounds: the process can take over a week as it has to be done by real people and there is likely to be quite a queue. -
How to get the Open Order Qty value from Transaction Code RWBE?
Hello,
Recently I have a program that needs to extract the value of Open Order Qty value from RWBE.
My specific steps are as follows:
- I go to tcode <b>RWBE</b>
- I select the <b>material and plant</b>
- I tick the checbox for <b>"Also select special stocks"</b> and <b>"Also select stock commitments"</b>
- I execute the program double click one of the rows for the <b>Unrestricted Use coulmn</b> and view the <b>Open Order Qty</b>.
My question is how is this particlar variable attained? I tried Ekbe and the ELIKZ feild from EKPO and I still cant seem to get the right value.
Hope to hear from you soon.
Thank you and good day.check with FM :
CALL FUNCTION 'MB_ADD_PURCHASE_ORDER_QUANTITY'
EXPORTING
x_matnr = t_matnr-matnr " TGA/4.6 Erw. Lot
x_meins = t_matnr-basme " TGA/4.6 Erw. Lot
x_matnr = prt_matnr-matnr " TGA/4.6 Erw. Lot
x_meins = prt_matnr-basme " TGA/4.6 Erw. Lot
x_elikz = space
x_loekz = space
TABLES
xtab = xtab
xwerks = r_werks.
above fm will get open order qty for given material in po -
Get the attributes NAME and VALUE from an XML
I really love this forum :)
I load an XML an populate a Tree, from which I start to drag
items.
the xml looks like this:
<myTag attrName="attrValue"
otherAttrName="otherAttrValue"/>
var ds:DragSource = event.dragSource;
var var1:String =(event.dragInitiator as
Tree).value.@attrName;
-> the var1 variable has now: "attrValue"
my question is.. how can I get all the attributes' names? in
this example: attrName and otherAttrName (suppose I don't know the
structure of that xml node)
what about attributes values?
thank you!The snippet below takes an xml node(nodeCur), loops over the
attributes list and builds an array that contains the attribute
name and value for each attribute. It comes from a sample app that
allows you to edit an xml file.
Sorry that the forum will remove the formatting
var aDPAttributes:Array = new Array();
var xlAttributes:XMLList = nodeCur.@*;
var attribute:Attribute;
for ( var i:int = 0; i < xlAttributes.length(); i++) {
aDPAttributes.push({name:xlAttributes [ i ]
.name(),value:xlAttributes [ i ] });
dgAttributes.dataProvider = aDPAttributes; //set the property
sheet dataProvider
Tracy -
What is the best way to get the minimum or maximum value from an Array of numbers?
Let's say I have an Array of numbers: [2,3,3,4,2,2,5,6,7,2]
What is the best way to find the minimum or maximum value in
that Array?
Right now, to get the maximum, I am looping through the
Array, and resetting a variable to the value if it is greater than
the existing value:Here's other approaches, the cookbook is your friend:
http://digitalmedia.oreilly.com/pub/a/oreilly/digitalmedia/helpcenter/actionscript30cookbo ok/chapter5.html?page=7
enjoy. -
Not getting the tax details in me23n using custom smartform
Hi to all,
I am useing bapi to get the details of service order and printing the details in my custom smartform which is assigned in me23n. My problem is i am getting all the details like line item and all related but not the tax details. I need to print the net amount which is net amount + tax . Can any one help me in this regards.Use function module CALL FUNCTION 'CALCULATE_TAX_ITEM'
EXPORTING
dialog = lc_n
display_only = lc_x
i_taxcom = lwa_taxcom
IMPORTING
E_NAVFW =
e_taxcom = lwa_taxcom
E_XSTVR =
nav_anteil = lv_taxamt
TABLES
t_xkomv = lt_komv
EXCEPTIONS
mwskz_not_defined = 1
mwskz_not_found = 2
mwskz_not_valid = 3
steuerbetrag_falsch = 4
country_not_found = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LT_KOMV will return the tax related data.
Nabheet -
How to get the last sub folder value from the string in Webi report
I have an object coming from universe, this object will contain string e.g. \\Users\Public\Pictures\Sample\
or \\Users\Doc\BI\BO\Webi\
I need the last sub folder from this path to be displayed i.e. Sample and Webi.
I would like to know how it can be done.
I tried using formulas like POS, SubStr and Length. however the issue is that the length of the the sting is not fixed and the number of "\" are also not fixed.
I would appreciate any help regarding this.
Regards,
YogeshHi,
What is the formula you have written though?.
=length(right([folderpath]);pos([folderpath];"\")+1)
Thanks,
Jothi -
Why can i not get the class javax/swing/UImanager from installanywhere??
I use Installanywhere to pack my program,but when i double-click the short-cut,it says no class found :javax/swing/UImanage.
anybody can tell what happened?
thanks.who can help me ? none want to help me.
-
Regd the contact person fax and email address
Hi,
I am trying to get the contact persons fax and email address.The telephone # is available in KNVK table.but I don't see fax and email.Let me know how to get the details.
also I see PRSNR in KNVK..What is the purpose of peson number?
thanks
SuganyaTake a look at the code below, Extract from KNVK and use the prsnr number to extract tel number and email address.
* Use function & dept to extract KNVK data and person number
SELECT parnr kunnr namev name1 abtnr anred pafkt parh1 parh2 parh3 parh4 parh5 pakn2 pakn3 pakn4 pakn5 prsnr
FROM knvk
INTO TABLE i_knvk
WHERE kunnr = wa_vbak-kunnr.
* Use person number to extract the fax no.
IF i_knvk[] IS NOT INITIAL.
SELECT persnumber fax_number
FROM adcp
INTO TABLE i_adcp
FOR ALL ENTRIES IN i_knvk
WHERE persnumber = i_knvk-prsnr.
ENDIF.
IF i_knvk[] IS NOT INITIAL.
SELECT persnumber smtp_addr
FROM adr6
INTO TABLE i_adr6
FOR ALL ENTRIES IN i_knvk
WHERE persnumber = i_knvk-prsnr.
ENDIF. -
How to maintain the contact person in Business Partner ?
Hi Experts,
Could you help to resolving the below Requirement.
__ +Requirement:+__
How to maintain the contact person in Business Partner ?
How to get the Contact person in Is-Media Documents?
Thanks& Regards
VenkatDear Venkat,
In SD Customer Master data, we can maintain Contact Person in General Data tab page.
For my knowledge, we can not find u201CContact Personu201D field in ISM Business Partner u2013 General Data. Correct me if I am wrong.
Mostly user enters the contact person details in u201CSearch Term 1/ 2 fieldu201D in Address tab page in ISM Business Partner u2013 General Data tab page. While creating ISM Billing Document for this Business Partner, system prints this contact person details in ISM Invoices.
(Or)
While creating ISM Order, user can maintain Contact Person name in Header Details(Click on u201CGo to >Header>Details>Purchase Order Data>Cont.Person)
If you maintain Contact Person name in Header Details also, system print this contact person details in ISM Invoices.
Check from your end.
Best Regards,
Chandramohan -
Notifications not going to the contact person
Hello Friends,
Scenario - When i create an RFI Customer activity in a CSR and set its status to 'Requested Customer'', a notification (more information is required) goes to the contact person and the team lead of CRO (Customer Responsible Organization). If the customer does not reply for 3 days (in case of a High Severity CSR) or 7 days (in case of severities other than High), then reminder notifications (more information required - reminder) get triggered which go to the contact person and the team leads of CRO.
Problem - In the first case,the notification (more information is required) goes to the contact person and the team lead of CRO (Customer Responsible Organization) where as in the second case, the reminder notifications do not go to the contact person, but they go to the team leads of CRO.
Analysis - There are 2 workflows that get triggered when the RFI Customer activity in a CSR and set its status to 'Requested Customer''. The first one sends the notification (more information is required) to the contact person and team leads of CRO immediately. The other workflow checks whether the customer has replied for 3 days (in case of a High Severity CSR) or 7 days (in case of severities other than High), and then sends the notification to the contact person and team leads of the CRO. I have checked the bindings, tasks, receiver rules and the methods in both these workflows. They are exactly similar. The only difference in these workflows is the wait step added in the second workflow.
Do you have any clue as to what is the reason behind the second workflow not sending the notifications to the contact person ?
Appreciate your help and timely response.
Thanks
PrashantHello Rick,
Thank you for your response. Here are the answers to your queries -
Question -->Is a mail being sent to the same email address in both workflows with SendMail, and only working in one of them?
Answer --> Yes
Question -->There must be some other difference other than the wait step.
Answer --> The difference between the 2 workflows is mentioned step by step as below -
Workflow for which the notifications are sent to the contact person and team lead of CRO
Step 1 --> Condition step whether the email address exists or not.
If No --> Sends a mail to the LDA (Local Database Administrator) to maintain the email address of the contact person
If Yes --> Goto Step 2
Step 2 --> Condition step whether the Severity of the CSR is High or not
If Yes --> Send step (to send the email notifications to the contact person and team lead of CRO)
If No --> Send step (to send the email notifications to the contact person and team lead of CRO)
Workflow for which the notifications are not sent to the contact person and team lead of CRO
Step 1 --> Condition step whether the email address exists or not.
If No --> Sends a mail to the LDA (Local Database Administrator) to maintain the email address of the contact person
If Yes --> Goto Step 2
Step 2 --> Condition step whether the Severity of the CSR is High or not
If High - Wait Step (waits for 3 days before sending the notifications to the contact person and team lead of CRO)
If Other - Wait Step (waits for 7 days before sending the notifications to the contact person and team lead of CRO)
Step 3 --> Condition step to check the CSR Status (to check whether the customer has replied or not)
If Yes(customer replied) --> End workflow
If No (customer has not replied)--> Send step (to send the email notifications to the contact person and team lead of CRO)
Question -->How have you implemented the wait step? Does it fetch the address before or after the wait?
Answer --> The email address is fetched at the very first step.
Question -->What happens if you make a test workflow with just the Sendmail step and send to the same address?
Answer --> The notification goes to the same email address.
Kindly let me know if the information that i have provided is comprehensive enough. Your help will be deeply appreciated.
Thanks
Prashant
Maybe you are looking for
-
Query on Virtual Provider with Services
Hello everyone, I created a VirtualProvider and used the HowTo "Implement a VirtualProvider with Services" (Scenario 3: Any Table). Everything works fine and I can see some data with listcube. But when I'm executing a query (Bex) on the VirtualProvid
-
How to monitor the alerts(error handling) in seerburger adapter?
hi, is it like normal moniotoring for any scenario..i have to do the monitoring in seeburger adapter. any other specific thing i have to take care to do monitoring the alerts (error handling) in seeburger adapter for AS2 and FTP adapters.. plz give o
-
Hi, Pls help me out. I go to me22n and create an o/p type zpea. When I try processing that using me9f i.e when I select the o/p type and click on dispaly message I get an error saying Error in OPEN_FORM for document so and so. I'm not able to trace w
-
Highlighting the current page in a Spry Menu Bar
Hello, I'm trying to get my spry nav bar to show the page that the viewer is currently on (ie if they were on the 'services' page, the 'services' button would be highlighted) But it's more complex than I thought and I seem to have lost my way. Can so
-
How to create .lsb files in the LabVIEW6?
my IDE is VC6.0, how can i create a .lsb files?