Regarding resb table
hai,
is it possible to count the no of records by year wise in resb table and in that table 16 millions records are present.if it is possible means, tell me the solution as soon as possible.
with regards,
r.dhinesh raj.
hi,
write a query like,
data: ws_cnt type i,
ws_gjahr type gjahr.
select count(*) gjahr into (ws_cnt, ws_gjahr)
from bkpf GROUP BY gjahr.
write: ws_cnt, ws_gjahr.
endselect.
regards,
Subramanian
Similar Messages
-
Hi..
I m working on one interface, in which i hav RESB extraction process. For the initial run of this interface all the records should be downloaded .But on subsequent execution i need only the changed records. The problem is there is no means for me to keep track of the changes in RESB, as these are not getting reflected in change tables CDHDR and CDPOS. Also there is no CREATED/CHANGED date fields in RESB table. Does anyone know any alternative for fetching the changed or newly records from RESB table based on date?Hi Cynthia,
In the runtime we can check for the changes that are made in a table by using the mirror tables. there would be XRESB and YRESB tables in runtime which would hold the mirror images of the table contents before change and after change. so we have to perform a check of the fields from both the table at runtime. If there is a change perform the required action accordingly.
<b>
Reward points if this helps,</b>
Kiran -
Deleting Reservation from RESB Table
Hi Experts,
I have reservations of child component in RESB table which are resulted from the parent component in Subcontracting Scheduling Agreement.
All Delivery Schedules lines are completed (GR Made.) Still reservations exist for child component.
Please suggest how to remove these reservations from RESB Table.
Regards,
Shravan.Hi Sharvan,
To delete entry from Table
Run trx SE16n (preferable) or SE16.
Enter the Table RESB.
Enter the reservation number.
Now in the command window (Where you type the T Codes) type &sap_edit. And press enter.
A message such "SAP editing function is activated" will flash.
Execute
Delete the entry.
Regards,
Shyamal -
Subcontract Reservations in RESB Table
Hi Experts,
I have reservations of child component in RESB table which are resulted from the parent component in Subcontracting Scheduling Agreement.
All Delivery Schedules lines are completed (GR Made.) Still reservations exist for child component.
Please suggest how to remove these reservations from RESB Table.
Regards,
Shravan.There is only one solution in this case if all efforts fail.
You have to write an ABAP code which will flag the Final issue indicator in RESB table for perticular reservation. In this case you have to flag exact reservations and close that chapter not to be opened again. in future.
Regards,
Rahul Puranik. -
How can we improve the performance while fetching data from RESB table.
Hi All,
Can any bosy suggest me the right way to improve the performance while fetching data from RESB table. Below is the select statement.
SELECT aufnr posnr roms1 roanz
INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
FROM resb
WHERE kdauf = p_vbeln
AND ablad = itab-sposnr+2.
Here I am using 'KDAUF' & 'ABLAD' in condition. Can we use secondary index for improving the performance in this case.
Regards,
HimanshuHi ,
Declare intenal table with only those four fields.
and try the beloe code....
SELECT aufnr posnr roms1 roanz
INTO table itab
FROM resb
WHERE kdauf = p_vbeln
AND ablad = itab-sposnr+2.
yes, you can also use secondary index for improving the performance in this case.
Regards,
Anand .
Reward if it is useful.... -
I want to get data from only RESB table without loss of any deltas
i have to fetch the reservation details for the production orders.
we are using descrete manufacturing method to keep track the Work in process and cost .
for addition of components manually in the production order we can track thru change date i.e From AUFK table with field name AEDAT. for each time when we are adding the components the system will create a new line item In tableRESB-OBJNR(field)
i need very few fields from RESB table to be pulled into SAP BW.
how should i proceed creating a generic exractor without any loss of deltas.
i want to get data from only resb table into sap bw.
how should i proceed with Generice extractor with single table RESB and what would be the delta field . could any one throw some light .
all answers would be rewarded with pointsI have few reports for BOM data is to be pull into bw
all the reports contain the same tables Mentione below
MAST- material to BOM LINK
STKO- BOM header
STPO- BOM ITEM
STAS- BOM ITEM SELECTION
how should i create ageneric datsource satisfying that all the data comes from these tables without fail of deltas,
my doubts.1. Do i have to create a separate data sources (generic) for all these individually and load into separate ODS'S AND CLUB THEM into single ODS further.?
if i create i dont know what should be delta field that has to be picked for each datasource
2. Do i have to create a view on all these tables and create a generic datasource.if created what would be the delta field i have to select.
could you pls let me know how should i pull the data without loosing any deltas
could you pls let me know the flow with delta fields mentioned
regards,
P -
Performance issue with RESB table
Hi,
User want to improve the performance of a standard program RLLL07SE in which a RESB table data is fetched and take much time on it.
The select querry for RESB is,
SELECT * FROM RESB WHERE
MATNR = MATNR AND
WERKS = WERKS AND
XLOEK = SPACE AND "Löschkennzeichen
KZEAR = SPACE AND "endausgefaßt
XWAOK = CON_X AND "Warenausgang erlaubt
LGNUM = LGNUM AND
LGTYP = LGTYP AND
LGPLA = LGPLA.
whereas the table index is created on following fields of RESB,
MATNR
WERKS
XLOEK
KZEAR
BDTER
What possible can be done in this respect as the program is a standard one we can change only in Table Inxex I guess..or what else can be done?
Can we add LGNUM LGTYP LGPLA into the particular index apart from the existing fields?Hi,
Instead of creating the Index, Get Data from RESB with the where clause having the entire key of the index and then loop to the internal and delete the unwanted entries as shown below.
loop at itab.
if itab-LGNUM = LGNUM AND
itab-LGTYP = LGTYP AND
itabLGPLA.
else.
delete itab index sy-tabix.
endif.
endloop.
As u r getting data with entire index fields the performance will surely increase. Also avoid Select * and retrieve whatever fields u require.
As you r not having value to the field BDTER, you can pass a range or select-options for this field which has empty valuee.
Regards,
Satya -
Dear All,
I have one Performance issue , my problem is the query given below
Takes much more time than Expected were i retreive data from resb table only by passing EBELN and WERKS .I am using key fields also still my performance is not increased so tell me how to increase performance .
SELECT rsnum
rspos
rsart
werks
baugr
ebeln
matnr
bdmng
enmng
lifnr
ebelp
ebele
INTO CORRESPONDING FIELDS OF TABLE it_disp
FROM resb
WHERE rsnum NE 0
AND rspos NE ''
AND rsart = rsart
AND werks = p_werks
AND ebeln = p_ebeln .
Thanks And Regards .
Deepak Dhamat .Hi Anagha ,
I have created structure of fields which i am selecting in query i. e w_disp1 and created internal table it_dispt .
And The rest is below .
code is working fine but need to test on production server will test and Reply .
SELECT rsnum
rspos
rsart
werks
baugr
ebeln
matnr
bdmng
enmng
lifnr
ebelp
ebele
INTO TABLE it_dispt
FROM resb
WHERE rsnum NE 0
AND rspos NE ''
AND rsart = rsart
AND werks = p_werks
AND ebeln = p_ebeln .
LOOP AT it_dispt .
MOVE : it_dispt-rsnum TO it_disp-rsnum ,
it_dispt-rspos TO it_disp-rspos ,
it_dispt-rsart TO it_disp-rsart ,
it_dispt-werks TO it_disp-werks ,
it_dispt-baugr TO it_disp-baugr ,
it_dispt-ebeln TO it_disp-ebeln ,
it_dispt-matnr TO it_disp-matnr ,
it_dispt-bdmng TO it_disp-bdmng ,
it_dispt-enmng TO it_disp-enmng ,
it_dispt-lifnr TO it_disp-lifnr ,
it_dispt-ebelp TO it_disp-ebelp ,
it_dispt-ebele TO it_disp-ebele .
APPEND it_disp.
CLEAR it_dispt.
Thanks For Your Suggestion
ANd Also for others who have replied .
Deepak Dhamat . -
Purhcase order is archived and reservatins are still open in RESB table
Hi Experts,
The purchase order has been archived and reservations to this order is still open in table RESB - KZEAR. There is no reservations display in MD04. The mateial is in subcontracting scenario.
We can clear this reservation technically by updating the table in pre-production. But the problem arised in production environment. We cannot do any technical changes.
My question is: How can we clear these reservations functionally??
Pl give your valueable suggestions.
Best answers will be rewarded.
Regards,
Surya.Hi
The final issue indicator in RESB table is shown as blank. If we select 'x' Indicates that a reservation item is completed.
How can we get functionally the indictor is to be 'x' as the PO is archived?
Thanks & Regards,
Surya -
Error on RESB table changing planning order using BAPI_PRODORD_CHANGE
Hallo.
In my custom program ZINTERFACE_ORDER, I use BAPI 'BAPI_PRODORD_CHANGE' to change multiple production order (quantity / start date/ end date).
CALL FUNCTION 'BAPI_PRODORD_CHANGE'
EXPORTING
number = wk_ordine
orderdata = wk_orderdata
orderdatax = wk_orderdatax
IMPORTING
return = bapi_return.
First order change works right, but the second order generate the error:
TYPE: E
ID : CO
NUMBER : 888
MESSAGE: Internal: Error when reading document table RESB
The error is generated by COXT_BAPI_ORDER_CHANGE , called internally from the above BAPI_PRODORD_CHANGE
And I have to exit from my custom report and reprocess the second order to work.
It seems that there is a lock on RESB table.
Could you
help me?
Thanks a lot
GiancarloYou need to find the lock that is being set. After your BAPI Commit, you need to test that the lock is cleared. If not, do a wait for 1 sec and retest.
Unlock (and lock) are queued objects that do not occur until after the commit is complete. Because they are queued, they can get slow. Especially when a background process is going to try to work with multiple in a short period of time.
Neal -
Dont find purchasing document and item in RESB table
Hi Guys,
**I have a requirement to find production order for puchase document and item and get product cost, for this i am trying to find the link between purchase docuemnt and production order (other than material) and i found RESB table but some how i dont find Purchase document information in that table the feild is blank , could anybody pls let me know how can i ahcieve this??
And i found one datasource for this 2lis_02_ACC but that is pulling only when purchase document account assignment happend and i dont find my required values from that source also.
Thanks,
chandra.This is a case where I would go to the MM or PP functional consultant on the project, or the end customer, to determine how they would manually connect the dots to get from the purchase order to the production order.
There are ways on going about this, but it depends on the configuration of your R3/ECC source environment and at what point the data is required. For instance, you might be able to go from:
EKKN-EBELN = BSIK-EBELN
EKKN-EBELP = BSIK-EBELP
BSIK-AUFNR = AFKO-AUFNR
This would be after account assignment. -
Clarification regarding Shadow Table
Hi All,
Clarification regarding Shadow Table. FKK_GPSHAD is a shadow table that belongs to Business Partner. The doubts that i have is
What is Shadow Table?
What is the purpose of Shadow table?
Is it correct way to update Shadow table Manually(Not using any BAPi etc....)?
Is any BAPI available to update The above mentioned Shadow table.
Thanks in Advance..Reclustering InfoCubes:
With reclustering, the InfoCube fact tables are always completely converted. The system createsshadow tables with a new clustering schema and copies all of the data from the original tables into the shadow tables. As soon as the data is copied, the system creates indexes and the original table replaces the shadow table. After the reclustering request has been successfully completed, both fact tables exist in their original state (name of shadow table) as well as in their modified state with the new clustering schema (name of original table).
You can only use reclustering for InfoCubes. Reclustering deactivates the active aggregates of the InfoCubes; they are reactivated after the conversion.
Reclustering DataStore Objects
Reclustering completely converts the active table of the DataStore object. The system creates a shadow table with a new clustering schema and copies all of the data from the original table into the shadow table. As soon as the data is copied, the system creates indexes and the original table replaces the shadow table. After the reclustering request has been successfully completed, both active tables exist in their original state (name of shadow table) as well as in their modified state with the new clustering schema (name of original table).
You can only use reclustering for standard DataStore objects and DataStore objects for direct update. You cannot use reclustering for write-optimized DataStore objects. User-defined multidimensional clustering is not available for write-optimized DataStore objects.
Pls chk this thread:
Shadow Table?
http://help.sap.com/saphelp_nw2004s/helpdata/en/47/5cf74153b6ca17e10000000a155106/content.htm
Hope this helps,
Reward points... -
OIM - query regarding child tables
Hi All
I have a query regarding child tables. For example, when a user is removed from an AD group, his corresponding entry from the AD groups child table will be deleted. I want to know whether it is deleted of marked as deleted. Can I get the information later on that the user was removed from which AD group?
Please help.
ThanksYou will have to enable the audit level = Resource Form and perform the additional tasks to track the process form data changes. This will track all modifications to the forms.
-Kevin -
How can I access RESB table from EKPO table ?? Thanks
Hi Jennifer,
From EKPO, i thing that you'll get the material and plant, then you search it in RESB table, but it might be more then 1 reservation, so you need to add logic to get the requirement date, either you get the min or max date.
Reward points if useful. -
RESB Table ..Record Type
This is the first time i am using this table.I have noticed that RESB table has a Record type field RSART in its primary key.Can anyone explain me what is the significance of this field and what are the possible values?
I have currently 9368387 records in my RESB table and none has a value for this field.
The docu says that this field is not used in any Dynpro.
Maybe you are looking for
-
Invoking one web service from another web service
Hi there, I want to invoke a web service lets say X. But befor sending parameters to this web service, what i want to do is first pass the parameters to a web service called Y and Y will decide wether to call X or not. In other words i want to invoke
-
How can i get the selected portal theme
Hi all, it is possible to get the current used portal theme. I need the path to the css file of the current selected theme. I've tried to get the css file over the pageContext like: pc.getStylesheetUrl() But the result of this methode is: /htmlb/mi
-
DC to DC converter basics using Labview on FPGA Control with VHDL
DC to DC converter basics using Labview I am fairly a novice, that is why simplifications required, before I begin thanks in advancefor them who will response I am designing a DC to DC (Intermediate Bus Converter, a step down BUCK converter, of 24
-
Where should i specify about my target system in XI
Hi all! Xi sends XML file to my J2EE application.I am using HTTP adapter as receiver. I have given the following info in outbound HTTP communication channel:what else to be specified in ID Adapter type: HTTP Message protocol: Xi payload in HTTP body
-
Running total of another running total ( or some other solution )
I posted in my previous thread that I would like to be able to do rounding at the subtotal level and then have a total of these subtotals. Here is the original thread: totals in a cross tab report So I was told that with the cross-tab report I can e