Difference between YVBUK and XVBUK tables
Hello,
Can somebody explain me the user of Y* and X* tables for application tables such as VBUK, LIKP etc. in user exits?
According to note 415716 Y* tables store the condition of the record currently in the database and X* tables stores the changed value. But what happens if its a new record (UPDKZ = I), shouldnt Y* table be blank?
We have the following code in the user exit
INCLUDE YVUEPRZ1_DOC_SAVE_PREP_CARRIER *
perform update only if insert or update carrier
UPDKZ : Update indicator
DATA : ls_vbpa LIKE xvbpa.
LOOP AT xlikp.
v_index = sy-tabix.
CLEAR ls_vbpa.
READ TABLE xvbpa INTO ls_vbpa
WITH KEY vbeln = xlikp-vbeln
parvw = 'SP'.
CASE ls_vbpa-updkz.
WHEN 'I' OR 'U'.
MOVE-CORRESPONDING xlikp TO likp.
MOVE-CORRESPONDING xlikp TO likpd.
*-- Prepare changes of the delivery header
PERFORM likp_bearbeiten_vorbereiten(sapfv50k).
likp-yylfnr = ls_vbpa-lifnr.
*-- Check and confirm changes
PERFORM likp_bearbeiten(sapfv50k).
MOVE-CORRESPONDING likp TO xlikp.
MOVE-CORRESPONDING likpd TO xlikp.
MODIFY xlikp INDEX v_index.
IF t180-trtyp = 'V'. "Modification
xvbuk-uvk03 = 'D'.
xvbuk-updkz = 'U'.
MODIFY xvbuk TRANSPORTING uvk03 updkz WHERE vbeln = xlikp-vbeln.
ENDIF.
WHEN 'D'.
MOVE-CORRESPONDING xlikp TO likp.
MOVE-CORRESPONDING xlikp TO likpd.
*-- Prepare changes of the delivery header
PERFORM likp_bearbeiten_vorbereiten(sapfv50k).
CLEAR likp-yylfnr.
*-- Check and confirm changes
PERFORM likp_bearbeiten(sapfv50k).
MOVE-CORRESPONDING likp TO xlikp.
MOVE-CORRESPONDING likpd TO xlikp.
MODIFY xlikp INDEX v_index.
IF t180-trtyp = 'V'. "Modification
xvbuk-uvk03 = 'D'.
xvbuk-updkz = 'U'.
MODIFY xvbuk TRANSPORTING uvk03 updkz WHERE vbeln = xlikp-vbeln.
ENDIF.
ENDCASE.
ENDLOOP.
Now the problem is that SAP is saying that the table YVBUK also has to have the same record as XVBUK but I think its absurd for UPDKZ = I since there will be no database image for that.
thanks
To answer Peluka's question there are no entries in Y* table when UPDKZ = I or UPDKZ = U
and I dont quite understand what Ferry Lianto is saying but I think its pretty much the same as above
thanks for your help
Similar Messages
-
What is the difference between infocube and fact table?
hi bw gurus,
what is the difference between infocube and fact table?
thanks in advance
byeFact table contains only KeyFigures and foreign keys of dim ids.
Infocube conatin fact table sorrounded by dimension tables.dimension table contain primary keys of dim ids and SIDs which link to master data.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84 -
Difference between all_tab_cols and col tables....
Dear All,
Can anyone explain me the difference between between all_tab_cols and col tables......?
Regards
krishnaHi ,
Difference between few columns views
DBA_TAB_COLUMNS has metadata for All columns of all Tables,Views and Clusters in the database.
DBA_TAB_COLUMNS view differs from DBA_TAB_COLS in that hidden columns are filtered out.
ALL_TAB_COLUMNS has metadata for Columns of user's tables, views and clusters .
ALL_TAB_COLS will have hidden columns also , similar to DBA_TAB_COLUMNS
You can also check if this web can help
http://jeffkemponoracle.blogspot.com/2007/07/do-you-know-difference-between.html
Regards
Naveed -
Difference between header and item table
hi experts
I have doubt in choosing header and item table. what is the difference between them. on what situations they can be choosed, how can i conclude that my object needs only item or header table.
thanks in advance.
maayaHi
Header will be always a single time data in a transaction
where as Item data is Multiple lines of data
Item data in most of the times consists of more number of lines.
see the header and Item related tables for some Tcodes
Tcode Header Item
VA01 VBAK VBAP Sales order
VL01N LIKP LIPS Delivery
VF01 VBRk VBRP Invoice/Billing Doc
ME21N EKKO EKPO Pur order
Regards
Anji -
Difference between Infotype and Database table
Hi all,
in SAP ABAP-HR we have the concept of INFOTYPE. will anybpdy please tell me , in simple word, what exactly is it? and what are the difference of INFOTYPE with DATABASE TABLE.
Anirban Bhattacharjeehi,
infotypes contains group of logically related fields on a single screen (just like TABLE) and which is bounded by TIME CONSTRIANT (no time constrint for table).
main diffarence is TIME CONSTRAINT, means validity period of data records in infotypes based on time constrint only.
for more information on time constrint follow this link.........
http://help.sap.com/saphelp_erp2005/helpdata/en/48/35c9f24abf11d18a0f0000e816ae6e/content.htm
each infotype contains, its corresponding database table.
ex: 0002---> personal information.
its database table: pa0002.
the table pa0002 contains four strctures pakey, pshd1, ps0002 and ci_p0002.
pakey-->contains key fields information.
psdh1--->contains last logon detils (usename....)
ps0002--->contains infotype specific fields.
ci_p0002--> for furthur addinf an any extra fields
Edited by: Ashok Reddy on Jun 25, 2008 2:12 PM -
difference between AR and RA tables in Account Receivables???
Hi,
each table in RA_ /AR_ stores different info.
lets suppose Customer profile RA_ contains interface table. and those details
are available in AR_ tables.
So it depends on each table in AR & RA.
--Basava.S -
How to join three tables and practical difference between 10g and 11g
I want to know with example how to outer join three different tables in Oracle.
Also if you have any website or reference for understand syntax or performance difference between 10g and 11g then please paste a link in.thanks!!Hi,
897293 wrote:
I want to know with example how to outer join three different tables in Oracle.The 3rd table comes into the result set the same way the 2nd one did:
FROM table_1 t1
LEFT OUTER JOIN table_2 t2 ON ...
LEFT OUTER JOIN table_3 t3 ON ...The join condition(s) for t3 can reference t1, or t2, or both.
Also if you have any website or reference for understand syntax or performance difference between 10g and 11g then please paste a link in.thanks!!The main manuals all have "What's New" sections near the beginning. For example:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/wnsql.htm#sthref5
Hoek,
We've missed you. Welcome back! -
Difference between ALV and Table control
Hi folks,
i want to know the major differences between AlV and table controls.
i know that table control is designed in screen painter, but i want to know the major diff between Table control and ALV.
helpful answers will be rewarded.
Regards,
NaveenHi Naveen,
Basically ALV is a way to display the output and Table Control is designed in screen painter through which you can get entries in Table Control, can delete some records etc for further processing and its not use only for Display.
<b>ALV is Application List viewer:-</b>
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
<b>TABLE CONTROL:-</b>
ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.
Rewards if useful.
Regards,
Shilpi -
Difference between use of decision table and if/then in business rules
Hello ,
Could some one please explain me difference between use of decision table and if/then in business rules in short.
- ShirishHi,
They are equivalent, pretty much what you can do with a decision table you can also do with if/then...
However, decision tables provide automated features that can reduce the number of required rules, as compared to the if/then rules (this is called rule coalescing).
Have a look on this document... Search for 5.1.1 What is a Decision Table?
http://docs.oracle.com/cd/E23943_01/user.1111/e10228/decision.htm#CJHFIAHG
Cheers,
Vlad -
Difference between "Export" and "Export form Fact Table" package
Hi experts!
Could you tell me what is the difference between "Export" and "Export form Fact Table" package?
Tkanks
GabrielHi,
Basic difference between Export and Export from Fact Table is
In standard package "Export" : We can perform this function when we are online and we have adequate amount of data to be exported. We can run this package eg: weekly or monthly. Here we use u201CExport Packageu201D to pull the data
And in the administrative package "Export from Fact Table" Mostly it is used to do the backend data loading basically bulk data , also any formula logic has to be implemented on the data in that case we use the administrative package.
Hope this helps. -
Difference between is_published and is_replicated columns of sys.tables
Hello,
Can someone please tell me the exact difference between is_published and is_replicated columns of sys.tables? I know is_published is inherited from sys.objects table , but purpose of both the columns are same. However sometimes for some replicated tables
i have seen is_published = 1 and is_replicated = 0 and for another published database tables value of both columns are 1.
It is bit confusing. Can you please explain?
Thanks in Advance.
-MalkeshIs published has a value of 1 for snapshot and transactional replication, and peer to peer.
Is_replicated has a value of 1 for transactional, p2p, and cdc.
The values will be 1 for both the pub and the subscriber in p2p, but are 0 for both for all other subscription types.
The values are always 0 for merge.
looking for a book on SQL Server 2008 Administration?
http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941 -
Difference between char and varchar, also the difference between varchar2
Hi,
Can anyone explain me the difference between char and varchar, and also the difference between varchar and varchar2...Varchar2 is variable width character data type, so if you define column with width 20 and insert only one character to tis column only, one character will be stored in database. Char is not variable width so when you define column with width 20 and insert one character to this column it will be right padded with 19 spaces to desired length, so you will store 20 characters in the dattabase (follow the example 1). Varchar data type from Oracle 9i is automaticlly promoted to varchar2 (follow example 2)
Example 1:
SQL> create table tchar(text1 char(10), text2 varchar2(10))
2 /
Table created.
SQL> insert into tchar values('krystian','krystian')
2 /
1 row created.
SQL> select text1, length(text1), text2, length(text2)
2 from tchar
3 /
TEXT1 LENGTH(TEXT1) TEXT2 LENGTH(TEXT2)
krystian 10 krystian 8
Example 2:
create table tvarchar(text varchar(10))
SQL> select table_name,column_name,data_type
2 from user_tab_columns
3 where table_name = 'TVARCHAR'
4 /
TABLE_NAME COLUMN_NAME DATA_TYPE
TVARCHAR TEXT VARCHAR2
Best Regards
Krystian Zieja / mob -
What is difference between modify and update i am using
hi
what is difference between mofify and update
my requiremen is to have three condition checkec while mofifying or updating from a internal table
the three fields are
cus no
status
date these all are primary key in the database table
so which sould i use modify or update
there might be entry already existing in database table or new entry to be created if already existin it should check on the primary keys and updatat if not it should add a record
pls suggest whihc to use and how to implement the check on teh threee primary key
like if modify ztable from table it_test
now where condition ? can be used or not with modify? and if yes how
if not should i use update will update create a new entry if no entry is there and please give syntex
regards
AroraHi Nishant Arora,
Modify: It works in performing two actions.
They are: Insert + Update.
For Example If a record that is exited in database, so you are modifying that record, it updates that particular record.
Similarly, If the is not existed in the database, you are modifying it, it inserts a new record.
Update: Update means just it updates the status, I mean it only updates the record. It doesn't inserts any new record if that particular record is not present in the database.
These are the cases you need to write these statements.
Syntaxes: :
Go through this links please.,
http://help.sap.com/saphelp_nw04/helpdata/en/e7/968aa8b2384dd9835f91e7f8470064/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35eb358411d1829f0000e829fbfe/content.htm
Reward points if useful
Cheers,
Swamy Kunche
Edited by: Swamy Kunche on Jun 11, 2008 2:41 PM -
What is the difference between Oracle and MySQL
Hi,
I would like to know the major difference between Oracle and MySQL. I have a project to generate XML files from database tables, i have used oracle's built XML functions XMLELEMENT, XMLATTRIBUTES, XMLFOREST, XMLAGG. I really want to know if these functions (or) similar functions are supported/availabe in MySQL.
I am having a hard time to find out best linux distro for installing Oracle11g, so i am planning to switch to MySQL. Please help, Thanks in advance.Oracle_Walker wrote:
Hi,
<snip>>
I am having a hard time to find out best linux distro for installing Oracle11g, Then you must be "looking for love in all the wrong places."
What's so hard about finding a "best linux distro for installing Oracle11g"? The supported distros are listed in the fine Installation Guide for Linux. At the top of the list is Oracle's own Oracle Linux, which is in the same family as Red Hat.
so i am planning to switch to MySQL. Please help, Thanks in advance. -
What is the difference between exists and in
hi all
if i have these queries
1- select ename from emp where ename in ( select ename from emp where empno=10)
and
2- select ename from emp where exists ( select ename from emp where empno=10)
what is the difference between exists and in is that only when i use in i have to bring the field name or what.... i mean in a complex SQL queries is it will give the same answer
ThanksYou get two entirely different result sets that may be the same. Haah! What do I mean by that.
SQL> select table_name from user_tables;
TABLE_NAME
BAR
FOO
2 rows selected.
SQL> select table_name from user_tables where table_name in (select table_name from user_tables where table_name = 'FOO');
TABLE_NAME
FOO
1 row selected.
SQL> select table_name from user_tables where exists(select table_name from user_tables where table_name = 'FOO');
TABLE_NAME
BAR
FOO
2 rows selected.So, why is this? the WHERE EXISTS means 'if the next is true', much like where 1=1 being always true and 1=2 being always false. In this case, where exists could be TRUE or FALSE, depending on the subquery.
WHERE EXISTS can be useful for something like testing if we have data, without actually having to return columns.
So, if you want to see if an employee exists you might say
SELECT 1 FROM DUAL WHERE EXISTS( select * from emp where empid = 10);
If there is a row in emp for empid=10, then you get back 1 from dual;
This is what I call an 'optimistic' lookup because the WHERE EXISTS ends as soon as there is a hit. It does not care how many - only that at least one exists. It is optimistic because it will continue processing the table lookup until either it hits or reaches the end of the table - for a non-indexed query.
Maybe you are looking for
-
Calling a function from another class - help!
I realize that this is probably a basic thing for people who have been working with JavaFX for a while, but it is eluding me, and I have been working on it for over a week. I need to call a function that is in another class. Here's the deal. In Ent
-
Foreign Characters in LoadVars
My application sends user text to a database server using the sendAndLoad. The only problem is that foreign characters are not being sent properly. Räul gets received as Räul9. Is there something I have to do in order for the loadvars to not encode
-
Input variable takes value from current filter setting in navigation block
Hi Is there is a way in SAP, maybe with customer exit, to fill a input variable for 0CALMONTH (which in the end will get a value like "06.2005") with the current value from the selected month in the filter settings of the time characteristic 0CALMONT
-
Release procedure with out classification
HI, AJIT SINGH HERE, after making proper settings in the 'release procedure with out classification', when i try to create a puchase requisation by ME51N to test the working of release procedure ,i'm not getting check boxes of approval levels. please
-
I have tried to import the best practises CRM epa called BP_CRM_ALL.epa and it isgiving an error.Can anybody tell me where to find the error log file and to enable this successful import