ABAP Query: Access variables in ABAP Program through InfoSet Query.
Hi,
While generating a report using ABAP Query Tool, how can we access the variables in the ABAP Program in the InfoSet Query?
Thanks in Advance!!!
HI,
Dear, it seems that you have changed the query in SQ02 and then just save it and not generated.
or may be after generation again clicked on SAVE button.
So untill unless you will not generate the query, it won't work.
Secondly, by chanegs in the query, i don't think it changes the name of the main program.
Regds,
Anil
Similar Messages
-
Capture Weigh Bridge Reading in ABAP Program through RS232 port
Dear SAPers,
I am in Cement Implementation Project and i have requirement to Connect Weigh Bridge to SAP ERP and capture the readings of that Weigh Bridge in ABAP program.
How can i capture those readings in ABAP program or save them in a Z table using RS232 port????
Best Regards,
Kholoud
Moderator message: please do not cross-post.
Edited by: Thomas Zloch on Mar 17, 2011 1:22 PMDear Vijay,
I'm having the same problem in my implementation, the client needs me to capture the readings from Weigh Bridge through RS232 port directly to ABAP program.
Could please tell me how did you solve this??
Thanks
Kholoud -
Trigger an ABAP program through a Process Chain
Hi,
I have an ABAP program as part of my Process Chain that updates the BW Hierarchy OREGH.
However I can't get the program to execute through the chain, even the though chains goes all green. without any REDS anywhere along the chain.
When I check if the program has made the desired changes in the tables it hasn't.
If I run the program using SE38 it works fine and in seconds.
Is there a parameter setting I have to set in the process chain or within the program itself.Tthe program is active.
Ive checked many of the posts about this issue but couldn't find a someone experiencing a similar problem.
Please Help
Thanks
AmirRemove that ABAP program from the Process Chain and activate. Leave RSPC screen.
Re-enter to RSPC, and add that program by creating a new variant with following options:
Call Mode : Synchronous
Call From : Local
Check and Activate process chain. -
How to access variables from other classe through getter ?
Hi !
I have 10 classes
Cau_1.java containing char Cau_1_Answer;
Cau_2.java... Cau_2_Answer;
Cau_10.java... Cau_10_Answer;
and another class Resume_grammar.java with char[] AnswerList = new Char[10] used to hold cau_1_Answer, Cau_2_Answer...Cau_10_Answer.
but I don't success to get them.
In Cau_1.java, I do :
private static char Cau_1_Answer;
static char getCau_1_Answer() {
return Cau_1_Answer;
static void setCau_1_Answer(char cau_1_Answer) {
Cau_1_Answer = cau_1_Answer;
if (a.isChecked()) {Cau_1_grammar.setCau_1_Answer('a');}
if (b.isChecked()) {Cau_1_grammar.setCau_1_Answer('b');}
if (c.isChecked()) {Cau_1_grammar.setCau_1_Answer('c');}
if (d.isChecked()) {Cau_1_grammar.setCau_1_Answer('d');}
Cau_2, Cau_3...are the same way.
in Resume_grammar.java :
static char[] AnswerList = new char[10];
AnswerList[0] = Cau_1_grammar.getCau_1_Answer();
AnswerList[9] = Cau_10_grammar.getCau_10_Answer();
When I make AnswerList display, all is null (nothing displayed).
Please help ! What I do wrong ?
Thank you !Johnny.vn wrote:
Cau_1 is Question_1 (Vietnamese).
I am developing a academic test application with many question and finally display the result of the test.
Thank you.Back to the original question: why do you need to define different classes for different questions? Do they really behave differently in a way that can't be captured by a single class? -
Declarations in SAP QUERY generated ABAP Programs
hi,
i had created a ABAP Program through ABAP Query (SQ01,SQ02,SQ03) but i have a issue that when i transport it to the PRD server i got the run time error. The Z program which i had created is the copy of the SQ01 generated program and i had done all the includes declarations in this program. but there is a problem that it is consist of the declarations of the structures,quries .
I want to know is it necessary to always transport the Infoset and user group and the structure which is present in the program generated .
Please provide me guidelines for this problem .
Edited by: ricx .s on Jul 6, 2009 5:31 AM
Edited by: ricx .s on Jul 6, 2009 8:07 AMhi,
i had copied the program bcoz i want to chekc that it is really necessary to transport the user group and infoset so that it can achieve functionality similar to the SAP QUERY.
is there any other way without whichi can ahieve the functionality of SAP QUERY generated program and take it into the ABAP Porgram? -
Creating Infoset query based on ABAP program
Hello
I have 3 tables FEBEP, BKPF and BSEG and I need to join the 3 tables based on:
FEBEP-MANDT = BKPF-MANDT = BSEG-MANDT
FEBEP-NBBLN = BKPF-BELNR = BSEG-AUGBL
FEBEP-GJAHR = BKPF-GJAHR = BSEG-GJAHR
Then I have a few view fields from all the 3 tables. After this I can build an infoset query based on structure + ABAP program, and a generic datasource on top of it.
Can someone give me the ABAP code to be written SE38? Also should I select integrated program/external program in the infoset query?
Thanks,
Srini.Hi,
Even if you create an ABAP program for infoset, you will writing a SELECT statement from BSEG table which is quite huge.
And you will putting JOIN with other tables.
Performance wise this is not advisble.
Why do not try the following other tables and check if the fields you need are available?
You can't join BSEG as it is a Cluster Table.In the place of BSEG you can use:
Account Recivables data use BSID and BSAD tables
GL Account Related data use BSIS and BSAS tables
Account payables data use BSIK and BSAK tables
Thanks. -
Hello Frienz,
There is a typical business scenario with one of our client, I would like to get inputs from all of u..........
Could u guys tells me is it possible to Call a Abap Program through a Workflow mail which has come to the supervisor's Lotus Notes Inbox for his/her action????????????????????
Which means When supervisor opens the mail in LN is it possible to run a abap program when a radio button or any weblink is incorporated he or she clicks in the mail???????
Requesting all of u to provide their valuable inputs.
Regards
Pavani GHello Frienz,
Thanks for all your valuable inputs................
Sheeta / Manikya Raju: We had already tried the insertion of HTTP link but when we click on the link we r not able to run the program.......
SAP HCM:
1. S email received by supervisor is trigerred through Workflow only...........
2. Unfortunately our LN Guy has not got any idea abt this..........
Will very much appreciate for your quick response
Regards
Pavani G
Edited by: G Pavani on Jul 28, 2009 2:04 PM -
HOW TO DEBUG EXTERNAL ABAP PROGRAM
HI ALL ,
I am new to Webdynpro Java. I am unabe to debug the ABAP program through web dynpro java application .
I want to debug the external abap program through web dynpro java application.
If it possible please let me know the required procedure for debugging.
Thanks in advance...!Hi,
I donu2019t have any documents for that. But I vl give some points plz go through that.
1. Login into the ECC System with respective of User name and Password.
2. Enter T -Code (SE 37). Here Pass to the you are Functional Module Name (BAPI/RFC).
(By using that same BAPI/RFC u have to develop the that WDJAVA Application)
3. Pass the RFC and Click on Display Button. That RFC will be open.
4. Here u have find it Red Icons available (External/Internal Debug) Click on that External Debug.
5. Finally deploy your WDJAVA Application that time automatically youu2019re ECC System Opened.
Please check it these
F5 - Step by Step debugging
F6 - Skips loops and Subroutines
F7 - Skips the loop or subroutine and returns to the last cursor point.
F8 - Execute and come out of debugging
Hope this helps!!
Best Regards
Vijay K -
Mass tcode creation from abap programs
Experts,
Is there any way to create tcodes for 200 abap programs through any function modules or any abap programs..
Regards,
Suresh
Edited by: Suresh Palani on Dec 5, 2009 8:02 AMhi
through recording method (BDC) u will do this thing.
create recording through SHDB in transaction se93.
regards,
Abhilash -
How to call program through process chain
Hi Gurus,
I am in the position to execute the abap program through process chain, I have used abap program as process type in process chain(First time I am using this process type).when I am executing the process chain, the abap program is not executing.Eagerly anticipating your reply.
Regards
ShivaHi
I managed the execution of rscrm jobs in PC as follows:
1. Execute query through RSCRM_BAPI transaction
2. goto sm37 and copy the Jobname (the active one)
3. Create following progromm
*& Report /WST/RSCRM_START *
REPORT /WST/RSCRM_START .
parameter: l_bid TYPE sysuuid_c.
CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
EXPORTING
i_barepid = l_bid
4. Execute Programm and fill the Parameter with the Jobname
5. Save as a new program variant and use in PC as a normal program
I hope that helps.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
regards
ashwin -
Access table using ABAP program in other database
Dear SAP Expert,
We have requirement that related to SAP interface.
Our SAP system run on Oracle database 11g (Unix).
Illustration: SAP system = A non SAP system = B
We need to access a table using ABAP program (from SAP system A) in other database (system B) that are not necessarily SAP database. The non-SAP system using SQL Server 2008 (Windows).
What is the best practice for this interface
Do we need database link? If yes, please help to inform me the details step to configure it.
Thanks and RegardsHi Friend,
You try using an intermediate system..passing your input required to fetch the data..and PI should call the respective query to retrive record..once the full flow is completed you should get the return through some table in the calling program.
else.
ask the other system guy to write a function with select query and ask him to expose as RFC and that RFC we have to call it as RFC in our program to get the required values and only thing we need here is a proper connector in place.
Regards
S.Janagar -
Create a table and upload data in MS ACCESS from SAP ABAP programming?
Hi All,
How to create a table in MS ACCESS database and Upload SAP database table data into MS ACCESS table using ABAP programming?
Explain: My client requirement is " If he/she runs a ABAP Program, that will create a table and upload data into MS ACCESS Database table in background. "
Could you please give the solution or code? I know the program RIACCESS and I went through the SAP Note 583698.
Is this only solution for this? Or Any other possibilities?
Please give me solution.
Thanks in advance.Hi,
It is not possible to create tables in a non SAP schema from inside SAP.
The SAP-Oracle license also does not allow you to create the table (see note 581312):
the following actions, among other things, are therefore forbidden at database level:
Creating database users
Creating database segments
Querying/changing/creating data in the database
Using ODBC or other SAP external access methods
Please refer following link,
[Ckick Here|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
You can also do it by LSMW,
If you are using Access 97, you can download directly into an access
database from SAP. See program RIACCESS for details. You have to establish
an RFC destination PS_ACCESS_1 and 2.
There are then a couple of function modules. Go to SE37 and put in
msaccess and hit PF4.
The following is from the readme file: sapgui/ps/readme.sap
For the MS-Access interface SAP delivers 4 files:
WDPSASTR.EXE This is an RFC server program that is called by SAP R/3
(PS module). This program creates a MS Access database. The structure
information of the tables is transferred from R/3. In addition to
these tables a table named DDIC is created. This table contains the
structure information and should in no case be modified or deleted.
WDPSATAB.EXE This is an RFC server program that is called by SAP R/3
after WDPSASTR. This program filles the tables of the database with data.
There must not be made any changes of the structure of
the tables between the calls of WDPSASTR and WDPSATAB.
WDPSAZET.EXE This is an RFC client program that triggers work/time
confirmations in the PS module of SAP R/3 (like transaction CN27 Collectiv
confirm).
WDPSAMAT.EXE This is an RFC client program that triggers material
confirmations in the PS module of SAP R/3 (like transaction MB1A - Goods
Please also refer following links,
[Click here|Upload data from MS Access tables, to SAP tables.;
Before using the program "RIACCESS", you need to install the PS utilities, which are part of SAPGUI install CD.
It is available in the "SAPGUIPS directory".
Then do the followings :
1. Select transaction code SALE -> Systems in network-> Define RFC Destination.
2. You will need two RFC destinations (TCP/IP connections for the front-end workstation).
Setup the two RFC destinations PS_ACCESS_1 and PS_ACCESS_2 and you'll have to get them to point to
wdpsastr.exe and wdpsatab.exe respectively.
3. Then execute RIACCESS and choose PS_ACCESS_1 to generate access tables.
The system must also be able to access the RFC-DLL files (librfc2.dll, librfc3.dll, librfc4.dll, librfc5.dll, librfc6.dll, vrfc.dll).
Please note that Access only supports tables with up to 255 fields. -
Send BW query results as HTML email from ABAP program
I have published a code sample for sending BW query results as HTML email from ABAP program. if you have any questions or clarification, please post them here.
the same can be accessed from this link.
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b7658119-0a01-0010-39a9-b600c816f370
Regards
Raja
Message was edited by: Durairaj Athavan RajaOK forget about my earlier post.
do the following changes.
declare the following variables:
data: xtext type standard table of solix .
DATA: atta_sub TYPE sood-objdes .
after the call of FM SCMS_STRING_TO_FTEXT add the following code.
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = text
IMPORTING
EP_SOLIXTAB = xtext .
and after the following statement
document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = text
i_length = conlengths
i_subject = subject ).
add the following code
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'htm'
i_attachment_subject = atta_sub
i_att_content_hex = xtext.
now you will have results both in the body as well as attachment. (this is for test you can remove one of them )
Regards
Raja -
How to execute an SQL query present in a string inside an ABAP program?
hello,
How to execute an SQL query present in a string inside an ABAP programRaut,
You can execute Native SQl statements.
Ex: To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:
EXEC SQL [PERFORMING <form>].
<Native SQL statement>
ENDEXEC.
There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.
In Native SQL statements, the data is transported between the database table and the ABAP program using host variables. These are declared in the ABAP program, and preceded in the Native SQL statement by a colon (:). You can use elementary structures as host variables. Exceptionally, structures in an INTO clause are treated as though all of their fields were listed individually.
If the selection in a Native SQL SELECT statement is a table, you can pass it to ABAP line by line using the PERFORMING addition. The program calls a subroutine <form> for each line read. You can process the data further within the subroutine.
As in Open SQL, after the ENDEXEC statement, SY-DBCNT contains the number of lines processed. In nearly all cases, SY-SUBRC contains the value 0 after the ENDEXEC statement. Cursor operations form an exception: After FETCH, SY-SUBRC is 4 if no more records could be read. This also applies when you read a result set using EXEC SQL PERFORMING.
EXEC SQL PERFORMING loop_output.
SELECT connid, cityfrom, cityto
INTO :wa
FROM spfli
WHERE carrid = :c1
ENDEXEC.
Pls. Mark If useful -
How to access Infocube content using an ABAP program
Hi,
I am trying to access infocube contents using a ABAP program in BW.
It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
tables. Is there any way we can access Infocube content.
I tried using the FACT table but it has only Keyfigure data.
thanks
arshad.Hi,
I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
This is easy and fast.
Regards,
Maybe you are looking for
-
I have an iPhone 4S and when I try to add an iCloud account is gives me an error "Cannot Sign In, The maximum number of free accounts have been activated on this iPhone." Is there any way to deactivate an account? I have one for myself, one for my fa
-
CD/DVD drive won't work!
I've been having problems with the optical drive on my iMac. This evening I tried to put a disc in, and it simply wouldn't acknowledge the disc. It wouldn't even suck the disc in... it just didn't do anything at all. I searched these forums, and foun
-
Initialize a member of custom class
Hi All, I want to initialize the oOwnMovie of CMedia class by this below ....................... code example below class CMedia extends MovieClip{ public var oOwnMovie:MovieClip; public function LoadMe() trace(this.oOwnMovie instanceof MovieClip); /
-
Mterial Number mandatory for Purcahse Resuisition except for Nonstockable I
Hi All, The requirement is like material number should be mandatory except for Non Stockable items (likePen, Stationery Items) while creating a Purchase Requisition. I know in SPRO Settings, "Define Screen Layout at Documnet Level" in Purchase Requ
-
Hi John, I know that extracting the outline directly from Planning is not possible with ODI but it is easy with essbase. But All the properties will not get extracted when doing it from essbase outline extractor. For example, the datatype property. I