Need help On Triggers/Change pointers in SAP
Hi Experts,
I Need help On Triggers/Change pointers in SAP.
I have a requirement as soon as an entry is created in one of the Standard SAP table it should check against my Ztable and update and create the corresponding entry in another Ztable.
Can some one help me out on this with the syntax and how to do it
Hi,
Check whether you have any enhancement option (BADI, user exit, Customer enhancement etc) in the program which is used to save the data in the SAP standard table. If so, then try to write your code in that appropriate enhancement.
Similar Messages
-
I Need help. I Change My Number and now imessage don t work.
I Need help. I Change My Number and now imessage don t work.
Hi Ivonka88,
Here are some steps to try troubleshooting your issue with, depending on your specific symptoms:
iOS: Troubleshooting FaceTime and iMessage activation
http://support.apple.com/kb/ts4268
iOS: Troubleshooting Messages
http://support.apple.com/kb/ts2755
Cheers!
- Ari -
Help With IDOC Change Pointers
Hi guys,
I'm trying an IDOC to file scenario. The scenario is working fine. I have activated change pointers for my IDOC. My understanding was that if there will be any change in my master tables, then because of the activated change pointers, the IDOC will be generated automatically. But in my case, for eg if i'm inserting any new record say Vendor data, no new IDOC is generated. For sending IDOC i have to use bd14 to send my IDOC explicitly.
Is my idea of change pointers wrong???Or am i missing some setting, so that the IDOC should be generated automatically???
Please help me on this guys...
Regards
Varun<b>Automatic generation of IDOC when we change the MASTER DATA:</b>
<b>Change Pointers:</b>
Change documents are working based on change document technique which
tracks changes made to the key documents (Material Master, Customer Master,
Vendor Master.Etc) in SAP.
Changes made to the keydocuments are recorded in the change document Header
table i.e. CDHDR and Item table CDPOS, Additional change pointers are written
in the BDCP and BDCPS tables.
Change pointers technique is used to initiate the outbound process automatically
when master data is created or changed.
A standard program RBDMIDOC is sechuled to run on periodic basis to evaluate the change pointers for a message type and starts the ALE process for distributing the Masterdata to the appropriate destination.
'Object' is collection of fields of different database tables. T.code for creating an object
is SCDO.
<b><u>Configuration for Change Pointers:</u></b>
1. BD61 Active change pointers generally
- Check the checkbox "Change pointers activated -generally"
- Save it
2. BD50 Active change pointers for Message Type
Message Type Active
MATMAS Check the check box
3. SCDO Change Document Objects
- Check whether the "MATERIAL" is available in the object list.
4. BD52 Maintain Table Views
- Enter the Message type "MATMAS" and press enter.
For example
OBJECT TABLE NAME FIELD NAME
MATERIAL MARA BISMT
5. BD60 Additional data for message types:
For example:
Message Type Function Module Table
MATMAS MASTERIDOC_CREATE_SMD_MATMAS MARA
6. WE21 Port
7. WE20 Partner Profile
8. BD64 Distribution Model
as michal said we have to use RBDMIDOC program.for executing this program we need to give message type like
MATMAS or
DEBMAS or
CREMAS
depending on your requirement.
go to SE38 tcode
--- copy RBDMIDOC to zprogram(i'e., ZRBDMIDOC)
---create variant
use this zprogram(ZRBDMIDOC) in BACKGROUND SCHEDULING SM36
<u>STEPS IN BACKGROUND SCHEDULING:</u>
Use tcode SM36
Click Job wizard in the button set
Click Continue
Enter Job name and press continue
Select ABAP program and press Continue
enter Program name and press continue
and again press Continue
set Schedule type immediately and continue
Select periodic job checkbox, press continue
Select none of the above and click on other periods give one-minute and then press create
Press continue and then press complete.
recently i did this requirement
if u have any doubts plz let me know
Best Regards,
Srikanth
Reward the useful answers and you will get one point yourself -
New to sap - need help in configure backup strategy for SAP XI server.
hi gurus
being a netweaver guy, recently i have been given the responsibility of few basis activities.like database backup.
can any one tell me clear procedure to take both daily online and weekend full offline backup of oracle in to disk first and then to tape. i have seen in the internet material few discussing about brbackup and few about sap DB13. i am totally confused which one to use, and which is good. please help
akhilHi,
welcome on board as SAP Netweaver guy,
don't be confused both DB13 and BRtools are the same both of them will call brbackup.
to configure the brtools you have to change in your brtools profiles located at %ORACLE_HOME%/dbs
please before changing any thing take backup from that folder.
- to take the backup to disk then to tape you will need extra backup software, because using the SAP slandered tools you have to select either Disk or Tape.
Thanks
Sherif -
Need help in developing mobile app using SAP
Hi
I have a team of Android, iOS and Windows developers and we are planning to start developing mobile using SAP and SAP Fiori. Need help in getting started with SAP mobile development like i need plugins and development kits that i need to use.
Thanks
RamHi,
What help needed ?
For SAP Fiori Use this link : http://scn.sap.com/docs/DOC-41598
For SAP Fiori Installation and Configuration Steps: http://scn.sap.com/community/mobile/blog/2014/06/10/fiori-technical-installation-and-configuration-of-one-app-from-a--z
Which Software you will use to develop Mobile Apps in SAP Platform ?So that i will suggest what to do ..
Regards
Lokesh -
Need Help, Power Mode Changer
So the yoga is a cool computer but, it lacks lots of features. I for one miss the ideapad touch button power mode feature from my old laptop.
I am remaking this program but I need help with the graphics.
This is where I am right now:
http://i43.tinypic.com/5mwgeq.png
My goal is to make a hotkey controllable program that will change mode with the key function : ALT + Spacebar
It will probably take me 20 more min to add this hotkey feature. However, I need help with the graphics. If you guys help with the graphics, I will share this program with the public.
Also, I would love suggestions and ask for your opinion. Is this something you would be intrested in?
Of course, the program will be free of charge and I might even make it open source.
***Edit***
To show you guys I am not BSing:
http://alltechtalk.net/Power_Mode_Changer.exe
To change between modes, press the LEFT ALT + Z. In the final version, the hotkey will be left alt + space bar, for now, this is a beta.The program has already been made. All I need is help with the graphics.
Attached below is a sample background and button png, in the size it needs to be.
http://www.sendspace.com/file/xmnqnw
To show you guys I am not BSing:
http://alltechtalk.net/Power_Mode_Changer.exe
To change between modes, press the LEFT ALT + Z. In the final version, the hotkey will be left alt + space bar, for now, this is a beta. -
Need help in Controlling the Number in SAP Script.
Hi,
I am writing a Report using the the Sap Scripts.
I want to show the Number "1" as "1.00" in the print out which is comming from a SAP Script.
Can u please help.
with rgds
Ranjith SinghRanjith,
I was came across similar condition few years back, I guess you need to change the data type or else call a PERFORM from your sap script if it is custom.
Regards,
Amey -
Need help in getting a report from SAP!
Hi,
I'm in charge of a manufacturing operation. I need your help to find a report of OPEN PLANNED ORDERS. I'm using spreadsheets to control the production but I need to get this information from SAP directly. NO MORE EXCEL!!!
Can somebody help?
JByou may not be able to avoid the excel part, but I guess it is worth a try. Take a look at using a query tool to look at the table name PLAF, you could additionally join this table to MAKT for the full material description and perhaps VBAK if you need sales order related header data which may be tied to your planned orders
-
Need help on SSO of Portal with SAP UCES.
I am trying to find some documents/methodologies to establish single sign on between Utility Customer E-Servive (UCES) and SAP Enterprise Portal 7.0.
UCES is a SAP Provided solution for Utility customers which provides a web front end for customers to check meter reading, intermediate billing, move-ins and move-outs etc. I beleive it also runs on WAS 6.4/7.0 and is Java based.
Just an URL iView is not enough since it would again ask for password.
I have thought of integration approach as with a Java application, but for that I need the loging module code of UCES which is not available.
Did anyone faced similar scenarios? Please help. A detailed explaination would be appreciated.
Thanks.Check if this thread helps: Different applications(SAP EP & SAP UCES) on WAS 6.40=>Log off/on problem?
-
Need help configuring Attribute Change in WLS 6.1
Hi there,
I did all it said in the documentation, lacking any sight of an SNMP
trap. I want to receive a SNMP trap if the
InvalidLoginAttemptsTotalCount changes (MBean: ServerSecurityRuntime).
I use
Attribute MBean Type: ServerSecurityRuntime
Attribute MBean Name:
petstore:Location=petstoreServer,Name=petstoreServer,Type=ServerSecurityRuntime
Attribute Name: InvalidLoginAttemptsTotalCount
I enabled SNMP, configure my TrapHost and started my trapdaemon. But I
don't get any trap even though I increased the counter by doing some
logins with the wrong password. Parallel to my attribute change I also
configured a counter monitor on the same attribute, with the same
disappointing result =:-(
Can anyone help ?
Greetings,
AlexYou need to set a target for the pool. Without target
pool service won't start. Also you need to provide
initial and maximum size for the pool.
Regards,
Slava Imeshev
"Nadeem" <[email protected]> wrote in message
news:3d6d9268$[email protected]..
>
Hi Slava, thanks for the reply. Here is the connection pool definition asextracted
from config.xml. Do you see any errors in this which would cause theexception
mentioned below?
-Nadeem
************* Connection Pool element in config.xml ********
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
Name="MyJDBC Connection Pool"
Properties="user=system;password=manager" TestTableName="cabin"URL="192.168.0.11:1521:tacit"/>
"Slava Imeshev" <[email protected]> wrote:
Hi Nadeem,
Could you show us the connection pool definition?
It can be extracted from config.xml
Regards,
Slava Imeshev
"Nadeem" <[email protected]> wrote in message
news:[email protected]..
Hi,
I need to create a connection pool in WLS 7. Here are the specificsof my
environment:
1. RDBMS: Oracle 8i
2. Driver I want to use: Oracle thin 8.17 (provided with WLS 7)
3. IP address of machine on which database resides: 192.168.0.5
4. Port number: 1521
5. Name of database: MyDB
6. user: scott
7. password: tiger
Given the above,I do not know exactly what to fill out in the
following
fields
that appear in the Admin Console's connection pool creation form:
1. Name of connection pool (OK, this one I know!)
2. URL string (exactly what should it be, given above info?)
3. Driver Classname (I want to use Oracle thin 8.17, so what shouldI fill
here?)
4. Properties (exactly what should I fill here, given above info?)
5. ACL Name (completely stumped here! Documentation says ACLs havebeen
replaced
by policies in WLS 7 - so what to fill here?)
Could someone please help me correctly fill out these fields usingthe
information
I provided in the first paragraph.
BTW, I'm logged into WLS as Administrator.
Much obliged,
Nadeem -
Need help for the message flow in sap xi system?
Hello All,
My requirement is some wat different............in the existing production system the message flow is 3500 per hour......... now we want to develop new scenario and the message flow will be 8500 message per hour.
Client is not giving me the system details ...like network details and i need to say that can we send 8500 messages in the existing system with out changing the process speed or data base.
also please advice the best ways to increase the performance in the sap xi system when the message flow is huge.
thanks in advace.
Thanks and Regards,
chinna>
chinnasapxi wrote:
> Hello All,
>
> My requirement is some wat different............in the existing production system the message flow is 3500 per hour......... now we want to develop new scenario and the message flow will be 8500 message per hour.
> chinna
3500 to 8500 is not a message count tht needs to be worried about
but to be on the safer side what is the average size of a single message?
if the size is not a significant one u can go ahead -
Hi,
I need to write a trigger on the prr_no so that whenever it is inserted or updated the prr_ind (which is again in the same table) is automatically set to 'Y' if prr_no <> null and prr_ind set to 'N' if prr_no = null
I am using Oracle 11g, and following are the triggers I wrote, not sure which one is correct(as per my requirement):
CREATE OR REPLACE TRIGGER CMISTST1.update_PRR_IND
AFTER INSERT OR UPDATE OF PRR_NO
ON CMISTST1.T_ET_CCR_HDR
FOR EACH ROW WHEN (new.PRR_NO IS NOT NULL)
BEGIN
UPDATE T_ET_CCR_HDR
SET T_ET_CCR_HDR.PRR_IND = 'Y';
END;
*****OR*****
CREATE OR REPLACE TRIGGER CMISTST1.update_PRR_IND
AFTER INSERT OR UPDATE OF PRR_NO
ON CMISTST1.T_ET_CCR_HDR
FOR EACH ROW WHEN (new.PRR_NO IS NULL)
BEGIN
UPDATE T_ET_CCR_HDR
SET T_ET_CCR_HDR.PRR_IND = 'Y'
END;
but neither works! Here CMISTST1 is the schema, t_et_ccr_hdr is the table.
Thanks in advance!Elaborating on Justin's final remark and the fact you're on 11G, you could consider replacing the trigger by a virtual column:
SQL> create table t (prr_no number, prr_ind as (decode(prr_no, null, 'N', 'Y')));
Table created.
SQL> insert into t (prr_no) values (1);
1 row created.
SQL> insert into t (prr_no) values (null);
1 row created.
SQL> insert into t (prr_no) values (2);
1 row created.
SQL> insert into t (prr_no) values (null);
1 row created.
SQL> commit;
Commit complete.
SQL> exec dbms_stats.gather_table_stats(user, 'T', cascade => true);
PL/SQL procedure successfully completed.
SQL> select /*+ gather_plan_statistics */
2 *
3 from t
4 where prr_ind = 'Y';
PRR_NO P
1 Y
2 Y
2 rows selected.
SQL> select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID 6sz2rzn1dwf6z, child number 0
select /*+ gather_plan_statistics */ * from t where prr_ind =
'Y'
Plan hash value: 1601196873
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
| 0 | SELECT STATEMENT | | 1 | | 2 |00:00:00.01 | 8 |
|* 1 | TABLE ACCESS FULL| T | 1 | 2 | 2 |00:00:00.01 | 8 |
Predicate Information (identified by operation id):
1 - filter(DECODE(TO_CHAR("PRR_NO"),NULL,'N','Y')='Y')
19 rows selected.
SQL> create index t_i on t(prr_ind);
Index created.
SQL> exec dbms_stats.gather_table_stats(user, 'T', cascade => true);
PL/SQL procedure successfully completed.
SQL> select /*+ gather_plan_statistics */
2 *
3 from t
4 where prr_ind = 'Y';
PRR_NO P
1 Y
2 Y
2 rows selected.
SQL> select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID 6sz2rzn1dwf6z, child number 0
select /*+ gather_plan_statistics */ * from t where prr_ind =
'Y'
Plan hash value: 1658221841
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
| 0 | SELECT STATEMENT | | 1 | | 2 |00:00:00.01 | 4 |
| 1 | TABLE ACCESS BY INDEX ROWID| T | 1 | 2 | 2 |00:00:00.01 | 4 |
|* 2 | INDEX RANGE SCAN | T_I | 1 | 2 | 2 |00:00:00.01 | 2 |
Predicate Information (identified by operation id):
2 - access("PRR_IND"='Y')
20 rows selected.So, you can index a virtual column as well (or make it a key-column and so on...), as showed, just in case you were wondering.
Changing column values through triggers can be considered as 'doing stuff automagically'.
A virtual column would be more self-documenting as well, since it's part of the CREATE TABLE script. -
Need help or documentation for beginners with SAP BI7
I am relatively new to SAP (less than a year) and I am still having difficulties understanding the basics about SAP. I write queries and reports and would appreciate any links or books that would help guide me. I have bought a book through SAP Press but I need a SAP for beginners books that is really easy to understand.
ThanksHi......
Check this link :
http://www.youtube.com/watch?v=nWsvV6Z64yw&feature=related
Also you will get everything in SAP Library : help.sap.com
Regards,
Debjani.......... -
Need help for profile change in pdf
Hello every one,
I have so many files need to change color profile, maintain 240% ink coverage for this client can supplied me only pdf files. How can I change color profile in acrobat professional? I know only method of Photoshop Profile change UCR, GCR..240%, please help me some one.
More information:
I have windows 7 operation system, acrobat 7 with pitsop7.
Thanks in advance,
Regards,
Sivai have a separate DTD for my own XML i want to extract my PDF files to that
XML is it possible may i know how the acrobat export as xml feature works -
Need help in Preparing demo's on SAP B1
Hi Gentlemen,
This is Krishna, i have done my SAP Business one Certification , here my problem is when i go a client to out source SAP B1 he need some demo on SAP B1 , because we have to satisfy with our demo.
i need some guidance in preparing the Demonstration. Please help me.Hello Krishna,
Sorry, but I am not sure about your question.
Do you have to create a demo? do you have everything installed on your machine in order to create it?
if you request refers to particular settings in the application, can you tell us what you need? We will try to help.
Thank you for your updates.
Marcella Rivi
SAP Business One Forums Team.
Maybe you are looking for
-
How do I transfer music from my ipod to a new computer?
I need to move all the music from my ipod to a new computer so I can put it in iTunes?
-
How to integrate a class with template.java - Java Concurrent Program. 11i
Hello, I have a java class I got from a vendor. This java class needs to run through as concurrent program. As per metalink note *How To Create a Java Concurrent Program? [ID 827563.1]* it says that, we must require template.java to wrap around the c
-
KKS1- Target cost version found zero
Hi, We are using PPPI route for the creation of Process order..plant person convert planned order to process order, but due to some reason they can not confirm that order and finally without GR/GI they can do TECO the order...Now at the month end whe
-
Hello, currently we are using two W2K12R2 DHCP server configured in "load balance Mode". On DHCP1 the IP-scope with failover partnership to DHCP2 is deactivated. DHCP2 is working fine. Now we register that 50 percent of our clients (W2K8R2 applicatio
-
Allowing db-is-shared to be true in a cluster with ReadOnly EJBs
Hi, We're running WL 6.1 SP2 on Solaris 2.8 My question is about EJB caching in a cluster as we will shortly me moving to a clustered environment. The db-is-shared value for an EJB is normally meant to be alway