Table S013 not using INFNR field
I can't create unique records from the same vendor on the same day because INFNR is the only key field that would uniquely identify each record and it is not being used.
How can I get the data into the field as it should be?
I assume when a vendor's shipment is received the record is created from the receiving documents. At some point during that process we are not including the INFNR record with the rest of the data updating the S013 table.
Any help is appreciated.
Thanks,
Matt
I do not know how to do what I was asking in this post but instead I used the "smoothing factor" in table T147 "smooth" the deliveries throughout the period. We had a 1 in the smoothing factor which meant the last delivery is all that should count. A 0 means the first delivery inthe period is all that matters. So we used a .5 which means each new delivery within a period counts for 50% of the "smoothed" score.
Thanks,
Matt
Similar Messages
-
Implications of not using mandt field in SAP table.
Hi Everyone,
Can anybody please let me know the diadvantage and the impact of not using the mandt field at the key field in the db table. And what will be the impact if the customer upgrades the system and if the tables doesnt have this field. Any help will of great use to me.
Thanks,
Prashant.SAP has the concept of client dependent and client-independent data. This is controlled by the mandt field as the first field in a table which makes it a client dependent table. as there can be multiple clients supported in a single sap system, it is better to have this differentiation so that the data in one client can be clearly distinguished from that of another.
however, this does not hold for certain types of data such as the customizing data which is to be maintained singly across all clients. Thus, such tables which need to have a single definition of data across all clients available in the system should be made client independent, that is , without the mandt field in the table.
once you use client-dependent tables, different clients in the system can even be used as different logical systems, and this certainly helps if data is segregated in multiple client scenario.. -
Update databse from internal table statement not using index
Hi Guys,
We are updating a databse table from a file. The file has a couple of fields which have data different from what the database has (non-primary fields :). We upload the file data into an internal table and then update the database table from internal table. At a time, internal table is supposed to have 10,000 records. I did SQL trace and found that the update statement is not making use of the databse index.
Should not the update statement here be using the table index (for primary key)?
Regards,
Munish... as often there are recommendations in this forum which makes me wonder, how people overestimate their knowledge!!!
Updates and Deletes do of course use indexes, as can be seen in the SQL Trace (use explain).
Inserts don't use indexes, because in many databases inserts are just done somewhere, But also with the INSERT, the primary key is the constraint for the uniqueness condition, duplicate keys are not allowed.
Coming to the original question, what is you actually coding for the update?
What is the table, which fields are in the internal table and what are the indexes?
Siegfried -
Delete and internal table with not eqaul to fields
Hi I have an internal table I want delete few records with fields not equal to the variable v_lifnr, v_name1 and v_city,
structure of internal table has fields LIFNR, NAME1, CITY, TEXT1 and TEXT2.
I dont want to go by deletin in loop.Hi ,
i want to delete a internal table record based on the values which are NOT in the ranges ..
I am facing a syntax error with not operation in some system s
code looks like below !
i am not facing this problem when there in no not in ranges.
Thanks .
RANGES: RA_FFIDS FOR /VIRSA/ZFFUSERS-ZVIRFFID.
data : BEGIN OF IZVIRFFTRANSLOG OCCURS 0.
INCLUDE STRUCTURE /VIRSA/ZFFTNSLOG.
DATA: DESC LIKE RS38M-REPTI,
END OF IZVIRFFTRANSLOG.
data : IT_ZFlight_T LIKE IZVIRFFTRANSLOG OCCURS 0 WITH HEADER LINE.
IF NOT IT_ZFlight_T_TCODE[] IS INITIAL.
DELETE IT_ZFlight_T_TCODE WHERE ZVIRFFID NOT IN RA_FFIDS.
DELETE IT_ZFlight_T WHERE ZVIRFFID NOT IN RA_FFIDS.
ENDIF. -
"Tables are not using indexes"-Please help
We have a new database , version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Productio
NLSRTL Version 10.2.0.1.0 - Production
We have created Indexes for the tables and analysed the table. Problem is , non of the tables are using indexes. Explain paln for the sql queries are showing full table scan.
Kindly let me know any parameter I have to change or is there any setttings needed on database level?
Thanks in advance.
Regards,
ChotuWhat is your optimizer mode?
Another question why you want to use indexes? Use of indexes depends,
Here is a simple example
test@>ed
Wrote file afiedt.buf
1 explain plan for
2 select c.cname from mytable c, mytable1 m
3* where c.cname=m.cname
test@>/
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 2460944079
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 64 | 1 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 8 | 64 | 1 (0)| 00:00:01 |
| 2 | INDEX FULL SCAN | C_MYTAB_IDX | 8 | 32 | 1 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN| C_MYTAB1_IDX | 1 | 4 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
3 - access("C"."CNAME"="M"."CNAME")
15 rows selected.
test@>explain plan for
2 select * from mytable;
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 1229213413
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 32 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| MYTABLE | 8 | 32 | 3 (0)| 00:00:01 |
8 rows selected.As you see MYTABLE has an index but it not always uses that index it depends on the need.
sql queries are showing full table scan this is a not a curse. So unless you are having some problem. You should not change queries only because to avoid full table scans, there is no rule that indexes should always be used in every case.
Adith -
CCMS for Table monitoring not using Message Class
We are currently using a Table content monitor in CCMS to raise alerts for an ABAP monitoring program we have written. The program inserts records in a custom ABAP table and when a row is inserted with a certain value we raise an alert through CCMS.
The data collection method is using the "Red" function module SCSM_GEN_TAB_DS_R
The alerts are generating fine but the alert text is displaying <CCMS: no default text available>. We have configure a message class and number but it is not displaying this in alert. Does anyone know what could be the problem?
Here is the parameter settings for the data collection method
1. TARGET_TABLE ZTSPM_CH_STATUS
2. FIELDNAME CHANNELKEY
3. FIELDVALUE CCSTATUS
4. MAXROW 50
5. WHERECLAUSE1 CCSTATUS = 'FAIL'
6. WHERECLAUSE2
7. WHERECLAUSE3
8. TOP_FULL_NAME
9. RESCANFROMBEGIN REPORTTIMESTAMP
10. T100_MESS ZXI_CNB 023
The message class/number (ZXI_CNB 023) is
"Connectivity Heartbeat failed for &1, Status: &2"
I was expexting the values from the table for fieldname (CHANNELKEY) and Fieldvalue (CCSTATUS) to be replaced in the message string.Hey Mark!
I had a question about this topic. I had the problem, that method doesn't work. The following parameters have been set:
1. TARGET_TABLE ZMON_ERROR
2. FIELDNAME EF
3. FIELDVALUE EV
4. MAXROW 50
5. WHERECLAUSE1 EV='AU01'
6. WHERECLAUSE2
7. WHERECLAUSE3
8. TOP_FULL_NAME
9. RESCANFROMBEGIN
10. T100_MESS
Rescanfrombegin and Messageclass have not been set, because I read, that there are many problems.
In Technical Export Monitors under DataSupplier theres an alert:
Internal Error in method SCSM_GEN_TAB_DS_R, Error: SELECT, SY-SUBRC = 0.
I think the problem is the WHERECLAUSE, but it doesn't matter if I change everything. Do you know any solutions, maybe? -
How can I link table KONV with table VBRP and VBRK using KSCHL field?
Hi experts,
How can I link table KONV with table VBRP/VBRK using KSCHL field so that items are fully filtered?
Thanks,Hi,
If you do not want to specify it as hard code, then define a variable for it if you want to pass the value for it from the selection screen so that it will be dynamic. Code will be as follows.
select-options: x_KSCHL for T685l-KSCHL.
select kwert
kbetr
knumv
kposn
kschl
from konv
into CORRESPONDING FIELDS OF TABLE it_konv
FOR ALL ENTRIES IN it_all
where knumv = it_all-knumv
and kposn = it_all-b_posnr
and kschl in x_KSCHL. "Dynamic Selection as per the selection screen input
endif.
Hope this helps.
Regards,
Chandravadan -
Index not used in a simple query
Hi all,
I have a query which is using only 2 tables linked with an indexed column, i'm surprised that the 2 tables are not using index and they are full scanned. here is some details:
Table a: T1 (col11 number, col12 varchar2) indexed on col11 (primary key): rows number=4 millions indexe: idx1 on col11
Table b: T2 (col21 number, col22 varchar2) indexed on col21 (primary key): rows number=3 millions indexe: idx2 on col21
select a.col12, b.col22 from T1 a, T2 b where a.col11=b.col21
The execution plan is:
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Optimizer Mode=ALL_ROWS 3 M 32356
PX COORDINATOR
PX SEND QC (RANDOM) SYS.:TQ10002 3 M 67 M 32356 :Q1002 P->S QC (RANDOM)
HASH JOIN 3 M 67 M 32356 :Q1002 PCWP
PX RECEIVE 3 M 20 M 7376 :Q1002 PCWP
PX SEND HASH SYS.:TQ10001 3 M 20 M 7376 :Q1001 P->P HASH
PX BLOCK ITERATOR 3 M 20 M 7376 :Q1001 PCWC
TABLE ACCESS FULL T2 3 M 20 M 7376 :Q1001 PCWP
BUFFER SORT :Q1002 PCWC
PX RECEIVE 3 M 44 M 24708 :Q1002 PCWP
PX SEND HASH SYS.:TQ10000 3 M 44 M 24708 S->P HASH
TABLE ACCESS FULL T1 3 M 44 M 24708 ThanksHi Herald,
Thanks for your reply
when selecting only the columns which are indexed, it is using the index
select a.account_link_code_n, b.account_link_code_n from gsm_sims_master a, gsm_service_mast b
where a.account_link_code_n=b.account_link_code_n
See the execution below:
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Optimizer Mode=ALL_ROWS 3 M 11051
PX COORDINATOR
PX SEND QC (RANDOM) SYS.:TQ10002 3 M 44 M 11051 :Q1002 P->S QC (RANDOM)
HASH JOIN 3 M 44 M 11051 :Q1002 PCWP
PX RECEIVE 3 M 20 M 7376 :Q1002 PCWP
PX SEND HASH SYS.:TQ10001 3 M 20 M 7376 :Q1001 P->P HASH
PX BLOCK ITERATOR 3 M 20 M 7376 :Q1001 PCWC
TABLE ACCESS FULL GSM_SERVICE_MAST 3 M 20 M 7376 :Q1001 PCWP
BUFFER SORT :Q1002 PCWC
PX RECEIVE 3 M 22 M 3403 :Q1002 PCWP
PX SEND HASH SYS.:TQ10000 3 M 22 M 3403 S->P HASH
INDEX FAST FULL SCAN ABILLITY.SIM_ACC_LNK_CD_IDX 3 M 22 M 3403 But using hints has a very bad execution plan and a very high cost:
select /*+ index(a) index(b) */ a.account_link_code_n, b.account_link_code_n from gsm_sims_master a, gsm_service_mast b
where a.account_link_code_n=b.account_link_code_n
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Optimizer Mode=ALL_ROWS 3 M 31899
HASH JOIN 3 M 44 M 31899
INDEX FULL SCAN ABILLITY.GSM_SERV_MAST#ACLINK_CODE$PK 3 M 20 M 8158
INDEX FULL SCAN ABILLITY.SIM_ACC_LNK_CD_IDX 3 M 22 M 15709 Thank you
Luc -
Records from multiple table in Forms using Structure
Hi all,
I thought of bringing records from more than one table to smart forms.I have done the same by using two internal tables but not using with globally declared structure.Is it like this:
1.Create the global structure
2.In driver program create a internal table
3.Pull the data using select statement
4.Pass the internal table to smartforms-> Here I dont understand how.Usually In smartforms we declare internal tables of table type like 'itable type zgkmaster'
How to pass the internal table we created using structure to smartforms?
ThanksHi Gopi,
the procedure u r telling is correct.
create the structure(ex:zstruc) in se11 as the structure of the internal table.
*popluate the data into internal table.
*in smartform, u declare the internal table as that structure i.e itab type zstruc.
i.e in smartforms when u declare internal table, u r telling that ur internal table having the structure similar to the structure ZSTRUC.
In smartforms u can declare the table type using either ...type <db table> or ... type <structure>.
san -
APO - /SAPAPO/SD_DOC not showing the fields
Hello..We did set the field "FIXMG' and its value in US_CATALOGUE structure on ECC side and after ATP run (sales order) we are not picking up field value on APO side in table "/SAPAPO/SD_DOC". Please advise. Do we need to add any BADI or userexits on APO side to populate this table.
Thank you!.Hi,
The FIXMG field is usually transfered in the requirement table and not in the field catalogue. If you want to have it in the field catalogue you need to add this in the userexit in R/3 (please check note 379196 and 385039). Afterwards you will find the additional fields in table /SAPAPO/SDFIELD. The table /SAPAPO/SD_DOC contains just the "standard" fields.
Hope this helps.
best regards,
Michael -
Field name DUMMY is reserved (Do not use structure as include in DB table)
We are trying to add a custom field, e.g., called ZZZ in LIS Communication structure MCEKKO (Purchasing Document Header) by creating a new custom append structure and add the field ZZZ into it, then activate the new append structure, but get warning msg like "Field name DUMMY is reserved (Do not use structure as include in DB table)".
We do find a field called DUMMY in the structure MCEKKO. How to get rid of the warning msg and successfully activate the new custom append structure with the new field ZZZ?
We will give you reward points for correct solutions for the above problem!
Thankshi Dinesh,
But we wonder why this new custom field appended can not be seen from the right frame of the extraction structure in LBWE?
Any idea?
Thanks -
ABAP query using logical database KDF is not populating custom fields
Hi Experts ,
I created two following queries
1. VENDORCATKDF – uses KDF logical database
2. VENDORCATLFA1 – uses table = LFA1
I’m pulling the same information in both queries:
· Vendor Number
· Country
· Vendor Name
· Vendor Category (custom fields added to LFA1)
The results for the query that uses the logical database KDF is incorrect. It doesn’t pull in the flag on the custom field LFA1-ZMRO. Even though the logical database KDF is made up of the table LFA1 and has these fields.
Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?Hi,
I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
I do not think having additional fields in the query is reason for this.
Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
Can we not have a query using LDB which is shown as SAP List?
Regards,
Garima. -
Index not used on view when table stats exist
Hello,
I would be grateful if someone comes with ideas on the following problem I'm currently facing.
I have a table with XMLTYPE data type column:
sql-->desc ACFBNK_STMT008
RECID NOT NULL VARCHAR2(200)
XMLRECORD XMLTYPE
I have a view V_ACFBNK_STMT008 on that table, in which the view columns are defined as extracted tags values from the XMLTYPE field, e.g. for the view field N_BOOKING_DATE:
numcast(extractValue(xmlrecord,'/row/c25')) "N_BOOKING_DATE"
(note: numcast is just a simple function that returns TO_NUMBER of its input argument)
I have also a function-based index on this field of the table:
CREATE INDEX train4.NIX_ACFBNK_STMT008_C25
ON train4.ACFBNK_STMT008("TRAIN4"."NUMCAST"(extractValue(xmlrecord,'/row/c25')))
And so, I'm executing on the view the following SQL statement:
SELECT RECID FROM V_ACFBNK_STMT008 WHERE (N_BOOKING_DATE > TO_NUMBER('20070725'));
Now, the problem comes: when statistics exist on the view base table (that is ACFBNK_STMT008) then the above statement is not using the index and is making a "table access full". When I delete the statistics for the table then the SQL runs fast with an "index range scan".
Which is further strange - when I change the ">" operand with a "=" the SQL statement correctly captures the index regardless of whether or not statistics exist.
I've tried to manually rewrite the SQL and include the "numcast" function in it:
SELECT RECID FROM TRAIN4.V_ACFBNK_STMT008 WHERE ( N_BOOKING_DATE>train4.numcast(TO_NUMBER( '20010725' ) ));
And in this way the index is used OK even with statistics existing!
But regretfully I don't have a way to change the application and the SQL, so the only things I can change is the view and/or the index.
Thank you in advance,
Evgeni
P.S.
I've tried gathering statistics in both the following ways but still the problem persists:
sql-->analyze table train4.ACFBNK_STMT008 compute statistics;
sql-->exec dbms_stats.gather_table_stats(ownname=>'TRAIN4', tabname=>'ACFBNK_STMT008', CASCADE=>TRUE, partname=>NULL);Oh, and I forgot to mention: I cannot change the view definition as well (for example, to remove the "numcast"), since every now and then the application would recreate it automatically with the same code. :(
-
How can i transfer some fields from one table to another using a trigger
hi,
i have two tables;sales and accounts.i want in my accounts form to enter salesid which is then validated and if it exists in the sales table, some fields are copied to the accounts table automatically.how do i go about this.thanxhi,
the code u gave me is not running.let me explain in
detail.i have two tables;sales and accounts in my
database (oracle 9i).each have a corresponding form
in the developer window.these tables are linked using
saleid.this id is entered and saved in the
database.when the person is paying in the cash
office,the saleid on an invoice form is entered on
the accounts form.it is supposed to search the sales
table and if the ids match,some records are extracted
from the sales table to the accounts form instead of
the accounts clerk entering the details all over
again.these details will be used to generate a
receipt an then the record on the accounts form is
saved to the database.the contents of the two tables
are:
sales(saleid(pk),startno,endno,quantity,amount,saledat
e)
accounts(receiptno(pk),saleid,startno,endno,quantity,a
mount).
please advice and thanks very muchWhat does it mean "not running" ?
Sure, it is running.
Did you tested my example ?
And it does exactly what you need.
You didn't provided table structures and insert statements,
that's why i showed you the method on 2 emp- tables.
But it is exactly, what do you need.
Change my emp_1 on your sales,
and my emp_2 on your accounts,
and compare the results.
If you cannot directly copy and paste
and say to your teacher / chief "My homework / task is ready"
it doesn't mean, that the solution didn't provided ... -
BADI MB_MIGO_BADI not updating custom field in MSEG Table
Dear Experts,
I am working on screen exit In MIGO transaction for transfer Posting.
I checked that BADI MB_MIGO_BADI having facility for screen exit and method line_modify having facility to change GOITEM Structure for the changed line item.
Now, to make this functionality work I have enhanced include structure CI_COBL which is available in both mseg table and goitem structure, now I have this customized fields on my custome tab through the enhancement and also to update this value 2 custom fields created in goitem structure and MSEG table through include structure CI_COBL.
Here my question is at the time of transfer posing creation in MIGO when I am passing the value in custom fields through screen and assigning it to custom fields of structure GOITEM through LINE_MODIFY method, it is giving me below worning message
BADI: Field GOITEM-ZZIDNLF is not ready for input. (Change is not taken over)
Now I have debuged the code, also checkout many threads and came to know that because of few checks in standred program (iNCLUDE:LMIGOKL3) these fields will not be updated WHERE IT always checks whether these fields are ready for input or not and if not ready then instead of assigning the values it throws worning message.
Now can you please through some light how can I go ahead as I have check out many threads and also tried to change value of cs_goitem structure using field symbol but throughing dump that it is blocked against changes through field symbol.
The helpful answers will be highly appriciated.Hi,
In the badi mentioned by you GOITEM is the importing parameters & if the relevant field is not used in any MIGO screen you cannot change the data.
Please check example BADI interface: IF_EX_MB_MIGO_BADI~LINE_MODIFY
Please check the BADI documentation:
Changed data in GOITEM is only adopted if the relevant fields are visible and ready for input.
Changed data in GOITEM is not adopted if the relevant field is not used in any MIGO screen (warning via MIGO 049).
Changed data in GOITEM is not adopted if the relevant fields are not ready for input (warning via MIGO 050)
Thanks and Regards,
Chandra
Maybe you are looking for
-
I've been using Preview for pdf viewing and printing, as well as right clicking on pdfs in Safari to choose "Open in Preview". But are there advantages to using Adobe Reader? And is Adobe Reader actually a universal binary now, with a plugin for Safa
-
Link in responsive web - core.js
Hi, I'm making a responsive site (test: http://allganized.nl/index2015.html) but still have some problems to solve ;o) One of the problems is the hyperlinks in the navigation. I have a script core.js which make the links go in a soft way to it's plac
-
my imessage is not working all messages are being sent to ipad
-
Can I view / read books brought from iBookstore on my Mac or PC?
Just like the songs brought from iTunes which can be listened in iTunes on Mac or Windows-PC. Thanks in advance!
-
Will 8i Client work with 10g DB?
We currently use an 8i client install to enable ODBC and Oracle Discoverer access to an 8i database. We need to upgrade the database to 10g, but we may not be able to upgrade the client from 8i. Will the 8i client work properly/reliably against the 1