Transaction Notification. How to include table Itemgroup in code
Hi.
I need to include some code in SP_TN that must be run at changing of values in the fields of the table ItemGroup (OITB).
What will be the first stroke in TN
like:
1. If @object_type = N'XXX' - in this case I need a number of object of this table, or
2. if @TableName = 'ItemGroup' or OITB
or something else
With regards
Maxim
NOB -1 - Not an Object
GNR 0 - General Object
ACT 1 - Accounts
CRD 2 - Cards
DSC 3 - Discount Codes
ITM 4 - Items
VTG 5 - Vat groups
PLN 6 - Price List Names
SPP 7 - Special Prices
ITG 8 - Item Groups
RTM 9 - Rates matching
CRG 10 - Card payment groups
CPR 11 - Contact persons
USR 12 - Users
INV 13 - Invoices
RIN 14 - Revert Invoices
DLN 15 - Delivery Notes
RDN 16 - Revert Delivery Notes
RDR 17 - Orders
PCH 18 - Purchases
RPC 19 - Revert Purchases
PDN 20 - Purchase Delivery Notes
RPD 21 - Revert Purchase Delivery Notes
POR 22 - Purchase Orders
QUT 23 - Quotations
RCT 24 - Receipts
DPS 25 - Deposits
MTH 26 - Match History
CHH 27 - Checks History
BTF 28 - Journal Batches
BTD 29 - Journal Batches Directory
JDT 30 - Journal Transactions
ITW 31 - Item - Warehouse accumulators
ADP 32 - Printing Administration
CLG 33 - Contact Log
RCR 34 - Recurring Transactions
NNM 35 - Objects Next Serial Number
CRC 36 - Credit Cards
CRN 37 - Currency Codes
IDX 38 - Index (Madad)
ADM 39 - Administration
CTG 40 - Credit Terms
PRF 41 - Form Preferences
BNK 42 - Bank pages
MRC 43 - Firm groups (Marca)
CQG 44 - Card query groups
TRC 45 - Ttansaction codes
VPM 46 - Payment to vendor
SRL 47 - Serial numbers
ALC 48 - Import expenses
SHP 49 - Shipment types
LGT 50 - Length units
WGT 51 - Weight units
ITB 52 - Item groups
SLP 53 - Sales person
FLT 54 - Reports filter
TRT 55 - Transaction types
ARG 56 - Arancel (custom) groups
CHO 57 - Checks paid to vendors (Outgoing checks)
INM 58 - Inventory match
IGN 59 - Inventory General Entry
IGE 60 - Inventory General Exit
PRC 61 - Profit Center
OCR 62 - Overhead cost rate
PRJ 63 - Project
WHS 64 - Warehouses Codes & Names
COG 65 - Commission groups
ITT 66 - Item Tree links
WTR 67 - Warehouses Transfers
WKO 68 - Work Orders
IPF 69 - Import file
CRP 70 - Credit pay systems
CDT 71 - Credit Due Terms
CRH 72 - Credit History
SCN 73 - Substitutional catalog num
CRV 74 - Credit Payments
RTT 75 - Index & currency rates
DPT 76 - Deposit Temporary
BGT 77 - Budget
BGD 78 - Budget STRsystem
RCN 79 - Retailer chains
ALT 80 - Alert templates
ALR 81 - Alerts pool
AIB 82 - Alerts In box
AOB 83 - Alerts Out box
CLS 84 - Contact log subjects
SPG 85 - Special prices for groups
SPRG 86 - Run externals applications
MLS 87 - Mailing lists
ENT 88 - Panama - enterada
SAL 89 - Panama - salida
TRA 90 - Panama - traspaso
BGS 91 - Budget Scenario
IRT 92 - Interest Rates
UDG 93 - User defaults groups
SRI 94 - Items serial numbers
FRT 95 - Finance Reports Template
FRC 96 - Finance Reports Categories
OPR 97 -
OIN 98 -
OIR 99 -
OSR 100 -
OST 101 -
OFR 102 -
CLT 103 - Contact log types
CLO 104 - Contact log locations
ISR 105 - Internet Service Request
IBT 106 - Item batch numbers
ALI 107 - Alternative Items
PRT 108 - Partners
CMT 109 - Competitors
UVV 110 - User valid values
FPR 111 - Finance period
DRF 112 - Document draft
SRD 113 - Internal manage of SRI and IBT
UDC 114 - User display categories
PVL 115 - Pelecard Vendors List
DDT 116 - Deduction at source - Terraces
DDG 117 - Deduction at source - Groups
UBR 118 - Users - Branch
UDP 119 - Users - Departments
WST 120 - Workflow - Steps
WTM 121 - Workflow - Templates
WDD 122 - Workflow - Documants
CHD 123 - Check out drafts
CINF 124 - Company info
EXD 125 - Expenses definition
STA 126 - Sales Tax Authorities
STT 127 - Sales Tax Authorities Type
STC 128 - Sales Tax Code
CRY 129 - Countries
CST 130 - States
ADF 131 - Address format
CIN 132 - Correction Invoice
CDC 133 -Cash Discount
QCN 134 - User Querry Category Names
IND 135 -VAT Indicator EC
DMW 136 -Data Migrate Wizard Pacages
CSTN 137 -Station Id
IDC 138 - Indicator
GSP 139 - Goods Shipment
PDF 140 -payment draft
QWZ 141 - Query Wizard
ASG 142 - Account Segmantation
ASC 143 - Account Segmantation Categories
LCT 144 - Location
TNN 145 - 1099
CYC 146 - Cycle
PYM 147 - Payment Method
TOB 148 - 1099 Begining Balances
RIT 149 - Dunning Interest Rate
BPP 150 - BP Priorities
DUN 151 -
UFD 152 - User Fields - Descr.
UTB 153 - User Tables
CUMI 154 - User Menu
PYD 155 - Payment run
PKL 156 -
PWZ 157 - Payment Wizard
PEX 158 - Payment Results Table
PYB 159 - Payment Block
UQR 160 - Queries
CBI 161 - Central bank ind
MRV 162 - Material revaluation [was: SST]
CPI 163 - Correction A/P Invoice [was: SLT]
CPV 164 - Correction A/P Invoice Reversal [was: CTR]
CSI 165 - Correction A/R Invoice [was: SCL]
CSV 166 - Correction A/R Invoice Reversal [was: SCO]
SCS 167 - Service Call Status
SCT 168 - Service Call Type
SCP 169 - Service Call Problem Type
CTT 170 - Contract Template
HEM 171 - Employees
HTY 172 - Employee Types
HST 173 - Employee Status
HTR 174 - Termination reason
HED 175 - Education Types
INS 176 - Install Base
AGP 177 - Agent Person
WHT 178 - Withholding Tax
RFL 179 - 347, 349 and WT reports previously displayed
VTR 180 -
BOE 181 - Boe for Payment
BOT 182 - Bill Of Exchang Transaction
FRM 183 - File Format
PID 184 - Period Indicator
DOR 185 - Doubtful Receivables
HLD 186 - Holiday Table
CRB 187 - Bessiness Partner - Bank accounts
SST 188 - Service Call Solution Status [was: 162]
SLT 189 - Service Call Solutions [was: 163]
CTR 190 - Service Contracts [was: 164]
SCL 191 - Service Call [was: 165]
SCO 192 - Service call origin [was: 166]
UKD 193 - User Keys Descr
TSI 280 - A/R Tax Invoice
TPI 281 - A/P Tax Invoice
TXD 282 - A/R Tax Invoice - Drafts
CCD 283 - Cargo Customs Declaration [was: 196]
Similar Messages
-
How To Remove Tables Through SDK Code(Using MetaDataObject)
Hi Experts,
I am with a problem in my sdk code.As follows,I added a table with no object into the database through the sdk code using OUsertablesMd object.Now My Query is i want to delete the same table through my code.I am using oUserTablesMD.Remove()
Method.It's throwing an error message.If any one culd send the sample of removing sap tables through dk code would be helpful
Help Would be appreciated!!
Thanking You,
Vijay KumarHi,
try this one
Dim rsd As SAPbobsCOM.Recordset
rsd = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
rsd.DoQuery("SELECT T0.[TableName] FROM OUTB T0")
Dim sTableID As String
Do Until rsd.EoF
sTableID = rsd.Fields.Item("TableName").Value.ToString.Trim
Dim oTables As SAPbobsCOM.UserTablesMD
oTables = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
If oTables.GetByKey(sTableID) = True Then
oTables.Remove()
End If
oTables = Nothing
rsd.MoveNext()
Loop
Regards,
Siva -
How to include a custom Tx code in easy access?
Hello friends,
I have created 3 custom Txcodes and i have been able to include them in SAP easy access page. But i want to include separate folder as EMPID under logistics and then include my three Txcodes can anyone help me with this task.
Procedure that i am following is like se43-> area menu -> S000->german-> logistics->add subnode. "I want to know how to create folder from this step."
Thks helpful answer will be rewarded.Hi,
You can update the SAP menu through SE43 for area menu S000.
Have a look at below thread. It may help you.
How to Create Transaction code for a Report
Regards
Kiran -
How to include a table multiple times in InfoSet Query
Hi,
Is it possible to include a table more than once in an InfoSet Query, I created an InfoSet Query and Include Table A, then included Table B now i want to join Column 1 and 3 of Table A to be join with column1 of Table B, in other words, Table B is a Master data table, and Table A is a transaction data table, how this can be acheived.
Thanks
Akila. RYou cannot achieve this.
Instead, compound the column 1 with column 3 info objects and create join with Table B.
This will result in same intended functionality. -
Use SP Transaction Notification for trigger on user defined table
Hi i need some help. I have a user defined table in sap (@LAU_ACCT) .
I need way to catch the event on the table (update , delete , add).
I heard about SP Transaction Notification , but how use it with udt ?
Thanks!Hi Pavel,
it is only possible if the UDT is registered as part of an object ( UDO ) - further info http://scn.sap.com/thread/3277846 . So for pure UDT actions you have to find another way ( SQL trigger, UI API, periodic query ).
regards,
Maik -
How to Include the URL of a page in Notification Email ?
Hi ALL,
I need your help to implement the below requirement.
I have implemented Email notification in our application.so when ever the user creates any form/modify the form ,mail will be triggered to them.Now the users want to include the link in the email.
When they click the link in email ,it should be navigated to the newly created form page in Apex.
How to include the link of the page in the Email process?
Thanks,
Ramya.Hi Tuceef,
Thanks for the response.
I have created another hidden item P8_URL1 IN page 8 and
I have created an on submit process in page processing section.
the pl/sql code is
Begin
htp.p('<script type = "text/javascript">');
function setLocation(href)
// set the location path specified in the textbox.
htp.p('location.href = document.getElementById(href).value;');
htp.p('P8_URL1:= location.href');
htp.p('</script>');
end;But the code fetching the plain URL only,it's navigating to the empty form page when i click on the URL.
Please correct the code if am wrong anywhere!
Thanks & Regards,
Ramya. -
How to include in the sub-menu a table specifies of the user - UDO
hi, forum
how to include in the sub-menu a table specifies of the user
I created a table '@ IA_RELAT' in User-Defined Obejcts but I don't know as including in the sub-menu that I created
it follows my code
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
Try
<u201DmyTableName->@IA_RELATu201D>
Catch
SBO_Application.MessageBox("The Form already exists")
End Try
End If
thank you
End SubHi David
Excuse me but I didn't find in MenuCreationParams Objects how to do this call of the table '@ IA_RELAT' created in User-Defined Obejcts
It follows my code
in AddMenuItems I set up the Menu and Submenu
in SBO_Application_MenuEvent it is where I am having difficulties of showing the table '@ IA_RELAT' created in User-Defined Obejcts
Thank you for any help
Private Sub AddMenuItems()
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
sPath = sPath.Remove(sPath.Length - 3, 3)
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Standard cost"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "UI.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Auxiliary Table"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
Try
SBO_Application.ActivateMenuItem(menus.Item(1).UID.IndexOf("@IA_RELAT"))
Catch
SBO_Application.MessageBox("error")
End Try
End If
End Sub -
How to include in table of contents the list of figures and list of tables?
How to include in table of content the "Table of contents", "List of figures" and "List of tables"? All are generated with function Table of contents, but they will not appear in generated table of contents even if they have proper style of headings - Heading 1, as other chapter.
I get this in generated Table of contentes of my dissertaion thesis:
Table of contents
Preface
Table of contents <- missing
List of tables <- missing
List of figures <- missing
Introduction
Main
Conclusion
Is it ok, that generated lists are not included in table of contents?You've just confused me.
My understanding of how this is set up is that either:
This is a book, and there is a master TOC that includes all book documents and a document-specific TOC in each component file, or
This is a single file and there is one master TOC that includes all sections and a section-specific TOC that includes only the individual section.
In the first case, I think you would want two TOC styles set up, one that includes the chapter heads (if I understood how you said this worked) for the for the master, and you would include all docs in the book when you generate it, and a second style for the individual chapters, with the subheadings you want to include.
In the second case, it would be similar, but instead of only one style to cover the section TOCS, I think you would need to create a unique set of pargraph styles for the headings in each section (they can all be the same format, based one section, just with unique names), and then make a TOC style for each section that includes only the styles from that section.
OK, wait a sec. I just reread what you said: "Another thing: when the numbers are "linked" and updating well, they display indide a little box. Not a text box, but a kind of little frame around the numbers. That frame makes it imposible to delete just one number: when the TOC says that Section 6.1 is in page 135, for example, you cannot delete just the 5, it deletes, not just the 3 numbers, but also the doted tab."
I think these are NOT normal TOCs created by using Layout > TOC (but you could replace them with ones that are, if you set up your styles properly and the text you want to include is appearing on the pages). Those little boxes you mention sound like cross-references, which should update automatically without any intervention at all. Unfortunately, cross-refs can be flakey, especially if they point to another document. I'd open the cross-refs panel and see if you need to recreate a bunch of links. -
How to Include Service Offering in Notification
I'm trying to figure out how to include the selected Service Offering title or category in an email notification template in SCSM 2012 R2. I've tried a few options with no success, although I have gotten the Request Offering to display properly.
What do I need to do to get the Service Offering (title or category) to display as well?Ok I managed to get it to work now inside an email template. Notice that the Alias might need to be changed for you:
$Context/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.WorkItemRelatesToRequestOffering' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.RequestOffering']/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.ServiceOfferingRelatesToRequestOffering' SeedRole='Target' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.ServiceOffering']$?$DisplayName$?
I needed to do a SeedRole='Target' for the ServiceOfferingRelatesToRequestOffering to switch source and target
Edit: a good way to test properties is to install Anton's email tester:
http://blog.scsmsolutions.com/2013/07/new-tool-scsm-email-template-tester/
And for Category and Title:
SR-RO-SO- Category:
$Context/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.WorkItemRelatesToRequestOffering' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.RequestOffering']/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.ServiceOfferingRelatesToRequestOffering' SeedRole='Target' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.ServiceOffering']/Property[Type='CustomSystem_ServiceCatalog_Library!System.ServiceOffering']/Category$
SR-RO-SO- Title:
$Context/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.WorkItemRelatesToRequestOffering' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.RequestOffering']/Path[Relationship='CustomSystem_ServiceCatalog_Library!System.ServiceOfferingRelatesToRequestOffering' SeedRole='Target' TypeConstraint='CustomSystem_ServiceCatalog_Library!System.ServiceOffering']/Property[Type='CustomSystem_ServiceCatalog_Library!System.ServiceOffering']/Title$ -
How to include IW37N transaction?
Hi Experts,
The Enjoy transaction IW37 is not available in our server.But the transaction is available in another server. The transaction belongs to the package IHREP. How to include the package in our server?
Please provide us your valuable suggestions.
Regards,
K Arasu.Hi
Since this is a Std Package and the IW37N is a Std transaction, it should by default will come along with the std software?
Which version of SAP are you working?
In ECC6.0 it is there? may be you are working in Lower version of SAP?
Chek whether IW37 is there or not? I think it will be there.
Check with the Basis person for this..
Regards
Anji -
URGENT can anyone let me know how to include sort buttons in table maintian
hi
can anyone let me know how to include sort buttons in table maintianence
as generally table maintianec done have sort buttons i need to include the sort buttons kindly let me know on that asap
or can we use module pool in between table maintianece screen
if yes how touse and how to cod for that
regards
AroraYou can change the coding of Table Maintenance.
>> Goto SM30, give table name and goto Display/Maintain mode and copy all the GUI status from standard program into your function group. Add sort button in the GUI Status of Maintain & Display mode.
>> Goto to tablemaintenance screen generated using SE51.
>> Select change mode.
>> After PROCESS BEFORE OUTPUT, create one module to assign your function group program name to " X_HEADER-GUI_PROG = "
>> In PROCESS AFTER INPUT, add another module at the end to perform the action.
-Alpesh.Saparia -
From which tables the data is coming in to transaction fields, how to find?
Hi abapers,
I am new to abap,
I have some data in one transaction.
I want to know that one particular record in a field from which table the data is coming, how do i know?
How to find that for the transaction is haveing header and item tables?
How to find that what are tables used for that transaction?
by presseing f1 on a field we can find table name or structure name along with field name of that particular field?
If structrure means how to find that field from which table it is coming?
I found table name for some of the fields like this by pressing f1,double clicking on structure name?
but some fields in another transaction does not showing the table names only structure it is showing?
Moderator Message: Basic Question. Please search.
Edited by: kishan P on Nov 13, 2010 3:20 PMhi ,
you can do that by Transation st05
where you have to 1) activate trace ,
2) execute transaction
3) deactivate trace after transaction complete
4) display trace
there you can find all step by step flow from where data has been retirved and tables also .
if you dont no take help from Basis People .
Regards
Deepak. -
How to make table that will include controls such as drop list?
How to make table that will include controls such as drop list?
I need to create table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...Hi Nadav,
I figured out where I missed your point. When you wrote
table as Property Browser of ActiveX, that include rows with differnt types such as drop list, color, ...
I was thinking mixed data-types in a [2d] table!
Looking at the property browser again it looks like no single LV function can do all of that. It can be developed as a pop-up (like the browser is set-up) and then code all of the elegance using an event structure to control the background color of a string indicator while controling the visability of rings that are only made visable when a mouse down is detected. That will get you pretty close.
So no, my previous response ws not correct for what you are trying to do if you want to duplicate all of the wistles and bells of the property browser pop-up window.
Please forgive my distraction.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Transaction Notification - User Table
Hi experts.
I'm wondering if it's even possible to create an IF statement on SAP Transaction Notification that looks up to an user table.
Regards,
Eduardo Araujo.So, I take this and I use the name of my table instead of "@PODGRUPA"?
@EDIT
I've tried this:
IF(@object_type = '-3 @FLAGCADPAC' AND @transaction_type IN ('A', 'U'))
BEGIN
IF (1=1)
BEGIN
SET @error = 1
SET @error_message = 'Teste'
END
END
But with no success.
I've tried "IF (1=1)" o make an test if it works.
Between "-3" and my table name, I've used TAB, space, and even without anything between them, but no success too.
Regards. -
Transaction Notification en Tablas de Usuario
Buenos dias,
Tengo la siguiente pregunta, se puede usar el SP Transaction Notification para validar el llenado de tablas de usuario y como lo hago???
como determino el objectype????
Gracias.
Pasen buen dia.Buen dia Douglas,
Las tablas de usuario no poseen ObjecType debido que el objec type es propio de las tablas de SAP Business one.
Para poder colocarle Transaction Notification debes crear un UDO vinculado a tu tabla de usuario, en ese momento se crea el ObjectType a tu tabla de usuario.
Saludos,
Wuilmer Venegas
Maybe you are looking for
-
New Pioneer DVR-110 installed, "patchburned", BUT drive won't stay closed.
Have had some good advice on how to intall a new DVD/CD drive, but after installing a New Pioneer DVR-110 (I thought succesfully) on my G4, and downloading Patchburn for Panther, the DVD drive now won't function as the computer keeps ejecting or open
-
New update not working in dubai. Using hotspot shield it is not working. Now skype is worst. Pls help.
-
Hi, We have SAP webAS 6.2. I am trying to group the authors based on their name for each publisher. But I am getting wrong results. Can someone help me understand what I am doing wrong. Thanks, Suman Source XML <?xml version="1.0" encoding="utf-8"?>
-
SQL 문장이 RULE 에서 COST-BASED로 전환되는 경우
제품 : ORACLE SERVER 작성날짜 : 2004-05-28 SQL 문장이 RULE에서 COST-BASED로 전환되는 경우 ============================================== PURPOSE SQL statement 문장이 자동으로 cost-based mode로 전환되는 경우에 대해 알아보자. Explanation Rule-based mode에서 sql statement를 실행하더라도 Optimizer에 의해
-
How to catch dump in background spool
Hi Experts, I am a fresher and in background I want to execute a program, which is creating dump in production server and which I am not able to see the screenshots. The dump occurs, as I raise error message in start of selection. Can I see the dum