How to read IM53 output
Hi Experts,
Here i have a requirement to down load IM53 output, But save and list to local file options are disabled , can any one help me to resolve this.
I have tried calling IM53 program from another program using SUBMIT and FM : LIST_FROM_MEMORY
but LIST_FROM_MEMORY FM is failing to read data. Please help me to resolve this.
Thanks and regards,
RRK.
Hi,
Have you tried the reports available in the IM sructure instead. There are quite a few which displays the values from IM53 and which you can download also. For example; S_ALR_87012806.
Regards
Sreekanth
Similar Messages
-
How to read list output into itab? - URGENT
hai experts,
how to read current report output for further validation i need all data which is showing in output.
my req is,
to read list output all data put into itab.
reward avail for useful answer....
regards,
jai.mHi kumar,
you said your using second one.
it's good. then use the below part.but check the syntax because it is there in other programs what i have already phased.
INCLUDE <%_list>.
DATA %_LIST TYPE SLIST_LIST_TAB ." WITH HEADER LINE.
DATA %_LIST_WA TYPE SLIST_LISTLINE.
DATA: BEGIN OF data_tab OCCURS 0,
line(255),
END OF data_tab.
& Then use:-
LOOP AT %_list into %_list_wa.
data_tab-line = %_list-line.
data_tab-line = %_list_wa-line.
APPEND data_tab.
Clear data_tab.
Clear %_list_wa.
ENDLOOP.
kindly reward me if it's ok -
How to read the output from 'tlist entersq'
Hi
Where can I find information on interpreting the output from 'tlist entersq' ?
We have a box that seems to go into a lock, no communication through network, nor terminal ttya.
I did an abort on the panel and sync to force a memory dump
I'm using scat to investigate the result.
SolarisCAT(vmcore.0)> thread summary
reference clock = panic_lbolt: 0x114c6f9
11 threads ran since 1 second before current tick (11 user, 0 kernel)
11 threads ran since 1 minute before current tick (11 user, 0 kernel)
63 TS_RUN threads (50 user, 13 kernel)
2 TS_STOPPED threads (0 user, 2 kernel)
10 TS_FREE threads (0 user, 10 kernel)
0 !TS_LOAD (swapped) threads
0 threads trying to get a mutex
0 threads trying to get an rwlock
128 threads waiting for a condition variable (89 user, 39 kernel)
1 threads sleeping on a semaphore (0 user, 1 kernel)
12 threads sleeping on a user-level sobj (12 user, 0 kernel)
7 threads sleeping on a shuttle (door) (7 user, 0 kernel)
0 threads in biowait()
1* threads in entersq() (1 user, 0 kernel)
63 threads in dispatch queues (50 user, 13 kernel)
225 total threads in allthreads list (159 user, 66 kernel)
0 thread_reapcnt
5 lwp_reapcnt
230 nthread
SolarisCAT(vmcore.0)> tlist entersq
thread pri pctcpu idle pid wchan command
0x300027dd7a0 142 0.024 1m41.83s 1684 0x300007fff18 /sz/tcp/bin/tig_tcp.bin
1 thread in entersq() found.
threads in entersq() by syncq:
1 thread: 0x300027dd7a0
syncq @ 0x300007ffee0
sq_count: 0 sq_head: 0x30001de6e80 sq_tail: 0x30001de6e80
sq_evhead: 0xcff010000 sq_evtail: 0x100000000cafe sq_nqueues: 0
sq_needexcl: 0 sq_private: 0x3000155dd18 sq_next: 0xbaddcafe
sq_pri: 276
sq_occount: 0
sq_flags: 0x200 ()
sq_type: 0x0
sq_svcflags: 0x0
sq_lock @ 0x300007ffee0:
adaptive mutex: owner: 0x0 waiters: false
per-module syncq for ip
streamtab @ 0x14ad6b0
qinit @ 0x14ad570
modinfo @ 0x14ad540
queues:1 sq_msgs:1 sq_mblks:36 sq_alloc:13247273932581836904
SolarisCAT(vmcore.0)> thread 0x30001de6e80
==== user thread: 0x30001de6e80 address translation failed for pid: 32 bytes @ 0x452e0d0a2a2a2a20
pid: 0 PIL: 3 ====
cmd:
t_wchan: 0x30001dd5640
t_stk: 0x1263bfc sp: 0x0 t_stkbase: 0x30002aa3ec0
t_pri: 0 pctcpu: 0.000036 t_lwp: 0x30001de0d80 machpcb: 0x30001dd4c08
t_procp: 0x30002df2900 p_as: 0x30002df2978 hat: 0x6420373031206368address translation failed for hat_3: 80 bytes @ 0x6420373031206368
cnum: 0x0
address translation failed for hat_3: 80 bytes @ 0x6420373031206368
size: 4984936174853958176 rss: 0
bound cpuid: 768 bound psrset: 768 last cpuid: 0
idle: -17371523 ticks (190888 days 10 hours 34 minutes 34.26 seconds)
start: Wed Jul 10 21:34:52 6497
age: -3297429488912 seconds (38164693 days 3 hours 48 minutes 32 seconds)
swapped out: 3298566244800 (190888 days 4 hours 48 minutes 49.63 seconds later)
interrupted (pinned) thread: 0x30001de6ef8
tstate: unknown state
tflg: T_INTR_THREAD - thread is an interrupt thread
T_WOULDBLOCK - for lockfs
T_DONTBLOCK - for lockfs
T_DONTPEND - for lockfs
WAITCVSEM - waiting for a lwp_cv or lwp_sema on sleepq
tpflg: TP_CHKPT - thread is being stopped via CPR checkpoint
TP_PRVSTOP - thread is virtually stopped via /proc
TP_MSACCT - collect micro-state accounting information
TP_STOPPING - thread is executing stop()
tsched: none set
pflag: SLOAD - in core
SLOCK - process cannot be swapped
SPREXEC - process is in exec() (a flag for /proc)
SSCONT - SIGCONT has been posted to the process
SBPTADJ - adjust pc on breakpoint trap (/proc)
SUGID - process was result of set[ug]id exec
SJCTL - SIGCLD sent when children stop/continue
SNOWAIT - children never become zombies
SVFORK - process resulted from vfork
SVFWAIT - parent of vfork waiting for child to exec
EXITLWPS - have lwps exit within the process
SWAITSIG - SIGWAITING sent when all lwps block
HOLDFORK1 - hold lwps in place (not cloning)
SMSACCT - process is keeping micro-state accounting
pc: 0x30003e63600 0x30003e63600: illegaltrap 0x00000000
-- no stack --Hello ejp,
First of all i thank you for the reply.
I explain the process which i am doing in side the thread.
After connecting to the remote machine, it asks another password.
so i read the output after connecting. if it equals "password:", then write the 2nd password. then i read the output. it will be like "system>" . if this prompt comes like this, then i write the super user name and super user password. then the prompt will be like "system#". then i write the command which i need to execute and read the output whether the command is success or not.
So after every output read, i interrupt the thread using interrupt() method. its working fine if i execute via GUI ie, click the button. But its not working when i scheduled this job in a scheduler ie, it will be executed when the time elapsed.
Give an idea to fix this bug please.
rgds
tskarthikeyan -
Ajax call to pageflow action: how to read action output objects?
I have a pageflow action like:
doSomething()
Customer[] customers = null;
// build the customer array
Forward f = new Forward("success");
f.addActionOutput("customers", customers);
return f;
I am calling this action from my javascript function using AJAX. How do I read the Customer array in my javascript? I am using the DOJO library.
dojo.xhrPost({
url: "/pageflow.doSomething", // I have URL rewrite rules set up whic forwards to the necessary pageflow function
content: {
"key":"value",
"param":"test",
handleAs: "JSON",
handle: function(data,args){
// WHAT GOES HERE?
});This isn't so much pageflow-specific, as AJAX specific. For the xhr call to work, the url (whatever it is) needs to output a valid json object structure so the dojo method can interpret it into a javascript object. So, you would need to make the jsp/servlet which is the forward of the pageflow action output that json structure (instead of HTML). There are many utility libraries out there for creating json from java objects -- just search around the internet; or you could create your own. [http://json.org] is handy starting point.
So, as an example, I could imagine your customer json looking like:
"customers" : [
{ "id": 1, "fname": "John", "lname": "Doe", "addr": "1234 5th St. Anytown, CA" },
{ "id": 2, "fname": "Joe", "lname": "Blow", "addr": "6789 10th St. Anytown, CA" }
Then, in the "// WHAT GOES HERE?" section, you would access that array as any javascript array, e.g:
function (data, args) {
var customers = data.customers;
for (var i = 0; i < customers.length; i++) {
alert('Customer ' + customers.id + ' is ' + customers.fname + ' ' + customers.lname + ' at ' + customers.addr);
(Sorry the formatting is messed up, but this forum doesn't seem to maintain whitespace correctly.)
Maybe in this case, you could populate a dojo list or a table grid, or you could just create an HTML structure in the DOM via javascript. It all depends on what you want your user interface to look like.
Greg
Edited by: gsmith on Feb 11, 2009 9:25 AM -
How to read the output of 'tarantella license query' command?
I'm trying to track my license usage (to better determine when to buy new licenses, and to track usage over time).
When I issue the 'tarantella license query command, this is typical of the output I see:
[root@sgdserver ~]# /opt/tarantella/bin/tarantella license query
License usage at: Mon Feb 11 14:03:53 EST 2008
Type In use / Total
Base 6 / 230
UNIX 4 / 230
Mainframe 0 / 230
Windows 0 / 230
AS/400 0 / 230
[root@sgdserver ~]#What is the above saying? Is it saying that I am using 10 licenses out of my 230, or am I just using 6 licenses? In other words, do I add up the numbers or just use the highest one? Or do I just have to worry about the 'Base' license number?
Thanks.The base license is the number of users that are logged into a webtop.
From there you count then connectivity type.
So you have 6 webtop licenses out of 230 consumed and of those 4 users have launched UNIX sessions out of 230 you have licensed.
hope this helps. -
Hi frnds,
As, I'm beginner to performance tuning I dont know
What action do i need to take?
I mean how to read the output which I given below.
this is the output suffering buffer busy waits.
Could anyone please tell me
CLASS TOTAL_WAITS TOTAL_TIME
data block 93303 58711
unused 0 0
system undo header 12 232
undo header 7847 6636
3rd level bmb 0 0
save undo header 0 0
bitmap index block 0 0
file header block 0 0
free list 0 0
undo block 68 207
segment header 422 399
extent map 0 0
2nd level bmb 0 0
system undo block 0 0
sort block 0 0
save undo block 0 0
1st level bmb 1 17
bitmap block 0 0
Thanks, Muhammed Thameem. SHello,
"Buffer busy waits" is contention for a buffer (representing a specific
version of a database block) within the Buffer Cache. So, in essence
it is block contention and thus it is most likely something to do with
the design of the tables and indexes supporting the application. A
built-in bottleneck. On indexes, it could be the age-old problem of
insertions into an index on a column with a monotonically-ascending
data value (i.e. timestamps or sequence numbers) which tends to cause
contention on the highest leaf node of the index. On tables, it might
have to do with many concurrent insertions into a table in a
freelist-managed tablespace where the table has only one freelist. It
could also be due to a home-grown implementation of sequence-number
generators (i.e. small table with one row, one column in which contains
the "last value" of a sequence, etc) which lots of people use to avoid
not being "portable across databases" which they think means not using
Oracle sequences (yadda yadda yadda).
I'd look for any SQL statement in the "SQL sorted by Elapsed Time"
section of the AWR report which exhibits high elapsed time but
relatively low CPU time, indicating a lot of wait time. Of course,
there are something like 800 possible wait events in current releases
of Oracle, of which "buffer busy waits" is only one, so this is just
inference and not a direct causal connection to your problem. But,
once I find such statements I'd check to see if they are
accessing/manipulating tables within the CUBS_DATA tablespace, and then
use "select * from table(dbms_xplan.display_awr('sql-id'))" to
get the execution plan(s), and then look for something ineffective
within the execution plan. You might find the script "sqlhistory.sql" helpful
here as well, to get a "historical perspective" on the execution of the
SQL statements over time, in case the buffer busy waits peaked at some
point in the past
Please refer to:
http://www.pubbs.net/201003/oracle/51925-understanding-awr-buffer-waits.html
Also
http://www.remote-dba.net/oracle_10g_tuning/t_buffer_busy_waits.htm
kind regards
Mohamed -
How to get the output of my batch file or script file
Hello,
I am a beginner in java and I have to run a batch file(in win) or a script(in linux). I want the output of the file in my java program. How to read the output. I used the following code and it always gave me the empty string output
Runtime r = Runtime.getRuntime();
Process p = null;
p = r.exec("./test.bat"); //./test.sh
int res = p.waitFor();
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String tempStr = "", str = null;
while((str=br.readLine()) != null) {
tempStr += str + "\n";
System.out.println(tempStr);
I know this is a simple one but it's taking a lot of time. Can any one there help me quickly.hi
the below function works well for me..
just make a try with it
protected String runConsoleCommand(String command) throws IOException {
Process p = Runtime.getRuntime().exec(command);
InputStream stdoutStream = new BufferedInputStream(p.getInputStream());
StringBuffer buffer = new StringBuffer();
for (; ; ) {
int c = stdoutStream.read();
if (c == -1)
break;
buffer.append( (char) c);
String outputText = buffer.toString();
stdoutStream.close();
System.out.println("the output to file is:"+outputText);
return outputText; -
Read the output of the iseries CL Program from Java
I have a Java program running on the iseries(AS400). I need to call a CL program from this JAVA.I have to pass 7 arguments to it.Out of 7, three are input parameters to CL and other 4 are its output parameters to the calling JAVA program. I am using Runtime.getRuntime().exec(arguments) to call the CL. Please suggest me how to read the output from the CL in the JAVA program.
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Kidding:
If a method has at least 7 parameters, chances are one or two have been forgotten. -
How to read .xml file from embedded .swf(flash output) in captivate
I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
Here is is graphical demonstration of my query :
Message was edited by: captainmkvHi Captainmkv,
Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
Tristan, -
How to execute some code in command line, and read its output?
I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
But I want to take it one step further and read its output. is it possible?Hi RagnaRock,
one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
I hope this helps. Kind regards,
Alvaro -
How to read XML data stored in CLOB in Concurrent prog Output
Hi All,
I'm trying to Generate the XML Data as concurrent Program output. I have a PL/SQL package which generated the XML data by using SQL/XML functions. I'm storing the generated XML data in a CLOB variable. But when i try to read the data using fnd_file.put_line(fnd_file.OUTPUT,XML_Data) it doesn't display data more than 32767 bytes.
Please help me out to understand what could be done to read the data in chunks. I have tried many logic's to print chunks of data but the output tags are either chopped off and errors out saying Tag not found.
My logic is as below:
v_handler:= DBMS_XMLGEN.newContext(v_xml_query);
--Sets NULL handling options
DBMS_XMLGen.SetNullHandling(v_handler, dbms_xmlgen.EMPTY_TAG ) ;
--Set special character handling
DBMS_XMLGEN.setConvertSpecialChars(v_handler, TRUE);
-- Specified whether to use an XML attribute to indicate NULLness of particular entity in the XML document
DBMS_XMLGen.useNullAttributeIndicator(v_handler,TRUE);
-- set Checking invalid chars
DBMS_XMLGEN.setCheckInvalidChars(v_handler, TRUE);
-- get the xml data as required
v_xml_data:= DBMS_XMLGEN.getXMLtype(v_handler);
SELECT XMLROOT(v_xml_data.extract('/*'),VERSION '1.0').getClobVal() into v_new_xml_Data from dual;
-- get the length of the xml generated
v_clob_len := dbms_lob.getlength(v_new_xml_Data);
FND_FILE.PUT_LINE(FND_FILE.LOG,'The Clob length is :'|| v_clob_len);
-- logic to process string more than 32767 Processing by each character
v_offset :=1;
while (v_offset <= v_clob_len)
LOOP
v_char := dbms_lob.substr(v_new_xml_Data, 1, v_offset);
IF (v_char = CHR(10))
then
fnd_file.new_line(fnd_file.output, 1);
else
fnd_file.put(fnd_file.output, v_char);
end if;
v_offset := v_offset + 1;
END LOOP;
FND_FILE.PUT_LINE(FND_FILE.LOG,'The offset is :'|| v_offset);
FND_FILE.NEW_LINE(FND_FILE.OUTPUT, 1);
THe above logic is for character by character which is a performance burden? Please let me know if there is any other work around for thisHi,
Thanks for Replying. I have refered http://blog.oraclecontractors.com/?p=69 and then i added that piece of code. Basically, i'm trying to generate a report using XML publisher. To generate the XML data i'm writing a pl/sql package with SQl/XML functions. DBMS_XMLGEN would help me convert the XML Data as is. When the concurrent program runs this XML data will merge with RTF layout and generate required report. I'm able to generate the Report for data less then 32767 bytes. More than the limit i need to pass chunks of XML data to read as output. That's the reason i'm using fnd_file.output. But it reads only 32767 size at a time.
WHen i use the given logic, it works perfectly fine, but it loops for each character, for example if you have 30,000 characters it loops the same, which is peformance burden.
So i tried to write the logic of chunks but still i get the error that XML tag is not found or missing. I'm hoping this is very common issue, but after all my trails, i didn't find the right solution.
the other logic i tried was :
v_new_xml_data varchar2(32767)
v_iterations := CEIL(v_clob_len/v_chunk_length); -- v_chunk_length is 32767 and v_clob_length is length of the XML data stored inthe clob variable
For i in 0..v_iterations
LOOP
FND_FILE.put_line (fnd_file.log,'the loops v_pos :'||i||' and v_clob_length :'||v_clob_len);
v_new_xml_data := DBMS_LOB.SUBSTR ( V_XML_DATA,v_chunk_length,(i*v_chunk_length)+1);
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,v_new_xml_data); -- read the output for every 32767 chunks
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Chunk length is :'||((i*v_chunk_length)+1));
END LOOP;
FND_FILE.put_line (fnd_file.log,'out of loop');
FND_FILE.put_line (fnd_file.log,'length of new xml is '||v_clob_len);
Please, let me know if you need Further clarifications on the same. -
How to read output rows in alv
I have made alv grid. i have given checkbox for user to select the row.
so how to read the selected rows.hi
*REPORT YMS_ALVINTER.
*& tables declaration
TABLES: VBRK,VBRP.
*& type-pools declaration
TYPE-POOLS: SLIS.
*& data declaration
DATA: G_REPID TYPE SY-REPID.
DATA : IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV, "mara
WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
WA_EVENT TYPE SLIS_ALV_EVENT,
T_EVENT TYPE SLIS_T_EVENT.
DATA: V_VBELN LIKE VBRK-VBELN,
V_MATNR LIKE VBRP-MATNR.
DATA: BEGIN OF IT_VBRK OCCURS 0,
VBELN LIKE VBRK-VBELN,
WAERK LIKE VBRK-WAERK,
VKORG LIKE VBRK-VKORG,
FKDAT LIKE VBRK-FKDAT,
BUKRS LIKE VBRK-BUKRS,
NETWR LIKE VBRK-NETWR,
END OF IT_VBRK.
DATA: BEGIN OF IT_VBRP OCCURS 0,
VBELN LIKE VBRP-VBELN,
POSNR LIKE VBRP-POSNR,
FKIMG LIKE VBRP-FKIMG,
VRKME LIKE VBRP-VRKME,
NETWR LIKE VBRP-NETWR,
MATNR LIKE VBRP-MATNR,
ARKTX LIKE VBRP-ARKTX,
END OF IT_VBRP.
*& selection screen
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_VBELN FOR VBRK-VBELN,
S_FKDAT FOR VBRK-FKDAT,
S_MATNR FOR VBRP-MATNR.
SELECTION-SCREEN END OF BLOCK B.
**INITIALIZATION.
INITIALIZATION.
G_REPID = SY-REPID.
S_FKDAT-LOW = SY-DATUM - 200.
S_FKDAT-HIGH = SY-DATUM.
APPEND S_FKDAT.
***AT SELECTION-SCREEN.
AT SELECTION-SCREEN.
IF NOT S_VBELN IS INITIAL.
SELECT SINGLE VBELN FROM VBRK
INTO V_VBELN
WHERE VBELN IN S_VBELN.
IF SY-SUBRC <> 0.
MESSAGE E001(ZZ2).
ENDIF.
ENDIF.
IF NOT S_MATNR IS INITIAL.
SELECT SINGLE MATNR FROM MARA
INTO V_MATNR
WHERE MATNR IN S_MATNR.
IF SY-SUBRC <> 0.
MESSAGE E001(ZZ2).
ENDIF.
ENDIF.
***START-OF-SELECTION.
START-OF-SELECTION.
PERFORM GET_DATA_VBRK.
*& Form GET_DATA_VBRK
text
--> p1 text
<-- p2 text
FORM GET_DATA_VBRK .
SELECT VBELN
WAERK
VKORG
FKDAT
BUKRS
NETWR
INTO TABLE IT_VBRK
FROM VBRK
WHERE VBELN IN S_VBELN
AND FKDAT IN S_FKDAT.
ENDFORM. " GET_DATA_VBRK
*& Form GET_DATA_VBRP
text
--> p1 text
<-- p2 text
FORM GET_DATA_VBRP .
SELECT VBELN
POSNR
FKIMG
VRKME
NETWR
MATNR
ARKTX
FROM VBRP
INTO TABLE IT_VBRP
WHERE VBELN = IT_VBRK-VBELN.
ENDFORM. " GET_DATA_VBRP
***END-OF-SELECTION.
END-OF-SELECTION.
PERFORM EVENT_LIST.
PERFORM GET_FIELD_CATALOG.
PERFORM LIST_DISP .
*& Form list_disp
text
FORM LIST_DISP .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = 'POPUP'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBRK
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " LIST_DISP
*& Form GET_FIELD_CATALOG
text
--> p1 text
<-- p2 text
FORM GET_FIELD_CATALOG .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = G_REPID
I_INTERNAL_TABNAME = 'IT_VBRK'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = G_REPID
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_FIELD_CATALOG
*& Form event_list
text
--> p1 text
<-- p2 text
FORM EVENT_LIST .
CLEAR WA_EVENT.
WA_EVENT-NAME = 'USER_COMMAND'.
WA_EVENT-FORM = 'USER_COMMAND'.
APPEND WA_EVENT TO T_EVENT.
CLEAR WA_EVENT.
ENDFORM. " event_list
*& Form user_command
text
-->R_UCOMM text
-->RS_SELFIELDtext
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_VBRK INDEX RS_SELFIELD-TABINDEX.
PERFORM GET_DATA_VBRP.
PERFORM BUILD_FIELDCATALOG_VBRP .
PERFORM DISPLAY_ALV_VBRP.
ENDCASE.
ENDFORM. "user_command
*& Form BUILD_FIELDCATALOG_VBRP
text
--> p1 text
<-- p2 text
FORM BUILD_FIELDCATALOG_VBRP .
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = G_REPID
I_INTERNAL_TABNAME = 'IT_VBRP'
I_STRUCTURE_NAME =
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = G_REPID
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = IT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " BUILD_FIELDCATALOG_VBRP
*& Form DISPLAY_ALV_VBRP
text
--> p1 text
<-- p2 text
FORM DISPLAY_ALV_VBRP .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = IT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT_VBRP
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_VBRP
Message was edited by:
Rammohan Nagam
Message was edited by:
Rammohan Nagam -
How to read file from remote machine
Hello,
Hi, i would like to know how to read text file from remote machine using java source code, any code ?
Thanks very much;
Best regards
KimOn the server, perform the following steps:
Parse the request and determine the file to serve
Open a FileInputStream to the appropriate file
Obtain a reference to the Servlet OutputStream
Pipe the bytes from the file to the output stream
Flush and close the streamYou might want to call HttpServletResponse.setContentType("application/octet") to indicate to the browser that a file download will be occurring. Do so before getting the reference to the Servlet's OutputStream.
- Saish -
How to generate multiple output pdf's from one oracle reports
how to generate multiple output pdf's from one oracle reports.
I have a report where I have to generate more than one output files from the same report based on a parameter.
Each output file is for each parameter.
Is this possible in oracle reports, is so how ?You can better post your question in the reports forum instead of this pl/sql forum.
-
How to get the output of a C prgram to Java to the parent Java program
Hi,
Suppose there is a Java Program which calls inside it the C program.The C program outputs as below
printf("%c%c",c1,c2);
Now I have to take this output as an input of the Java Program for further processing.How can I do this?
TapasBy reading from the output stream of the C program.
(if you're not already reading the output stream of the program anyway, you should be - http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#2 )
The format is a char, a space, a char, so just call read() three times and ignore the second value.
Maybe you are looking for
-
My magic mouse behaves erratically with intermittent problems - slows down, right click doesn't work, disconnects for a few seconds then reconnects. Anyone suggest what I could do to fix this?
-
I just bought a new MacBook Air, at the start of November. And recently I can't copy files or maps, and neither can I drag and drop them. This get's really annoying as I kinda need this possibility when I study! Please help!
-
Hi does anyone know the best possible sound settings in iTunes under "import" section in MP3 format *That an iPod G5 can play?* in terms of kbps and sample rate. 12' Powerbook G4 1.5Ghz 768MB RAM Mac OS X (10.4.4) iPod G5 and iPod G2
-
AP3 Performance with RAW files on Mac Mini
Here is a quick summary of my specs: Aperture 3.0.3 on Mac Mini Core 2 Duo 2.0 Ghz with 4GB RAM Aperture Library - ~ 200GB managed library The issue: I have recently started shooting more RAW than JPEG and when I am simply previewing the files in a w
-
I have a 2007 Mac Book Pro. I drained the battery...
...and the power cord light is green meaning it isn't recharging, it has been about 72 hours. When do you have to replace these batteries and do they only come from the Apple Store?