Transparent Table (Problem in data fetching)
There is a new bapi developed in our sap environment which is fetching data from pool tables and transparent tables.
When this bapi is called from non sap environment then only pool tables are returning data .Transparent tables are returning blank values.
Case
When we are passing hard coded values in "Where Clause" of transparent tables like A931 table ,then transparent tables are also returning data from bapi in non sap environment.
But when we pass values in "Where Clause " of transparent tables through Variables declared in bapi then transparent tables are not returning any value (instead returns Blank) in non sap environment.
Help
Don't blame it on the transparent tables, I'm quite sure that something is wrong with your selection statement, e.g. how you pass "variables" in the WHERE-condition. Give more information on a selection that doesn't work as expected.
Thomas
Similar Messages
-
Hi frnds ,
When i am testing my workflow i am able to see the values properly . I am havign a activity which is caling a standard template via method which is having some parametres for fetchign the email . so the email is also going to the proper person
But when i am executing my workflow through the program using event fm then i am not able to see any data displayed . the workflow is triggering if i use a the email as workflow initiator . But there is some problem in data fetching when i go through the program .
Plz help
Thanks
RohitChange this to
declare
begin
go_block('fwqrecview');
first_record;
loop
if :fwqrecview.chk is null then
clear_record;
else
Next_Record;
Exit When :System.Last_Record = 'TRUE';
end if;
end loop;
end;
------------------- End Step 1---------------
-- fetching records from block 1 -----
---- Step 2
DECLARE
CURSOR Cur_rv IS
-- select voucherno.nextval GlVoucher,t.* from
select inv_no,to_char(r_date,'YYYY') Year, to_char(r_date,'MM') Period,'SRV' Vtype,
r_date Vdate, narration
from receipt
where inv_no = :fwqrecview.inv_no ;
--) t ;
BEGIN
OPEN Cur_rv;
GO_BLOCK('tempVmaster');
first_record;
LOOPi
FETCH Cur_Rv INTO :VM_NO,:VM_YEAR,:VM_PERIOD,:VM_VOUCHER_TYPE,:VM_DATE,:VM_NARRATION ;
message ('Inv...'||:vm_no);
EXIT WHEN Cur_Rv%NOTFOUND;
NEXT_RECORD;
END LOOP;
CLOSE Cur_Rv;
FIRST_RECORD;
END;
---- End Step 2 ------- -
Hi,
I am facing the problem while fetching the data from COEP table.The scenario is as follows:
1) For the projects entered on selection screen,fetch BEDID from AFKO. (PRONR = Project def.)
2) Based on value of BEDID,fetch OBJNR from AFVC.
3) Based on value of OBJNR, fetch WOGBTR from COEP and sum it up.
I am facing problem with step 3 as WHERE clause in the select query is based on nonkey field of the table.Same is the case while fetching data from AFKO and AFVC.
Please suggest the better alternativeHi,
In WHERE clause you can use non key fields. The important is that on the left side it must be a column from LEFT table i.e.
select ... from AFVC as A inner join COEP as C on
a~column1 = c~column1 and
where a~non_key_column = .... "here on the left must be a left table column provided, but non key field is allowed
Regards
Marcin -
Import table - problems with date
Hi,
I want to import an table from text file with date column. The format in file is 12.01.2000 13:59:12.
When importing the preview of column value is 2000-12-01 13:59:12. I've then added the format YYYY-MM-DD HH24:MI:SS. After import all rows with date of year 1999 or below are failed.
Does anybody know why and how can I solve this problem?
Thanks
chrissyHi Dimitri,
yes all rows with date of year 2000 or higher are correct. It shows me the YYYY-DD-MM HH24:MI format if it recognizes the column as date. Somehow I get it worked that it is recognized as varchar, changed to date and set format to DD.MM.YYYY HH24:MI. So it was imported fine.
Thanks for your help,
chrissy -
Project Systems:Transparent Table holding ECP data
Hello experts,
Does anybody know what table holds the the ECP (Easy cost planning) for a WBS element.
Any help would be appreciated
Thanks
DavidCKHS & CKIS are the ECP specific tables
sorry i mentioned ECP tables..I will find and post right table..
Edited by: Mahalakshmi Padmanaban on Jan 29, 2010 12:34 AM -
Data fetch problem from EBAN table
Hi All,
I have a problem in data fetching. My SQL statement is
SELECT A~BANFN
A~FRGDT
A~MATNR
A~MENGE
A~MEINS
A~AFNAM
A~EKGRP
A~PRIO_URG
A~STATU
A~RLWRT
A~EBELN
A~LOEKZ
A~EBELP
A~FRGKZ
INTO CORRESPONDING FIELDS OF TABLE ITAB_DATA
FROM EBAN AS A
WHERE A~STATU IN S_STATU
AND A~EKGRP = S_EKGRP
AND A~BANPR = '05'
AND AFNAM IN P_AFNAM
AND BEDNR IN P_BEDNR .
In EBAN table data in AFNAM field is like 'Mech', 'mech' & 'Mech'
Now in selection screen if user give Mech then system picks only that data where 'Mech' is there but requirement is it should pick all data related to ('Mech', 'mech', 'Mech') in AFNAM field. How do I do?
Thanks and regards,
Rajesh VasudevaHello,
What you ask is not easy but it is feasible.
We had the same request to make a case-insensitive search on a text field.
As a reference for our development we took the following example:
[http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup|http://wiki.sdn.sap.com/wiki/display/Snippets/CaseInsensitiveSearchHelpExitforMaterialGroup]
In short : the purpose is that first of all you build up a list of all possible values in a separate internal table.
Then use this separate internal table in the FOR ALL ENTRIES clause when you perform the select on the actual data.
Success.
Wim -
Greetings. I have problem with data fetching in pivot table.
I can see only 25 rows in it. Any ideas with my problem.Hi,
Try increasing the rangeSize of the iterator to some value like 150?
-Arun -
To modify field value in a transparent table
how would i modify the value of a field in a transparent table? my data is from internal table. while im looping in the internal table the data goes to the first record of the table not on the right record.
what wrong with my code?
loop at i_tble.
wa_tble = i_tble.
select single angnr
into i_angnr
from ekko
where ebeln eq wa_tble-ebeln.
ekko-angnr = wa_tble-angnr.
modify ekko.
endloop.Hi,
I am sorry but I didn't understand the purpose of this code. You are reading in a field value of ANGNR from EKKO and you want to update the same record again with the same value? Why?
<b>Secondly, you should never update any SAP table directly like that</b>.
Now for the reason why your update is updating the first record always.
Your 'modify ekko' should be modified as
MODIFY ekko TRANSPORTING angnr WHERE ebeln = wa_tble-ebeln.
Please reward and close the post if answered.
Regards,
Srinivas -
General method to fetch data from transparent tables with cluster field
Hi,
I want to know is there any general method to fetch data from the transparent tables which have cluster type field. For
example MDTC, STXL, PCL1.
thanksMeans using the IMPORT statement we can fetch data from any cluster field?
Yes, basically you should use IMPORT/EXPORT statements for clusters.
AR and MC are cluster ID (area identification), so called RELID.
By definition cluster is a combination of table and such area i.e
PCL2(RX) - international payroll resuts from table PCL2
PCL2(B2) - time results
Regards
Marcin -
Select statement failed to get data from transparent table
Hi Experts,
Please let me know why my select statement is failing to get data form transparent table REGUH. My code query is as below:
SELECT * FROM REGUH WHERE
LAUFD = RUN_DATE AND
LAUFI = ID AND
LIFNR = P0009-PERNR AND
RZAWE = 'C'.
MOVE REGUH-RWBTR TO CASH.
CASH = CASH * -1.
ENDSELECT.
REGUH table has data for the given query but it is not retreiving the data.Please let me know what is the problem with the query
because of which it is not fetching the data.The same query is working fine in Developement but fails in production may be because one new patch is updated.please help asap.Hi Ankita,
Why you are going for select *
Try This...
SELECT SINGLE RWBTR
INTO v_RWBTR
WHERE LAUFD = RUN_DATE
AND LAUFI = ID
AND LIFNR = P0009-PERNR
AND RZAWE = 'C'.
MOVE v_RWBTR TO CASH.
CASH = CASH * -1.
Regards,
Raj. -
Hi,
I have used smartforms for generating suppler payment statement for financial department. more time duration is taken by the program when it is generating.
I think this problem comes while data fetching from BSEG table. because, it has more records for one vendor ID.
I want reduce this time duration.
Please guide me.Have you tried this selection in se16? I'm quite sure that It will take
a long time.
The problem has been explained in this group before and I think you
should search for bseg in the answers given.
As a hint: It has to do with the selection universe. You are restricting
only bukrs from the primary key (all the other restrictions in your
where clause are filters that are applied on SAP's side (not on the
database side)). The problem is that bseg isn't stored as separated
fields in the RDBMS, but as a table with the primary key and a stream of
bits in a raw field.
You should review and change the logic you're using before reading bseg.
It's the only way you'll improve the performance of this select. (for
example, you could use one or more secondary index tables - bi or ba
to retrieve belnr and access bseg with a better where clause). -
Data fetch from table without Refresh and without using tab key.
hi Friends,
I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
How Can I do this.
Thanks
ManojHi Manoj,
I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
Andy -
Taking data from SAP ECC6 transparant table.
Hi All,
Can you please help me to taking data fromt he transparant table of SAP ECC6.
I am using Xcelsius 2008.
Thanks in advance.
Regards
BaaRaa.Hi BaaRaa,
Xcelsius SP2 has only a direct connectivity to SAP BW.
If you have BusinnesObjects Enterprise Server and you have installed the SAP Integration Kit, you could connect to ECC:
As a workaround for getting to ECC Data, you can use Crystal Reports and Live Office. Basically you build a crystal report with the data from ECC. Then you will use Live Office to fetch that data to a Excel Workbook. Then you can import that excel workbook in Xcelsius.
Best Regards
Victor -
A time problem with a SQL sentence wit CRMD_SRV_OSSET Transparent table
Hi,
I 've an issue when I Execute the "Verif. Extractor S-API" (RSA3 transaction). I checked this transaction, with this parameters:
Datasource: 0CRM_OPPT_H
Request ID TEST
Data Records / Calls 100
Display Extr. Calls 10
Update mode F
Selections: OBJECT_ID -> 0000002230, 0000002231
When I Execute the transaction, previously I activated the SQL trace in ST05 transaction (to can check posssible problems).
When the Process finished, I was looking the Display Trace and I looked that, for every item, the next SQL statement, needs 15 seconds per item. Really strange. In my case, normally I'll need process this SQL 3 million times, because I've 3 million items in CRMD_SRV_OSSET transparent table.
Standard Function : CRM_SERVICE_OS_SELECT_S_DB
Select statement: "SELECT * FROM CRMD_SRV_OSSET
INTO TABLE LT_OSSET
WHERE GUID_SET = IV_GUID_SET
ORDER BY PRIMARY KEY ."
Can someone help me?
Thanks,
Sergiohi sergio,
I am facing the same issue with my select query.
The query is getting timed out because of huge data and hence the batch job is failing.
I am using the primary key in the where clause.
IF NOT lit_crmd_link_all_mass[] IS INITIAL.
SELECT * FROM crmd_srv_osset INTO TABLE lit_crmd_srv_osset_mass
FOR ALL ENTRIES IN lit_crmd_link_all_mass
WHERE guid_set = lit_crmd_link_all_mass-guid_set AND
subject_profile IN (lc_prof_finance,lc_prof_hlc).
ENDIF. " if not lit_crmd_link_all_mass[] is initial.
how would i go about resolving this? could you help?
Thank you,
Zid. -
What is the Transparent Table for PO Delivery Date field
Hii All,
Does anyone know the Transparent table where the delivery date is stored for the PO line item. It's not in EKPO. Where is it?
Thanks in advanceUnfortunatly there is no diagram anywhere for the table relation.
I usually help myself by F4 search in SE11
You know e.g. table EKKO. So enter just EK* and press F4 to see all other tables starting this way.
But in most cases when I search for tables that belong somehow together I use DB15 transaction.
This gives me all tables that belong to the same archiving object.
You can start there by entering a table name and search for the archving object.
then you do it reverse and you get all tables for this object.
(Unfortunatly SAP does not have archiving objects for any table)
Maybe you are looking for
-
I am an independent artist, would like to upload my album on iTunes for sale. How to do it?
-
ICal & Backup 3, Regardless of recovery date - still the same files?
I don't understand what is going on - and I may seem to have found a bug that crashes Back-up 3.1 My wife deleted my personal calendar in iCal. So - I went back into Backup and recovered all the data files from the day prior. Then the day prior to th
-
My sync fails with all devices. iPhone 5 iPod 5 iPad 2 all previously backed up. Ever since the first backup they have failed. several updates in iOS and iTunes. I am upgrading my HDD on my PC running Win 7. Every piece of software is a fresh install
-
Getting this error in alert log | ORA-27037:
Tue May 6 11:57:16 2008 SMON: enabling cache recovery Tue May 6 11:57:17 2008 Successfully onlined Undo Tablespace 1. Tue May 6 11:57:17 2008 SMON: enabling tx recovery Tue May 6 11:57:17 2008 Database Characterset is WE8ISO8859P1 replication_depende
-
Displaying Data in a Form field
Hi, We have a requirement, where we have to display the value in one of the field as "Header_number.Line_number" where as the backend value will have only the Line_number. We have Header_number in a Materialized View. I am going to fetch line_number