You are on page 1of 8

Once request is CLOSED in CUSTAUT then check in t_cbcm_bscs_messages table using below Query.

IN CUSTUAT:
1)select m.msg_id,m.correlation_id,
sr1.account_id,sr1.new_account_id,i.subrequest_id,
pd.target_system,
pd.name,

decode(m.process_status,0,'TO_BE_PROCESSED',1,'PROCESSED',2,'ERROR',3,'WAITIN
G_FOR_REPLY',4,'BLOCKED') status,
m.request_xml,
m.response_xml,
m.process_error,
m.sequence,sr1.sub_request_type_id,sr1.account_number,
m.modified_date,
i.product_id
from t_soh_bscs_interface i,
t_cbcm_bscs_process_definition pd,
t_soh_bscs_process_map pm,
t_cbcm_bscs_messages m,
t_soh_subrequest sr1,
t_soh_subrequest sr2
where sr1.subrequest_id =296015663
(sr1.account_id = 701147812 or sr1.new_account_id = 701147812)
and sr2.request_id = sr1.request_id
and i.subrequest_id = sr2.subrequest_id
and m.interface_id = i.interface_id
and m.map_id = pm.process_map_id
and pd.process_id = pm.process_id
order by m.modified_date,m.sequence;

2)select * from t_cbcm_bscs_messages where MSG_ID='74185'

STATUS 1: Processed

STATUS 2: FAIL

STATUS 0: TO BE PROCESSED

IN BSCS:

 If t_cbcm_bscs_messages table,Create Customer New is PROCESSED then there should be a


Record in below table with

select * from customer_all where customer_id='74185'

 customer_id is MSG_ID in t_cbcm_bscs_messages (CUSTUAT)


IN EBW:

 In t_cbcm_bscs_messages table for Seq 2 (Target system :EBWFIX) in CUATUAT if the status is
PROCESSED then proceed with below validation.

 VERIFICATION:
select * from T_EBW_ORDER_TRANSACTION_DTLS where subrequest_id =296015663

edit T_EBWLM_ORDER_TRANSACTION_DTLS where subrequest_id =296073389

select * from t_ebwm_request_master where cbcm_trans_id in ('CBCM73171')

(for large market product like alshamil take the MST_TRANS_ID and search)

 Take the TRANSACTION_ID and put in the below table and process status should be 2 for all the
records

select * from T_EBW_WF_STAGE_DTLS wf where TRANSACTION_ID= 2559 order by sequence


STATUS 1: INPROGESS

STATUS 2: PROCESSED

STATUS 3: FAILED

 If all the API are successful in EBW (T_EBW_WF_STAGE_DTLS) and in CUSTUAT


(t_cbcm_bscs_messages table) still seq 2 is waiting for reply then we can manually update the
status to processed(Status 1).

update t_cbcm_bscs_messages set Process_STATUS='1' where MSG_ID=' 74048'

IN CDB:

 Update the status in t_cbcm_bscs_messages to 0 for seq 2 (Target system: CDB) in CUSTUAT.
 After some time the status will processed it mean customer will be registered in CDB table.
 Records should be there in the below tables
select * from CDB_ACCOUNT where account_id in (‘702255374’)

select * from CDB_SUBSCRIPTION where owner_account_id in (‘702255374’)

Once all the verification have been completed we can proceed with BILLING .

BILLING PROCESS:

 In BSBS by using account_id from below table we can take the cutomer_id
select * from customer_all where custnum = '702255138'(Customer id : 1601533)
 Replace the customer id in the below Query

bch -c 1601520 -M sim -S 2016-04-01:00:00:00


 1601533: Customer_id
 S: we are doing simulation of Billing.
 Always in BSCS we generate the Billing in the starting of the Next month for the billing of
current month
EX: Here we are generating BILLING for the month of JAN so we are taking as (2016-02-
01:00:00:00)

LOG IN to PUTTY:d

bscsu2r2/ falcon54321@ DX266

 Run Pre-Billing Script for Prorated charges go to the below location and run the command.
 After successful execution of PBS then only prorated charges will be applied to the customer.

cd /export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing

./START_PRE_SIMULATION.sh

 If you want to PBS for desired month then go to the below path and modify the month in
mrc_refund.sql

Ex: if you want proration for JAN month

/export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing/PLSQL

 Then run the below query to generate the regrouped XML file

bch -c 1602200 -M sim -S 2016-04-01:00:00:00

Not generated then go to the path and run bgh job .


 Go to the below path and delete all the CTRL files

cd /export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing/StreamServAdaptor/ctrl

rm -r SSA.*

 Run the throttling files as below command

cd /export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing/StreamServAdaptor/script

sh ./PreprocessBillingDocDB_Throtling_Disable.sh /falconapp5/ssdevp56/streamserve-
5.6.1.GA.272/root/applications/DROP5_SSDEV_PREPROC_1/Devp/In

sh ./PreprocessBillingDocDB_Throtling_Disable.sh
/export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing/StreamServAdaptor/script/

There should be record with the cutomer_id and will be having DR_ASS_DOC_NUMBER_EXTERNAL_ID
select * from dr_documents where DR_ADDRESSEE_CUSTOMER_ID=1601672--- SIM0000009599SIM

 And verify the same regrouped XML should have been created in the below location

/export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/Billing/StreamServAdaptor/script

 The status should be F in the below query,If its R then delete all the control files once again and
change the status to I and proceed with the all the steps once again.

edit emcesu.ss_parallel_process where doc_refnum in (


select DR_ASS_DOC_NUMBER_EXTERNAL_ID from dr_documents
where DR_ADDRESSEE_CUSTOMER_ID in (1605265)--
(1600787,1600776,1600778,1600780,1600781 )

and trunc(DR_DOCU_CREAT_DATE_TIMESTAMP) =trunc(sysdate)


)

PDF INVOICE GENERATION:


LOG IN to PUTTY: (Stream Server)

Dx266:ssdevp56/test12345

 Take the regroup XML from above location and place in the below location (SSH) input path

/falconapp5/ssdevp56/streamserve-
5.6.1.GA.272/root/applications/DROP5_SSDEV_PREPROC_1/Devp/In

POST PROC 3

/falconapp5/ssdevp56/streamserve-5.6.1.GA.272/root/applications/Drop5_SSDEV_PREPROC_3/Devp/In

 Run the ppq command in PUTTY in below location

cd /falconapp5/ssdevp56/streamserve-5.6.1.GA.272/root/applications/DROP5_SSDEV_POSTPROC_1/

------------------------------------------------------------------------------------------------------------------------------------------

/falconapp5/ssdevp56/streamserve-5.6.1.GA.272/root/applications/Drop5_SSDEV_POSTPROC_1_new/

cp *.ppq ppq

 PDF invoice will be generated in the below location or we can search with the PDF name by
using search command.
/falconapp1/ssdevp56/Out/0116/CONSUMER

find . -name '*000010773*'

find . -name '*ZB1300001827*.pdf'

find . -name '*00010788*.pdf'

find . -name '*10772*'

INVZB1300001675

HOW TO INTERFACE POST PAID ACCOUNT IN BSCS:


 While creating Post-paid accounts (before final SAVE) to interface the account in to BSCS we
have to follow the below steps to push the respective account.

Log in to BSBS via PUTTY

Go to the below location

/export/home/bscsu2r2/BSCSiXR3/BSCSR2U2/ESU_PRG/PREACTIVATED

dn_sand.txt : Change the account number(971561007708)

sm_sand.txt : change the resource no and IMSI no(8997112206660290854,424020240035485)

 Run below sript in the same location to insert the data

FR_MIG.sh -dealer_id=18 -dn_file=dn_sorna.txt -sim_file=sm_sorna.txt -


bscs_db=SYSADM/SYSADM@BSCSR2U2
After successful execution we need to validate as follow in BSCS data base

 VERIFICATION:

select * from STORAGE_MEDIUM where sm_serialnum='8997112206660532501'(Resource Number)

select * from PORT where port_num='424020240039158'(IMSI Number)

select * from directory_number where dn_num='971562266842'(Account Number)

Then click on final SAVE button in UAT.

After pushing the details still you are facing error then remove the old records with SM_id

FR_MIG.sh -dealer_id=18 -dn_file=dn_sorna.txt -sim_file= -


bscs_db=SYSADM/SYSADM@bscsr2u2

FR_MIG.sh -dealer_id=18 -dn_file= -sim_file=sm_sorna.txt -


bscs_db=SYSADM/SYSADM@BSCSR2U2

/export/home/ssdevp56/StreamServ/root/applications/tables

Once Account has been activated then we can check in EBW for below table
select * from fees where customer_id='1603848 '(valid from column)

The date in the data base will reflect in the PDF invoice.

Note : If the customer has been activated in CBCM in 25th of FEB but got processed in MARCH 3rd then

Recurring charges will populate on 25th FEB but One time charges/instalments will post on 3rd of
march.(Change the activation date i )

2) Change the assign date in the below table.

promo_assign_state

promo_assign

2)If customer is having any prepayment then check in the below table there should be record.

Select * from CASHRECEIPTS_ALL where customer_id =1603848

3) After stream server deployment check in the below table,the status should be C means successful.
If S means its failing.

select * from dmfadm.mig_process kh where KH.SCRIPT_NAME in ('ETI-100482-Samsung-S7-Legend-


V1.sql')

5)Below is used for know about the rate plane description.

select * from MPUSNtab where SHDES='MB054'

4) for service details below table

Select * from T_EBWM_ORDER_SERVICE_DETAILS where TRANSACTION_ID = 34191

5) select * from t_ebw_pc_mapping where cbcm_rp_code = 'RP1001'

6)To check the resource No (in EBW )

select * from T_EBWM_ORDER_RESOURCES where trans_id=33775

One time charges should be there in the below table(If One time charges are missed out then check as
below)

select * from t_soh_acct_transaction_details td where td.subrequest_id = 296123917--CUSTUAT

select * from T_ebw_TRANSACTION_charges where TRANSACTION_ID= 4296--- in EBW

select * from T_EBW_PC_MAPPING where cbcm_rp_code='RP3PPRIM04'

select * from T_EBW_OCC_GLOBAL_CONFIG C where C.CBCM_SERVICE_CODE='MKTSMTP11001'

If any transaction is missing the check is the request has been interfaced through COMS or not

-- coms interface

select * from cbcm_uat.t_soh_falcon_extsystem_orders ex where ex.subrequest_id in (296123917)

select sub.modified_user_id,sub.new_account_id,sub.account_id,sub.* from t_soh_subrequest sub


where sub.subrequest_id in (296123917) – IF modified user is NSR

6)If you are unable to generate the PDF Invoice then check the billMedium.

L1PSS: Unable to generate then change it to L2PSS.

After changing it we will be able to get the pdf invoce.

select customer_id,ccseq,cclanguage,ccemail,ccsmsno from ccontact_all where customer_id in

(Select customer_id from customer_all where custnum in


('702273194','702288334','702294813','702294815','702253965','702255456','702253363','702289133','70
2303973'))
order by customer_id desc,ccseq desc

Select customer_id,CUSTNUM from customer_all where custnum in


('702273194','702288334','702294813','702294815','702253965','702255456','702253363','702289133','70
2303973')

SELECT * FROM EMCESU.MRC_SERVICE_MAP_TABLE WHERE IMPACT_SNCODE_SHDES='LT24R’

IF RECORDS ARE THERE THEN ERVICE SHOULD BE PRORATED.

One time charge transaction(Missing then check the below)

Check in the below table (BOOKING_REQUEST_WRITE an d then NoticeOCC request xml.)

If we are getting below means OCC is getting skipped and check in T_EBw_WF_STAGE_DTLS tablw also.

<NoticeOccWrite>

<errorCode>3003</errorCode>

<errorInfo>Order Not eligible for Notice OCC</errorInfo>

</NoticeOccWrite>

edit T_EBw_WF_STAGE_DTLS where transaction_id=5087 order by sequence

You might also like