Query to get primary contact for a bank account
Hi guys,
I'm new to R12 and have a requirement to build a report sending a letter to the primary contact of a bank account.
I narrowed it down to this:
-- get relationship_id for the given bank account
SELECT relationship_id FROM CE_CONTACT_ASSIGNMENTS
WHERE BANK_PARTY_ID = 26433
AND BRANCH_PARTY_ID = 26439
AND BANK_ACCOUNT_ID = 17002
and assignment_type = 'ACCOUNT';
-- get party_id of contact
SELECT subject_id FROM HZ_RELATIONSHIPS WHERE RELATIONSHIP_ID in (16091)
and subject_type = 'PERSON';
-- get contact details
SELECT * FROM HZ_PARTIES WHERE PARTY_ID IN (36458)
and status = 'A';
This is all well and good. The problem came when I added another contact to the account so both queries we're returning 2 results. I also found that both of them had the primary flag checked (from the web view) which I find odd. Worse in none of the tables above am I able to find a primary flag column. How do I find this column and is it possible to restrict the primary flag to only one contact as it seems to be appearing for two contacts.
Thanks
Hi,
you can get ext.price using following SQL.
SELECT (ORDERED_QUANTITY * UNIT_SELLING_PRICE) EXTENDED_PRICE
from oe_order_lines_all WHERE line_id = :P_LINE_ID
HTH
Sanjay
Similar Messages
-
Query is returning multiple records for a bank account id and party id
Hi All,
I am not getting why this query is returning multiple records for a particular bank account id and party id:
SELECT instrument_payment_use_id
,instrument_type
,instrument_id
,start_date
,ext_pmt_party_id
FROM iby_pmt_instr_uses_all
WHERE instrument_id =:lv_num_ext_bank_account_id
and exists (select 1 from iby_external_payees_all b where PAYEE_PARTY_ID= :lv_num_party_id and b.ext_payee_id = ext_pmt_party_id)
I want above values to be used in api iby_disbursement_setup_pub.set_payee_instr_assignment in R12.
Please help asap.
ThanksO/P of query run for
SELECT rowid, instrument_payment_use_id
FROM iby_pmt_instr_uses_all
WHERE instrument_id =6642
AND EXISTS (
SELECT 1
FROM iby_external_payees_all b
WHERE payee_party_id= 85470
AND b.ext_payee_id = ext_pmt_party_id);
is below:
Rowid INSTRUMENT_PAYMENT_USE_ID
AABiDXAGIAABhiKAAS 236586
AABiDXAGRAABSjtAAz 148437
The version is R12 -
Sql query to find all contacts for an account
I wonder if someone wrote an sql query to find all contacts for an account number in Oracle customer master. We are on EBS 11.5.10.
I am also looking for sql query to find all ship to addresses for an account number.
Thanks.Can you also post the query for people who read this post and are also looking for an answer?
Regards,
Johan Louwers. -
Invalid Contact for Given Customer Account
Hi,
I am getting following error when try to add a product to cart Sold-To contact for this customer is inactive in oracle istore.Please choose a different Sold-To contact.
Invalid Contact for Given Customer Account
Thanks
MarkI know this thread is pretty old, but, I hit this same issue at work today and it took me a couple of hours to debug and fix the same.
So, for the benefit of anyone else who might face this issue in the future, here goes:
Root Cause_
The "Customer" field associated with the user account setup (System Admin -> Users -> Query Username -> Customer Field) corresponds to the "Contacts: Roles" section (OM Superuser -> Query for Customer -> Contacts: Role screen) of the Customer setup
If the user defined "Customer" field of user account setup is "Inactive" in the "Contacts: Roles" section - then we get the error :
The Sold-To contact for this customer is inactive. Please choose a different Sold-To contact.
Invalid Contact for Given Customer Account
when trying to add items to the Shopping Cart.
Solution:_
Route A
OM Superuser -> Query for Customer -> Contacts: Role screen -> The person who's mapped as the Customer for the username needs to be set as active.
Route B
System Admin -> Users -> Query Username -> Map the Customer field to a currently active member of the Customer
Cheers,
Sharath -
Enhancement for validating bank account number
Hi,
I have written code for validating bank account number based on bank Key.In the enhancement <b>SAPLSSRV</b>. Now i have a requirement that when the enhancement is triggered, i need to check whether the <b>account holder</b> field is entered or not in the transaction.
But in the enhancement i have only BANK_ACCOUNT, BANK_CONTROL_KEY, BANK_COUNTRY and BANK_NUMBER as the import parameters, no more changing or tables parameters.
i.e., i dont get account holder name as input. Is there any way to capture the <b>account holder</b> field.
Regards,
Vidya.Hello,
Go for BADI's,
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
Regs,
Venkat -
Get Open Items for GL Reconciliation account for Customers
Hi All
We have a difference on our AR to GL reconciliation, we are unable to view all postings to the GL account using Tcodes FBL3N or FS10N ? - the function is not available on that GL account.
how do we compare the open items on customer accounts to the postings in the GL reconciliation account if we can not get a line item report ?
Thanks in advance for any assistance
DylanHi,
Generally for recon accounts, the indicator Lina item display will set to off. So you will not get line items for your recon account in FBL3N report. But still you can get the GL balances in FS10N for that recon accounts.
If you want to see the line items also for that recon account, then go to master data of that GL and select Line item display option and block the account in company code for postings temporarly.
Now run report RFSEPA01 in SE38 for you recon GL account.
Again go to GL master and unblock the blocking indicator.
Now check the line items in FBL3N for that recon account.
Thanks,
Srinu -
Payment program rules for selecting Bank accounts
Hi !!
Anyone that know the rules for payment program to select Vendor Bank accounts from XK03
when
- more then one row exist in Vendor bank accounts (XK03)
and
- Field Partner bank type is "blank" (LFBK-BVTYP) for all bank account rows
The rules seems not to be crystal clear for me
Any place to find more documentation about these rules especially when LFBK-BVTYP is "blank"
Thanks in advance !!
BR Tomas HagbergHi,
Please refer to following link. This may help.
http://help.sap.com/saphelp_46c/helpdata/en/47/8bf634b576bc4ee10000009b38f83b/frameset.htm
Regards,
Harish -
Sql query to find the balances for a customer account wise.
Hi,
Could someone help me with the sql query to find the balances for each customer account wise. This is need to generate the report.
presently we are using this query, but the output doesnot return the expected result.
SELECT sum(nvl(ps.acctd_amount_due_remaining,0)) "Balance"
FROM ra_cust_trx_line_gl_dist_all gld,
gl_code_combinations c,
ar_payment_schedules_all ps,
RA_CUSTOMER_TRX_ALL rat,
ra_customers rc
WHERE c.CHART_OF_ACCOUNTS_ID = 101
and gld.code_combination_id = c.code_combination_id
and rat.CUSTOMER_TRX_ID=gld.CUSTOMER_TRX_ID
and rat.CUSTOMER_TRX_ID=ps.CUSTOMER_TRX_ID
and ps.customer_id=rc.customer_id
and ps.status='OP'
and ps.gl_date <= :PDATE
and ps.org_id=:PORGID
and ps.class in ('GUAR','INV','DM','DEP')
and c.SEGMENT4=:Account_id
and ps.customer_id=:Customer_id
Thanks in advance.
Kalyan.Can someone help us with this.
-
Single GL account for multiple Bank account ID
Hello all,
we are implementing bank statement integration.
First we have to define the related GL accounts CoA of course.
My problem is that we have thousands of bank accounts. usually best practice is to create one GL account for one bank account ID.
This would imply that we create thousands of GL accounts...a situation we would like to avoid
It seems possible to use one GL for several bank account ID ? However I wonder if this does not raise problems for bank statement reconciliation.
Has anyone encounter such context ? What kind of solutions are possible ?
Thanks for your help !Hi ,
For bank reconcilition purpose it is always recommended that we go by individual GL account , as it is advisable for effective and correct reconcilliation.
At least as per my shot on the subject i would recommend that for incoming and outgoing bank accounts you should create 1 GL account each for each bank . for main bank again you can rethink and make it a consolidated one .
secondly , please take the details as to how is bank submitting the information is it branch wise or are the providing consolided statement for reconcilliation .
do revert back if you are still stuck up .
Hope this suffices .
Regards ,
dev. -
Sear string for customer bank account no
Hai ,
The requirement is that customer account number should be identified from customer bank key and bank account number which are available in the bank statement .I need to configure search string and assign it to interpretation algorithm.How i need to define and assign search string for bank key,bank account number .Example :AC-250-208762-20
The problem is that the length of bank key and bank account number for each customer is different
Example 1:Customer 100000
AC-25-45275865-333
Example 2 :customer 100001
AC-215-115275865-11
I need to post entries to customer account and no clearing is required . How search string can be defined for this ?
Note:Search string should be defined for customer bank account no because statement has no reference number
Regards,
KumarHi.
'customer master data, what are the integrated effects to FI > Bank Accounting > House Bank ?' House bank not linked with Customer master data(only if customer affiliated company).
Bank details in customer could be used eg for invoicing(printing form) -
What is no masking for supplier bank account
Hi,
what is no masking for supplier bank account? Can someone explain or provide a link please?
Regards
846691Pl post details of EBS version. Pl see if these MOS Docs can help
How To Mask Supplier Bank Account Numbers In Release 12? (Doc ID 436993.1)
Where Can I Set No Masking For Supplier Bank Account (Doc ID 762325.1)
How To Change the Supplier Bank Account Masking in UI (Doc ID 877074.1)
HTH
Srini -
API for loading Bank account details for the Customer
Hi,
Can anyone tell me what is the API that needs to be used for loading bank account information for the Customer?
Thanks
GMHi,
Were you not able to achieve your requirement with Customer Interface Program?
There is a interface table 'RA_CUSTOMER_BANKS_INT_ALL' which is used to store customer bank account information. Run the program after inserting the records into this table.
I guess, there is no public API.
Regards,
Ram -
If I could redo my answer to that question for my bank account, it would speed up my online banking experience but I do not know how to do that.
See:
* https://support.mozilla.com/kb/Remembering+passwords
If you clicked "Never" then you have created an exception that you need to remove.
Remove site(s) from the Exceptions:
* Tools > Options > Security: Passwords: Exceptions -
I have set up 3 mails in my outlook macbook pro, i am getting old mails for my company account mail, and i am not getting any mail to my hotmail, please help
daily i receive 100 old mails, which are already read
-
Query to get Primary ship to and bill to contact details
Hi ,
Please help me to get the query to find primary ship to and bill to contact details for a istore customer .
Thanks
MarkHi Mark,
The following should give you a good starting point.
Regards,
Jon
SELECT
cac_party.party_name as customer
, cac.account_number
, cac_party.party_number as orgnum
, party_site.party_site_number as sitenum
, csu.location
, loc.address1
, csu.site_use_code
, orgcon.title
, cont_party.party_name as contact_name
, orgcon.job_title
FROM
hz_org_contacts orgcon
, hz_party_relationships party_rel
, hz_party_sites party_site
, hz_cust_acct_sites_all cas
, hz_cust_site_uses_all csu
, hz_cust_accounts cac
, hz_loc_assignments loc_assign
, hz_locations loc
, hz_parties cac_party
, hz_parties cont_party
WHERE 1=1
AND orgcon.party_relationship_id = party_rel.party_relationship_id
AND orgcon.party_site_id = party_site.party_site_id
AND party_site.party_site_id = cas.party_site_id
AND cas.cust_acct_site_id = csu.cust_acct_site_id
AND cas.cust_account_id = cac.cust_account_id
AND cac.party_id = cac_party.party_id
AND cas.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND loc.location_id = loc_assign.location_id
AND party_rel.subject_id = cont_party.party_id AND cont_party.party_type = 'PERSON'
ORDER BY cac_party.party_name, loc.address1, csu.site_use_code, cont_party.party_name
Maybe you are looking for
-
I installed Windows 8.1 bootcamp but I'm having problems with the nvidia driver
Windows 8.1 is boot camped and it works perfectly, Almost. Ill find myself scrolling, usually with the trackpad, sometimes with a mouse, and the screen will go black, flicker, and resume. It will also stop the driver in games when i press keys too qu
-
How can I access my cloud files from Adobe Bridge or Lightroom?
Since we still do not have the ability to share folders or perform a sync with ACC I'm betting this question is not answerable, but I'm hopeful. It would be really great if Bridge, and I'll use Lightroom if I must, could access the files within the A
-
Functional and Technical Administration Roles in Solution Manager
Hello A big company has been implementing new functionality in Solution Manager during the last couple of years, they started with System Monitoring and EWA, Maintenance Optimizar, then Project Implementation, now Service Desk and ChaRM. This is co
-
Every time I open an app a box appears saying I need to connect to iTunes to receive push notifications. I go to iTunes and I'm already logged in,so I'm not sure what to do. Can anyone help?
-
Weird dots in QuickTime and Preview. Possibly ColoeSync Need Help
I have had for some time now these weird spots in QuickTime and Preview files when viewing them only. They only appear when looking at them with these apps. Viewing pictures in PhotoShop don't recreate the problem. I suspect it's related to ColorSync