Hi abap experts . regarding one query
1. Please tell me How to retrieve data into INPUT/OUTPUT field.
For example.When u display a particular row from emp table.I want to display the row number ie SY-TFILL in the INPUT/OUTPUT field.i need it very urgently.?
2. 1. i have two internal tables. both tables which is having 5 records.
itab1 itab2
1 1
3 3
5 7
6 9
8 10.
i want to develop an report which is used to print the same data (1,3) in both tables.
in this only one time we are supposed to compare both internal tables?
tell me logic how we will do that?
2. in selection screen only one parameter field is there. in that i entered data and press enter?at that time what are all the events are supposed to trigger?
3.can we delete data in one internal table with help of another internal table data?
like let us consider this scenerio
itab1 itab2
material no description material no material type
100 some 100 10
101 thing 101 10
103 line 103 13
104 row type 104 15
106 linetype 106 16
can i delete material no (100,101)in itab1 with the help of record material type (10) of itab2
Hi
Just use the Transaction
<b>SEARCH_SAP_MENU</b>
and enter your correct text and execute
it will give the menu path
<b>Reward points for useful Answers</b>
Regards
Anji
Similar Messages
-
Hi Experts,
I have question regarding ABAP Reports, SAP Query, and Transaction with variant. How are we securing one the above reports that we assign them through pfcg. We can secure custom program by custom transaction or define the auth group in S_PROGRAM auth object but in this case we have to assign SA38 in production. is that correct?
Please help me understand difference between the ABAP reports and SAP query. Is the ABAP reports same as Program or they are different.
Thanks in advance
Faisal
Edited by: Faisal on Jun 30, 2009 11:06 PMHi,
1) End user security (role matrix coordinate with process team)
This role Matrix design is most important where we can put restrictions and use SoD.
2) Secure Table (by auth group)
Table TDDAT and use of transaction se54 for security tables to right auth Groups. Secure s_tabu_dis, s_tabu_cli.
3) Secure program (as you said ABAP reports are referred to Program)
Use of table TPGP and program RSCSAUTH for assignment of groups to Program. SA38 Running of SA38 requires a minimum SUBMIT in user Action. A user having SA38 is dangerous as he/she is now enabled to run any report. Hence protection in Auth Group is needed. Verify each and every program is having authority check statement and Auth Group or not before assigning sa38. As you mentioned its best to avoid SA38 and create CUSTOM TXN for each report.
(We should also SECURE S_DEVELOP in Production properly along with ur points. Please Note).
4) Secure some batch jobs roles for batch job
Secure by s_btch* objects and less access to se36.
5) Create support roles for cutover activity during Go-live
That is always needed. Go ahead.
6) Emergency roles & IT roles for support
This is very much needed as a role of Mitigation and Fire Fighting for Temporary access. Ensure to enable ur audit parameters in RZ10 (rsau* sm20,RSLG* for sm21). Give emergency access but enable audit via sm19 and get audit reports from sm20 and sm21 immediately after the use of emergency access.
There are also other auth objects we need to be care ful which is a long list and hope every body ensures that (s_cts,a_admi,s_trans, tables ssm_cust, prgn,t000) etc and a host of others. Besh wishes. Let us know if any issue.
Regards
Aveek. -
Multiple charts with one Query - how to?
Hi Experts,
I wanted to display mulitple charts from the one query in Bex analyzer or WAD. Each chart should be constructed from the data of each column returned from the query. So if the no. of columns in the query is 5 then there should be 5 charts generated. No of columns will be variable. How to achieve it ?? Any idea?
All kinds of suggestions are welcome.
Thanks
Regards
ABHi Priya,
Thanks for your response. Actually the infomation is of technical in nature. Its about processes and the parts. Rows represents parts and columns represent processes. The processes are variable and can be added any time in query.Based on the Query there should be automation of charts. So there is an analysis per process/parts with a single chart. So if the processes are increasing , the automation should also add a chart....thats what the requirement says. So if I have 10 process that I shd get 10 charts and if 15 afterwards then 15....
I hope now its clear to you.Do suggest if u have any idea.
Regards
Atul -
Adding the ABAP code to SAP Query to support Query's ALV Double click.
Hi, Expert.
I need to add some ABAP Code into SAP Query (or Infoset) to support the double click event on ALV cell of result of query.
Is it possible & How to do ?
Thank you very much.
Best Regard
Nattapash C.Hi, Gautham.
I've put BREAK-POINT in all code section e.g. INITIALIZATION, END-OF-SELECTION..
I found there are some section for add code that will be executed when query is processing before output data to ALV.
What I need to know is Where I can input the code after ALV output. For support the Double Click Event on Query's ALV cell.
Best Regard,
Nattapash C. -
Can you check for data in one table or another but not both in one query?
I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
ACCOUNT
AccountID Name
123 John Doe
124 Jane Donaldson
125 Harold Douglas
MARKETER_ACCOUNT
Key AccountID Marketer StartDate EndDate
1001 123 10526 8/3/2008 9/27/2009
1017 123 10987 9/28/2009 12/31/4712 (high date ~ which means currently with this marketer)
1023 124 10541 12/03/2010 12/31/4712
ARCHIVE
Key AccountID Marketer StartDate EndDate
1015 124 10526 8/3/2008 12/02/2010
1033 125 10987 01/01/2011 01/31/2012
So my query needs to return the following:
123 John Doe 10526 8/3/2008 9/27/2009
124 Jane Donaldson 10541 12/03/2010 12/31/4712 (this is the later of the two records for this account between archive and marketer_account tables)
125 Harold Douglas 10987 01/01/2011 01/31/2012 (he is only in archive, so get this record)
I'm unsure how to proceed in one query. Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
open CURSOR_ACCT
select AccountID
from
ACCOUNT A,
MARKETER_ACCOUNT M,
ARCHIVE R
where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
where M2.AccountID = A.AccountID),
(select max(R.EndDate) from Archive R2
where R2.AccountID = A.AccountID)
and upper(A.Name) like parameter || '%'
<can you do a NVL like this? probably not... I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
(parameter could be "DO", so I return all names starting with DO...)if I understand your description I would assume that for John Dow we would expect the second row from marketer_account ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
drop table account;
drop table marketer_account;
drop table marketer_account_archive;
create table account (
id number
, name varchar2(20)
insert into account values (123, 'John Doe');
insert into account values (124, 'Jane Donaldson');
insert into account values (125, 'Harold Douglas');
create table marketer_account (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
create table marketer_account_archive (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account_archive;
with
basedata as (
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account_archive
basedata_with_max_intervals as (
select key, AccountId, MktKey, FromDt, ToDate
, row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
from basedata
filtered_basedata as (
select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
select a.id
, a.name
, b.MktKey
, b.FromDt
, b.ToDate
from account a
join filtered_basedata b
on (a.id = b.AccountId)
ID NAME MKTKEY FROMDT TODATE
123 John Doe 10987 28.09.2009 31.12.4712
124 Jane Donaldson 10541 03.12.2010 31.12.4712
125 Harold Douglas 10987 01.01.2011 31.01.2012
If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
Regards
Martin -
Running a BEx report with more than one query in Background
I am having a workbook with 2 queries .This workbook needs to be executed at a particular time every day and then save this file to a application server location .
The file name has to dynamic, as everday a new file has to be created with some date stamp.
Please let me know the steps/ ideas to achieve thisSudhakar,
are you sure that it has to b a workbook ? running queries independently can be done .. am not sure if a workbook can be scheduled to run...
One alternative is to use APD - have the queries run and populate two ODS and then have these ODS in a multiprovider and have one query output for the same - seems to be a very longworkaround...
Another option is to have the queries executed in an ABAP programme and then have the results in an internal table and push both the result sets into an excel sheet ad save it in the application server.
For reading queries in ABAP there is a functionmodule for the same .. something like RSDRI_INFOPROV_READ .. I am not too sure of the name but there is a function module for sure..
Hope it helps..
Arun
Assign points if it helps.. -
How to use one query results in another query
hi,
in help.sap I have founded that using variable type replacement path I can use one query results in another query. It is wrote there that I have to choose query name results I want to get in variable definition but I do not know where.
How I can do this?
Result I want to get is:
In one query I have material prices in another material quantities. I want to calculate inventory value (price * quantity). Moreover prices are on plant level, quantities on storage type level. Plant is atribute of storage type.
Can I do this?
Regards,
AndrzejHi Andrzej,
please check out this thread: Set parameters values depending on other parameters
I had a discussion about query results as input for another query in there.
For creating a workbook, just click on the save button after you ran your query in the bex.
Siggi
Message was edited by: Siegfried Szameitat -
Output of One Query is input to other Query??
Hi All,
How to make output of one query as input to other Query and what are the points to be takeb care of to do it?
regards,
murali.
Message was edited by: MuraliHallo
You got a second query where you also have 0date. Based on the selection on the second query, you get some value for 0date. this values are then passed in background to the first query which will show you the output based on the input date of the first query. You can also have othe variable in the query.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
I hope everything is fine.
Mike -
Perform an export for both ABAP & JAVA in one shot with WAS 640 SAPinst ...
Hello,
I have to perform an OS/DB Migration of a SAP XI 3.0 (WAS640-SR1), an ABAP + JAVA addin configuration.
I would like to know if SAPinst for WAS640 (and SR1) could perform an export for both ABAP & JAVA in one shot as it seems possible in NW7.0 SAPinst version. None of the WAS 640 OS/DB migration guides gives these possibility.
And if not not, could U confirm that I have to perform 1st an export (with R3LOAD) of ABAB stack, then an export (with JLOAD) of the JAVA one ?
And apply the same way for installation with R3load and JLOAD downloaded files ?
Thks in advance
Bernard Accoce
SAP Basis Consultant - TeamWork in Toulouse (France)Hi Bernard,
No, both exports cannot be executed in one single step. You have to execute the procedure twice, once for ABAP and once for Java, like you already mentioned yourself..
For the import applies the same.
Kind regards,
Mark -
Integration a Web Dynpro ABAP application within one of my EP overview page
Hi Experts,
I've got an issue when integrating a Web Dynpro ABAP application within one of my EP overview pages.
We've implemented PLM using the Web Dynpro ABAP scenario for employees. Now Iu2019m trying to integrate this into the Employee Self-Service overview page. I've got no issue to make the icon and area title appears, but when I click on it I get a blank page with Error 404. However when clicking on the link in the navigation bar (Level 2) then I get the page fine. So it looks like EP is not able to integrate correctly the Web Dynpro ABAP into the overview page in EP. Is there any specific Resource configuration?
One more thing is that if I've implemented the same iView using Resources -> Services -> Sub Areas -> Areas everything works fine, but I receive two navigation Levels (Area Group contains the Area Link and when I click it brings me to Sub Area with the single Service Link) I want to avoid this double clicking, calling the application directly from Area Group -> Area link.
Anyone has ever come across that kind of issue? Has anyone ever integrated a WDA application directly into an overview page?Hi,
We faced a similar problem with BSPs and had to change the definition of the area link type entry.
I am assuming you have set the area link type to WebDynpro for ABAP and the resource is calling an Iview/page that has the WD ABAP application configured.
To get around the error, change the Area Link type to Calls a Portal page and make sure the resource calls an Iview/Page that has the WD ABAP application configured. -
I have deleted one query from production server
some one have deleted one query from production server. i would like to know who has deleted that query.
pls let me ASAP.
regards
rajaHi,
You can get the time stamp( when it was deleted) from table RSRDELREPORTS. Based on that time check with basis guys to get the more info.
regards,
raju -
hi,
i have one query regarding one scenario which demands automatic deliver of mail to concerned person whenever there is no stock available for any material in the system..My interest is to notify the warehouse incharge about the status of items whether it is being totally utilised so that proper and immediate action could take place...As soon as the material Qty becomes zero,this should happen...Please guide me briefly for the same...
Thanks and Regards,
GauravGaurav,
Instead of starting the workflow and checking the start condition. If you can find a UserExit/Badi/Ench., use that to validate the stock and if it satisfies then go ahead and start the workflow.. If it only a mail to the concerned person, you can even send a mail using function modules(SO_NEW_DOCUMENT_SEND_API1 or similar one) .
Thanks,
Sudhir. -
Can we assign more then one abap system to one bpc server?
Hi my question is short an d simple.
can we assign more then one abap system to one bpc server?
Regards StefanStefan,
My understanding is that this is not possible. However, I believe you can have multiple BPC .NET servers and point them to different dialog instances of the same ABAP system. You would then put a load balancer in front of the .NET servers and requests will be distributed across the ABAP dialog instances.
Ethan -
Copy one query from one infocube to another infocube
Hi BW Experts,
Hope all of them are doing good.How can we copy one query from one infocube to another infocube.
I have infocube1 having one query ,I NEED to copy that query to infocube2? How?
Could you please help me out?
ThanksUse transaction RSZC in BW (BTW you're addressing BW experts in a BO forum better post in the Bex section of the BW forum)
-
Need to re write as a one query
Hi,
I have a below two queries and i need re write as same query.I'm passing test session id's to second query as of now.In second query i have minimum 5 recods for 1 test session id.finally I'm converting rows as a column from second query based on roster_domain_name column(see the finally o/p).could you some on help.advance thanks.
1st query
SELECT DISTINCT a.test_session_id test_session_id, address,
TO_CHAR (birth_date, 'yyyy-MM-dd') AS birth_date,
branching_profile_name, city, email, exnum, first_name,
home_phone, institution_id_display, last_name, middle_name,
site_id_display, state_name, student_id,
TO_CHAR (test_session_date,
'yyyy-MM-dd') AS test_session_date, zip
FROM vuestudenttestsessioninfo a, test_session_detail b
WHERE EXISTS (
SELECT td.test_detail_id
FROM test_detail td
WHERE domain_map_id IS NOT NULL
AND b.test_detail_id = td.test_detail_id
AND domain_map_id IN (27604,27605,27606,27607))
AND site_id IN ('8904')
AND TRUNC (test_session_date) BETWEEN TO_DATE ('11/24/2009',
'MM/DD/YYYY'
AND TO_DATE ('12/4/2009',
'MM/DD/YYYY'
AND a.test_session_status_id IN (3, 4)
AND a.test_session_id = b.test_session_id
ORDER BY address1st query o/p like below
TEST_SESSION_ID ADDRESS BIRTH_DATE BRANCHING_PROFILE_NAME CITY EMAIL EXNUM FIRST_NAME HOME_PHONE INSTITUTION_ID_DISPLAY LAST_NAME MIDDLE_NAME SITE_ID_DISPLAY STATE_NAME STUDENT_ID TEST_SESSION_DATE ZIP
SELECT a.test_session_id,c.roster_domain_name,to_char(a.score),a.sem FROM
test_session_detail a,test_session b ,test_detail c
WHERE a.test_session_id = b.test_session_id
AND c.test_detail_id = a.test_detail_id
AND exists (
select td.test_detail_id
from test_detail td
where domain_map_id is not null
and c.test_detail_id =td.test_detail_id
and domain_map_id in('303','306','305','304'))
AND b.test_session_id in (getting session ids from 1st query)
AND domain_group_id NOT IN (
SELECT domain_group_id
FROM test_session_detail a,test_session b
WHERE a.test_session_id = b.test_session_id
AND a.domain_group_id is not null
AND b.test_session_status_id = 4
AND a.test_session_status_id <> 3
AND b.test_session_id IN (getting session ids from 1st query))
2nd query o/p
TEST_SESSION_ID ROSTER_DOMAIN_NAME TO_CHAR(A.SCORE) SEM
final o/p
Address Birth Date Branching Profile City Email Exnum First Name Home Phone Inst ID Last Name Middle Initial Site ID State/ Province Student ID Test Date Zip Code AR - Integers and Fractions AR - Decimal Numbers AR - Percent AR - Estim, Ordering, Numb. Sense AR - Word ProblemsHi ,
Version *10.1.0.2.0*
Business rule is:
I have two scenarios 1) can use first query getting result
2) can use both queries getting result.
In second scenario i'm facing problem with regarding taking more time due to executing two queries one after one.
because i'm getting test session id's from first query executing and displaying results from both quires .Now i have thought to merge both queries as a one query.I think it's possible with in line view quires(2nd query).Pls help
And DDL part i'm using 1 view and reaming tables.here those scripts.
VIEW vuestudenttestsessioninfo
Name Null? Type
STUDENT_ID NOT NULL VARCHAR2(50)
FIRST_NAME NOT NULL VARCHAR2(50)
MIDDLE_NAME VARCHAR2(50)
LAST_NAME NOT NULL VARCHAR2(50)
ADDRESS VARCHAR2(201)
CITY VARCHAR2(30)
STATE_PROVINCE_COUNTRY VARCHAR2(30)
ZIP VARCHAR2(20)
EMAIL VARCHAR2(100)
HOME_PHONE VARCHAR2(20)
CELL_PHONE VARCHAR2(20)
BIRTH_DATE DATE
STUDENT_ID_PK NOT NULL NUMBER
EXNUM NOT NULL NUMBER(9,)
TEST_SESSION_DATE DATE
COMPLETION_DATE DATE
TEST_SESSION_ID NOT NULL NUMBER(9,)
INSTITUTION_ID NOT NULL NUMBER
SITE_ID NOT NULL NUMBER
BRANCHING_PROFILE_ID NOT NULL NUMBER(10,)
TEST_SESSION_STATUS_ID NOT NULL NUMBER(10,)
INSTITUTION_ID_DISPLAY VARCHAR2(10)
SITE_ID_DISPLAY VARCHAR2(10)
STATE_NAME VARCHAR2(30)
BRANCHING_PROFILE_NAME VARCHAR2(100)
SITE_NAME NOT NULL VARCHAR2(200)
ADDRESS_2 VARCHAR2(100)
ADDRESS_1 VARCHAR2(100)
SQL> desc test_session
Name Null? Type
TEST_SESSION_ID NOT NULL NUMBER(9)
INSTITUTION_ID NOT NULL NUMBER
STUDENT_ID_PK NOT NULL NUMBER(9)
BRANCHING_PROFILE_ID NOT NULL NUMBER(10)
TEST_SESSION_STATUS_ID NOT NULL NUMBER(10)
TEST_SESSION_DATE DATE
ACCESSED_TIMES NUMBER(9)
COMPLETION_DATE DATE
DURATION NUMBER(10)
CREATED_ON DATE
MODIFIED_ON DATE
CREATED_BY NUMBER
MODIFIED_BY NUMBER
IS_RESUMED CHAR(1)
SQL> desc test_session_detail
Name Null? Type
TEST_SESSION_DETAIL_ID NOT NULL NUMBER(9)
TEST_SESSION_ID NOT NULL NUMBER(9)
TEST_DETAIL_ID NOT NULL NUMBER(10)
TEST_SESSION_STATUS_ID NUMBER
THETA NUMBER
SCORE NUMBER
PERCENTILE NUMBER
SEM NUMBER
TEST_START_DATE DATE
TEST_END_DATE DATE
TEST_DURATION NUMBER
CREATED_ON DATE
MODIFIED_ON DATE
CREATED_BY NUMBER
MODIFIED_BY NUMBER
TEST_SEED VARCHAR2(15)
TEST_ALIAS VARCHAR2(30)
COMPANION_FORM CHAR(1)
DURATION_START_DATE TIMESTAMP(6)
DURATION_END_DATE TIMESTAMP(6)
DOMAIN_GROUP_ID NUMBER
TIMER_LIMIT VARCHAR2(100)
SQL> desc test_detail
Name Null? Type
TEST_DETAIL_ID NOT NULL NUMBER(10)
TEST_TYPE_ID NOT NULL NUMBER(10)
OPERATIONAL_POOL_ID NUMBER(10)
FIELD_TEST_POOL_ID NUMBER(10)
INSTITUTION_ID NOT NULL NUMBER
TEST_NAME NOT NULL VARCHAR2(500)
TEST_ALIAS VARCHAR2(30)
DESCRIPTION VARCHAR2(100)
OPERATIONAL_TEST_LENGTH NUMBER
ACTIVE_STATUS CHAR(1)
DELETE_STATUS CHAR(1)
FIELD_TEST_ITEM VARCHAR2(1)
FIELD_TEST_LENGTH NUMBER
IS_DIR_SAMPLE CHAR(1)
DIR_SAMPLE_PATH VARCHAR2(1000)
CREATED_ON DATE
MODIFIED_ON DATE
CREATED_BY NUMBER
MODIFIED_BY NUMBER
FORM_NAME VARCHAR2(10)
DOMAIN_MAP_ID NUMBER(9)
DOMAIN_SEQUENCE NUMBER(9)
ROSTER_DOMAIN_NAME VARCHAR2(100)
Maybe you are looking for
-
Make Searching in CS3 Bridge more like searching within Photoshop Album
For example, in Photoshop album if I wish to see photos that contain BOTH "Tag1" and "Tag2", I click on these two tags and only those photos that contain BOTH of these tags appear. In Bridge CS3 if I click "Keyword1" and "Keyword2", I see every photo
-
How to use Generate Synchronization Parameters for PSK modulation and demodulation
Hi I am trying to use Generate Synchronization Parameters.vi to sync the recovered stream after demodulation and my input stream to modualtion block but I don't know how to work with this block to sync input stream with output stream. Also would you
-
IMac says it has no software for Canon Pixma MG7520. Suggestions?
I'm trying to install a new printer - Canon Pixma MG7520 but iMac says it can find no software for it. Anyone have a suggestion?
-
How do you get an application's version using AppleScript? For example, get the version of Firefox... Thanks, jeremy
-
Why is my iMac dropping off as shared volume- Back-to-My-Mac
I have a 21.5" iMac 2.5GHz mid 2011, 12GB ram running Lion 10.7.4. It is connected via ethernet to a gen 5 Airport Extreme, so Airport on the iMac is off. I am also running a MBP . Both are on iCloud Back-to-My-Mac. When the iMac is awake, it shows u