How to display JCO.Table in jsp, CRM ISA
Hi,
I have got a JCO.Table with results from teh CRM system and now want to display this in ISA.
Is there any templates, or code, that could guide me as to how to transfer the table to jsp.
thanks,
sunil
Hi Sunil,
The code from bean class is here,
public void listDetails(String releaseGroup,String releaseCode)
throws Exception
try
if (mRepository == null )
System.out.println("NuLL");
try
IFunctionTemplate ft=mRepository.getFunctionTemplate("BAPI_REQUISITION_GETITEMSREL");
myFunction=ft.getFunction();
catch (Exception ex)
throw new Exception(ex + "Problem retrieving JCO.Function object.");
if (myFunction == null)
System.exit(1);
mConnection.execute(myFunction);
JCO.ParameterList input = myFunction.getImportParameterList();
input.setValue(releaseGroup,"REL_GROUP");
input.setValue(releaseCode,"REL_CODE");
input.setValue(releaseFlag,"ITEMS_FOR_RELEASE");
System.out.println("Imported");
catch (Exception ex)
ex.printStackTrace();
System.exit(1);
mConnection.execute(myFunction);
JCO.Table codes = null;
codes =myFunction.getTableParameterList().getTable("REQUISITION_ITEMS");
size =codes.getNumRows();
if (size == 0)
System.out.println("No value matches the selection cretaria");
purchaseRequisitionNo = new String[size];
item = new String[size];
requestorName = new String[size];
description = new String[size];
creatorName = new String[size];
purchaseRequisitionDate = new String[size];
plant = new String[size];
// getter methods
public int getSize() { return size; }
public String getPurchaseRequisitionNo(int i){return purchaseRequisitionNo<i>; }
public String getItem(int i) { return item<i>; }
public String getDescription(int i) { return description<i>; }
public String getCreatorName(int i) { return creatorName<i>; }
public String getPurchaseRequisitionDate(int i)
{return purchaseRequisitionDate<i>; }
public String getplant(int i) { return plant<i>; }
Now in the JSP page get the number of entries in the table and try to get row by row from the bean class using the row number.
<%
int count = PR.getSize() ; // This method will return the number of
rows in the table.
for ( int i = 0; i < count ; i++ ) {
%>
<TR><TD ALIGN = "center"><%= PR.getPurchaseRequisitionNo(i) %> </TD>
<TD ALIGN = "center"><%= PR.getItem(i) %> </TD>
<TD ALIGN = "center"><%= PR.getDescription(i) %></TD>
<TD ALIGN = "center"><%= PR.getCreatorName(i)%> </TD>
<TD ALIGN = "center"><%= PR.getPurchaseRequisitionDate(i)%> </TD>
<TD ALIGN = "center"><%= PR.getplant(i)%> </TD>
<% } %>
Hope this is a simple way to get your requirement.
Let me know if this does not help you.
Thanks
Kathirvel.
Similar Messages
-
How to add a table layout in CRM Sales order?
dear all ,
anyone know how to add a table layout in CRM sales order customer tab that using the EEWB added?
can EEWB do this? i didn't find the appropriate business object......Hi , Swapna
is you mail address right? can not send out.
first , you should have added one field using EEWB , then to EEWB , find the extension , double click on the task, there you will find a "object list" on the right, the list will give you many many very important information , you should look through .
then double click on the "screen: ..........EEW......." , layout , there you will find the field you have added in . and you can draw anything you want there , then back to the screen flow , write you flow logic in PBO and PAI .
about the global data definition, again to the "object list", you will find a "Report source code: ......................TOP". in there ,you can define all you data .
another thing if you want to save your input field to database tables that you draw (not by EEWB added)
two ways:
1. write update table directly in PAI module .
2. you can use this BADI : ORDER_SAVE , this is when you save the order to trigger the save action. -
How to display a table control in a report
hi
how to display a table control in a reportcreate a screen in your report.
Call that screen in your report.
While designing your screen, use Table control creation wizard to create table control on that screen.
http://www.planetsap.com/online_pgm_main_page.htm -
How to display all tables residing in my database
i'm using 10g express edition.
i'm developing a .net application using oracle
i want display table infomation in a datagrid
for that i need to select tables fromthe database using the interface given by them
in that i found server name field.....what it actually means?
also how to create a new database in 10g and how to display all tables residing in the database?
pls help me
thanking u
chaitanyauser11359516 wrote:
i want display table infomation in a datagrid
select owner||'.'||table_name owner_table_name
from all_tables
user11359516 wrote:in that i found server name field.....what it actually means?i'm not sute what you mean by server name field? if you refer to table column name see this code below:
select owner||'.'||table_name||'.'||column_name table_column_name,
decode(data_type,'VARCHAR',data_type||'('||to_char(data_length)||')',
'VARCHAR2',data_type||'('||to_char(data_length)||')',
'NUMBER',decode(data_scale,0,data_type||'('||to_char(data_precision)||')',
null,data_type,
data_type||'('||to_char(data_precision)||','||to_char(data_scale)||')'),
data_type) type,
nullable
from all_tab_cols
order by table_name, column_id -
How to display multiple tables from database using netbeans swing gui
plz reply asap on how to display multiple tables from database using netbeans swing gui into the same project
Layered Pane with JTables or you can easily to it with a little scripting and HTML.
plzzzzzzzzzzzzzzzzz, do not use SMS speak when posting. -
How to display smartforms table lines useing different background colour
Hi all:
How to display smartforms table lines useing different background colour .
for example:
line1:green
line2:red
line3:green
line4:red
line5:green
line6:red
line7:green
line8:red
Any help is highly appreciated!!
启明星Hi,
Create a two lines one for header and second for data in the table.
1)In table painter we can find the pencil mark.
2)select the pencil mark
3)now select the line which you need to shade
4) now select the shading colour in the table painter and the provide the resolution up to 100% and select table pattrn for that line.
5) Now you can use this for the header now only the header gets shaded and the remaining gets unshaded.
reward points if useful
Thanks and Regards,
Nishant -
How to display multi tables side-by-side
Hi All,
I need some help on BI Publisher layout.
I'd like to display two tables side-by-side in one page.
Though I can put the tables correctly in Template Builder,
the tables are joined into one table in generated Report(Preview).
- Template Builder
+[Page1]+---------------------------------------------- +
| |
| [Table1] [Table2] |
| ------------------ ------------------ |
| |EMPNO | |DNAME | |
| ------------------ ------------------ |
| | <EMPNO> | | <DNAME> | |
| ------------------ ------------------ |
| |
- Report Preview
+[Page1]+---------------------------------------------- +
| |
| [Table1] |
| ------------------ |
| |EMPNO | |
| ------------------ |
| | 1234| |
| | 2345| |
| | 3456| |
| | 4567| |
| | :| |
| | :| |
| ------------------ |
| |DNAME | |
| ------------------ |
| | ACCOUNTING| |
| | RESEARCH| |
| | SALES| |
| | OPERATIONS| |
| ------------------ |
| |
Does anyone know how to display two tables side-by-side in the
same page?
Thanks in advance.Thanks for your quick reply.
I can display side-by-side layout as I had expected!
Thanks. -
How to Create Track in NWDI for CRM ISA 5.0
hi
can anyone please suggest me how to create track in NWDI for CRM ISA 5.0 for different archive files which consists of source files like(ex: SAP-SHRAPP.SCA,SAP-SHRWEB.SCA, e.t.c.) and as well as empty source files like(ex: SAP-SHRAPP.SCA,SAP-SHRWEB.SCA, e.t.c.).
As far as i know SAP does not deliver sources for SCs SAP-JEE,SAP_BUILDT and SAP_JTECHS so we cant have them as "Developed Software Components" when we eg:want to modify the SCs SAP-SHRAPP.SCA or CUSTCRMPRJ.SCA.
here what i want to know is depending on which SCs we actually want to modify, based on that our track want to be Configured differently.
My question is how to configure the Track in NWDI for this kind of scenario.
If the source is not given and only required software components are given then how to create track in NWDI. for example in CRM ISA 5.0
Regards,
Chandra.SAP documentation is there in service market place for NWDI setup under netweaver. If you dont find document post your email id, I will send you the document.
regards,
Laxman -
How to display array values in jsp of screen flows
Hi,
can u please help me .
I am having one array variable i have stored all the values but i have to display that in JSP page .how to display
Edited by: user12171025 on Nov 4, 2009 11:11 PMHi,
I think that its necessaries to use AJaX.
I am implemeting something like that.
I have a input text that works like a filter and depends on what my user types in input text I populate my table with some information.
In order to do that, I put in my JSP a div with an Id and I used ajax, like that:
function ajaxFunction()
var xmlhttp;
if (window.XMLHttpRequest)
xmlhttp=new XMLHttpRequest();
else if (window.ActiveXObject)
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
else
alert("Your browser does not support XMLHTTP!");
xmlhttp.onreadystatechange=function()
if( xmlhttp.readyState==4 )
document.getElementById("tabelaResponsaveis").innerHTML = xmlhttp.responseText;
var resp = "<f:invokeUrl var='solicitacao' methodName='getResponsaveis'/>";
xmlhttp.open("POST",resp,true);
xmlhttp.send(null);
getResponsaveis is a method inside my BPM that returns a HTML code (the table HTML code with all the information that I need to show.
I Hope to help
Thanks Marcos -
How to display a table data on Screen having a Table control
Hi ,
I am new to ABAP.I would like to display a table data (Eg: ZDemo) on a screen at run time.I have defined a Table control in screen. Now I want to populate data from ZDemo to table control.How can I do that?Please help moving forward in this regard.Hi Gayatri,
After creating table control do the following steps.
1. In the flow logic section write the following code:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
LOOP AT I_LIKP WITH CONTROL LIKP_DATA CURSOR LIKP_DATA-CURRENT_LINE.
MODULE ASSIGN_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0200.
LOOP AT I_LIKP.
ENDLOOP.
I_LIKP is the internal table which is used to display table data in the table control.
2. In Process Before Output, in the module STATUS_0200 write the following code:
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
In Process After Input, in the module USER_COMMAND_0200 write the following code:
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
In Process Before Output and in the module ASSIGN_DATA which is there inside the loop write the following code:
MOVE-CORRESPONDING I_LIKP TO LIKP.
So, Totally your flow logic code should be like this.
TABLES: LIKP, LIPS.
DATA: BEGIN OF I_LIKP OCCURS 0,
VBELN LIKE LIKP-VBELN,
ERNAM LIKE LIKP-ERNAM,
ERZET LIKE LIKP-ERZET,
ERDAT LIKE LIKP-ERDAT,
MARK TYPE C VALUE 'X',
END OF I_LIKP,
BEGIN OF I_LIPS OCCURS 0,
VBELN LIKE LIPS-VBELN,
POSNR LIKE LIPS-POSNR,
WERKS LIKE LIPS-WERKS,
LGORT LIKE LIPS-LGORT,
END OF I_LIPS,
FILL TYPE I.
CONTROLS: LIKP_DATA TYPE TABLEVIEW USING SCREEN 200,
LIPS_DATA TYPE TABLEVIEW USING SCREEN 300.
DATA: COLS LIKE LINE OF LIKP_DATA-COLS.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'LIKP'.
SELECT VBELN
ERNAM
ERZET
ERDAT
FROM LIKP
INTO TABLE I_LIKP
WHERE VBELN = LIKP-VBELN.
IF I_LIKP[] IS INITIAL.
CALL SCREEN 200.
ENDIF.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module assign_data OUTPUT
text
MODULE ASSIGN_DATA OUTPUT.
MOVE-CORRESPONDING I_LIKP TO LIKP.
ENDMODULE. " assign_data OUTPUT
*& Module STATUS_0200 OUTPUT
text
MODULE STATUS_0200 OUTPUT.
DESCRIBE TABLE I_LIKP LINES FILL.
LIKP_DATA-LINES = FILL.
ENDMODULE. " STATUS_0200 OUTPUT
*& Module USER_COMMAND_0200 INPUT
text
MODULE USER_COMMAND_0200 INPUT.
CASE SY-UCOMM.
WHEN 'LIPS'.
READ TABLE I_LIKP WITH KEY MARK = 'X'.
SELECT VBELN
POSNR
WERKS
LGORT
FROM LIPS
INTO TABLE I_LIPS
WHERE VBELN = I_LIKP-VBELN.
IF SY-SUBRC = 0.
CALL SCREEN 200.
ENDIF.
WHEN 'BACK'.
SET SCREEN 200.
ENDCASE.
ENDMODULE. " USER_COMMAND_0200 INPUT
Save and Activate the program along with the screen in which you have included table control.
Hope this will help you.
Regards
Haritha. -
How to display text file in JSP?
Hi,
I am new to servlet/JSP/java programming.
I have been able to download a file using ftp. I dont know who to display it in JSP.
Here is my code. Any help will be appreciated...
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="java.net.*" %>
<%@ page import="java.io.*" %>
<%@ page import="com.dmhistory.*" %>
<html>
<head>
<title>Untitled</title>
</head>
<body>
<%
byte[] bytes = new byte[4096];
URL theUrl = new URL("ftp://user:passwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
BufferedInputStream in = new BufferedInputStream(theUrl.openStream());
BufferedOutputStream outstream = new BufferedOutputStream(new FileOutputStream( new File( "D:/temp/log.txt" )));
int pos = in.read( bytes );
while ( pos != -1) {
outstream.write( bytes, 0, pos );
pos = in.read( bytes );
%>
<%
in.close();
%>
DONE!!!
</body>
</html>
How can i display this downloaded file in the browser?
I want to display it in the original format i.e which new line and carriage returns...line by line..
Thanks,Hi,
I finally go it to display. but now I have new problem. The browser shows the text without the /n/r.
But when I view the source using 'view->source', if see that the text has got proper format with newline and carriage returns.
Any ideas how to display it correctly in the browser?
<%
URL theUrl = new URL("ftp://user:pwd@host/migr/Movers_for_Ora8/BG/logs/FLD-PAC3-20020311.log");
//URL theUrl = new URL("ftp://dbcmaint:[email protected]/migr/Movers_for_Ora8/SNP/logs/SNP-PAC2-20020314.log");
URLConnection uc = theUrl.openConnection();
InputStream content = uc.getInputStream();
BufferedInputStream in = new BufferedInputStream (content);
LineNumberReader lnr = new LineNumberReader (new InputStreamReader (in));
String tempStr = "";
String str = "";
while ((tempStr = lnr.readLine()) != null) {
str += (tempStr);
%>
<%=tempStr%>
<%tempStr = "";
%>
<%
in.close();
lnr.close();
%>
Thanks -
How to read JCO Table parameter
Hello
I am calling Java function from ABAP side (JCO outbound call). Right now, in the java program I can get the import parameter data, but not the table parameter data. I am using the famous example5.java and the ABAP code is like below:
PARAMETERS: requtext LIKE sy-lisel.
DATA: echotext LIKE sy-lisel,
resptext LIKE sy-lisel,
rfctest TYPE TABLE OF rfctest,
wa_rfctest TYPE rfctest.
wa_rfctest-rfcdata1 = requtext.
wa_rfctest-rfcdata2 = 'Hello World'.
APPEND wa_rfctest TO rfctest.
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION 'JCO'
EXPORTING
requtext = requtext
IMPORTING
echotext = echotext
resptext = resptext
TABLES
rfctest = rfctest.
In the java side it is defined as:
JCO.MetaData fmeta = new JCO.MetaData("STFC_CONNECTION");
fmeta.addInfo("REQUTEXT", JCO.TYPE_CHAR, 16, 0, 0, JCO.IMPORT_PARAMETER, null);
fmeta.addInfo("ECHOTEXT", JCO.TYPE_CHAR, 255, 255, 0, JCO.EXPORT_PARAMETER, null);
fmeta.addInfo("RESPTEXT", JCO.TYPE_CHAR, 255, 512, 0, JCO.EXPORT_PARAMETER, null);
fmeta.addInfo("RFCTABLE", JCO.TYPE_TABLE, 144, 0, 0, 0, "RFCTEST");
Also RFCTEST structure is defined ( omitted here)
In the handleRequest(JCO.Function function), the following code:
if (function.getName().equals("STFC_CONNECTION")) {
output.setValue(input.getString("REQUTEXT"),"ECHOTEXT");
JCO.Table tab = tables.getTable("RFCTABLE");
System.out.println("RFCTABLE rows = " + tables.getTable("RFCTABLE").getNumRows());
I always get 0 rows in the table RFCTABLE. I checked the trace file in the Java side, I can see the table data are indeed passed to Java side, the JCO just can't pass the data through the API.
Any one has idea of it?
Thank you very much.
JaysonAndre
I have read the function Structure of J_1B_NFE_XML_OUT and i don't find the TableParameter or ExportParameter for this FM.
How do you actually get your return parameter?
I don't think here the table type is JCO.Table.
And i don't know how to use this Function . So i can't test my assumption.
JCO.Table tab = function.getImportParameterList().getTable( "XML_ITEM_TAB" );
normally people use the JCO.Table tab=function.getTableParameterList().getTable();
But XML_ITEM_TAB is not a Table parameter.
I don't know if table type from importParmeter can convert themself like that.But you still can try it.
hope that be helpful! -
How to display internal table content to table control
hi experts
I am very new to dialog programming
I have the Internal table in a report program containing data that needs to be displayed in table control.
Can you explain in step by step.
Thanks in advance.
Regards
RajaramHi Raja
Dialog-driven programs, or any program started using a transaction code, are known as SAP transactions, or just transactions. The term "transaction" is used in several different contexts in the IT world. In OLTP (Online Transaction Processing), where several users are working in one system in dialog mode, the term "transaction" stands for a user request. In conjunction with database updates, it means a change in state in the database.
Programs with type M can only be started using a transaction code, in which an initial screen is defined. Programs with type 1 can be started either using a transaction code, or by entering the program name in one of the transactions SE38 or SA38. Screens call dialog modules in the associated ABAP program from their flow logic. Type M programs serve principally as containers for dialog modules, and are therefore known as module pools. Type 1 programs, or function modules can also switch to dialog mode by calling screens using the CALL SCREEN statement. The program code of the corresponding executable program or function pool must then contain the corresponding dialog modules.
Programs that are partially or wholly dialog-driven cannot be executed in the background. They are therefore sometimes referred to as dialog programs.
<u><b>Transaction code</b></u>
The transaction code starts a screen sequence. You create transaction codes in the Repository Browser in the ABAP Workbench or using Transaction SE93. A transaction code is linked to an ABAP program and an initial screen. As well as using a transaction code, you can start a screen sequence from any ABAP program using the CALL SCREEN statement.
<u><b>Screens</b></u>
Each dialog in an SAP system is controlled by one or more screens. These screens consist of a screen mask and its flow logic. Since the flow logic influences the program flow, screens are sometimes referred to as "dynamic programs". You create screens using the Screen Painter in the ABAP Workbench. Each screen belongs to an ABAP program.
The screen has a layout that determines the positions of input/output fields and other graphical elements such as checkboxes and radio buttons. The flow logic consists of two parts:
Process Before Output (PBO). This defines the processing that takes place before the screen is displayed.
Process After Input (PAI). This defines the processing that takes place after the user has chosen a function on the screen.
All of the screens that you call within an ABAP program must belong to that program. The screens belonging to a program are numbered. For each screen, the system stores the number of the screen which is normally displayed next. This screen sequence can be either linear or cyclic. From within a screen chain, you can even call another screen chain and, after processing it, return to the original chain. You can also override the statically-defined next screen from within the dialog modules of the ABAP program.
<u><b>GUI status</b></u>
Each screen has a GUI status. This controls the menu bars, standard toolbar, and application toolbar, with which the user can choose functions in the application. Like screens, GUI statuses are independent components of an ABAP program. You create them in the ABAP Workbench using the Menu Painter.
<b><u>ABAP Program</u></b>
Each screen and GUI status in the R/3 System belongs to one ABAP program. The ABAP program contains the dialog modules that are called by the screen flow logic, and also process the user input from the GUI status. ABAP programs that use screens are also known as dialog programs. In a module pool (type M program); the first processing block to be called is always a dialog module. However, you can also use screens in other ABAP programs, such as executable programs or function modules. The first processing block is then called differently; for example, by the runtime environment or a procedure call. The screen sequence is then started using the CALL SCREEN statement.
Dialog modules are split into PBO modules and PAI modules. Dialog modules called in the PBO event are used to prepare the screen, for example by setting context-specific field contents or by suppressing fields from the display that are not needed. Dialog modules called in the PAI event are used to check the user input and to trigger appropriate dialog steps, such as the update task.
<b><u>Passing Data Between ABAP Programs and Screens</u></b>
How are fields from ABAP programs displayed on the screen? And how is user input on the screen passed back to the ABAP program? Unlike in list programming, you cannot write field data to the screen using the WRITE statement. Instead, the system transfers the data by comparing the names of screen fields with the names of the ABAP fields in the program. If it finds a pair of matching names, the data is transferred between the screen and the ABAP program. This happens immediately before and immediately after displaying the screen.
<u><b>
Field Attributes</b></u>
For all screen fields of a dialog screen, field attributes are defined in the Screen Painter. If a field name in the screen corresponds to the name of an ABAP Dictionary field, the system automatically establishes a reference between these two fields. Thus, a large number of field attributes for the screen are automatically copied from the ABAP Dictionary. The field attributes together with data element and domain of the assigned Dictionary field form the basis for the standard functions the screen executes in a dialog (automatic format check for screen fields, automatic value range check, online help, and so on).
<u><b>Error Dialogs</b></u>
Another task of the screen processor is to conduct error dialogs. Checking the input data is carried out either automatically using check tables of the ABAP Dictionary or by the ABAP program itself. The screen processor includes the error message into the received screen and returns the screen to the user. The message may be context-sensitive, that is, the system replaces placeholders in the message text with current field contents. In addition, only fields whose contents is related to the error and for which a correction may solve the error can accept input. See also Messages on Screens.
<b>
<u>Data Consistency</b></u>
To keep data consistent within complex applications, ABAP offers techniques for optimizing database updates that operate independent of the underlying database and correspond to the special requests of dialog programming. See also Programming Database Updates.
TRANSACTION CODES
MENU PAINTER : SE 41.
SCREEN PAINTER : SE 51 .
BOTH : SE 80 .
 ONLY EXISTING PROGRAMS CAN BE VIEWED IN SE 41 , SO USE SE 38 .
CONCEPT :
STEPS :
1. GIVE TRANSACTION CODE SE 38 , CREATE A REPORT NAMED
" ZVRPRDIALOGTEST2 " . SAVE , CHECK , ACTIVATE IT .
2. THEN GIVE CODE SE 51. GIVE SAME PROGRAM NAME AS SE38 .
GIVE SCREEN NUMBER , PRESS CREATE .
3. GIVE SHORT DESCRIPTION . THEN CLICK ELEMENT LIST .
4. THE SCREEN COMES , TYPE " OKCODE " .
5. CLICK FLOW LOGIC , THE SCREEN COMES .
6. one screen will come.
7. SAVE . CHECK , ACTIVATE .
8. CLICK LAYOUT . SCREN PAINTER SCREEN COMES .
9. PRESS " F6 " . TYPE TABLE NAME , PRESS ENTER . THE SCREEN COMES .
10 . TO SELECT THE DESIRED FIELDS , CLICK THE " TO SELECT " AREA IN
EACH ROW , PRESS ENTER .
11 . AFTER CLICKING , PRESS ENTER .
12. THE FINAL SELECTION WIL COME
13 . GIVE THE NESSARY BUTTONS IN THE SCREEN PAINTER .
14 . DOUBLE CLICK IN EACH BUTTON GIVE LABLE , FUNCTION CODE .
15 . THE FINAL SCREEN WIL COME
16 . SAVE . CHECK .ACTIVATE. TO CHECK SCREEN PRESS F8.
17 . TO WRITE CODING : PRESS FLOW LOGIG .
18 . THE SCREEN COMES .
19 . DOUBLE CLICK FIRST EVENT ( MODULE STATUS _ 3000 ).
20 . PBO MODULE WINDOW COMES , PRESS TICK MARK .
21 . EDITOR COMES . SAVE .
TYPING PROGRAM IN THE EDITOR
Steps :
THE EDITOR WILL BE AS SHOWN ABOVE , NOW TYPE THE FOLLOWING CODE .
NOTE :
BEFORE TYPING CODE : TAKE COMMENTS FROM , THEN TYPE LIKE :
SET PF_STATUS ' PRSTATUS '
SET TITLEBAR 'PRTITLE' .
*& Module STATUS_3000 OUTPUT
* text
TABLES : ZVTIKFS.
DATA BEGIN OF INT_TAB OCCURS 0.
INCLUDE STRUCTURE ZVTIKFS.
DATA END OF INT_TAB.
DATA OKCODE LIKE SY-UCOMM.
DATA INDEX TYPE I VALUE 1.
* MODULE STATUS_3000 OUTPUT *
MODULE STATUS_3000 OUTPUT.
SET PF-STATUS 'PRSTATUS'. "COMMENTS TOOK
SET TITLEBAR 'PRTITLE1'. " COMMENTS TOOK
SELECT * FROM ZVTIKFS INTO TABLE INT_TAB.
READ TABLE INT_TAB INDEX INDEX.
ZVTIKFS-NAME = INT_TAB-NAME.
ZVTIKFS-ADDRESS = INT_TAB-ADDRESS.
ZVTIKFS-PHONE = INT_TAB-PHONE.
ZVTIKFS-AREA = INT_TAB-AREA.
ENDMODULE. " STATUS_3000 OUTPUT
*& Module USER_COMMAND_3000 INPUT
* text
MODULE USER_COMMAND_3000 INPUT.
CASE OKCODE.
WHEN 'INS'.
INSERT ZVTIKFS.
WHEN 'DEL'.
DELETE ZVTIKFS.
WHEN 'PRE'.
INDEX = INDEX - 1.
IF INDEX < 1.
INDEX = 1.
ENDIF.
WHEN 'NEX'.
INDEX = INDEX + 1.
IF INDEX > SY-DBCNT.
INDEX = SY-DBCNT.
ENDIF.
WHEN 'EXI'.
LEAVE PROGRAM.
ENDCASE.
ENDMODULE. " USER_COMMAND_3000 INPUT
NEXT :
SAVE , CHECK , ACTIVATE .
TO COME TO DESIGN MENU
<b>STEPS :</b>
1 . TRANSACTION CODE : SE 80 . OBJECT NAVIGATOR WINDOW COMES .
NOTE : IF YOUR REOORT DOSENOT COME DO THE FOLLOWING PROCESS
<u><b>Vey useful link:</b></u>http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
<u><b>Other links:</b></u>
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2d40358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/10/e7dbde82ba11d295a40000e8353423/content.htm
<u><b>For Screens</b></u>
http://help.sap.com/saphelp_47x200/helpdata/en/e4/2adbef449911d1949c0000e8353423/content.htm
<u><b>Screen elements</b></u>
http://help.sap.com/saphelp_47x200/helpdata/en/47/e07f5f2b9911d2954f0000e8353423/content.htm
<u><b>Processing Screens</b></u>
http://help.sap.com/saphelp_47x200/helpdata/en/47/e07f682b9911d2954f0000e8353423/content.htm
<u><b>Complex Screen elements</b></u>
http://help.sap.com/saphelp_47x200/helpdata/en/fd/02da2a61d811d295750000e8353423/content.htm
<b><u>DIALOG Programming</u></b>
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://www.allsaplinks.com/dialog_programming.html
http://sap.mis.cmich.edu/sap-abap/abap09/
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://sap.mis.cmich.edu/abap-00/
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com
http://www.sapgenie.com/abap/example_code.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://www.allsaplinks.com/dialog_programming.html
http://www.sapbrain.com/TUTORIALS/default.html
http://www.sappoint.com/abap/spmp.pdf
http://sappoint.com/abap.html
http://www.sap-img.com/abap.htm
http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/abap/
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sap-img.com/
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.allsaplinks.com/dialog_programming.html
Reward all helpfull answers
Regards
Pavan -
How to display the table components that make up a structure?
Hi,
How does one display the table components that make up a structure?
I want to see the table fields that make up the structure EKBEZ.
Thx.
AndyHi
GOTO SE11 , type the structure name in DataType optional feild , you will get the feilds that make the structure
Kindly rewards the points accordignly
Regards,
Pranshu -
How To display a table that resides in the database via JFrame.
Hi,
I need to display the contents that present in the table that resides in my database.
Scenario:
Im having Main frame window, in that im having a button, while clicking that button a new JFrame should be opened & it should display all the rows & cols of dat table that resides in my DB.
I have no prob in opening a new JFrame during a button click, but i dont knw how to display table in the table format.
I tried JTable but i dont know how to pass the data into the JTable.
Kindly help me out!!!JTable relies on a TableModel to deliver data. You have several ways of providing this data:
- Read it into either a Vector of Vectors (list of rows containing list of columns) or an Object[][] and create the JTable while passing the data.
- Create a javax.swing.table.DefaultTableModel, pass it to the JTable as a model, configure it and call addRow() in order to add rows.
- Create a custom table model class; see javax.swing.table.AbstractTableModel for a convenient base class
Maybe you are looking for
-
IOS 8 Problem and Enter recovery mode
I try to install my ios 8, then suddenly my iPhone goes to recovery mode and I cant exit the recovery mode instead of that iTunes want to restore my iPhone. I don't want to lose all my document on the iPhone. Need Help here please Your Help and Your
-
BAPI_SALESORDER_CHANGE modify partner item level
Hi all, i'm trying to modify a partner number, but i want to modify it only at item level, so the same partner in the header should not be changed. This is my code but it doesn't work DATA: vb LIKE bapivbeln-vbeln. DATA: cl LIKE bapisdh1x. DATA: rt T
-
Cannot install Crystal Reports 2011
I tried to install Crystal Reports 2011. I followed the steps suggested by a SAP contact person and when I tried to run set up file, I am getting the following error: Install cannot proceed, Unalbe to install a product with a higher version over a
-
Setting the Primary External Editor in LR4
How can I set the primary External Editor in LR4? I recently upgraded to CS5.5, then uninstalled CS5 and now Lightroom thinks it should use CS4 which is not longer installed. I've unstalled and reinstalled LR4 and nothing changed. I deleted the p
-
I have Ipad 2, is there another program that will work like Adobe that works with Ipad?
I have a Ipad2 and was wondering if there is another program out there that works like adobe and adobe flash with the Ipad2?