Help needed on retreving QID from APQI table
Hi Gurus,
I am using RBIBGL00 standard batch program in my report to create a batch session and in turn execute it.
Batch session is getting created and it is getting executed as well.
Issue:
Now i need to retreive the batch information (succes/failure msgs) from the log
so i am writing code as:
select QID to display session log
SELECT SINGLE qid
INTO gv_qid
FROM apqi
WHERE datatyp = gc_bdc
AND groupid = p_group
AND progid = sy-repid
AND userid = sy-uname
AND credate = sy-datum.
But qid is not getting fetched.
Please help me to resolve this issue.
Regards'
Madan.
Hi Thomas,
I am using RFBIBL00 program in my report in 2 modes,
to Create Batch session and
in Call Transaction mode as well. ( is my requirement)
1. In Call Transaction mode, i am passing the option xlog, so that after documents are loaded, a log is displayed.
2. In Batch Session mode, batch is getting created and to execute that batch, i am calling another program RSBDCSUB.
Batch is getting executed and result gets exported to memory.
I am fetching the results from memory using function module
"LIST_FROM_MEMORY"
Then converting that to ASCI fromat using function module
"LIST_TO_ASCI"
Now i need to display the session log
so i am retreving session data (QID) from APQI table.
Please let me know if there are any alternatives.
Thanks for your time and help.
Regards'
Madan.
Similar Messages
-
Help needed to merge values from two tables -
We have these three test tables shown, which have a common ID; And amount fields; I want the -------
test1.val = test2.val + test3.val
when they have common ids in them;
I have shown the test data below: And the expected output;
NOTE: In database with real table values - each of them have millions of rows in them. So effeciency is very important here;
SQL> desc test1;
Name Null? Type
ID NUMBER
VAL NUMBER
SQL> desc test2;
Name Null? Type
ID NUMBER
VAL NUMBER
SQL> desc test3;
Name Null? Type
ID NUMBER
VAL NUMBER
SQL> select * from test1;
ID VAL
1 50
2 50
3 55
4 60
5 20
5 rows selected.
SQL> select * from test2;
ID VAL
1 25
1 25
2 5
2 5
4 75
5 rows selected.
SQL> select * from test3;
ID VAL
1 25
1 25
2 5
2 25
2 25
5 10
6 rows selected.
I EXPECT the output to be:
SQL> select * from test1;
ID VAL
1 100
2 65
3 20
4 75
3 20
5 10
6 rows selected.Need help with the update queries - joining three tables -
-
Help needed in extracting data from PCD tables
Hi Friends
I Have a requiremnt for creating custom portal activity report ,even though
we have standard report, the extraced data will be used to create bw reports later.
my part is to find a way to extract the data from PCD tables for creating
custom portal activity reports
i have selected the following tables for the data extraction
WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON,
WCR_USERPAGEUSAGE.
My questions are
1.Did i select the Exact PCD tables?
2.Can i use UME api for accessing the data from those tables?
3.can i use the data extracted from PCD tables in JSPdynpage or
webdynpro apps?
4.can i Querry the PCD tables from JSPDynpage or Webdynpro
Please help me in finding a solution for this
Thanks
Ashok BattulaHi daniel
Can u tell me weather i can develop the following custom reports from those WCR tables
Report Type
1 Logins
- Unique Count
- Total Count
- Most Active Users (by Partner Name)
- Most Active Users (by Contact Name)
- Entry Point (by page name)
- Session Time
- Hourly Traffic Analysis
2 Login Failures
- Total Count
- Count by error message
- Credentials Entered (by user name and password)
3 Content Views (by File Name)
- Unique Count
- Total Count
- Most requested Files
- Most requested Pages
- File Not Found
4 Downloads (by File Name)
- Unique Count
- Total Count
- Most requested Files
- File Not Found
5 Portal Administration
- Site Content (by file name)
- Site Content (by page name)
- Latest Content (by file name)
- Expired Content (by file name)
- Subscriptions Count (by file name)
6 Login History (by Partner, Contact Name)
- No Login
- First Login
- Duration between registration and first login
- Most Recent Login
- Average Number of Logins
plz help me in find ing a way
thanks
ashok -
I need to copy data from a table in one database (db1) to another table in
Hi
I need to copy data from a table in one database (db1) to another table in another database (db2).
I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
How am I supposed to this using sql statements..?
I shall be happy if it is explained SQL also...
Thanking in advanceHow many rows does the table contains? There are manyway you can achieve this.
1. export and import.
2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
example:
create a dblink in db2 database for db1 database.
create table table1 as select * from table1@db1 -- when there is no structure present
-- you need to add constraints manually, if any exists.
insert into table1 select * from table1@db1 -- when there is structure present.
If the table contains large volume of data, I would suggest you to use export and import.
Jaffar -
Need assistance searching records from multiple tables - Please Help!
Hi, I've been trying to solve this problem for several weeks now, and I have exhausted all of my knowledge and experience. I need help, and I hope someone here can give me some direction.
I am using VB 2008, and the CR that comes bundled with VS 2008 Pro. My database is a SQL Server 2005 CE v3.5 (a *.sdf file). I am connecting to the database through a dataset, and I am displaying the report in a CrystalReportViewer.
My dataset consistes of two tables:
1) tblCustomers which has a primary key "CustID", and contains only customer contact and personal information.
2) tblDateVisited which has a primary key of "VisitID", but it also has a column titled "CustID". Basically, every time a customer visits the business, details of that visit are recorded in tblDateVisited, and that record is associated with the customer by their CustID.
Here's what I'm trying to accomplish: I want to be able to display only Customer records when the customer has visited and that visit matches certain criteria. Right now, I am trying to match visits from the "tblVisitDate.PlayerType" column. If the customer has ever had a visit where they matched a particular player type, I want to see those customer records.
I don't know what I'm doing wrong, though. I can search a dataset if I am only querying one table and pulling records from that table. However, whenever I try to add a second table and perform queries on that table to get records from the first table, I can't return any records.
If it helps, I am trying to use one CrystalReportViewer to display multiple reports (user choice) and here's how I'm loading the report into the viewer:
Me.tblCustomersTableAdapter.Fill(Me.dsPlayerTypeReports.tblCustomers)
Me.tblDateVisitedTableAdapter.Fill(Me.dsPlayerTypeReports.tblDateVisited)
Me.ReportFile.SetDataSource(dsPlayerTypeReports.Tables(1))
I am suspicious that my problem is in the Tables(1) method. It confuses me that I can only assign one table as a datasource when I obviously need access to two tables to make this selection work.
Whatever the case, I'm at the end of my rope with this one. I'm not prone to giving up, but I'm at a dead end currently.
Any attempt to assist me with this will be greatly appreciated, successful or not.
Thanks in advance!
-WillNo, I am connected via ADO.NET. I don't think SQL CE can connect through ODBC (or if it can, I haven't been able to figure out how, yet). So this isn't a stored procedure.
When I examine the link, I can only choose an Inner Join or a Left Outer Join. Right Outer and Full Outer are not available. Could this be a problem with the dataset I'm using?
Could you explain what you mean by display all of the records and then choose the selection criteria? -
Need to fetch value from a table based on data range
Hello there,
I was hoping that the community could give me a hand with this little puzzle I got.
I am currently creating a Time Dimension for a data wharehouse, and I have the requirement to populate a column named SEASON (e.g: Summer, Winter, Spring, Autumn) for each date row. So for the 20/Dec/2013, the Season column must say Winter.
Here is now my Time Dimension table looks like, without the Season information (which I yet have to load):
DimTime Table
TIMEID
FULLDATE
YEAR
SEASON
MONTH
MONTHDAY
WEEK
WEEKDAY
274
02-MAR-10
2010
3
2
9
2
275
03-MAR-10
2010
3
3
9
3
276
04-MAR-10
2010
3
4
9
4
277
05-MAR-10
2010
3
5
9
5
278
06-MAR-10
2010
3
6
9
6
279
07-MAR-10
2010
3
7
9
7
This entire table is being populated using Oracle functions to manipulate a date field from another table, named PDATE:
My ETL Code
INSERT INTO DimTime(timeid, fulldate, year, month, monthday, week, weekday)
SELECT tim_seq.NEXTVAL, pdate, year, month, monthday, week, weekday
FROM (SELECT DISTINCT pdate, EXTRACT(year from pdate) year, EXTRACT(month from pdate) month,
EXTRACT(day FROM pdate) monthday, to_number(to_char(to_date(pdate,'DD/MM/YY'),'IW')) week,
TO_CHAR(pdate, 'D') weekday
FROM Performance PER
ORDER BY pdate);
NOTE: Code considers the table DimTime to be truncated every time it loads (i.e.: I don't need to consider additional loads).
As you can see, Season wasn't populated. Since the solstices and equinoxes vary for each year, I can't just say that Summer start at a given date (e.g: 21 of June) because one year it could be the 19/Jun, another the 22/Jun, etc. So in order to solve this problem, I have a table named Season which defines the START and END dates for the seasons:
Season Table
SEASON#
SEASONNAME
YEAR
DATEFROM
DATETO
1
Spring
2010
01-MAR-10
30-MAY-10
2
Summer
2010
31-MAY-10
29-AUG-10
3
Autumn
2010
30-AUG-10
28-NOV-10
4
Winter
2010
29-NOV-10
27-FEB-11
5
Spring
2011
28-FEB-11
29-MAY-11
6
Summer
2011
30-MAY-11
28-AUG-11
7
Autumn
2011
29-AUG-11
27-NOV-11
8
Winter
2011
28-NOV-11
26-FEB-12
9
Winter
2009
30-NOV-09
28-FEB-10
This is the bit I don't know how to do. How can I make sure that I populate the correct Season in my DimTime table based on the season specified in the Season table?
Thanks in advance for your help!
Regards,
P.Just join to table Season:
INSERT
INTO DimTime(
timeid,
fulldate,
year,
month,
monthday,
week,
weekday,
seasonname
SELECT tim_seq.NEXTVAL,
pdate,
year,
month,
monthday,
week,
weekday
FROM (
SELECT DISTINCT pdate,
EXTRACT(year from pdate) year,
EXTRACT(month from pdate) month,
EXTRACT(day FROM pdate) monthday,
to_number(to_char(to_date(pdate,'DD/MM/YY'),'IW')) week,
TO_CHAR(pdate,'D') weekday,
seasonname
FROM Performance PER,
season
WHERE pdate between datefrom and dateto
SY. -
Need to delete data from main table and all child tables ...
hi all,
i need to delete rows pertaining to perticular table and all the child
tables basing on certain code.i need to write a procedure to which i will
pass the table name and code..
like del_info(tab_name,code)
example:
suppose if i call as del_info(clients,760)
the procedure should delete all info reg. code 760
and the table clients and also all the child records of this table
perting to code 760.
simply .. i need to delete from the table passed and also
all the child tables down the heirarchy regarding certain code ...
help ???
Ravi Kumar MHi,
Depends how you defined referential integrity.
You can use ON DELETE CASCADE, please read the next doc http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/clauses3a.htm#1002692
Hope this help you,
Nicolas. -
Help needed to load XML into DB table
I need some serious help if someone can spare the time. I am completely new to XML and don't really understand it yet but I need to be able to load an XML file (example) below.
I want to load this into a table that would look like the following:
CHAPTER_TITLE DOC_HTML DOC_TITLE
Men's Health 494440 AAAAA
Men's Health 496812 BBBBB
etc....
<?xml version=1.0 encoding=utf-8?>
<BookCollections Quantity=1 Title=Emis Books Collection>
<Book Folder=PILSS Title=Patient Support>
<Chapter Title=Men''s Health>
<Document DocHTML=494440 Title=AAAAA />
<Document DocHTML=496812 Title=BBBBB />
<Document DocHTML=498923 Title=CCCCC />
<Document DocHTML=499844 Title=DDDDD />
<Document DocHTML=499901 Title=EEEEE />
</Chapter>
</Book>
</BookCollections>I have read through the documentation I could find but I can't get it to work. I had a simple procedure which loaded the text file as a CLOB and then inserted it into an XMLTYPE column but even that wouldn't work. I would rather it loaded as above in seperate columns.
Is there a simple example someone can help me out with?That is very close ORA_SID thank you. But I get the ORA-19025 error when I have more than one Chapter section. The example was a cut down version, ther real file has thousands of Chapters.
e.g.
1 insert into test2 values(xmltype(' <BookCollections Quantity="1" Title="Emis Books Collection">
2 <Book Folder="PILSS" Title="Patient Support">
3 <Chapter Title="Men''s Health">
4 <Document DocHTML="494440" Title="AAAAA" />
5 <Document DocHTML="496812" Title="BBBBB" />
6 <Document DocHTML="498923" Title="CCCCC" />
7 <Document DocHTML="499844" Title="DDDDD" />
8 <Document DocHTML="499901" Title="EEEEE" />
9 <Document DocHTML="500381" Title="FFFFF" />
10 <Document DocHTML="500446" Title="GGGGG" />
11 <Document DocHTML="500996" Title="HHHHH" />
12 </Chapter>
13 <Chapter Title="Contraception">
14 <Document DocHTML="496815" Title="IIIII" />
15 <Document DocHTML="496817" Title="JJJJJ" />
16 <Document DocHTML="499547" Title="KKKKK" />
17 <Document DocHTML="499550" Title="LLLLL" />
18 <Document DocHTML="500473" Title="MMMMM" />
19 <Document DocHTML="500704" Title="NNNNN" />
20 <Document DocHTML="500813" Title="OOOOO" />
21 <Document DocHTML="500995" Title="PPPPP />
22 <Document DocHTML="500996" Title="QQQQQ" />
23 </Chapter>
24 </Book>
25 </BookCollections>
26* '))
SQL> /
1 row created.
SQL> SELECT extractValue(xml_data, '/BookCollections/Book/Chapter/@Title') AS Chapter_Title,
2 extractValue(value(em), '/Document/@DocHTML') AS Document_DocHTML,
3 extractValue(value(em), '/Document/@Title') AS Document_Title
4 FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
5 ;
FROM test2,table(XMLSequence(extract(xml_data,'/BookCollections/Book/Chapter/Document'))) em
ERROR at line 4:
ORA-19025: EXTRACTVALUE returns value of only one nodeCan you help on this? -
Please help!
I need to make an import from a custom Payroll application into GL. Everything would be working just fine, if I could use the JE_LINE_NUM from GL_INTERFACE table. In the tech documentation it was stated that this column is not used in version 10. Nothing stated about 11.03 or 11i
If this doesn't work, any ideea how could I manage the journal detail line number the transaction is imported?
THANK YOU VERY MUCH.
Please answer at: [email protected]If I interpreted your requirements correctly, you wish to supply the JE_LINE_NUM in the GL_INTERFACE table.
Unfortunately, you cannot do so. The GL_INTERFACE.JE_LINE_NUM column must be NULL for Journal Import to function correctly. This is mentioned in the User's Guide. Since the grouping of lines into batches and headers is done dynamically by journal import, it is not possible to support a user-specified journal line number. This will cause duplicates or gaps.
This is true for all GL releases. -
Help needed recovering project files from trash
Hi everyone, I am hoping that someone will be able to help me. I just did something stupid!
I created two new projects in iMovie this morning and then needed to clear out the mac in order to speed up a clip as I was getting the warning that my disk was full. So I copied a lot of files from iPhoto onto a hard drive and then moved them to trash including the raw files that I was using for these projects. (I got a bit carried away!) Yes the video files were in iPhoto and not iMovie Events as the last time I uploaded files iMovie was not playing the game.
The files are still on the mac as I have not emptied the trash and they are also backed up on an external drive connected to the mac, but I have emptied the iPhoto trash. I tried importing the files back into iPhoto from trash and only got so far before the disk full message came up again. But even those ones that I did manage to re import are not showing up.
Is there any way that I can continue with these projects or have I effectively ruined them? Do I need to start again from scratch? I hope not as they took me hours and hours to create and had pretty much finished them.
Any help will be greatly appreciated. Thanks. :-)http://pondini.org/TM/17.html
To see these "other" backups, you need the Browse Other Backup Disks or (Browse Other Time Machine Disks on Snow Leopard or Leopard) option. It's available by Alt/Option-clicking the Time Machine icon in your Menubar, or by control-clicking (right-clicking) the Time Machine icon in your Dock. -
Help, Need to change NAT from moderate to open for WRT54GS2
just like to the topic says i used these methods:
Open an Internet Explorer browser page on your wired computer(desktop).In the address bar type - 192.168.1.1 and press Enter...Leave Username blank & in Password use admin in lower case...
On the set-up tab change the MTU Size to 1365 and click Save Settings...
Click on "Administration" tab and disable the option UPnP and click Save Settings...
Click on "Applications and Gaming" tab and then click on "Port Range Forwarding" subtab...
1) On the first line in Application box type in ABC, in the start box type in 53 and End box type in 3074, leave the protocol as both and under ip address type in 192.168.1.20 and check the enable box, click Save Settings once done...
2) Once you return to the set up page click on the Security tab and uncheck Block Anonymous Internet Requests and click on Save Settings...
3)Click on the Status tab and take note of DNS1 and DNS2 Addresses...
4) Goto the XBox Network Settings and IP Address Settings and select manual IP Settings and assign the following on your Xbox IP Address :- 192.168.1.20, Subnet Mask :- 255.255.255.0, Default Gateway :- 192.168.1.1...
5) Also assign the DNS Addresses on the Xbox, Use DNS1 and DNS2 Addresses you took note off of the router status tab as Primary DNS & Secondary DNS for the xbox...
6) Turn off your modem, router, and Xbox...Wait for a minute...
7) Plug the modem power first, wait for another minute and plug the router power cable, wait another minute and turn on the Xbox and test it...it will connect... i have firmare 1.0.01. i am using 2 Pluglink 9650 Powerline Ethernet Adapters to connect to my xbox for xbox live. if u need anything else let me know. PLEASE SOMEONE HELPWhat device is upstream from the router? If you have a modem that acts as a router as well, then you might have a double NAT problem. It's a well documented problem and can usually be solved by bridging the modem or configuring the router to work as a switch only.
-
Problem retreving data from cluster table
Hi friends,
Iam facing a problem while retreving data from a cluster table..
select knumv
kposn
krech
kawrt
kbetr
waers
kpein
kmein
kwert
from konv
into table gt_konv
where knumv in s_agnm.
In s_agnm i have 8 entries ie: iam giving manually 8 entries in s_sgnm-low.
If i do the above way iam getting exactly the 82 entries which i have in KONV table.. This is perfect..
But when iam using for all entries iam getting only 58 records from the KONV table..
ie :
SELECT KNUMV
KPOSN
KRECH
KAWRT
KBETR
WAERS
WAERS
KPEIN
KMEIN
KWERT
FROM KONV
INTO TABLE ITAB1
FOR ALL ENTRIES IN ITAB
WHERE KNUMV = ITAB-F1
Here F1 is the field which is same as S_SGNM as above and it also contains same number of records as above
Now when iam running the 2nd select statment iam getting only 58 entries ... instead it should get 82 entries as above...
Can any one tell me how to correct..
Regards
Kumareven if i use all the key fields , its giving me the same results 58 reocrds, instead it should give me 82.
select knumv
kposn
stunr
zaehk
from konv
into table gt_tybh
where knumv in s_agnm.
if gt_tybh is not INITIAL.
sort gt_tybh by agreement_number kposn stunr zaehk.
select knumv
kposn
krech
kawrt
kbetr
waers
kpein
kmein
kwert
from konv
into table gt_konv
for all entries in gt_tybh
where knumv = gt_tybh-agreement_number and
kposn = gt_tybh-kposn and
stunr = gt_tybh-stunr and
zaehk = gt_tybh-zaehk.
In the above iam getting all the 82 records for the select-options s_sgnm..
later iam trying to get the other fields form the same konv table by using for all entries... here even if iam using all the key fields also its not getting me the total 82 records...
Initially for s_sgnm which contains 8 values , for those 8 values iam getting 82 records it table gt_tybh. But later when iam using for all entries iam not getting those 82 records in the 2nd select statment in the internal table gt_konv.
Why is this happening...
can any one correct it..
Regards
Kumar -
I need billing plan detaisl from FPLT TABLE.
I have sales order no VBAK-VBELN.
I need billing plan item detaisl from FPLT TABLE.
HOW TO LINK THESE 2 TABLES to get these billing [plan item details records
Edited by: abap_friends on Jul 8, 2010 8:17 AMHi,
try with this fm
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = ip_docnum
i_posnr = ip_posnr
TABLES
e_fplt = it_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3
or
SELECT posnr fplnr INTO TABLE i_fplnr
FROM vbkd
WHERE vbeln EQ ip_docnum.
IF NOT i_fplnr[] IS INITIAL.
SELECT fplnr mlstn fkdat INTO TABLE i_mlstn FROM fplt
FOR ALL ENTRIES IN i_fplnr
WHERE fplnr EQ i_fplnr-fplnr.
Endif.
Regards,
Carlos -
Help needed to insert data from different database
Hi ,
I have a requirement where i need to fetch data from different database through database link .Depending on user request , the dblink needs to change and data from respective table from mentioned datbase has to be fetched and populated .Could i use execute immediate for this, would dblink work within execute immediate .If not , could pls let me know any other approach .What does "the dblink needs to change" mean?
Are you trying to dynamically create database links at run-time? Or to point a query at one of a set of pre-established database links at run-time?
Are you sure that you really need to get the data from the remote database in real time? Could you use materialized views/ Streams/ etc to move the data from the remote databases to the local database? That tends to be far more robust.
Justin -
Urgent help needed in Using German Umlauts for Table names
I created a table with Umlauts But i am not able to select from
this table.I am also not able to drop this table as i get
invalid character error.What setting has to be set.The NLS is I
believe GERMAN_GERMANY.WE8ISO8859P1Pl do not post duplicate threads - insert dont work in Workflow
Srini
Maybe you are looking for
-
Crashes after wake from Sleep after 10.8.1 update
2.5 Ghz Mac Mini (mid 2011), 8 Gigs of RAM Since the day I upgraded to 10.8.1 I have had persistent crashes, 1 every 24 hours or so. It's always shortly after a wake from sleep. In all cases, it is impossible to switch to a random open application. B
-
Trying to compare FCP with Media 100 for a Public Access studio
Hi all, I am new here. I do most of the review of products for our Public Access studio. We have a couple of existing Media 100 systems and we are considering adding or upgrading our NLE capabilities. Our studio manager had a chance to look at FCP be
-
Commit statement in badi method
hi all, i am using commit statement in badi method save_data, it is put after function module, in function module i have used insert and update statement, if i do like that then the commit statement refresh the global data but update the table, if i
-
Monitor HP Pavilion 23 tm flickers
I used this Monitor HP Pavilion 23 tm one month - all was well. But today he started unpleasant flicker. Resolution, color, sharpness - everything is OK. The only problem with frequency. This flicker was seen in all applications (not dependent on the
-
Hi all, I want to know the impact of Upgradating a server (like 4.6c to Enterprise) on Smartforms. If i upgrade a server from 4.6c to 4.7, do i have to reactivate the smartforms so as to regenerate the function module that would be used in the ABA