Need to get NULL values!
Hi,
I have a query like following...
SELECT CA.C_PROJECT_ID, SUM(CA.AMTACCTCR - CA.AMTACCTDR) AS AMOUNT
FROM CUS_ACCTDIM_FACT_ACCT CA
LEFT JOIN M_PRODUCT MP ON MP.M_PRODUCT_ID = CA.M_PRODUCT_ID
WHERE MP.PRODUCTTYPE = 'S'
GROUP BY CA.C_PROJECT_ID;
Result is:
PROJECT AMOUNT
1000087 4175
1000093 4000
But I need to get the following result:
PROJECT AMOUNT
1000087 4175
1000088
1000089
1000090
1000091
1000092
1000093 4000
I mean I need to get all the project ids but amount should show only to the records that match the condition. Other projects will have null value.
Can someone help me how to write query to get this output?
Thanks in advance.
Kalyogi,
Based on your information, I created following tables and added but if you can post your tables and some sample data for both then it will be easy to help you in better way.
But check this test case as it gets desired output you are requesting for, you can run this entire test in your setup and verify
CREATE TABLE cus_acctdim_fact_acct (
c_project_id NUMBER,
amtacctcr NUMBER,
amtacctdr NUMBER,
m_product_id NUMBER
SET DEFINE OFF;
Insert into TESTME.CUS_ACCTDIM_FACT_ACCT
(C_PROJECT_ID, AMTACCTCR, AMTACCTDR, M_PRODUCT_ID)
Values
(1000087, 4190, 15, 1111);
Insert into TESTME.CUS_ACCTDIM_FACT_ACCT
(C_PROJECT_ID, AMTACCTCR, AMTACCTDR, M_PRODUCT_ID)
Values
(1000093, 4050, 50, 2222);
Insert into TESTME.CUS_ACCTDIM_FACT_ACCT
(C_PROJECT_ID, M_PRODUCT_ID)
Values
(1000088, 3333);
Insert into TESTME.CUS_ACCTDIM_FACT_ACCT
(C_PROJECT_ID, M_PRODUCT_ID)
Values
(1000089, 4444);
COMMIT;
CREATE TABLE m_product (
m_product_id NUMBER,
producttype VARCHAR2 (1)
SET DEFINE OFF;
Insert into TESTME.M_PRODUCT
(M_PRODUCT_ID, PRODUCTTYPE)
Values
(4444, 'S');
Insert into TESTME.M_PRODUCT
(M_PRODUCT_ID, PRODUCTTYPE)
Values
(3333, 'S');
Insert into TESTME.M_PRODUCT
(M_PRODUCT_ID, PRODUCTTYPE)
Values
(2222, 'S');
Insert into TESTME.M_PRODUCT
(M_PRODUCT_ID, PRODUCTTYPE)
Values
(1111, 'S');
COMMIT;
SELECT ca.c_project_id, SUM (ca.amtacctcr - ca.amtacctdr) AS amount
FROM cus_acctdim_fact_acct ca
LEFT JOIN
m_product mp
ON mp.m_product_id = ca.m_product_id
WHERE mp.producttype = 'S'
GROUP BY ca.c_project_id;Regards
Similar Messages
-
Need help getting a value from an XML column
Hi,
I need to get a value from an XML column in a table (the column is called TEST_XML). I have tried using the Select TEST_XML.value function but it always returns nulls. Could you please take a look at the following xml sample stored in the TEST_XML column
and help me with the query syntax to get the value of the Bank_Account_Number?.
=================
<?mso-infoPathSolution PIVersion="1.0.0.0" href="http://aaa.bbb.ccc.org/OF/PublicDownload.aspx/6bba49274b494ddcb005512670a5e214.xsn" name="urn:schemas-microsoft-com:office:infopath:BPIP-xsn:OF-Messages-Schemas-OF-Forms" language="en-us"
productVersion="14.0.0" solutionVersion="3.0.29.90" ?>
<?mso-application progid="InfoPath.Document"?>
<tns:OF_Forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="OF_Messages.Schemas.OF_Forms" xmlns:xdServerInfo="http://schemas.microsoft.com/office/infopath/2009/xslt/ServerInfo" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2013-07-22T10:58:18"
xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
<Name />
<Description />
<Settings Name="FormName" Description="Request for new master data.xml" SCE_RouteID="54" ROU_Name="IBP-Group" SCE_FunctionalAreaID="1" FUA_FunctionalAreaName="Data Maintenance" SCE_SchemaCategory="BP"
SCE_SchemaGUID="3c9b391c-26a1-46ec-a202-434453a6e582" SCE_FormGUID="6bba4927-4b49-4ddc-b005-512670a5e214" SCE_InstanceGUID="39595" SCE_SPInstancePath="" FIN_StaffID="" FirstName="" LastName=""
MAIL_SendBy="[email protected]" MAIL_Date="Thu, 12 Jun 2014 14:49:26 +0200" DateRequired="" MissingFields="" NewLine="
" SCE_RequestorAuthorizationMode="1" SCE_AllowSubmissionFromAll="1"
/>
<Init_Information>
<Date_Required xsi:nil="true" />
</Init_Information>
<General_Data>
<Action>U</Action>
<Business_Partner_Number xsi:nil="true" />
<Business_Partner_Grouping>G16</Business_Partner_Grouping>
<Business_Partner_Type>G003</Business_Partner_Type>
<Title>002</Title>
<House_Number xsi:nil="true" />
<Street xsi:nil="true" />
<Street_2 xsi:nil="true" />
<Street_3 xsi:nil="true" />
<City>ABIDJAN</City>
<Country>CI</Country>
<City_Postal_Code xsi:nil="true" />
<Region xsi:nil="true" />
<PO_Box xsi:nil="true" />
<PO_Box_Postal_Code xsi:nil="true" />
<Language>FR</Language>
<Purpose>Z003 UNVs</Purpose>
<Telephone_Number />
<Mobile_Phone_Number>90075777</Mobile_Phone_Number>
<Fax_Number xsi:nil="true" />
<Email_Address>[email protected]</Email_Address>
<First_Name>Mickey</First_Name>
<Middle_Name xsi:nil="true" />
<Last_Name>Mouse</Last_Name>
<Gender>2</Gender>
<Index_Number>999999</Index_Number>
<Date_of_Birth>1969-11-29</Date_of_Birth>
<Nationality>CI</Nationality>
<DOB_Day>29</DOB_Day>
<DOB_Month>11</DOB_Month>
<DOB_Year>1969</DOB_Year>
<RelationBPGroupingBPType xsi:nil="true" />
<BPType_Z016>Z003</BPType_Z016>
<BPType_Z020 xsi:nil="true" />
<BPType_Z021 xsi:nil="true" />
<Sub_Area2>General and Banking</Sub_Area2>
<SR_Description>Business Partner Number:
Business Partner Type: UNVs
First Name: FirstName
Last Name: LastName</SR_Description>
<Sub_Area_Aux>79</Sub_Area_Aux>
<thereis_general>TRUE</thereis_general>
<thereis_banking>TRUE</thereis_banking>
<auxGeneric>GDB</auxGeneric>
<Business_Area_BP>P022</Business_Area_BP>
<Search_Term_1>FirstName</Search_Term_1>
<Search_Term_2>LastName</Search_Term_2>
<Responsible_Institution xsi:nil="true" />
<Add_Additional_Address xsi:nil="true" />
<Add_Additional_Communication xsi:nil="true" />
<BP_Role_Main xsi:nil="true" />
<BP_Role_Additional xsi:nil="true" />
<AddresType xsi:nil="true" />
<Specify xsi:nil="true" />
<BP_Category xsi:nil="true" />
<AddRemoveAddress xsi:nil="true" />
<AddRemoveCommunication xsi:nil="true" />
<BusinessAreaOfBP_Aux>MALI</BusinessAreaOfBP_Aux>
</General_Data>
<Primary_Bank_Account>
<Bank_Location_ID>0001</Bank_Location_ID>
<Bank_Country>ML</Bank_Country>
<Bank_Account_Number>XXXX999888777666555444-00</Bank_Account_Number>
<Bank_Account_Type>1</Bank_Account_Type>
<IBAN xsi:nil="true" />
<CurrencyPrimaryIBAN xsi:nil="true" />
<Account_Holder_Name xsi:nil="true" />
<CurrencyOPrimaryNationalBankAccount>XOF</CurrencyOPrimaryNationalBankAccount>
<Routing_Number_x002F__National_ID>BDMAMLBA</Routing_Number_x002F__National_ID>
<NonIbanAccountHolderName>BANKNAME</NonIbanAccountHolderName>
<NonIbanBankAccountNumber>TESTNIBAN</NonIbanBankAccountNumber>
<CurrencyOPrimaryBankAccountNonIBAN>XOF</CurrencyOPrimaryBankAccountNonIBAN>
<NonIbanPrimaryBankAccountType>1</NonIbanPrimaryBankAccountType>
<NonIbanPrimaryAccountNameOfBank>BANK OF AFRICA</NonIbanPrimaryAccountNameOfBank>
<NonIbanPrimaryAccountBankAddressHouseNumber>CDCI</NonIbanPrimaryAccountBankAddressHouseNumber>
<NonIbanPrimaryAccountBankAddressStreet>DALOA, COMMERCE</NonIbanPrimaryAccountBankAddressStreet>
<NonIbanPrimaryAccountBankAddressCity>DALOA</NonIbanPrimaryAccountBankAddressCity>
<NonIbanPrimaryAccountBankAddressRegion>DALOA</NonIbanPrimaryAccountBankAddressRegion>
<NonIbanPrimaryAccountBankAddressPostalCode>+225</NonIbanPrimaryAccountBankAddressPostalCode>
<Primary_Type_of_Account xsi:nil="true" />
<invisible1>National ID</invisible1>
<bDontHasBankAccount>false</bDontHasBankAccount>
<bBankAccountNotAvailable>false</bBankAccountNotAvailable>
<CashOrCheck xsi:nil="true" />
<CashAccountingClerk xsi:nil="true" />
<BankID_BIC_SWIFT>BIBS</BankID_BIC_SWIFT>
<CheckOptions xsi:nil="true" />
<SameOrDifferent_IBAN_Primary xsi:nil="true" />
<SameOrDifferent_National_Primary xsi:nil="true" />
<SameOrDifferent_NotIBAN_Primary>Yes</SameOrDifferent_NotIBAN_Primary>
<AccountTitle_IBAN_Primary xsi:nil="true" />
<AccountTitle_National_Primary xsi:nil="true" />
<AccountTitle_NotIBAN_Primary xsi:nil="true" />
<ExplainWhy_IBAN_Primary xsi:nil="true" />
<ExplainWhy_National_Primary xsi:nil="true" />
<ExplainWhy_NotIBAN_Primary xsi:nil="true" />
<Bank_Key xsi:nil="true" />
<Bank_Control_Key xsi:nil="true" />
<Special_Instructions_IBAN_Primary xsi:nil="true" />
<Special_Instructions_National_Primary xsi:nil="true" />
<Special_Instructions_NotIBAN_Primary xsi:nil="true" />
<RecordTypePrimary xsi:nil="true" />
<Payment_Method_UnderCashCheck xsi:nil="true" />
<ValidUntilPrimaryBank xsi:nil="true" />
</Primary_Bank_Account>
<Primary_Intermediary_Bank_Account>
<Intermediary_Bank_Location_ID xsi:nil="true" />
<Intermediary_Bank_Country xsi:nil="true" />
<Intermediary_Bank_Account_Number xsi:nil="true" />
<Intermediary_Bank_Account_Type xsi:nil="true" />
<Intermediary_IBAN xsi:nil="true" />
<CurrencyIntermediaryIBAN xsi:nil="true" />
<Intermediary_Account_Holder_Name xsi:nil="true" />
<CurrencyOIntermediaryNationalBankAccount xsi:nil="true" />
<Intermediary_Routing_Number_National_ID xsi:nil="true" />
<IntermediaryNonIbanAccountHolderName xsi:nil="true" />
<IntermediaryNonIbanBankAccountNumber xsi:nil="true" />
<CurrencyOIntermediaryBankAccountNonIBAN xsi:nil="true" />
<NonIbanIntermediaryBankAccountType xsi:nil="true" />
<NonIbanIntermediaryAccountNameOfBank xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressHouseNumber xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressStreet xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressCity xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressRegion xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressPostalCode xsi:nil="true" />
<IntermediaryBankAccountVisible xsi:nil="true" />
<Intermediary_Type_of_Account xsi:nil="true" />
<invisible2 xsi:nil="true" />
<Intermediary_BankID_BIC_SWIFT_code xsi:nil="true" />
<SameOrDifferent_IBAN_Intermediary xsi:nil="true" />
<SameOrDifferent_National_Intermediary xsi:nil="true" />
<SameOrDifferent_NotIBAN_Intermediary xsi:nil="true" />
<AccountTitle_IBAN_Intermediary xsi:nil="true" />
<AccountTitle_National_Intermediary xsi:nil="true" />
<AccountTitle_NotIBAN_Intermediary xsi:nil="true" />
<ExplainWhy_IBAN_Intermediary xsi:nil="true" />
<ExplainWhy_National_Intermediary xsi:nil="true" />
<ExplainWhy_NotIBAN_Intermediary xsi:nil="true" />
</Primary_Intermediary_Bank_Account>
<Additional_Bank_Account>
<Additional_Bank_Location_ID xsi:nil="true" />
<Additional_Bank_Country xsi:nil="true" />
<Additional_Bank_Account_Number xsi:nil="true" />
<Additional_Bank_Account_Type xsi:nil="true" />
<Additional_IBAN xsi:nil="true" />
<CurrencyAdditionalIBAN xsi:nil="true" />
<Additional_Account_Holder_Name xsi:nil="true" />
<CurrencyOAdditionalNationalBankAccount xsi:nil="true" />
<Additional_Routing_Number_x002F__National_ID xsi:nil="true" />
<AdditionalNonIbanAccountHolderName xsi:nil="true" />
<AdditionalNonIbanBankAccountNumber xsi:nil="true" />
<CurrencyOAdditionalBankAccountNonIBAN xsi:nil="true" />
<NonIbanAdditionalBankAccountType xsi:nil="true" />
<NonIbanAdditionalAccountNameOfBank xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressHouseNumber xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressStreet xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressCity xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressRegion xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressPostalCode xsi:nil="true" />
<AdditionalBankAccountVisible xsi:nil="true" />
<Additional_Type_of_Account xsi:nil="true" />
<invisible3 xsi:nil="true" />
<Additional_BankID_BIC_SWIFT_code xsi:nil="true" />
<SameOrDifferent_IBAN_Additional xsi:nil="true" />
<SameOrDifferent_National_Additional xsi:nil="true" />
<SameOrDifferent_NotIBAN_Additional xsi:nil="true" />
<AccountTitle_IBAN_Additional xsi:nil="true" />
<AccountTitle_National_Additional xsi:nil="true" />
<AccountTitle_NotIBAN_Additional xsi:nil="true" />
<ExplainWhy_IBAN_Additional xsi:nil="true" />
<ExplainWhy_National_Additional xsi:nil="true" />
<ExplainWhy_NotIBAN_Additional xsi:nil="true" />
<Additional_Bank_Key xsi:nil="true" />
<Additional_Bank_Control_Key xsi:nil="true" />
<Special_Instructions_IBAN_Additional xsi:nil="true" />
<Special_Instructions_National_Additional xsi:nil="true" />
<Special_Instructions_NotIBAN_Additional xsi:nil="true" />
<RecordTypeAdditional xsi:nil="true" />
<ValidUntilAdditionalBank xsi:nil="true" />
</Additional_Bank_Account>
<Payment_Information>
<Block_for_payment>1</Block_for_payment>
<Payment_Method xsi:nil="true" />
<Accounting_Clerk xsi:nil="true" />
<PaymentMethodAdditional xsi:nil="true" />
<AccountingClerkAdditional xsi:nil="true" />
</Payment_Information>
<Additional_Field_for_Purchasing_view>
<Purchase_order_currency>XOF</Purchase_order_currency>
<BP_Role_for_Screen_Usage__x0028_Real_State_x0029_ xsi:nil="true" />
<Central_Block_for_Business_Partner>false</Central_Block_for_Business_Partner>
<Posting_block_for_company_code xsi:nil="true" />
<Deletion_Flag_for_Master_Record__x0028_Company_Code_Leve xsi:nil="true" />
<Purchasing_block_at_purchasing_organization_level xsi:nil="true" />
<Deletion_flag_for_vendor_at_purchasing_level xsi:nil="true" />
<BPRoleDateBegin xsi:nil="true" />
<BPRoleDateEnd xsi:nil="true" />
</Additional_Field_for_Purchasing_view>
<Requestor_Information>
<Requested_By>REQUESTOR</Requested_By>
<Org_Unit>MVCON</Org_Unit>
<Date>2014-05-19</Date>
<Reason xsi:nil="true" />
<On_Form xsi:nil="true" />
<Attached xsi:nil="true" />
<Located_In_x002F_At>TIMBUKTOU</Located_In_x002F_At>
<RequestorBusinessArea>P022</RequestorBusinessArea>
<RequestorBusinessAreaValue>MALI</RequestorBusinessAreaValue>
<Display_Review_Approval_Section xsi:nil="true" />
</Requestor_Information>
<Review_Information>
<Review_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Review_Information>
<Approval_Information>
<Approved_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Approval_Information>
<Reception_Information>
<Received_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Reception_Information>
<Entry_Information>
<Entered_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Entry_Information>
<Verification_Information>
<Verified_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Verification_Information>
<Order_Currency>
<Order_Currency_New xsi:nil="true" />
</Order_Currency>
<Change_BP_Group>
<BP_Group_Existing xsi:nil="true" />
<BP_Type_Existing xsi:nil="true" />
<BP_Role_Existing xsi:nil="true" />
<BP_Group_New xsi:nil="true" />
<BP_Type_New xsi:nil="true" />
<BP_Role_New xsi:nil="true" />
<BPTypeAuxVisible1 xsi:nil="true" />
<BPTypeAuxVisible2 xsi:nil="true" />
</Change_BP_Group>
<Expire_or_Add_Validity_Period_to_BP_Role>
<Additional_BP_Role_Entry xsi:nil="true" />
</Expire_or_Add_Validity_Period_to_BP_Role>
<Add_Alternative_Payees>
<Additional_Payee xsi:nil="true" />
</Add_Alternative_Payees>
<Establish_BP_Relationship>
<Additional_Relationship_EntryB xsi:nil="true" />
</Establish_BP_Relationship>
<Block_BP>
<PaymentBlock xsi:nil="true" />
<Reason_Payment_Block xsi:nil="true" />
<PostingBlock xsi:nil="true" />
<Reason_Posting_Block xsi:nil="true" />
<PurchasingBlock xsi:nil="true" />
<Reason_Purchasing_Block xsi:nil="true" />
<CentralBlock xsi:nil="true" />
<Reason_Central_Block xsi:nil="true" />
<FlagforArchiving xsi:nil="true" />
<Reason_Flag_Block xsi:nil="true" />
<TerminateBP xsi:nil="true" />
<Reason_Terminate_Block xsi:nil="true" />
</Block_BP>
<Options>
<Option1>true</Option1>
<Option2>false</Option2>
<Option3>true</Option3>
<Option4>false</Option4>
<Option5>false</Option5>
<Option6>false</Option6>
<Option7>false</Option7>
<Option8>false</Option8>
<Opt_Update_BP_legal_Name>false</Opt_Update_BP_legal_Name>
</Options>
<Sec_Update_BP_Legal_Name>
<NewLegalFirstName xsi:nil="true" />
<NewLegalMiddleName xsi:nil="true" />
<NewLegalLastName xsi:nil="true" />
</Sec_Update_BP_Legal_Name>
<line>
<IDType>
<IDType xsi:nil="true" />
<LegacyIDNumber xsi:nil="true" />
<Responsible_Institution_Legacy xsi:nil="true" />
<AddRemoveID_R xsi:nil="true" />
</IDType>
</line>
<Address>
<Section_Address>
<AddressTypeR xsi:nil="true" />
<StreetR xsi:nil="true" />
<StreetR_2 xsi:nil="true" />
<StreetR_3 xsi:nil="true" />
<House_NumberR xsi:nil="true" />
<City_Postal_CodeR xsi:nil="true" />
<CityR xsi:nil="true" />
<CountryR xsi:nil="true" />
<StateRegionProvinceR xsi:nil="true" />
<PO_BoxR xsi:nil="true" />
<PO_Box_PostalCodeR xsi:nil="true" />
<SpecifyR xsi:nil="true" />
<AddRemoveAddressR xsi:nil="true" />
</Section_Address>
<PO_BoxR2>
<SecPoBoxR2>
<PO_BoxR2 xsi:nil="true" />
<PO_Box_Postal_CodeR2 xsi:nil="true" />
</SecPoBoxR2>
</PO_BoxR2>
</Address>
<Communication>
<Communication_Section>
<Telephone_NumberR xsi:nil="true" />
<Mobile_Phone_NumberR xsi:nil="true" />
<Fax_NumberR xsi:nil="true" />
<Email_AddressR xsi:nil="true" />
<AddRemoveCommunicationR xsi:nil="true" />
</Communication_Section>
</Communication>
<Expire_or_Add_Validaty_to_BP_RoleR>
<Expire_or_Add_Validaty>
<BP_RoleR xsi:nil="true" />
<Expire_or_Add_Validity_PeriodR xsi:nil="true" />
<Valid_FromR xsi:nil="true" />
<Valid_ToR xsi:nil="true" />
</Expire_or_Add_Validaty>
</Expire_or_Add_Validaty_to_BP_RoleR>
<Add_Alternative_PayeesR>
<Alternative_Payees>
<Add_Update_Remove xsi:nil="true" />
<Permited_Payee_BP_NumberR xsi:nil="true" />
<Name_Alt_PayeeR xsi:nil="true" />
<Index_NumberR xsi:nil="true" />
<TitleR xsi:nil="true" />
<First_NameR xsi:nil="true" />
<Middle_NameR xsi:nil="true" />
<Last_NameR xsi:nil="true" />
</Alternative_Payees>
</Add_Alternative_PayeesR>
<Establish_BP_RelationshipR>
<Relationship>
<BP_Number_Main xsi:nil="true" />
<Relationship_CategoryR xsi:nil="true" />
<ValidFromR xsi:nil="true" />
<ValidToRelationshipR xsi:nil="true" />
<BPNumber_SecondaryR xsi:nil="true" />
<Index_Number_Secondary_Relationship xsi:nil="true" />
<Business_Area_Secondary xsi:nil="true" />
<Title_Secondary_BP xsi:nil="true" />
<First_Name_Secondary_BPR xsi:nil="true" />
<MiddleNameSecondaryBPR xsi:nil="true" />
<LastNameSecondaryBP xsi:nil="true" />
<Add_Update_DeleteR xsi:nil="true" />
</Relationship>
</Establish_BP_RelationshipR>
<PO_BoxR>
<SecPoBoxR>
<PO_BoxR xsi:nil="true" />
<PO_Box_Postal_CodeR xsi:nil="true" />
</SecPoBoxR>
</PO_BoxR>
</tns:OF_Forms>See this illustration
declare @x xml='<?mso-infoPathSolution PIVersion="1.0.0.0" href="http://aaa.bbb.ccc.org/OF/PublicDownload.aspx/6bba49274b494ddcb005512670a5e214.xsn" name="urn:schemas-microsoft-com:office:infopath:BPIP-xsn:OF-Messages-Schemas-OF-Forms" language="en-us" productVersion="14.0.0" solutionVersion="3.0.29.90" ?>
<?mso-application progid="InfoPath.Document"?>
<tns:OF_Forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="OF_Messages.Schemas.OF_Forms" xmlns:xdServerInfo="http://schemas.microsoft.com/office/infopath/2009/xslt/ServerInfo" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2013-07-22T10:58:18" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
<Name />
<Description />
<Settings Name="FormName" Description="Request for new master data.xml" SCE_RouteID="54" ROU_Name="IBP-Group" SCE_FunctionalAreaID="1" FUA_FunctionalAreaName="Data Maintenance" SCE_SchemaCategory="BP" SCE_SchemaGUID="3c9b391c-26a1-46ec-a202-434453a6e582" SCE_FormGUID="6bba4927-4b49-4ddc-b005-512670a5e214" SCE_InstanceGUID="39595" SCE_SPInstancePath="" FIN_StaffID="" FirstName="" LastName="" MAIL_SendBy="[email protected]" MAIL_Date="Thu, 12 Jun 2014 14:49:26 +0200" DateRequired="" MissingFields="" NewLine="
" SCE_RequestorAuthorizationMode="1" SCE_AllowSubmissionFromAll="1" />
<Init_Information>
<Date_Required xsi:nil="true" />
</Init_Information>
<General_Data>
<Action>U</Action>
<Business_Partner_Number xsi:nil="true" />
<Business_Partner_Grouping>G16</Business_Partner_Grouping>
<Business_Partner_Type>G003</Business_Partner_Type>
<Title>002</Title>
<House_Number xsi:nil="true" />
<Street xsi:nil="true" />
<Street_2 xsi:nil="true" />
<Street_3 xsi:nil="true" />
<City>ABIDJAN</City>
<Country>CI</Country>
<City_Postal_Code xsi:nil="true" />
<Region xsi:nil="true" />
<PO_Box xsi:nil="true" />
<PO_Box_Postal_Code xsi:nil="true" />
<Language>FR</Language>
<Purpose>Z003 UNVs</Purpose>
<Telephone_Number />
<Mobile_Phone_Number>90075777</Mobile_Phone_Number>
<Fax_Number xsi:nil="true" />
<Email_Address>[email protected]</Email_Address>
<First_Name>Mickey</First_Name>
<Middle_Name xsi:nil="true" />
<Last_Name>Mouse</Last_Name>
<Gender>2</Gender>
<Index_Number>999999</Index_Number>
<Date_of_Birth>1969-11-29</Date_of_Birth>
<Nationality>CI</Nationality>
<DOB_Day>29</DOB_Day>
<DOB_Month>11</DOB_Month>
<DOB_Year>1969</DOB_Year>
<RelationBPGroupingBPType xsi:nil="true" />
<BPType_Z016>Z003</BPType_Z016>
<BPType_Z020 xsi:nil="true" />
<BPType_Z021 xsi:nil="true" />
<Sub_Area2>General and Banking</Sub_Area2>
<SR_Description>Business Partner Number:
Business Partner Type: UNVs
First Name: FirstName
Last Name: LastName</SR_Description>
<Sub_Area_Aux>79</Sub_Area_Aux>
<thereis_general>TRUE</thereis_general>
<thereis_banking>TRUE</thereis_banking>
<auxGeneric>GDB</auxGeneric>
<Business_Area_BP>P022</Business_Area_BP>
<Search_Term_1>FirstName</Search_Term_1>
<Search_Term_2>LastName</Search_Term_2>
<Responsible_Institution xsi:nil="true" />
<Add_Additional_Address xsi:nil="true" />
<Add_Additional_Communication xsi:nil="true" />
<BP_Role_Main xsi:nil="true" />
<BP_Role_Additional xsi:nil="true" />
<AddresType xsi:nil="true" />
<Specify xsi:nil="true" />
<BP_Category xsi:nil="true" />
<AddRemoveAddress xsi:nil="true" />
<AddRemoveCommunication xsi:nil="true" />
<BusinessAreaOfBP_Aux>MALI</BusinessAreaOfBP_Aux>
</General_Data>
<Primary_Bank_Account>
<Bank_Location_ID>0001</Bank_Location_ID>
<Bank_Country>ML</Bank_Country>
<Bank_Account_Number>XXXX999888777666555444-00</Bank_Account_Number>
<Bank_Account_Type>1</Bank_Account_Type>
<IBAN xsi:nil="true" />
<CurrencyPrimaryIBAN xsi:nil="true" />
<Account_Holder_Name xsi:nil="true" />
<CurrencyOPrimaryNationalBankAccount>XOF</CurrencyOPrimaryNationalBankAccount>
<Routing_Number_x002F__National_ID>BDMAMLBA</Routing_Number_x002F__National_ID>
<NonIbanAccountHolderName>BANKNAME</NonIbanAccountHolderName>
<NonIbanBankAccountNumber>TESTNIBAN</NonIbanBankAccountNumber>
<CurrencyOPrimaryBankAccountNonIBAN>XOF</CurrencyOPrimaryBankAccountNonIBAN>
<NonIbanPrimaryBankAccountType>1</NonIbanPrimaryBankAccountType>
<NonIbanPrimaryAccountNameOfBank>BANK OF AFRICA</NonIbanPrimaryAccountNameOfBank>
<NonIbanPrimaryAccountBankAddressHouseNumber>CDCI</NonIbanPrimaryAccountBankAddressHouseNumber>
<NonIbanPrimaryAccountBankAddressStreet>DALOA, COMMERCE</NonIbanPrimaryAccountBankAddressStreet>
<NonIbanPrimaryAccountBankAddressCity>DALOA</NonIbanPrimaryAccountBankAddressCity>
<NonIbanPrimaryAccountBankAddressRegion>DALOA</NonIbanPrimaryAccountBankAddressRegion>
<NonIbanPrimaryAccountBankAddressPostalCode>+225</NonIbanPrimaryAccountBankAddressPostalCode>
<Primary_Type_of_Account xsi:nil="true" />
<invisible1>National ID</invisible1>
<bDontHasBankAccount>false</bDontHasBankAccount>
<bBankAccountNotAvailable>false</bBankAccountNotAvailable>
<CashOrCheck xsi:nil="true" />
<CashAccountingClerk xsi:nil="true" />
<BankID_BIC_SWIFT>BIBS</BankID_BIC_SWIFT>
<CheckOptions xsi:nil="true" />
<SameOrDifferent_IBAN_Primary xsi:nil="true" />
<SameOrDifferent_National_Primary xsi:nil="true" />
<SameOrDifferent_NotIBAN_Primary>Yes</SameOrDifferent_NotIBAN_Primary>
<AccountTitle_IBAN_Primary xsi:nil="true" />
<AccountTitle_National_Primary xsi:nil="true" />
<AccountTitle_NotIBAN_Primary xsi:nil="true" />
<ExplainWhy_IBAN_Primary xsi:nil="true" />
<ExplainWhy_National_Primary xsi:nil="true" />
<ExplainWhy_NotIBAN_Primary xsi:nil="true" />
<Bank_Key xsi:nil="true" />
<Bank_Control_Key xsi:nil="true" />
<Special_Instructions_IBAN_Primary xsi:nil="true" />
<Special_Instructions_National_Primary xsi:nil="true" />
<Special_Instructions_NotIBAN_Primary xsi:nil="true" />
<RecordTypePrimary xsi:nil="true" />
<Payment_Method_UnderCashCheck xsi:nil="true" />
<ValidUntilPrimaryBank xsi:nil="true" />
</Primary_Bank_Account>
<Primary_Intermediary_Bank_Account>
<Intermediary_Bank_Location_ID xsi:nil="true" />
<Intermediary_Bank_Country xsi:nil="true" />
<Intermediary_Bank_Account_Number xsi:nil="true" />
<Intermediary_Bank_Account_Type xsi:nil="true" />
<Intermediary_IBAN xsi:nil="true" />
<CurrencyIntermediaryIBAN xsi:nil="true" />
<Intermediary_Account_Holder_Name xsi:nil="true" />
<CurrencyOIntermediaryNationalBankAccount xsi:nil="true" />
<Intermediary_Routing_Number_National_ID xsi:nil="true" />
<IntermediaryNonIbanAccountHolderName xsi:nil="true" />
<IntermediaryNonIbanBankAccountNumber xsi:nil="true" />
<CurrencyOIntermediaryBankAccountNonIBAN xsi:nil="true" />
<NonIbanIntermediaryBankAccountType xsi:nil="true" />
<NonIbanIntermediaryAccountNameOfBank xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressHouseNumber xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressStreet xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressCity xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressRegion xsi:nil="true" />
<NonIbanIntermediaryAccountBankAddressPostalCode xsi:nil="true" />
<IntermediaryBankAccountVisible xsi:nil="true" />
<Intermediary_Type_of_Account xsi:nil="true" />
<invisible2 xsi:nil="true" />
<Intermediary_BankID_BIC_SWIFT_code xsi:nil="true" />
<SameOrDifferent_IBAN_Intermediary xsi:nil="true" />
<SameOrDifferent_National_Intermediary xsi:nil="true" />
<SameOrDifferent_NotIBAN_Intermediary xsi:nil="true" />
<AccountTitle_IBAN_Intermediary xsi:nil="true" />
<AccountTitle_National_Intermediary xsi:nil="true" />
<AccountTitle_NotIBAN_Intermediary xsi:nil="true" />
<ExplainWhy_IBAN_Intermediary xsi:nil="true" />
<ExplainWhy_National_Intermediary xsi:nil="true" />
<ExplainWhy_NotIBAN_Intermediary xsi:nil="true" />
</Primary_Intermediary_Bank_Account>
<Additional_Bank_Account>
<Additional_Bank_Location_ID xsi:nil="true" />
<Additional_Bank_Country xsi:nil="true" />
<Additional_Bank_Account_Number xsi:nil="true" />
<Additional_Bank_Account_Type xsi:nil="true" />
<Additional_IBAN xsi:nil="true" />
<CurrencyAdditionalIBAN xsi:nil="true" />
<Additional_Account_Holder_Name xsi:nil="true" />
<CurrencyOAdditionalNationalBankAccount xsi:nil="true" />
<Additional_Routing_Number_x002F__National_ID xsi:nil="true" />
<AdditionalNonIbanAccountHolderName xsi:nil="true" />
<AdditionalNonIbanBankAccountNumber xsi:nil="true" />
<CurrencyOAdditionalBankAccountNonIBAN xsi:nil="true" />
<NonIbanAdditionalBankAccountType xsi:nil="true" />
<NonIbanAdditionalAccountNameOfBank xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressHouseNumber xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressStreet xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressCity xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressRegion xsi:nil="true" />
<NonIbanAdditionalAccountBankAddressPostalCode xsi:nil="true" />
<AdditionalBankAccountVisible xsi:nil="true" />
<Additional_Type_of_Account xsi:nil="true" />
<invisible3 xsi:nil="true" />
<Additional_BankID_BIC_SWIFT_code xsi:nil="true" />
<SameOrDifferent_IBAN_Additional xsi:nil="true" />
<SameOrDifferent_National_Additional xsi:nil="true" />
<SameOrDifferent_NotIBAN_Additional xsi:nil="true" />
<AccountTitle_IBAN_Additional xsi:nil="true" />
<AccountTitle_National_Additional xsi:nil="true" />
<AccountTitle_NotIBAN_Additional xsi:nil="true" />
<ExplainWhy_IBAN_Additional xsi:nil="true" />
<ExplainWhy_National_Additional xsi:nil="true" />
<ExplainWhy_NotIBAN_Additional xsi:nil="true" />
<Additional_Bank_Key xsi:nil="true" />
<Additional_Bank_Control_Key xsi:nil="true" />
<Special_Instructions_IBAN_Additional xsi:nil="true" />
<Special_Instructions_National_Additional xsi:nil="true" />
<Special_Instructions_NotIBAN_Additional xsi:nil="true" />
<RecordTypeAdditional xsi:nil="true" />
<ValidUntilAdditionalBank xsi:nil="true" />
</Additional_Bank_Account>
<Payment_Information>
<Block_for_payment>1</Block_for_payment>
<Payment_Method xsi:nil="true" />
<Accounting_Clerk xsi:nil="true" />
<PaymentMethodAdditional xsi:nil="true" />
<AccountingClerkAdditional xsi:nil="true" />
</Payment_Information>
<Additional_Field_for_Purchasing_view>
<Purchase_order_currency>XOF</Purchase_order_currency>
<BP_Role_for_Screen_Usage__x0028_Real_State_x0029_ xsi:nil="true" />
<Central_Block_for_Business_Partner>false</Central_Block_for_Business_Partner>
<Posting_block_for_company_code xsi:nil="true" />
<Deletion_Flag_for_Master_Record__x0028_Company_Code_Leve xsi:nil="true" />
<Purchasing_block_at_purchasing_organization_level xsi:nil="true" />
<Deletion_flag_for_vendor_at_purchasing_level xsi:nil="true" />
<BPRoleDateBegin xsi:nil="true" />
<BPRoleDateEnd xsi:nil="true" />
</Additional_Field_for_Purchasing_view>
<Requestor_Information>
<Requested_By>REQUESTOR</Requested_By>
<Org_Unit>MVCON</Org_Unit>
<Date>2014-05-19</Date>
<Reason xsi:nil="true" />
<On_Form xsi:nil="true" />
<Attached xsi:nil="true" />
<Located_In_x002F_At>TIMBUKTOU</Located_In_x002F_At>
<RequestorBusinessArea>P022</RequestorBusinessArea>
<RequestorBusinessAreaValue>MALI</RequestorBusinessAreaValue>
<Display_Review_Approval_Section xsi:nil="true" />
</Requestor_Information>
<Review_Information>
<Review_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Review_Information>
<Approval_Information>
<Approved_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Approval_Information>
<Reception_Information>
<Received_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Reception_Information>
<Entry_Information>
<Entered_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Entry_Information>
<Verification_Information>
<Verified_By xsi:nil="true" />
<Org_Unit xsi:nil="true" />
<Date xsi:nil="true" />
</Verification_Information>
<Order_Currency>
<Order_Currency_New xsi:nil="true" />
</Order_Currency>
<Change_BP_Group>
<BP_Group_Existing xsi:nil="true" />
<BP_Type_Existing xsi:nil="true" />
<BP_Role_Existing xsi:nil="true" />
<BP_Group_New xsi:nil="true" />
<BP_Type_New xsi:nil="true" />
<BP_Role_New xsi:nil="true" />
<BPTypeAuxVisible1 xsi:nil="true" />
<BPTypeAuxVisible2 xsi:nil="true" />
</Change_BP_Group>
<Expire_or_Add_Validity_Period_to_BP_Role>
<Additional_BP_Role_Entry xsi:nil="true" />
</Expire_or_Add_Validity_Period_to_BP_Role>
<Add_Alternative_Payees>
<Additional_Payee xsi:nil="true" />
</Add_Alternative_Payees>
<Establish_BP_Relationship>
<Additional_Relationship_EntryB xsi:nil="true" />
</Establish_BP_Relationship>
<Block_BP>
<PaymentBlock xsi:nil="true" />
<Reason_Payment_Block xsi:nil="true" />
<PostingBlock xsi:nil="true" />
<Reason_Posting_Block xsi:nil="true" />
<PurchasingBlock xsi:nil="true" />
<Reason_Purchasing_Block xsi:nil="true" />
<CentralBlock xsi:nil="true" />
<Reason_Central_Block xsi:nil="true" />
<FlagforArchiving xsi:nil="true" />
<Reason_Flag_Block xsi:nil="true" />
<TerminateBP xsi:nil="true" />
<Reason_Terminate_Block xsi:nil="true" />
</Block_BP>
<Options>
<Option1>true</Option1>
<Option2>false</Option2>
<Option3>true</Option3>
<Option4>false</Option4>
<Option5>false</Option5>
<Option6>false</Option6>
<Option7>false</Option7>
<Option8>false</Option8>
<Opt_Update_BP_legal_Name>false</Opt_Update_BP_legal_Name>
</Options>
<Sec_Update_BP_Legal_Name>
<NewLegalFirstName xsi:nil="true" />
<NewLegalMiddleName xsi:nil="true" />
<NewLegalLastName xsi:nil="true" />
</Sec_Update_BP_Legal_Name>
<line>
<IDType>
<IDType xsi:nil="true" />
<LegacyIDNumber xsi:nil="true" />
<Responsible_Institution_Legacy xsi:nil="true" />
<AddRemoveID_R xsi:nil="true" />
</IDType>
</line>
<Address>
<Section_Address>
<AddressTypeR xsi:nil="true" />
<StreetR xsi:nil="true" />
<StreetR_2 xsi:nil="true" />
<StreetR_3 xsi:nil="true" />
<House_NumberR xsi:nil="true" />
<City_Postal_CodeR xsi:nil="true" />
<CityR xsi:nil="true" />
<CountryR xsi:nil="true" />
<StateRegionProvinceR xsi:nil="true" />
<PO_BoxR xsi:nil="true" />
<PO_Box_PostalCodeR xsi:nil="true" />
<SpecifyR xsi:nil="true" />
<AddRemoveAddressR xsi:nil="true" />
</Section_Address>
<PO_BoxR2>
<SecPoBoxR2>
<PO_BoxR2 xsi:nil="true" />
<PO_Box_Postal_CodeR2 xsi:nil="true" />
</SecPoBoxR2>
</PO_BoxR2>
</Address>
<Communication>
<Communication_Section>
<Telephone_NumberR xsi:nil="true" />
<Mobile_Phone_NumberR xsi:nil="true" />
<Fax_NumberR xsi:nil="true" />
<Email_AddressR xsi:nil="true" />
<AddRemoveCommunicationR xsi:nil="true" />
</Communication_Section>
</Communication>
<Expire_or_Add_Validaty_to_BP_RoleR>
<Expire_or_Add_Validaty>
<BP_RoleR xsi:nil="true" />
<Expire_or_Add_Validity_PeriodR xsi:nil="true" />
<Valid_FromR xsi:nil="true" />
<Valid_ToR xsi:nil="true" />
</Expire_or_Add_Validaty>
</Expire_or_Add_Validaty_to_BP_RoleR>
<Add_Alternative_PayeesR>
<Alternative_Payees>
<Add_Update_Remove xsi:nil="true" />
<Permited_Payee_BP_NumberR xsi:nil="true" />
<Name_Alt_PayeeR xsi:nil="true" />
<Index_NumberR xsi:nil="true" />
<TitleR xsi:nil="true" />
<First_NameR xsi:nil="true" />
<Middle_NameR xsi:nil="true" />
<Last_NameR xsi:nil="true" />
</Alternative_Payees>
</Add_Alternative_PayeesR>
<Establish_BP_RelationshipR>
<Relationship>
<BP_Number_Main xsi:nil="true" />
<Relationship_CategoryR xsi:nil="true" />
<ValidFromR xsi:nil="true" />
<ValidToRelationshipR xsi:nil="true" />
<BPNumber_SecondaryR xsi:nil="true" />
<Index_Number_Secondary_Relationship xsi:nil="true" />
<Business_Area_Secondary xsi:nil="true" />
<Title_Secondary_BP xsi:nil="true" />
<First_Name_Secondary_BPR xsi:nil="true" />
<MiddleNameSecondaryBPR xsi:nil="true" />
<LastNameSecondaryBP xsi:nil="true" />
<Add_Update_DeleteR xsi:nil="true" />
</Relationship>
</Establish_BP_RelationshipR>
<PO_BoxR>
<SecPoBoxR>
<PO_BoxR xsi:nil="true" />
<PO_Box_Postal_CodeR xsi:nil="true" />
</SecPoBoxR>
</PO_BoxR>
</tns:OF_Forms>'
;WITH XMLNAMESPACES ('OF_Messages.Schemas.OF_Forms' AS tns)
SELECT m.n.value('(Bank_Account_Number)[1]','varchar(100)')
FROM @x.nodes('/tns:OF_Forms/Primary_Bank_Account')m(n)
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How can I get null values for the later weeks
Hi All,
When I execute this code I get the records till current week.
How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
Thanks,
Vikram
DECLARE
v_query VARCHAR2(4000);
TYPE ref_cursor IS REF CURSOR;
v_refcur ref_cursor;
v_sum NUMBER;
v_id NUMBER;
v_name VARCHAR2(1000);
v_weeknum NUMBER;
v_pernum NUMBER;
v_numOfWeeks NUMBER := 5;
BEGIN
v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
FROM s_postn) postn_tbl
WHERE lvl_6_id = 5767
AND fiscal_year = 2008
AND b.week_num < 4
AND b.period_num = 3
AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
ORDER BY postn_tbl.postn_name, b.week_num';
OPEN v_refcur FOR v_query;
LOOP
FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
EXIT WHEN v_refcur%notfound;
dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
END LOOP;
END;
This is the output when I execute this code.
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W2 COMM CNTRL TAM 216 12561.4
P3W3 COMM CNTRL TAM 216 2027.1
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
This is the output I'd like to get
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W4 COMM CNTRL ISAM 213
P3W5 COMM CNTRL ISAM 213
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W4 COMM CNTRL ISAM 273
P3W5 COMM CNTRL ISAM 273
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W4 COMM CNTRL TAM 213
P3W5 COMM CNTRL TAM 213
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W4 COMM CNTRL TAM 273
P3W5 COMM CNTRL TAM 273
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
P3W4 Damon Walters
P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PMSure, in a Single SQL ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>-- Start Of Test Data --
satyaki>with week_tab
2 as
3 (
4 select 1 period_num, 1 week_num, 10 bkg1 from dual
5 union all
6 select 1, 2, 40 from dual
7 union all
8 select 1, 3, 30 from dual
9 union all
10 select 1, 2, 20 from dual
11 union all
12 select 1, 1, 10 from dual
13 union all
14 select 1, 1, 20 from dual
15 union all
16 select 1, 3, 10 from dual
17 union all
18 select 2, 1, 15 from dual
19 union all
20 select 2, 2, 20 from dual
21 union all
22 select 2, 3, 10 from dual
23 union all
24 select 2, 1, 15 from dual
25 union all
26 select 2, 2, 30 from dual
27 union all
28 select 2, 3, 20 from dual
29 )
30 -- End Of Test Data --
31 select period_num,
32 week_num,
33 (
34 select sum(week_tab.bkg1)
35 from week_tab
36 where period_num = m.period_num
37 and week_num = m.week_num
38 group by week_num, period_num
39 ) sum_bkg1
40 from (
41 select dum.week_num,
42 wk.period_num
43 from (
44 select 1 week_num from dual
45 union all
46 select 2 from dual
47 union all
48 select 3 from dual
49 union all
50 select 4 from dual
51 union all
52 select 5 from dual
53 ) dum ,
54 (
55 select distinct period_num
56 from week_tab
57 ) wk
58 ) m;
PERIOD_NUM WEEK_NUM SUM_BKG1
1 1 40
1 2 60
1 3 40
1 4
1 5
2 1 30
2 2 50
2 3 30
2 4
2 5
10 rows selected.
Elapsed: 00:00:00.48
satyaki>Regards.
Satyaki De. -
Getting null value while parsing "XML String" with encoding WINDOWS-1252.
Hi,
when I am converting the Follwoing "xml string " to Document, I am getting the "null" as a document value.
String strXML = "<?xml version="1.0" encoding="WINDOWS-1252"?>
<category name="SearchByAttributes" value="Search By Attributes">
<item name="ORDER_LINE_ID" description="Application Search Attributes" >
<attribute name="Sequence" value="0001"/>
</item>
</category>"
My "xml string" has the encoding vaule: WINDOWS-1252.
I am using the following code to convert the "xml string" to Document. I am getting the Document values as a "null" while converting the above "string xml"
String strXML = //my above string xml.
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilderFactory.setIgnoringElementContentWhitespace(true);
docBuilder = docBuilderFactory.newDocumentBuilder();
doc = docBuilder.parse(new InputSource(new StringReader(strXML)));
System.out.println("doc value.."+doc)//I am getting null value for "doc".
Can anyone help me to resolve the issue.Thagelapally wrote:
I am coverting the below "XML string" to Document, once it is converted I am reading that Document,which have an "attribue" Element in.
String strXML = "<?xml version="1.0" encoding="WINDOWS-1252"?>
<category name="SearchByAttributes" value="Search By Attributes">
<item name="ORDER_LINE_ID" description="Application Search Attributes" >
<attribute name="Sequence" value="0001"/>
</item>
</category>" I am using the above code to read the Document. When run the code in "OC4J Server" and using Jdeveloper as an editor,I am able to perfectly read the "attribute" element in the document with out any problem.Println statement printing as I expected.
System.out.println("Element Name..."+listOfAtt.getNodeName());
//getting Element Name as...."attribute"(as expected)
System.out.println("Element Attibrute list....."+elementAtt);
//getting Element Attribute list as an...."oracle.xml.parser.v2.XMLAttrList@afe"But when run the same code(reading the same Document) in Tomcat and Eclipse,println satatement not printing as i expected.
System.out.println("Element Name..."+listOfAtt.getNodeName());
//getting Element Name as...."#text"(I am expecting output value "attribute" but it is printing "#text" which i don't know)
System.out.println("Element Attibrute list....."+elementAtt);
//getting Element Attribute list as an...."null"(I am expecting output value object reference but it is printing "null"
(without the rest of the code, i'm guessing that) most likely you are grabbing the first child node of the item element. however, you are not accounting for some text nodes that are most likely in that list, like the whitespace between the item element and the attribute element. please go read some tutorials on xml, there are thousands of them out there, and they will answer all you initial questions much more efficiently than posting each step to the forums. -
Hi
I have made on Bapi as webservice.. and i imported that webservice in model...
The structure of the model is like this.....
Request_Z_Bapi_Customer_GetDetail
.......|
.......|----- parameter
................|
................|-------customerNo
................|-------division
................|-------distributionchannel
................|-------saleOrg
................|-------passbuffer
.......|-------Response
................|------Result
.......................|-------peAddress
...............................|---city
...............................|---country
...............................|----name
...............................|----.....
...............................|----......
<b>I have writtin the following code in my Custom Controller</b>
Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail customer = new Request_Z_BAPI_CUSTOMER_GETDETAIL_WS_customerGetDetail();
customer._setUser("abap");
customer._setPassword("quinnox");
wdContext.nodeRequest_Z_Bapi_Customer_GetDetail().bind(customer);
<b>I have executed the fuction like this...............</b>
public void executeCustomerDetails( )
//@@begin executeCustomerDetails()
try{
wdContext.currentRequest_Z_Bapi_Customer_GetDetailElement().modelObject().execute();
wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
}catch(Exception e){
wdComponentAPI.getMessageManager().reportException(e.getMessage(),true);
but when i am priniting the results i am getting the null values.........
ex:
wdComponentAPI.getMessageManager().reportSuccess("Check "+wdContext.currentPeAddressElement().getFirstName());
here i am trying to get the FirstName but i am getting null value.....
how to solve this problem....
please help me
Best Regards
Ravi Shankar BHi Ravi,
First i would suggest you to test/execute the webservice to makesure that its working properly.
If yes, pass all the madatory fields to the webservice input parameters. In your case customerID could be a madatory parameter to get the address.
You can pass that parameter by customer.setCustomerNo().
Regards, Anilkumar -
I need to get the value of a text field that is located in another page JSP
I need to get the value of a text field that is located in another page JSP. How do I do that?
Well you see, I have a page at angelfire.com, which
does not support JSP. I want to call a script located
at mycgisever and then, when pressing a link on the
former page, the JSP page is loaded, and the script
get the value from the text field on the OTHER page.
Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
So you have a page1.
You hit submit from page1.
That goes to the cgiserver.
From the cgiserver, programmatically load up the jsp.
search this for the text field.
Display it on your page2.
Is that what you are trying to do?
BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp. -
Need to display null values against table
Hi All,
I have one table in which I only need to display null values along with the rest of columns. for example
ename sal date
scott 2000 15/07/06
Michal
now my query should return---
ename sal date
michal
hare krishna
AlokMaybe it is something like this?:
michaels> select column_name || ' contains ' ||
dbms_xmlgen.getxmltype ('select sum(nvl2(' || column_name || ',0,1)) c from ' || table_name ).extract ('//text()').getnumberval() ||
' NULL values' null_columns
from cols
where table_name = 'EMP'
and dbms_xmlgen.getxmltype ('select sum(nvl2(' || column_name || ',0,1)) c from ' || table_name ).extract ('//text()').getnumberval() > 0
NULL_COLUMNS
MGR contains 1 NULL values
COMM contains 10 NULL values -
Need help with NULL values in Crosstables
Hello everybody,
I need some help with NULL values and crosstables. My issue is the following:
I have a query (BW - MDX-Query) that gives me turnover measures for each month. In Crystal Reports I choose crosstable to display this whereby I put all month in columns and all turnover-measures in rows. Each month that has a value (measures are not empty) is chown in the crosstables rows. So far so good. The problem occures when there are month that actually have no values (measures are empty). In that case these months are not chown in columns. But I need CR to display these columns and show the value 0. How can I do that?Hi Frank,
Cross tab shows the data based on your column and these column fields are grouped and based on the group it will show your summaries.
If there is no data for any of your group it will not display that group. In this case you will have to create a standard report which should look like cross tab and to get zero values you need to write formulas .
Example if you want to display Moth wise sales :
if Month() = 01 Then
sum() else 0
Now this formula will check if your month is Jan, then it will sum up the values else it will display zero value.
This is possible only through standard report not with Cross Tab.
Thanks,
Sastry -
Getting null values from array
I have set up an array which is supposed to take the values of a recordset. Only problem is when I display them on the page, I get a list of 'null' instead of the data.
I'm trying to list first and last name (fname_ul & lname_ul in DB)
Here's my code:
<% // Here I'm getting the amt of rows returned
int count=1;
while(rs.next()) {
count++;
%>
<%
int k = count;
int i = 0;
String[] fname = new String[k]; // here i'm trying to initialize the string arrays;
String[] lname = new String[k];
while (rs.next()) {
fname[i] = rs.getString("fname_ul"); // here i'm trying to put data into the array;
lname[i] = rs.getString("lname_ul");
i++;
%>
<table>
<% for (i=0; i < k; i++) { %> // and finally here i'm trying to display the array;
<tr>
<td><%=fname%></td>
<td><%=lname[i]%></td>
<td><%=i%></td> // just something to make sure the rows are counting.
</tr>
<% } %>
</table>
my result is like this:
null null 0
null null 1
null null 18 // this is correct in that there are 19 rows in the resultset.
So, why isn't the data from the recordset going into the array??? Thanks for any help out there. Oh, those comments up there, they're not in the actual code, just to explain here.I have set up an array which is supposed to take the
values of a recordset. Only problem is when I display
them on the page, I get a list of 'null' instead of
the data.
I'm trying to list first and last name (fname_ul &
lname_ul in DB)
Here's my code:
<% // Here I'm getting the amt of rows returned
int count=1;
while(rs.next()) {
count++;
%>
<%
int k = count;
int i = 0;
String[] fname = new String[k]; // here i'm trying
to initialize the string arrays;
String[] lname = new String[k];
while (rs.next()) {
fname[i] = rs.getString("fname_ul"); // here i'm
trying to put data into the array;
lname[i] = rs.getString("lname_ul");
i++;
%>Well, in the first while-loop, you already loop through all the result set, so in the second while-loop, all you get is a null value.
Also, the way you put the data into the array is not right. I didn't see any array indices. Instead of using arrays, you can consider using Vector, so you don't need to know the number of rows in advance. -
Need to get the values from "Signed" field from PDF form.
Hi,
This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
Thanks & Regards
DineshHi Vikas,
you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
in this badi please see the importing and exporting parameters, you will get the values of withholding tax code as TE_RBWS in export parameters.
Please search in google or SCN you will get how to use it. -
Servlet only gets null values from mobile
OK, i'm doing a project for college which involves inputting data into an application on a mobile device, sending them to a servlet and updating a database. I've got my mobile app working and sending but the servlet is only receiving null values for it. I'll post the code for d servlet and see if anyone can figure out whats wrong. The problem might not even be the servlet so i'll post part of the mobile app as well. The problem could well be when i'm buffering the content on the mobile to a string. Anyway, any help appreciated, thanks.
The Servletimport java.io.IOException;
import java.io.PrintWriter;
import java.sql.*;
import java.util.logging.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ThisServlet extends HttpServlet
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
out.println("<html>");
out.println("<head>");
out.println("<title>ThisServlet</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet at " + request.getContextPath () + "</h1>");
out.println("</body>");
out.println("</html>");
} finally {
out.close();
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
@Override
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
String connectionURL = "jdbc:mysql://localhost:3306/database";
Connection connection = null;
Statement stmt = null;
ResultSet rs = null;
res.setContentType("text/html");
PrintWriter out = res.getWriter();
String MobileNumber = req.getParameter("user");
String field1 = req.getParameter("h1");
String field2 = req.getParameter("h2");
String field3 = req.getParameter("h3");
try {
// Load the database driver
Class.forName("com.mysql.jdbc.Driver");
// Get a Connection to the database
connection = DriverManager.getConnection(connectionURL, "root", "root");
try {
stmt = connection.createStatement();
} catch (SQLException ex) {
Logger.getLogger(ThisServlet.class.getName()).log(Level.SEVERE, null, ex);
rs = stmt.executeQuery("SELECT UserID FROM User WHERE MobileNumber = '" + MobileNumber + "'");
while (rs.next()) {
String UserID = rs.getString("UserID");
String insert = "INSERT INTO newTable(UserID, One, Two, Three) VALUES (?,?,?,?)";
PreparedStatement pst = connection.prepareStatement(insert);
pst.setString(1, UserID);
pst.setString(2, field1);
pst.setString(3, field2);
pst.setString(4, field3);
pst.executeUpdate();
pst.close();
catch(ClassNotFoundException e){
System.out.println(e.toString());
catch(SQLException e){
System.out.println(e.toString());
catch (Exception e){
System.out.println(e.toString());
finally {
// Always close the database connection.
try {
if (connection != null) connection.close();
System.out.print("closing db connection ... \n");
catch (SQLException ignored){
out.println(ignored);
@Override
public String getServletInfo() {
return "Short description";
}The Mobile App (only part where putting the content together to send)
buffer.append("user="+mobileNumber).append("?h1="+field1)
.append("?h2="+field2).append("?h3="+field3);
content = buffer.toString();
sendToServer(url, content);For sure you would have to do following on your mobile:
buffer.append("?user="+mobileNumber).append("&h1="+field1)
.append("&h2="+field2).append("&h3="+field3);
content = buffer.toString();
sendToServer(url, content);'?' - is a delimiter of GET parameters and '&' - is a delimiter between GET parameters
Edited by: ivanovpv on 30.04.2009 10:57 -
Getting null values from nodes using DOMParser
Hi
I'm having problems retrieving the values from an XML doc.
I'm using the DOMParser, but instead of retrieving the values
from the nodes, I just get null.
Code fragment :
DOMParser parser = new DOMParser();
parser.parse(url);
XMLDocument doc = parser.getDocument();
NodeList nl = doc.getElementsByTagName("*");
Node n;
iNode = nl.getLength();
for (int i=0; i<iNode; i++)
n = nl.item(i);
String szNodeName = n.getNodeName();
System.out.print(szNodeName+ " (" );
System.out.print(n.getNodeValue()+")");
System.out.println();
The result is
course (null)
Name (null)
All the node names are correct, but the node values are NOT
displayed.
Any idea ?
Rodrigo
nullAccording to the DOM Level 1 spec, the "value" of an ELEMENT node
is null and the getNodeValue() method will always return null for
an ELEMENT type node. You have to get the TEXT children of an
element and then use the getNodeValue() method in the text nodes.
Oracle XML Team
Rodrigo Loureiro (guest) wrote:
: Hi
: I'm having problems retrieving the values from an XML doc.
: I'm using the DOMParser, but instead of retrieving the values
: from the nodes, I just get null.
: Code fragment :
: DOMParser parser = new DOMParser();
: parser.parse(url);
: XMLDocument doc = parser.getDocument();
: NodeList nl = doc.getElementsByTagName("*");
: Node n;
: iNode = nl.getLength();
: for (int i=0; i<iNode; i++)
: n = nl.item(i);
: String szNodeName = n.getNodeName();
: System.out.print(szNodeName+ " (" );
: System.out.print(n.getNodeValue()+")");
: System.out.println();
: The result is
: course (null)
: Name (null)
: All the node names are correct, but the node values are NOT
: displayed.
: Any idea ?
: Rodrigo
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
HELP NEEDED !! Null values in Database
Hi there !!
I need help with EJB 3.0 passing null values to database. The situation looks like that :
I have created EJB entity class called "Osoba.java", it is in relation
with "Rola.java" (one to many). Each Object of class Osoba can have
many Roles. Then I created "OsobaServiceBean.java " I included it with
metod "CreateUnregisteredOsoba(Osoba , Boolean)". From "flex" level I
call this bean - call is accepted, and as a result new object of class Osoba is added to database. Problem is that only one column is filled in table,
dispite that in service bean I enforce it to fill all columns (see
source code - file OsobaServiceBean.java , method
createUnregisteredOsoba() )
I provided source code here :
FILE Rola.java
package test.granite.ejb3.entity ;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
@Entity
public class Rola extends AbstractEntity {
private static final long serialVersionUID = 1L;
@Basic
private String login = new String("");
@Basic
private String rola = new String("");
@Basic
private String roleGroup = new String("");
@Basic
private Boolean zatwierdzony = new Boolean(false);
@ManyToOne(optional=false)
private Osoba osoba;
public Boolean getZatwierdzony() {
return zatwierdzony;
public void setZatwierdzony(Boolean zatwierdzony) {
this.zatwierdzony = zatwierdzony;
public String getLogin() {
return login;
public void setLogin(String login) {
this.login = login;
public String getRola() {
return rola;
public void setRola(String rola) {
this.rola = rola;
public Osoba getOsoba() {
return osoba;
public void setOsoba(Osoba osoba) {
this.osoba = osoba;
public String getRoleGroup() {
return roleGroup;
public void setRoleGroup(String roleGroup) {
this.roleGroup = roleGroup;
FILE Osoba.java
package test.granite.ejb3.entity ;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
@Entity
public class Osoba extends AbstractEntity {
private static final long serialVersionUID = 1L;
@Basic
private String imie;
@Basic
private String nazwisko;
@Basic
private String login;
@Basic
private String haslo;
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER,
mappedBy="osoba")
private Set<Rola> role = new HashSet<Rola>();
@Basic
private String email;
@Basic
private String nrTelefonu;
@Basic
private int rokStudiow;
public String getPelneImie() {
StringBuilder sb = new StringBuilder();
if (imie != null && imie.length() > 0)
sb.append(imie);
if (nazwisko != null && nazwisko.length() > 0) {
if (sb.length() > 0)
sb.append(' ');
sb.append(nazwisko);
return sb.toString();
public String getImie() {
return imie;
public void setImie(String imie) {
this.imie = imie;
public String getNazwisko() {
return nazwisko;
public void setNazwisko(String nazwisko) {
this.nazwisko = nazwisko;
public String getLogin() {
return login;
public void setLogin(String login) {
this.login = login;
public String getHaslo() {
return haslo;
public void setHaslo(String haslo) {
this.haslo = haslo;
public Set<Rola> getRole() {
return role;
public void setRole(Set<Rola> role) {
this.role = role;
public String getEmail() {
return email;
public void setEmail(String email) {
this.email = email;
public String getNrTelefonu() {
return nrTelefonu;
public void setNrTelefonu(String nrTelefonu) {
this.nrTelefonu = nrTelefonu;
public int getRokStudiow() {
return rokStudiow;
public void setRokStudiow(int rokStudiow) {
this.rokStudiow = rokStudiow;
FILE OsobaServiceBean.java
package test.granite.ejb3.service;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.security.RolesAllowed;
import javax.ejb.Local;
import javax.ejb.Stateless;
import javax.persistence.Query;
import org.jboss.annotation.security.SecurityDomain ;
import test.granite.ejb3.entity.Osoba;
import test.granite.ejb3.entity.Rola;
@Stateless
@Local(OsobaService.class)
@SecurityDomain("other")
public class OsobaServiceBean extends AbstractEntityService implements
OsobaService{
private static final long serialVersionUID = 1L;
public OsobaServiceBean() {
super();
public List<Osoba> findAllOsoba() {
return findAll(Osoba.class);
@SuppressWarnings("unchecked")
public List<Osoba> findAllOsoba(String name) {
Query query = manager.createQuery (
"select distinct p from Osoba p " +
"where upper(p.imie) like upper('%" + name + "%')
or upper(p.nazwisko) like upper('%" + name + "%')"
return query.getResultList();
public Osoba createOsoba(Osoba person) { // pozwalamy
tworzyc zeby niezalogowany
return manager.merge (person); //
uzytkownik utworzyl osobe
} // ale
osoba ta i tak nie bedzie jeszcze
// zatwierdzona
@RolesAllowed({"unregistered"})
public Osoba createUnregisteredOsoba(Osoba person, boolean
zatwierdzony) {
Rola niezarejestrowany = new Rola();
niezarejestrowany.setRola("user");
niezarejestrowany.setOsoba(person);
niezarejestrowany.setRoleGroup("Roles");
niezarejestrowany.setLogin(person.getLogin());
niezarejestrowany.setZatwierdzony(zatwierdzony);
Set<Rola> role = new HashSet<Rola>();
role.add(niezarejestrowany);
// Arrays;
Object a[] = role.toArray();
Rola temp;
temp = (Rola)a[0];
System.out.println("Login = " + temp.getLogin() + //
added only for check !!
"Rola = " + temp.getLogin() +
"Zatwierdzony = " +
temp.getZatwierdzony() +
"Rolegroup = " + temp.getRoleGroup());
person.setRole (role);
return manager.merge(person); //
uzytkownik utworzyl osobe
} // ale
osoba ta i tak nie bedzie jeszcze
public Osoba modifyOsoba(Osoba person) {
return manager.merge(person);
@RolesAllowed({"admin"})
public void deleteOsoba(Osoba person) {
person = manager.find(Osoba.class, person.getId());
manager.remove(person);
public void deleteRola(Rola rola) {
rola = manager.find(Rola.class, rola.getId());
rola.getOsoba().getRole().remove(rola);
manager.remove(rola);
DATABASE LISTING :
-----------------------------------------------------------------+----------\
--------------------------------------------------------+
| id | ENTITY_UID | version | rola |
zatwierdzony | osoba_id | login | RoleGroup |
-----------------------------------------------------------------+----------\
--------------------------------------------------------+
| 1 | | NULL | unregistered |
| 0 | unregistered | Roles | NULL |
| 33 | eee91bd9-8c5f-4154-8260-3cac9a18eb97 | 0 | user |
| 34 | NULL | NULL |
| 32 | a7ed4e8d-a1ba-473a-921c-73c8f8f89efb | 0 | user |
| 33 | NULL | NULL |
-----------------------------------------------------------------+----------\
--------------------------------------------------------+
The row numer 1 is added by hand and it works. row number 33 and 32
are added to database by method CreateUnregisteredOsoba. As you can
see fields login as well as Roles and RoleGroup are empty (NULL). What
Im doing wrong ?
Thanks for your help -
Roman Kliś
PS. Table Osoba works fine - everything is added as I want.I solved problem.
The reason why EJB had not added anything to database NULL was becouse wrong names of class. Ive refactored whole class Rola.java to RolaClass.java and suddenly it worked.
True reason is still unknown but most importent is that it works.
Thanx for reading topic - hope next time someone will answer my questions.
By !! -
Need to get profile value defined at responlibility level
Hi I have a procedure which have to get the profile value defind at responsibility level.
I will be passing resp id as in parameter to that procedure.
The thing here is, I will not be creating a concurrent program for this. And this procedure will be accessed by some other application by connecting to apps database and executing
SO this is completly a procedure which is runned from back end.
Now to get that profile value I used
fnd_profile.value_specific('XXPROFILE',NULL,RESP_ID,NULL,NULL,NULL)
BUt it is not getting any value.
Please let me know for any other solutions.
ThanksHi;
Please check below which could be helpful for your issue:
How To Set A System Profile Value Without Logging In To The Applications [ID 364503.1]
Script To List The Values Of A Profile Option At All Levels [ID 803587.1]
How to Change Profile Option Value Without Forms [ID 943710.1]
Regard
Helios -
Getting null value for inputfile component in the popup
Hi,
My requirement is when i select the selectBooleanCheckBox a popup has to be rendered and with in that popup i have to display the inputfile component when i browse it should read the appropriate file.
But i am getting null from the input file component.
I written the code like this:-
1.First i have written a value change listener for the selectBoolenCheckBox.
2.I am rendering the popup from the valueChageEvent.
3.And i written the dialogListener for the Dialog in the popup.
and the code for the Dilog listener is:--
public void readingInputFile(DialogEvent dialogEvent) {
inputFile1.getValue();
//it is giving null value.
thanks in advance.
From
Srikanth.Vthanks for giving suggestion.
but i am not able to understand what meant by multipart in dialog page.
Actually,The code i written was:--
1. for selectBooleanCheckBox i written value chage listener
onChangeValue(ValueChageEvent valueChageEvent){
// in this i call the method to raise popup;
risePopUp();
2.The popup structure has follows:-
af:form --> af:popup ---> af:dialog --->af:inputfile
for this dialog i have written dilogListener:
getInputFile(DialogEvent dialogEvent){
//giving null for the inputFile,getValue();
for this dialog i don't have any multipart property
From,
Maybe you are looking for
-
I need to change my ITunes store to a different country but it won't allow me to do it unless I spend the last 72c in my account. How can I switch stores? thx
-
How can i migrate a single application from my old macbook to my new macbook
Can I migrate only single applications or files using the migration assistant? how?
-
List of users who were granted particular function in oracle apps R12 db?
Hi I need to list all users who were granted particular function (suppliers) from oracle apps R12 database. User -->Resp -->Menu --> Submenu/function. I have two queries like the following --Below sql query give all users those having Purchasing and
-
I've got a power cable from my 2011 macbook air which I would like to use as a spare cable for my new 2013 macbook pro, but the design has changed. Is there an adapter available so that I can use it?
-
PDF Optimizer decreases resolution, increases file size
I've noticed that the file size of my PDF files INCREASES now when I optimize them now that I've updated to version 7.0.7. The image resolution still decreases but the files increase significantly. For example, I have a 2 page document that originall