Open service transactions in ICWeb
Hi all
I have a scenario that an IC Agent needs to open 2 Service transactions for the same Account at the same time.
For Example: a contact person is called and wants to Open Service Order for 2 products. The classification is different and so the other data.
Does the ICweb Client give a Solution for this scenario?
Thanks for your reply!
Hi
You Should use business transaction profile that have Interaction record and then DEPENDENT transaction your service order.
if you do not want the users to see the IR you first implement the status profile to default "closed" and do not show it on the navigation bar.
Now after confirm
one Service Order is open.
if you want to open another Service Order you should press "NEW" button and new service order is opened.
when you press END
2 Service Order is Opened & 1 IR.
If you confirm Account and do not navigate to Service Order 1 IR will save when you press END.
The logic is that all incoming call will save.
I create Z incoming call with status profile that have "closed" default.
Merav
Similar Messages
-
Report to see and send as e-mail of all open Complaints/transactions
Hello Gurus,
We need to view all the Open Service Transactions/Incidents (we have a Ztransaction type) for the past 3 months and send that output as an attachment to our Service Manager's e-mail address for him to action on.
Is there a standard way of achieving this ?
Please point me if there are any GUI transaction codes that i can schedule them as a background job specifying an e-mail address ?
Thanks in advance,
Regards,
Gopi.Hi Gopi,
There are no standard tools for your requirement. It is very specific requirement to your customer.
However, there are a couple of tools which you can use to extract the data. The mailing part needs to be development in custom solution.
My suggestion would be develop a report and use the tools to extract the data. Then schedule the job in the back ground. I also developed a similar kind of functionality in one of my earlier project.
Let me know if you need any kind of technical inputs regarding the development.
Hope this helps.
Thanks,
Samantak Chatterjee. -
LSMW for open notifications,open sales order & open service order
Hi Gurus,
Can anyone please tell me how to go about writing LSMW's for open notifications,open sales order & open service order.
This is for service processing in CS ,where has the scenario is
Create Notification (IW51) --> create Sales Order(Multiple Line Items) ( VA02) --> Create Service Order ( IW32)
Service order is automatically (Item Proposal) generated w.r.t Sales Order (multiple line items)
How to I do the recording for transactions in such a scenario.
Please suggest!
Thanks!
Vinodyou can use the below LSMW IDOC method
SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
SERVICENOTIFICATION_CREATEFROM Create service notification
SERVICE_CREATE Creation of a Service Master Record
CARNOT Delivery: Shipping notification
DESADT Shipping notification
DESADV Delivery: Shipping notification
INOTIF Notifications
INTUPD Notification Status Update
ISU_ADVICE IS-U Deregulation: Notification
ISU_CHANGE_REQUEST IS-U: Notification of Change to
ISU_MAINT_SO IS-U Dereg.: Notification of Dev
ISU_REMITTANCE_ADVICE Transfer Notification -
HR Self-Service Transactions - error notifications
In our HR system we are using Administrator Self Service, allowing staff to make changes to HR records for people they manage.
In quite a few cases, our central admin team are receiving notifications with subject lines like:
Application Error has occurred in your process Change Job and Terms performed on Bloggs, Mr Joseph
When opening the notification, the error message at the top of the page says a range of things, such as:
The changes were not applied because This transaction has failed because the employee's record or eligibility status has changed. Submit a new transaction.
Another user has updated this person's record. Please reject the transaction so the initiator can check whether the change is still valid for the updated record.It would seem that the cause of these is because between the HR Self Service transaction being submitted and the error notification going out, something has changed on the HR record in question.
Is there any way I can work out where that change is being made, or is that too hard?
I can see the HR Self Service Transaction via:
SELECT hat.creation_date hrss_tx_date
, wn.notification_id nid
, wn.begin_date notif_date
, wn.status
, wn.item_key
, REPLACE(
wn.subject
, 'Application Error has occurred in your process '
) subject
, fu.user_name originator_uname
, papf3.full_name hr_record_being_changed
, fu.description originator_description
, papf.full_name originator_full_name
, papf2.full_name manager_full_name
, fu2.user_name manager_login
, fu2.description manager_description
FROM applsys.wf_notifications wn
, applsys.fnd_user fu
, applsys.fnd_user fu2
, hr.hr_api_transactions hat
, hr.per_all_people_f papf
, hr.per_all_people_f papf2
, hr.per_all_people_f papf3
, hr.per_all_assignments_f paaf
WHERE hat.item_key = wn.item_key
AND hat.created_by = fu.user_id
AND papf2.person_id = fu2.employee_id
AND hat.creator_person_id = papf.person_id
AND papf.person_id = paaf.person_id
AND paaf.supervisor_id = papf2.person_id
AND hat.selected_person_id = papf3.person_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND SYSDATE BETWEEN papf2.effective_start_date AND papf2.effective_end_date
AND SYSDATE BETWEEN papf3.effective_start_date AND papf3.effective_end_date
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND recipient_role = 'HRMS_DEV_ROLE'
AND subject LIKE 'Application Error%'
AND wn.notification_id = :nid
ORDER BY wn.begin_date DESC;But if I look at e.g. the per_all_people_f or per_all_assignments_f tables to look for changes made to the same HR record that the Self-Service transaction was for, nothing recent is returned:
SELECT papf.employee_number
, paaf.assignment_number
, paaf.object_version_number paaf_ovn
, papf.creation_date papf_creation_date
, papf.last_update_date papf_last_update_date
, paaf.creation_date paaf_creation_date
, paaf.last_update_date paaf_last_update_date
, papf.object_version_number papf_ovn
FROM hr.per_all_people_f papf
, hr.per_all_assignments_f paaf
WHERE papf.person_id = paaf.person_id
AND papf.full_name LIKE :pn
ORDER BY paaf.last_update_date DESC;I have seen stuff on My Oracle Support about "object version number" e.g. 1300998.1 says:
"This is an expected behavior. Since after first approval the object version number of contact's personal details has changed. Now when you try to approve second notification we will compare the OVN in transaction tables to the OVN in database (which got changed). Hence we get an object version mismatch and above error."However, I am still stuck trying to see what has changed. I need to find this so I can go to the functional people who don't understand why they are getting the error notifications, so say "Look, this has changed since the Self-Service transaction was submitted, hence the error".
Any advice would be much appreciated.
ThanksHi,
In the end I wrote some SQL which identified the fact that the HR tables had been updated in Core Apps AFTER a Self-Service transaction had been started.
SELECT distinct hat.creation_date workflow_start
, wn.notification_id nid
, (SELECT MAX(last_update_date) FROM hr.per_all_assignments_f paaf2 WHERE paaf2.person_id = papf3.person_id) last_assig_update
, wn.begin_date error_date
, wn.begin_date - (SELECT MAX(last_update_date) FROM hr.per_all_assignments_f paaf2 WHERE paaf2.person_id = papf3.person_id) dd
, wn.item_key
, SUBSTR(
wn.subject
, 48
, INSTR(SUBSTR(wn.subject, 48 + 2), 'performed on ')
) transaction_type
, CASE
WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Miss%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Miss' , '' )
WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Mrs%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Mrs' , '' )
WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Ms%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Ms' , '' )
WHEN SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) LIKE '%Mr%' THEN REPLACE( SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 ) , ' Mr' , '' )
ELSE SUBSTR( wn.subject , INSTR(wn.subject, 'performed on ') + 13 , LENGTH(wn.subject) - INSTR(wn.subject, 'performed on ') + 13 )
END performed_on
, wn.subject
, papf3.full_name
, papf3.employee_number empno
, fu.user_name by_un
, fu.description by_desc
, papf.full_name by_name
FROM applsys.wf_notifications wn
, applsys.fnd_user fu
, hr.hr_api_transactions hat
, hr.per_all_people_f papf
, hr.per_all_people_f papf3
, hr.per_all_assignments_f paaf
WHERE hat.item_key = wn.item_key
AND hat.created_by = fu.user_id
AND hat.creator_person_id = papf.person_id
AND papf.person_id = paaf.person_id
AND hat.selected_person_id = papf3.person_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND SYSDATE BETWEEN papf3.effective_start_date AND papf3.effective_end_date
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND subject NOT LIKE '%Phone Numbers%'
AND recipient_role = 'HRMS_DEV_ROLE'
AND subject LIKE 'Application Error%'
AND papf.current_employee_flag = 'Y'
AND paaf.assignment_type = 'E'
ORDER BY 1 DESCIt helped compare things in the background and prove in our case that there wasn't a system problem.
Thanks -
Text Determination in Sales & Service Transactions
Hello Guru's,
We have a Text Determination Procedure in Place for our Sales and Service Transactions.
Now my users can enter text and and modify it by re-opening the actvity.
How do i force them to enter new text only???
regards
Amar ReddyHi,
1. Text type - A002, Desc - Note
Under 'Definition of Procedure'
Sequence - 0020
Changes - P
Transfer Type - Not Yet Defined
2. Text type - A008, Desc - Log
Under 'Definition of Procedure'
Sequence - 0030
Changes - R
Transfer Type - Not Yet Defined
Reward points if helpful
Shridhar -
Open Service Connection to Enterprise Portal system from Solution Manager
Hi All,
We are getting below error, when we tried to Enable/Open Service Connection ( DSWP -> Solution Landscape ->Service Connection) to Enterprise Portal system.
Here we selected the row Connection -> R/3 support and Connection tab -> open/change connection and clicked on SUBMIT. The we got below short dump.
Runtime Errors UNCAUGHT_EXCEPTION
Exception CX_WD_CONTEXT
Short text
An exception occurred that was not caught.
What happened?
The exception 'CX_WD_CONTEXT' was raised, but it was not caught anywhere along the call hierarchy.
Since exceptions represent error situations and this error was not adequately responded to, the running ABAP program
'CL_WDR_CONTEXT_NODE===========CP' has to be
terminated.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis:
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WD_CONTEXT', was not caught and
therefore caused a runtime error.
The reason for the exception is:
The node does not contain any elements. COMPONENTCONTROLLER.1.SYSTEMS.1.CLIENTS
How to correct the error:
If the error occures in a non-modified SAP program, you may be able to find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following keywords:
"UNCAUGHT_EXCEPTION" "CX_WD_CONTEXT"
"CL_WDR_CONTEXT_NODE===========CP" or "CL_WDR_CONTEXT_NODE===========CM00R"
"_RAISE_ELEMENT_NOT_FOUND"
SMSY configuration ( logical component assignmnet) is alredy done. Is it required to do any other settings. SMD ( Solution Manager Diagnostics ) settings are not done. Is this required?
We are able to enable/open Service Connection open to ABAP system . Only for Java system we are getting error.
Please help me on this.
Thanks..
PreethishHi,
note 1081895 should solve this. Otherwise please create a ticket.
Regards
Andreas -
Hi,
We need close more than 2000 open Service PO's.In service PO there will be not delivery completed indicator.
Please advice how to close open service PO's.
Regards,
PraveenHi,
Set Final entry indicator (If you set the Final entry indicator , no further services can be entered against the
relevant purchase order) in your Service Entry Sheet.
Delivery complete indicator is not occur in service order, so you can do this.
You have to set deletion flag in service order line item.
You can do this with ME22N and for multiple service order you can do this with MEMASSPO transaction code.
Regards,
Mahesh Wagh -
Error opening a transaction in Logic Editor
Hi,
Using 11.5 SR3.
I have a transaction which some 20 sequences and 30 action blocks. I configured it as a listener. For some strange reason, I just cannot open the transaction in the Logic editor.
Another issue, though not sure if its related to the same thing is that some of the transactions say 'executing' even though the last sequence in the transaction is executed (the last sequence is a file write and the file is already created) when running from the Logic Editor. I also feel that the performance of the transaction execution has gone down recently. Not sure if all these issues are related or each one is a separate issue.
Any clues from the gurus?
Ravi.Hi Ravi,
Found a SAP Note on the transaction loading issue.
Note: 960362
Title: Large Transactions can crash server
URL: [Click Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_xap/~form/handler]
It mentions increasing the heap size as an option.
Cheers,
Jai.
Edited by: Jai Tamhane on Feb 7, 2008 12:23 PM -
Opening Balance - Transactions - Closing Balance in FD10N & FK10N
Hi All,
I need to see the report in following format for FD10N & FK10N
1. Opening Balance
2. (+/-) Transactions
3. Closing Balance
FD10N and FK10N show the period balance and drilling into the balance shows the detail view of transactions posted in the period. But I need to see the above 3 items (Opening Balance, Transactions & Closing Balance) in 1 report.
ThanksThere is no such report to show the opening balance then your transactions and then your closing balance. (something similar to personal bank statement)
However, you may see the following reports may suffice your requirement (there is no drilldown available)
S_ALR_87012172 (for customers)
S_ALR_87012082 (for vendors)
Regards,
Ravi -
Failed to open service OracleDEV102TNSListener , error 1060
Dear Consultants,
I have been trying to install ECC6 , Oracle on Windows 2003, and my Hardware is RAM --2 GB
HDD -- 300GB
I am having intel duo core processor and iam using Gigabyte motherboard,Intel chipset.
My Installations stops at Import_Abap phase, following are the logs ,
<b>ERROR 2007-03-10 04:47:46
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
ERROR 2007-03-10 04:47:47
FCO-00011 The step runMigrationMonitor with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
INFO 2007-03-10 05:03:18
An error occured and the user decide to stop.\n Current step "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|9|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor</b>".
I have set the all the Environment variables , i run r3trans -d and the result is
<b>C:\Documents and Settings\devadm>r3trans -d
This is r3trans version 6.13 (release 700 - 20.02.06 - 16:15:00).
unicode enabled version
2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
r3trans finished (0012).</b>
<b>I also run r3trans -x and the result is.
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '12541'
4 ETW000 21 1.098448
4 ETW000 [dev trc ,00000] Try to connect with default password 142 1.098590
4 ETW000 [dev trc ,00000] Connecting as SAPSR3/<pwd>@DEV on connection 0 (nls_hdl 0) ... (dbsl 700 240106)
4 ETW000 22 1.098612
4 ETW000 [dev trc ,00000] Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
4 ETW000 23 1.098635
4 ETW000 [dev trc ,00000] 0 UTF8 1 0244CF08 0245243C 02451CC4
4 ETW000 24 1.098659
4 ETW000 [dev trc ,00000] server_detach(con_hdl=0,stale=0,svrhp=02463484) 14 1.098673
4 ETW000 [dev trc ,00000] Detaching from DB Server (con_hdl=0,svchp=02451C10,srvhp=02463484)
4 ETW000 19 1.098692
4 ETW000 [dev trc ,00000] Deallocating server context handle 02463484 16 1.098708
4 ETW000 [dev trc ,00000] Allocating server context handle 15 1.098723
4 ETW000 [dev trc ,00000] Attaching to DB Server DEV (con_hdl=0,svchp=02451C10,svrhp=02463484)
4 ETW000 29 1.098752
4 ETW000 [dev trc ,00000] Tue Mar 13 04:38:09 2007 1093335 2.192087
4 ETW000 [dboci.c ,00000] *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
4 ETW000 19 2.192106
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '12541'
4 ETW000 19 2.192125
4 ETW000 [dblink ,00431] ***LOG BY2=>sql error 12541 performing CON [dblink#3 @ 431]
4 ETW000 176 2.192301
4 ETW000 [dblink ,00431] ***LOG BY0=>ORA-12541: TNS:no listener [dblink#3 @ 431]
4 ETW000 19 2.192320
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'DEV'"</b>
Event Viewer result is
<b>----
Faulting application isqlplussvc.exe, version 1.0.7.0, faulting module msvcrt.dll, version 7.0.3790.0, fault address 0x0003113b.</b>
finally in SAPINST logs i could see
<b>
Starting tnslsnr: please wait...
Failed to open service <OracleDEV102TNSListener>, error 1060.
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
System parameter file is C:\oracle\DEV\102\network\admin\listener.ora
Log messages written to C:\oracle\DEV\102\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\DEV.WORLDipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\DEVipc)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DEV)(PORT=1527)))
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=DEV.WORLD))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 10-MAR-2007 01:29:29
Uptime 0 days 0 hr. 0 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\oracle\DEV\102\network\admin\listener.ora
Listener Log File C:\oracle\DEV\102\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\DEV.WORLDipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=
.\pipe\DEVipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DEV)(PORT=1527)))
Services Summary...
Service "DEV" has 1 instance(s).
Instance "DEV", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully</b>
Please suggest for the possible workaround, as you can see i have tried everything.
Regards,Dear Umesh,
I have triggered the Installation again, still the problem remains unresolved,
PLEASE CONFIRM THAT I AM USING INTEL CORE DUO PROCESSOR , does it have any dependcies or prerequisites.
pasting the last few lines of logs of SAPAPPL1_15, where i got the error in ABAP IMPORT.
DbSl Trace: ORA-4031 occurred when executing SQL statement (parse error offset=0)
(DB) ERROR: DDL statement failed
(CREATE UNIQUE INDEX "VDBEPI_EU~0" ON "VDBEPI_EU" ( "MANDT", "BUKRS", "RBELKPFD", "RPOSNR" ) TABLESPACE PSAPSR3 STORAGE (INITIAL 16384 NEXT 0000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
DbSlExecute: rc = 99
(SQL error 4031)
error message returned by DbSl:
ORA-04031: unable to allocate 40 bytes of shared memory ("shared pool","CREATE UNIQUE INDEX "VDBEPI_...","Typecheck","qcsqlpath: qcsAddSqlPath")
(DB) INFO: disconnected from DB
E:\usr\sap\NAJ\SYS\exe\uc\NTI386\R3load.exe: job finished with 1 error(s)
E:\usr\sap\NAJ\SYS\exe\uc\NTI386\R3load.exe: END OF LOG: 20070517090126
===================================================
IMPORT_MONITOR.JAVA logs.
Import Monitor jobs: running 2, waiting 35, completed 34, failed 1, total 72.
Loading of 'SAPAPPL1_15' import package: ERROR
Import Monitor jobs: running 1, waiting 35, completed 34, failed 2, total 72.
Loading of 'SAPAPPL2_5' import package: ERROR
Import Monitor jobs: running 0, waiting 35, completed 34, failed 3, total 72.
Import Monitor jobs: running 1, waiting 34, completed 34, failed 3, total 72.
Import Monitor jobs: running 2, waiting 33, completed 34, failed 3, total 72.
Import Monitor jobs: running 3, waiting 32, completed 34, failed 3, total 72.
Loading of 'D021T' import package: OK
Import Monitor jobs: running 2, waiting 32, completed 35, failed 3, total 72.
Import Monitor jobs: running 3, waiting 31, completed 35, failed 3, total 72.
Loading of 'SAPAPPL1_12' import package: OK
Import Monitor jobs: running 2, waiting 31, completed 36, failed 3, total 72.
Import Monitor jobs: running 3, waiting 30, completed 36, failed 3, total 72.
Loading of 'SAPSSEXC_4' import package: OK
Import Monitor jobs: running 2, waiting 30, completed 37, failed 3, total 72.
Import Monitor jobs: running 3, waiting 29, completed 37, failed 3, total 72.
Loading of 'SAPSSEXC_6' import package: OK
Import Monitor jobs: running 2, waiting 29, completed 38, failed 3, total 72.
Regards, -
Open AR transaction and Receipts
Can you let me know the standard concurrent programs which list all the Receivables Open AR Transaction and Open AR Receipts
The table ar_payment_Schedules_all gives you the outstanding information as on date. For eg. if the system date is 13th April and if you query the ar_payment_schedules_all table, the amount_due_remaining column will give you the open amount as on that date.
However if you want the oustanding as on some previous date, lets say as on 31st March, in that case you have to rollback all the applications that would have occured from 1st april to 13th april.
Find below the script that I used to get the oustanding as on any previous date. Pls. note that I am using a temp table here to populate the details.
declare
v_cash_receipt NUMBER;
v_adjustment NUMBER;
v_credit_memo NUMBER;
v_as_of_outstanding NUMBER;
v_cash_receipt_acctd NUMBER;
v_adjustment_acctd NUMBER;
v_credit_memo_acctd NUMBER;
v_credit_memo_acctd_1 NUMBER;
v_as_of_outstanding_acctd NUMBER;
p_as_of_date DATE;
cursor cs_get_trx (p_as_of_date1 IN Date) is
SELECT ps.customer_id CUST_ACCOUNT_ID
, trx.creation_date INV_CREATION_DATE
, ps.trx_number INVOICE_NUMBER
, trx.trx_date INVOICE_DATE
, ps.gl_date GL_DATE
, NVL(ps.amount_due_original,0) INVOICE_AMOUNT
, NVL(ps.tax_original,0) TAX_AMOUNT
, NVL(ps.acctd_amount_due_remaining,0) ACCTD_OUTSTANDING_AMOUNT
, ps.due_date
, CEIL(sysdate - ps.due_date) DAYS_OUTSTANDING
, ps.payment_schedule_id
, ps.number_of_due_dates INSTALLMENT_NUMBER
, trx.customer_trx_id
, CEIL(p_as_of_date1 - ps.due_date) DAYS_LATE_AS_OF
FROM ra_customer_trx TRX
, ar_payment_schedules PS
WHERE
trx.customer_trx_id = ps.customer_trx_id
AND ps.gl_date <= p_as_of_date1
AND ps.gl_date_closed > p_as_of_date1 ;
CURSOR cs_get_receipt(p_as_of_date2 IN DATE ) IS
SELECT ps.customer_id CUST_ACCOUNT_ID
, ps.payment_schedule_id
, CEIL(p_as_of_date - ps.GL_DATE) days_late_as_of_r
, ps.gl_date
, cr.receipt_number
, app.cash_receipt_id
, sum(app.acctd_amount_applied_from) ACCTD_AMOUNT_APPLIED
FROM ar_receivable_applications app
, ar_cash_receipts cr
, ar_payment_schedules ps
WHERE app.cash_receipt_id = cr.cash_receipt_id
AND app.payment_schedule_id = ps.payment_schedule_id
AND app.status in ('ACC', 'UNAPP', 'UNID', 'OTHER ACC' )
AND NVL(app.confirmed_flag,'Y') = 'Y'
AND app.gl_date <= p_as_of_date2
AND ps.gl_date <= p_as_of_date2
AND ps.gl_date_closed > p_as_of_date2
AND ( ( app.reversal_gl_date IS NOT NULL AND ps.gl_date <= p_as_of_date2 )
OR app.reversal_gl_date IS NULL
GROUP BY ps.customer_id
, cr.receipt_number
, app.cash_receipt_id
, ps.payment_schedule_id
, ps.gl_date
HAVING
sum(app.acctd_amount_applied_from) <> 0 ;
Begin
delete zxc_aging_cust1 ;
p_as_of_date := to_date('&Enter_as_of_date','DD-MON-RRRR') ;
For invoice in cs_get_trx(p_as_of_date)
LOOP
/* cash applied after p_as_of_date */
SELECT NVL(SUM(NVL(acctd_amount_applied_to, 0.0) +
NVL(acctd_earned_discount_taken,0.0) +
NVL(acctd_unearned_discount_taken,0.0)),0.0)
INTO v_cash_receipt_acctd
FROM ar_receivable_applications
WHERE TRUNC(gl_date) > p_as_of_date
AND status||'' = 'APP'
AND NVL(confirmed_flag,'Y') = 'Y'
AND applied_payment_schedule_id = invoice.payment_schedule_id
AND application_type LIKE 'CASH%';
/* adjustments applied after p_as_of_date */
SELECT NVL(SUM(ar_adjustments.acctd_amount), 0.0)
INTO v_adjustment_acctd
FROM ar_adjustments
WHERE TRUNC(gl_date) > p_as_of_date
AND status = 'A'
AND payment_schedule_id = invoice.payment_schedule_id;
/* invoice credited after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd
FROM ar_receivable_applications
WHERE applied_payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/*added new by anil patil 7/7/7 */
/* credit memo applied after p_as_of_date */
SELECT nvl(sum(nvl(acctd_amount_applied_to, 0.0)), 0.0)
INTO v_credit_memo_acctd_1
FROM ar_receivable_applications
WHERE payment_schedule_id = invoice.payment_schedule_id
AND nvl(confirmed_flag,'Y') = 'Y'
AND status||'' = 'APP'
AND TRUNC(gl_date) > p_as_of_date
AND application_type LIKE 'CM%';
/* calculate actual outstanding amount */
v_as_of_outstanding_acctd := invoice.acctd_outstanding_amount + v_cash_receipt_acctd - v_adjustment_acctd +
v_credit_memo_acctd - v_credit_memo_acctd_1 ;
insert into zxc_aging_cust1
( customer_id ,
invoice_number ,
invoice_date ,
gl_date ,
invoice_amount ,
tax_amount ,
acctd_outstanding_amount ,
due_date ,
days_outstanding ,
installment_number ,
days_late_as_of ,
current_os_amt ,
cash_receipt_amt ,
adj_amt ,
credit_memo_amt ,
credit_memo_amt_1
values
(invoice.cust_account_id ,
invoice.invoice_number ,
invoice.invoice_date ,
invoice.gl_date ,
invoice.invoice_amount ,
invoice.tax_amount ,
v_as_of_outstanding_acctd ,
invoice.due_date ,
invoice.days_outstanding ,
invoice.installment_number ,
invoice.days_late_as_of ,
invoice.acctd_outstanding_amount ,
v_cash_receipt_acctd ,
v_adjustment_acctd ,
v_credit_memo_acctd ,
v_credit_memo_acctd_1
END LOOP ;
COMMIT;
FOR receipt in cs_get_receipt (p_as_of_date )
LOOP
INSERT INTO zxc_aging_cust1( customer_id
, invoice_number
, trx_type
, acctd_outstanding_amount
, gl_date
VALUES( receipt.cust_account_id
, receipt.receipt_number
, 'RECEIPT'
, -1 * receipt.acctd_amount_applied
, receipt.gl_date );
END LOOP;
COMMIT ;
END;
Hope this helps.
Thanks,
Anil -
On December 31st the client would have open service orders in old company code.
We wish to transfer these service orders to a new company code.
How to calculate WIP and post balances to WBS in the service orders in new company code.
Getting lost! Any help?
RegHi,
You have to define Alert modeler and assign it to your webclient profile. After confirming an account alerts agents to existing documents, which the system finds in the interaction record. This alert contains a link, which agents can use to navigate directly to the existing documents.
Reward points if helpful.
Shridhar -
Runtime Error while opening the transaction ME22N
Hi,
when am trying to open the transaction ME22Nin Ecc6.0 its showing the runtime error like Assign with Length 0 in the pgm SAPLTAX1 in the Module FIND_TAX_SPREADSHEET.
than you in advance.post your Dump information with
Short text
What happened? -
CRM Service Transaction Types availability in ECC table CRMC_SRV_BILL_PR
Dear experts
I need to customize ECC IMG object CRM_SRV_BILL_MAP (SPRO -> Integration with Other mySAP.com Components -> Customer Relationship Management -> Settings for Service Processes -> Billing Integration -> Map Transaction Types and Item Categories).
This is to map SAP CRM Service Transactions to SAP ECC Sales Orders for triggering Debit/Credit Memos based on Service Orders. However, the table in which CRM Service Transaction Types are stored is empty (CRMC_SRV_BILL_PR) - how to we get the data in there?
For some reason, we have one client where this info is available, in another one it's not. We are not sure whether this might be a download object, or if customizing on ECC side is required?
Thank you in advance for all helpful replies!
ChristianHi,
As far as my knowledge goes in this area, i have worked on this in my previous project with R/3 version being 4.7. We have had to manually maintain the configuration in the table that you are reffering to. So you would need to maintain the document type to be created and also assign the item categories acordingly.You will ofcourse need to configure the document types and item categories that are relevant to create a debit/credit memo in R/3. Also, you will need to map the CRM item categories to the R/3 credit/debit item categories.
Hope this helps
Shiloo -
Error When Opening the Transactions/Transactions Window
Hi All,
in Oracle E-Business Suite R12 Version
Error When Opening the Transactions/Transactions Window
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "APPS.AR_MO_GLOBAL_CACHE", line 55
ORA-06512: at "APPS.ARP_STANDARD", line 2912
ORA-06512: at "APPS.ARP_GLOBAL", line 282
FRM-40735: PRE-FORM trigger raised unhandled exception ORA-06502
Can any body help about the error
Thanks in advance.Did you go through the below notes:
Note:125204.1, Note:153207.1 and Note:191306.1.
Maybe you are looking for
-
Internal Table in VA02 Partners
Hi Experts, Is there anyone knows what is/are the internal tables I need to modify in order to update the Partners in Item Data of the Regular Item and Free goods of a certain order number for the transaction VA02? I tried to modify the internal tab
-
Kindly provide some MM related document regarding 1. configuration 2. implementation 3. Customized Thanks in advance,
-
How can I get a sim card for Japan and will it work with my locked Iphone 6
How can I get a sim card for Japan and will it work with my locked Iphone 6
-
I have a password in my iphone3 and my niece have entered password wrongly too many times. What shhould i have to do?
-
How do I download a font browser ?
I don't know how to .