Help document for Abap Query
I want to attach application help documentation to an SQ01 query that I have created.
I should be able to view the application help (In the menu <i><b>Help->Application help</b></i>) when I run this query.
Can I know the method ?
Well I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say.
Similar Messages
-
Where i can find the document for ABAP-SD techno functional guys
where i can find the document for ABAP-SD techno functional guys
Dear Jagrut,
Well there is no separate section for technofunctional people like ABAP SD. I think it wil not be an easy proposition also to have a separate section. Regarding the documents, I have posted lot of queries on technofunctional aspect of SD and I have got good responses from the SD forum. So you can try it here.
A small search on SDN SD forum most of the times will help you to answer your query.
I will suggest you to visit http://sap-img.com/sap-sd.htm. It will give you the overview of SAP SD module.
Moreover there is a separate section of FAQs with answers which will help you in great deal.
Hope this helps you.
Do award points if you found them useful.
Regards,
Rakesh -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
How to create a tcode for abap query
how to create a transaction code for abap query,
i used a single table , my requirment is as i enter the tcode i should get the selectioin screen of my query.Hi
Follow this
. Make a transaction with parameters transaction from se93 .
2. Put START_REPORT in the transaction
3. Check the skip intial screen checkbox
4. in the table control in the end of screen put these values
D_SREPOVARI-REPORTTYPE = AQ
D_SREPOVARI-REPORT = <USER GROUP in WHICH THE QUERY IS CREATED> G
(G stands for GLOBAL AREA:)(Entered after a space)(G should come after 9
chanracters(8 char for user group,one space and then G)
D_SREPOVARI-EXTDREPORT = <QUERY NAME>
refer this:
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/how-to-assign-a-tcode-to-a-sap-query-579623
Regards
Shiva -
Plz suggest some documents for ABAP in ECC 6.0.
Hello,
Could u plz suggest some documents for ABAP in ECC 6.0.
Regards,
VibhutiHi,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5ac31178-0701-0010-469a-b4d7fa2721ca
Thanks,
Sankar M -
Creating t.code for ABAP query and Transport it TO Production and run it .
Hi Friends
Thanks for ur reply ,
The requirement is that i want to create tcode for abap query and that query can be regenearted ,
in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
and also pls give me solution for asiging tcode for query which is going to be regenerated.
thanks and regards
farukhDear Farukh,
As we know,
Query is created in Production server and a corresponding program is generated by System.
What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
If you have any doubts please let me know.
Kindly assign points if you find this info usefull.
Regards,
Lijo Joseph -
Help document for Implementation Guide
I can't find the help document for SAP Implementation Guide (IMG) in ECC5.0
But I can find this document in R/3 4.6C.
So,where can I find this document in ECC5.0 or ECC6.0,I want to learn the configration guide.
Else,can anybody find the IDES document in ECC5.0?Hi,
Kindly check the following links:
http://help.sap.com/content/bestpractices/baseline/bestp_baseline_baseline_V500.htm
http://help.sap.com/content/bestpractices/baseline/bestp_baseline_baseline_V600.htm
http://help.sap.com/bp_bblibrary/500/BBlibrary_start.htm
http://help.sap.com/bp_bblibrary/600/BBlibrary_start.htm
you can find the documents for SAP Implementation Guide (IMG) in the above links.
hope this helps!
best regards,
Thangesh -
Help Document for Keyfigures and Characteristics
Hello,
Using BEx Browser I'm generating reports so i need to create help documents for Keyfigues and characteristics that way user will know by looking documentation they will know what is what
How can we create help documentation?
Experts help would be appreciated
Thanksactually we are using BI7.0 version but we don't have portal and web that is the reason we are using old BEx browser for front end but ETL we are using BI7.0.
so using old BEx browser can we create documentation for keyfigures or not?
if so How?
Thanks -
Help documents for APIs that are to be used to write our own apllication
Hi,
Iam using SUP 2.1 ESD#1 licensed version,
There are no help documents for the APIu2019s that are to be used to write our own application, so can some one provide me with some docs.
Thanks,
B.UshasriThey are available online... what platform are you writing for? I'm assuming youre writing a Native app?
Ian -
Creting t.code for ABAP query and Transport it TO Production and run it .
Hi Friends
Thanks for ur reply ,
The requirement is that i want to create tcode for abap query and that query can be regenearted ,
in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
and also pls give me solution for asiging tcode for query which is going to be regenerated.
thanks and regards
farukhHi farukh,
1. If any query is re-generatred,
then some MANUAL INTERVENTION
is absolutely required.
2. Hence, what we prefer is this :
1. Generate first query.
2. Copy the code to a Z Program
3. Attach tcode to THIS z program.
4. Transport
3. Now,
whener the query is generated again,
AGAIN COPY THE CODE
TO OUR Z PROGRAM (2ND STEP ABOVE)
(which has already been created)
AND TRANSPORT JUST THIS Z PROGRAM.
REST WILL TAKE CARE OF ITSELF.
4. In such cases,
ONLY COPY-PASTE IS REQUIRED.
(and it takes not more than 15 SECONDS)
regards,
amit m. -
Urgent Help need for ABAP Custom Process Types
Hi Gurus,
I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
I followed the below procedure to create a custom ABAP process type.
In RSPC, I went to Settings -> Maintain process types
I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
Now I can see the new process type for ABAP program which returns the success or failure for the successors.
Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure. Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
Thanks in advance,
Regards,
aarthi
[email protected]Hi,
We have a similar problem. We have an ABAP program in a process chain that
uses a custom process type with on success and on failure.
If the program is successful there is no problem. it will run the next process step.
The problem is when the ABAP Program fails and even though the message class is E in our ABAP program it has a confirm popup message with a status change and asks "Save Status and Trigger Events if Appropriate".
Once you enter Yes to continue it then continues to the next step in the program and is fine.I traced in debug where this status message is appearing. It is in CL_RSPC_LOG. There is a popup_to_confirm_step where it checks the e_status that is value J ( Framework Error upon completion). Then it submits the rspc_process_finish program to complete and call the on error process step.
Has anyone else experienced this and is there any other documents out there to help me?
Apologies if this is not very clear.
Any assistance would be appreciated.
Thanks
Monica Mandia -
Hello everyone! I have created my very first ABAP Query, but I still need to create/assign TCODE for the said report. Can anyone help me with it? Somebody told me to use SE93. I found out that there are 5 options in SE93 to create a TCode, I tried all options but I could not get through it because I was asked for a program name or a transaction. What should I put in there? The query name? Please help.
Thanks!HI Ervyone! Got it Already. To Get the program name of the ABAP Query,
1. Go to SQ01> Query Menu>More Function--> Generate Program
2. Go to SQ01> Query Menu>More Function--> Display Report Name. Copy the Report Name that Will be displayed.
3. Go to SE93 Enter the TCODE that you want to use, then click on Create BUtton. Choose the second option "Program
and Selection Screen (Report Option)". The next screen will ask for your program name, Paste/copy the program
name and save it.
Thanks!
Edited by: Ksbaizas on Jun 22, 2010 3:19 AM -
Performance tuning for ABAP Query (created from t-cd SQ01)
Hello all,
We created ABAP Query report from transaction SQ01.
But the generated report has an appropriate SQL statement which causes performance problem.
To solve this issue, I guess the easiest way is;
0. Give up to use it.
1. Copy it to another object in the customer namespace.
2. Ajust SQL statement.
But I'm wondering if there're appropriate ways to adjust SQL statement of Query.
Could anybody give me any better idea?
Thank you
YukoYou can try this: Create 2 ranges, for objnr and cdtcode and fill like:
ra_objnr-sign = 'I'.
ra_objnr-option = 'CP'.
ra_objnr-low = 'OR*'.
append ra_objnr.
ra_code-sign = 'I'.
ra_code-option = 'CP'.
ra_code-low = 'CO*'.
append ra_code.
SELECT objnr udate utime
FROM jcds
INTO TABLE it_jcds
WHERE objnr IN ra_objnr
AND stat = l_tj02t
AND cdtcode IN ra_code
AND inact = space
Regards,
John. -
How to set default value in select option for ABAP query
Hi experts,
What is the way to set up default values for select-options in ABAP query.
e.g.
I have one field 'Year' in my ABAP query selection screen.
I want value of current year to be appeared here whenever user execute report
Thanks in Advance
-HarkamalHi Harkamal,
execute your Query via SQ01. On Selection-Screen
goto save Variant. Mark your field
as selection variable an press Button election variable.
Take variable from TVARV and use it.
Than save the Variant.
Look at TVARV if the 'Year' is updated to the actualYear!
regards, Dieter -
Short Dump While selecting Variant for ABAP query
Hi,
ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
Thanks in Advance.
Nirmala KHi nirmala,
chk the links:
http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
regards,
keerthi.
Maybe you are looking for
-
hi guys: I got a problem. vendors will give me few goods for free when I purchase a material at a level of quantity.now I can creat a purchase order to purchase A with few quantity of A free, and the question is how can I purchase A with B free? wait
-
I want to move pictures to a external hard drive. How do I do that?
My 150 GB MacBook hard drive is nearly full. I want to move pictures off my hard drive to an external hard drive to access them later. I bought a 1 TB external hard drive and have time machine set up on my computer. I am beginning to think that the
-
Airport Extreme USB Disk Access
Airport Extreme 5th Generation with a 2TB SATA drive in a powered enclosure attached via USB. When attaching the drive/enclosure to my 2011 MBP, I can read/write to it without issues. The drive is formatted as a single NFS+ partition. When I attach
-
Performance Tunning in weblogic
Hi All, Can you please tell me about performance tunning in weblogic server in simple way to understand. I have gone through Pdf's but some what difficult to understand . Thanks Balaji kumar
-
What is error 3212 and how do i correct it
When trying to coonect to itunes I keep getting error 3212. How can I correct it?