Please advice!!! Its URGENT
Hi Friends ,
Once again i need your expert opinion . I am working on a report for capacity planning by work center . I need to know which table contains the following fields in the structure RC65D . If anyone worked before with these fields . Your input will be greatly appreciated .I have already done a SQL trace using CM01 transaction and digged into where used list in the structure.
Thanks again ,
Structure Name Field
RC65D - BED_VERUR [Pegged Requirement Qty ]
RC65D - BED_MENGE [Pegged Requirement]
RC65D - MATNR
RC65D - BEDARF [Requirements]
RC65D - FSAVD
Hello Hari,
Check this Tables.
BED_VERUR is the Prod. Order Number
AFIH Maintenance order header
AUFNR Order Number
AFKO Order header data PP orders
AUFNR Order Number
AFPO Order item
AUFNR Order Number
AFRC Incorrect cost calculations from confirmations
AUFNR Order Number
If useful reward.
Vasanth
Similar Messages
-
it is only wokring when i only assign value to sub1 variableassign
<html>
<body>
<%@ page language="java" import="java.sql.*" %>
<%
String[] list=request.getParameterValues("list");
// String list=request.getParameter("list");
int i;
String sub1;
for(i=0;i<list.length;i++)
try
sub1=list;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:dsn1","","");
Statement stmt=con.createStatement();
stmt.execute("delete from mes where sub='"+sub1+"'");
out.println(sub1);
stmt.close();
con.close();
catch(Exception e)
{out.println(e);}
%>
Click here
</body>
</html>Doublepost: http://forum.java.sun.com/thread.jspa?threadID=5192841
Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5192927
Like I said in your former topic: just debug it. Run the debugger or put some simple System.out.println() lines to check if the array has a length, if the array elements are not null, if the final SQL statement is correct, etcetera.
By the way, with putting pressure by shouting "please reply its urgent" you don't gain that much respect from our side. Some will refuse to reply. Urgency is your issue, not ours. -
Sql Query . Please help its urgent.
Suppose in table EMP there are 2 columns (Roll_no and Name)
Roll NO Name
00001 A
00002 B
00010 X
My requirement is to trunc preceding Zero's. For ex : for Roll no: 00001 the output should be 1 and for 00002 --> 2 .
Please help its very urgent.try this
select
to_number(roll_no) roll_no,
name
from
emp;
Regards
Singh -
Failed to initialize the orb--please reply its urgent
hi im using a stand alone java application to access a jndi data source configured on websphere 6.1
im getting the following error
failed to initialize the ORB...
most of the solutions i got suggest to change from sun jdk to ibm jdk.BUT BUT how do we do that and what are the steps to be followed.
he code im using is given below:
//WebsphereJNDI.java
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.naming.*;
import javax.rmi.*;
public class WebSphereJNDI
private String websphere_server;
private String jndi_datasource;
private String sql_query;
WebSphereJNDI(String serverpath, String jndiname, String query)
websphere_server = serverpath;
jndi_datasource = jndiname;
sql_query = query;
public ResultSet get_data() throws Exception
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, websphere_server);
InitialContext ctx = new InitialContext(env);
DataSource ds = (DataSource) ctx.lookup(jndi_datasource);
Connection conn = ds.getConnection();
Statement stm = conn.createStatement();
ResultSet res = stm.executeQuery(sql_query);
// moving cursor to first row
res.next();
return res;
// ResultSetTester.java
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.naming.*;
import javax.rmi.*;
public class ResultSetTester {
public static void main(String[] args) throws Exception {
WebSphereJNDI test = new WebSphereJNDI(
"http://hostname:port no.", "jdbc/mydatasource",
"SELECT * FROM pubs.dbo.authors");
System.out.println(dump_data(test.get_data()));
public static String dump_data(java.sql.ResultSet rs)
throws Exception {
int rowCount = 0;
String result = "";
result += "<P ALIGN='center'><TABLE BORDER=1>";
ResultSetMetaData rsmd = rs.getMetaData();
int columnCount = rsmd.getColumnCount();
// table header
result += "<TR>";
for (int i = 0; i < columnCount; i++) {
result += "<TH>" +
rsmd.getColumnLabel(i + 1) + "</TH>";
result += "</TR>";
// the data
while (rs.next()) {
rowCount++;
result += "<TR>";
for (int i = 0; i < columnCount; i++) {
result += "<TD>" +
rs.getString(i + 1) + "</TD>";
result += "</TR>";
result += "</TABLE></P>";
return result;
Im an amateur...Please help its urgentThanks Anuj.
We use OSB apps (exported as jars only).
We place the jars in domain/lib to be available for all services in this domain.
Is there another place we can put our jars in it?? and how can we solve the problem of soa infra with using Spring 3.2 ??
Thanks in advance. -
Sql tuning advisor is timing out please hel its urgent
when i schedule sql tunning addvisor its timing out.
i trried ti increase the time limit then also its timming out
Please help me in resolving thisuser975118 wrote:
I came across this old forum while searching for advice on a similar issue.
I've got to ask, why are you so rude?
The reply:
This is a volunteer forum where paid professionals offer up their free time to assist others.
Do you honestly think you have a right to ask them to drop what they are doing and give urgent attention to your problem?
If your problem is truly urgent, file a Service Request (SR) with Oracle Support - that is what paid support is there for.
The question didn't justify this type of response. Where does the person ask you to drop what you are doing? This is just a post for assistance, how does it oblige you to interrupt your current work for a response? The "Do you honestly think you have the right" response is extremely overblown. I only comment because I see this frequently in database forums, someone asks a simple question and those holding knowledge to assist either reprimand the person or reply in the rudest way possible. If you want to help someone, just help them. If not, don't even reply, go about your business and don't make their day any tougher than it already is for no good reason at all.Thank you for your invaluable contribution to the forum. It is interesting that you think it is wrong to point out that someone is being rude and abusing the terms and conditions of these forums, yet you think there is nothing wrong with berating the forum volunteers for trying to discourage this unacceptable and abusive behavior?
I am not sure how you reconcile these illogical and contradictory opinions.
http://www.oracle.com/html/terms.html
>
4. Use of Community Services
Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle -
PLEASE HELP ITS URGENT (PROBLEM IN INCLUDE)
IF I EXECUTE IN 4.6C ITS NOT GIVIN NY ERROR BUT THE SAME CODE IN 6.0 IS GIVING ERROR
IF NOT ( ( text_flag = 'X' AND tcode_level > 0 ) OR
( text_flag_level0 = 'X' AND
tcode_level = 0 AND ) ).
ERROR IS:
Incorrect logical expression: "AND" or "OR" must be preceded by an
expression (e.g. a comparison).
PLZ HELP ME AS IT IS VERY URGENT.
THANX IN ADVANCEHi anit,
1. minor mistake
2. remove this AND in bold.
IF NOT ( ( text_flag = 'X' AND tcode_level > 0 ) OR
( text_flag_level0 = 'X' AND
tcode_level = 0 <b>AND</b> ) ).
regards,
amit m. -
Problem with client side printing, please help its urgent
hi ,
am using struts and jasper reports on my project, now i was having problem that whenever i try to print the report , the printer dialogue box was appearing on server machine, i want it on client end, how to solve this problem, please any one know help me, it was urgent,
my code was like this
JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");
JasperPrint jasperPrint = JasperFillManager.fillReport("c:/report/test.jasper"),parameters,con);
List l=jasperPrint.getPages();
if(l.size() != 0){
jasperPrint.setOrientation(JasperReport.ORIENTATION_PORTRAIT);
jasperPrint.setPageHeight(877);
jasperPrint.setPageWidth(963);
JasperPrintManager.printPages(jasperPrint,0,l.size()-1,true);
}thanks in advance,Double post.
-
Iphone 5 troubles, please help, its urgent!
I got this new iphone 5, but i wanted my music and photos to go on it from my ipod 4th generation, so i connected my ipod to my computer and itunes and backed it up, when i plugged in my iphone, its said to back it up (hoping my files would transfer like it intended it would, i did so) .. except it turned my iphone 5 into an ipod, they layout was the same, the settings were the same, please i need help and i want to see my iphone back to the way i had it when i got it earlier today. I've tried all the resets and it still won't work
Download the ipsw for your iphone, then open itunes and press shift (on windows) or option (on Mac), while holding that button click on restore, then you can selecte where to restore from, select the file you just downloaded, make sure is the latest version, and check if your phone is CDMA or GSM before downloading the file.
You might be able to find the ispw on google -
Please Help its Urgent ***POPUP at the time of MIGO Posting*****
Hi all,
Please help me on this issue,
I want to display one popup at the time of migo posting and that popup ask to user that " How much labels you wants to print?" and in next of that i want one text box or input field in that user inputs the number of labels he wants to print.
I have tried using various POPUP functions but i have not got any FM which fulfill my requirement so please help me on this issue?
Kind Regards
Sudarshan GaikwadThe standart POPUP* function modules seem to either give an option to output descriptive text, or ask for a dictionary based field as an input. As you want both in one popup you may need to write your own custom pop-up.
Create a function group with a Z function module and add a dialog screen with the required text and input field to this function group.
Take a look at function POPUP_GET_VALUES as an example - A custom written one could be a lot simpler.
Then call this function from your user exit.
Andrew -
and to randomly acces it...
If i read the file line by line using GZIPInputStream it takes lot of time...
My requirement is to pick some line (say 35000) randomly......
Please suggest any alternative.....use this code to unzip a .gzip file:
try {
// Open the compressed file
String inFilename = "infile.gzip";
GZIPInputStream in = new GZIPInputStream(new FileInputStream(inFilename));
// Open the output file
String outFilename = "outfile";
OutputStream out = new FileOutputStream(outFilename);
// Transfer bytes from the compressed file to the output file
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
// Close the file and stream
in.close();
out.close();
} catch (IOException e) {
} -
RegEx Error for Huge File .. Please help , Its Urgent
Hi all,
I am getting following exception,
does anyone know about it
java.lang.IndexOutOfBoundsException: No group 1
at java.util.regex.Matcher.group(Matcher.java:355)
at java.util.regex.Matcher.appendReplacement(Matcher.java:585)
at java.util.regex.Matcher.replaceFirst(Matcher.java:701)
at XSLT_OnlyJava.<init>(XSLT_OnlyJava.java:84)
at XSLT_OnlyJava.main(XSLT_OnlyJava.java:93)
Exception in thread "main"
I am parsing huge file with regex and replacing some part
Thanks,
Vinayaksorry for late
This is my code
text = contents.toString();
String regex = "<tu.*?/tu>";
Matcher matcher = Pattern.compile(regex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(text);
while(matcher.find()){
tuvSegment = matcher.group();
String segRegex = "<seg>.*?</seg>";
Matcher segMatcher = Pattern.compile(segRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
if(segMatcher.find()){
SegVal = segMatcher.group();
String ReplsegRegex = "<seg />";
Matcher ReplsegMatcher = Pattern.compile(ReplsegRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
text = ReplsegMatcher.replaceFirst(SegVal);
The text string contains teh .tmx file
Thanks,
Vinayak -
Java (JMX) vs WLST (Please Reply.. Its Urgent!)
HI,
I know that there are two ways to admin weblogic server. One way is by WLST scripts which we write in WLST console. Second way is by JMX which we write in JAVA language.
I know that java language gives more flexibility but still all the scripts present in my companies Weblogic servers are WLST scripts.
Can anyone tell me about all the benefits and advantages I can have if I change them to Java (JMX) code.
One of the Flexibility is that I can implement multithreading and start multiple AdminServer (in multiple domain) at same time.
Thanks
Nitish KumarDoublepost: http://forum.java.sun.com/thread.jspa?threadID=5192841
Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5192927
Like I said in your former topic: just debug it. Run the debugger or put some simple System.out.println() lines to check if the array has a length, if the array elements are not null, if the final SQL statement is correct, etcetera.
By the way, with putting pressure by shouting "please reply its urgent" you don't gain that much respect from our side. Some will refuse to reply. Urgency is your issue, not ours. -
Table control...? its urgent
Hi friends,
Can anyone gve me example table control program..
My requirement is I have to display blank table control.....but when user enetrs value.. and submits it should be added to the inetrnal table in my program please help......
Also if he wants to see the records in table control..which he enetered earlier the table should be displayed as populated..
Please help its urgent....points will be rewarded....Seet he following ex:
Created table control using wizard.
*& Module pool ZTEST_TBLCTRL
PROGRAM ZTEST_TBLCTRL.
***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'TC1'
*&SPWIZARD: DEFINITION OF DDIC-TABLE
TABLES: ZFG_SRNO, ZFIH0004.
*&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'TC1'
*TYPES: BEGIN OF T_TC1,
ZSRNO LIKE ZFG_SRNO-ZSRNO,
SCRNAME LIKE ZFIH0004-SCRNAME,
END OF T_TC1.
*TYPES: BEGIN OF T_TC1.
STRUCTURE ZFG_SRNO.
END OF T_TC1.
*&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'TC1'
*DATA: G_TC1_ITAB TYPE T_TC1 OCCURS 0 WITH HEADER LINE,
G_TC1_WA TYPE T_TC1. "work area
DATA: G_TC1_ITAB LIKE ZFG_SRNO OCCURS 0 WITH HEADER LINE,
G_TC1_WA LIKE G_TC1_ITAB. "work area
DATA: G_TC1_COPIED. "copy flag
*&SPWIZARD: DECLARATION OF TABLECONTROL 'TC1' ITSELF
CONTROLS: TC1 TYPE TABLEVIEW USING SCREEN 0100.
*&SPWIZARD: LINES OF TABLECONTROL 'TC1'
DATA: G_TC1_LINES LIKE SY-LOOPC.
DATA: OK_CODE LIKE SY-UCOMM,
S_CODE LIKE SY-UCOMM,
MARK.
DATA: T1(10).
*&SPWIZARD: OUTPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: COPY DDIC-TABLE TO ITAB
MODULE TC1_INIT OUTPUT.
IF G_TC1_COPIED IS INITIAL.
*&SPWIZARD: COPY DDIC-TABLE 'ZFG_SRNO'
*&SPWIZARD: INTO INTERNAL TABLE 'g_TC1_itab'
SELECT * FROM ZFG_SRNO
INTO CORRESPONDING FIELDS
OF TABLE G_TC1_ITAB.
G_TC1_COPIED = 'X'.
REFRESH CONTROL 'TC1' FROM SCREEN '0100'.
IF T1 <> SPACE.
G_TC1_ITAB-ZSRNO = T1.
CLEAR T1.
APPEND G_TC1_ITAB.
REFRESH CONTROL 'TC1' FROM SCREEN '0100'.
ENDIF.
*TC1-TOP_LINE = 1.
ENDIF.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MOVE ITAB TO DYNPRO
MODULE TC1_MOVE OUTPUT.
MOVE-CORRESPONDING G_TC1_WA TO ZFG_SRNO.
if sy-subrc ne 0.
*append G_TC1_WA to G_TC1_ITAB.
*endif.
READ TABLE G_TC1_ITAB INDEX TC1-CURRENT_LINE.
IF SY-SUBRC = 0.
G_TC1_WA-ZSRNO = G_TC1_ITAB-ZSRNO.
ENDIF.
MOVE-CORRESPONDING G_TC1_ITAB TO ZFG_SRNO.
REFRESH CONTROL 'TC1' FROM SCREEN '8001'.
tc1-lines = G_TC1_LINES + 100.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GET LINES OF TABLECONTROL
MODULE TC1_GET_LINES OUTPUT.
G_TC1_LINES = SY-LOOPC.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MODIFY TABLE
MODULE TC1_MODIFY INPUT.
*break-point.
MOVE-CORRESPONDING ZFG_SRNO TO G_TC1_ITAB.
MODIFY G_TC1_ITAB INDEX TC1-CURRENT_LINE.
G_TC1_COPIED = 'X'.
REFRESH CONTROL 'TC1' FROM SCREEN '8001'.
MOVE-CORRESPONDING ZFG_SRNO TO G_TC1_WA.
MODIFY G_TC1_ITAB
FROM G_TC1_WA
INDEX TC1-CURRENT_LINE.
G_TC1_COPIED = 'X'.
if sy-subrc ne 0.
append G_TC1_WA to G_TC1_ITAB.
endif.
*modify G_TC1_ITAB INDEX TC1-CURRENT_LINE.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'TC1'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: PROCESS USER COMMAND
MODULE TC1_USER_COMMAND INPUT.
OK_CODE = SY-UCOMM.
PERFORM USER_OK_TC USING 'TC1'
'G_TC1_ITAB'
'FLAG'
CHANGING OK_CODE.
SY-UCOMM = OK_CODE.
ENDMODULE.
INCLUDE TABLECONTROL_FORMS *
*& Form USER_OK_TC *
FORM USER_OK_TC USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME
CHANGING P_OK LIKE SY-UCOMM.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA: L_OK TYPE SY-UCOMM,
L_OFFSET TYPE I.
&SPWIZARD: END OF LOCAL DATA----
*&SPWIZARD: Table control specific operations *
*&SPWIZARD: evaluate TC name and operations *
SEARCH P_OK FOR P_TC_NAME.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
L_OFFSET = STRLEN( P_TC_NAME ) + 1.
L_OK = P_OK+L_OFFSET.
*&SPWIZARD: execute general and TC specific operations *
CASE L_OK.
WHEN 'INSR'. "insert row
PERFORM FCODE_INSERT_ROW USING P_TC_NAME
P_TABLE_NAME.
CLEAR P_OK.
WHEN 'DELE'. "delete row
PERFORM FCODE_DELETE_ROW USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
CLEAR P_OK.
WHEN 'P--' OR "top of list
'P-' OR "previous page
'P+' OR "next page
'P++'. "bottom of list
PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
L_OK.
CLEAR P_OK.
WHEN 'L--'. "total left
PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
WHEN 'L-'. "column left
PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
WHEN 'R+'. "column right
PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
WHEN 'R++'. "total right
PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
WHEN 'MARK'. "mark all filled lines
PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'DMRK'. "demark all filled lines
PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'SASCEND' OR
'SDESCEND'. "sort column
PERFORM FCODE_SORT_TC USING P_TC_NAME
l_ok.
ENDCASE.
ENDFORM. " USER_OK_TC
*& Form FCODE_INSERT_ROW *
FORM fcode_insert_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_LINES_NAME LIKE FELD-NAME.
DATA L_SELLINE LIKE SY-STEPL.
DATA L_LASTLINE TYPE I.
DATA L_LINE TYPE I.
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE CXTAB_CONTROL.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
ASSIGN (L_LINES_NAME) TO <LINES>.
*&SPWIZARD: get current line *
GET CURSOR LINE L_SELLINE.
IF SY-SUBRC <> 0. " append line to table
L_SELLINE = <TC>-LINES + 1.
*&SPWIZARD: set top line *
IF L_SELLINE > <LINES>.
<TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
ELSE.
<TC>-TOP_LINE = 1.
ENDIF.
ELSE. " insert line into table
L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
ENDIF.
*&SPWIZARD: set new cursor line *
L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
*&SPWIZARD: insert initial line *
INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
<TC>-LINES = <TC>-LINES + 1.
*&SPWIZARD: set cursor *
SET CURSOR LINE L_LINE.
ENDFORM. " FCODE_INSERT_ROW
*& Form FCODE_DELETE_ROW *
FORM fcode_delete_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: delete marked lines *
DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
IF <MARK_FIELD> = 'X'.
DELETE <TABLE> INDEX SYST-TABIX.
IF SY-SUBRC = 0.
<TC>-LINES = <TC>-LINES - 1.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " FCODE_DELETE_ROW
*& Form COMPUTE_SCROLLING_IN_TC
text
-->P_TC_NAME name of tablecontrol
-->P_OK ok code
FORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
P_OK.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TC_NEW_TOP_LINE TYPE I.
DATA L_TC_NAME LIKE FELD-NAME.
DATA L_TC_LINES_NAME LIKE FELD-NAME.
DATA L_TC_FIELD_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
ASSIGN (L_TC_LINES_NAME) TO <LINES>.
*&SPWIZARD: is no line filled? *
IF <TC>-LINES = 0.
*&SPWIZARD: yes, ... *
L_TC_NEW_TOP_LINE = 1.
ELSE.
*&SPWIZARD: no, ... *
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
ENTRY_ACT = <TC>-TOP_LINE
ENTRY_FROM = 1
ENTRY_TO = <TC>-LINES
LAST_PAGE_FULL = 'X'
LOOPS = <LINES>
OK_CODE = P_OK
OVERLAPPING = 'X'
IMPORTING
ENTRY_NEW = L_TC_NEW_TOP_LINE
EXCEPTIONS
NO_ENTRY_OR_PAGE_ACT = 01
NO_ENTRY_TO = 02
NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
ENDIF.
*&SPWIZARD: get actual tc and column *
GET CURSOR FIELD L_TC_FIELD_NAME
AREA L_TC_NAME.
IF SYST-SUBRC = 0.
IF L_TC_NAME = P_TC_NAME.
*&SPWIZARD: et actual column *
SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
ENDIF.
ENDIF.
*&SPWIZARD: set the new top line *
<TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
ENDFORM. " COMPUTE_SCROLLING_IN_TC
*& Form FCODE_TC_MARK_LINES
marks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
&SPWIZARD: EGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: mark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = 'X'.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
*& Form FCODE_TC_DEMARK_LINES
demarks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: demark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = SPACE.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
*& Module D20XX_INIT OUTPUT
text
MODULE D20XX_INIT OUTPUT.
*if screen-name = 'ZSRNO'.
SCREEN-INPUT = 0.
SCREEN-COLOR = 0.
MODIFY SCREEN.
endif.
ENDMODULE. " D20XX_INIT OUTPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
*CLEAR R1_REF.
DO 30 TIMES.
APPEND G_TC1_ITAB.
ENDDO.
DESCRIBE TABLE G_TC1_ITAB LINES TC1-LINES.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module TAB1_INIT OUTPUT
text
MODULE TAB1_INIT OUTPUT.
ENDMODULE. " TAB1_INIT OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module MESSAGE INPUT
text
MODULE MESSAGE INPUT.
OK_CODE = SY-UCOMM.
S_CODE = OK_CODE.
CLEAR OK_CODE.
if S_CODE = 'DELE'.
loop at G_TC1_ITAB.
if G_TC1_ITAB-scrname = 'X'.
delete g_tc1_itab.
endif.
endloop.
ELSEIF S_CODE = 'SAVE'.
G_TC1_WA-ZSRNO = T1.
MOVE-CORRESPONDING G_TC1_WA TO ZFG_SRNO.
REFRESH CONTROL 'TC1' FROM SCREEN '0100'.
ENDIF.
ENDMODULE. " MESSAGE INPUT
*& Module DELETE_RECORD INPUT
text
MODULE DELETE_RECORD INPUT.
IF MARK = 'X' AND S_CODE = 'DELE'.
DELETE TABLE G_TC1_ITAB FROM ZFG_SRNO.
DESCRIBE TABLE G_TC1_ITAB LINES TC1-LINES.
ENDIF.
ENDMODULE. " DELETE_RECORD INPUT
*********************Screen modules*********************
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC1'
MODULE TC1_INIT.
*&SPWIZARD: MODULE TC1_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC1_CHANGE_COL_ATTR.
LOOP AT G_TC1_ITAB
INTO G_TC1_WA
WITH CONTROL TC1
CURSOR TC1-CURRENT_LINE.
*&SPWIZARD: MODULE TC1_CHANGE_FIELD_ATTR
MODULE TC1_MOVE.
MODULE TAB1_INIT.
MODULE TC1_GET_LINES.
ENDLOOP.
MODULE D20XX_INIT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC1'
*BREAK POINT.
LOOP AT G_TC1_ITAB.
CHAIN.
FIELD ZFG_SRNO-ZSRNO.
MODULE TC1_MODIFY ON CHAIN-REQUEST.
MODULE TC1_MODIFY.
ENDCHAIN.
MODULE MESSAGE .
MODULE DELETE_RECORD.
ENDLOOP.
MODULE TC1_USER_COMMAND.
*&SPWIZARD: MODULE TC1_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC1_CHANGE_COL_ATTR.
MODULE USER_COMMAND_0100. -
Hi All,
I need help as this form is urgent.
I have two tables in first table an textfield with an addInstance and in the Second table, has an dropdown box with addInstance. Now when I entry the value in textfield those value should get in the dropdown.
I have use the below script in the textfield exit event. It works properly but when i enter in first two fields like item 1, item 2 those are displaying whereas if I delete item2 and rename as item 3, the dropdown values should be item1 and item3 but it shows item 1, item 2, item 3
for (i=0;i<100;i++)
xfa.resolveNode("xfa.form.form1.page2.Subform1.Table1.Row2["+i+"]").Calculation.addItem(th is.rawValue);
Please help its urgent
Thank youHi,
If you rewrite your code for the preOpen event then Reader will rebuild the drop down items when needed.
There is a example of the code required here, http://forums.adobe.com/message/4114895#4114895
Regards
Bruce -
Urgent...please advice.
I am wokring on ORA_FFI and WEBUTIL packages, but not yet reached the conclusion. Do you know any such Oracle Interfacing packages or stuff where in we can interface 10g Form with the .Net made dll.
Basically I have to build an interface which makes .net dll talk with our Oracle 10g Form.
dll will be on every client keeping into consideration the 3 tier architecture.
Some relevant documents or links will also help.
Please adviceHello,
if it's really urgent, then the first step should be to choose the correct forum
Forms
Regards
Marcus
I just saw that you cross posted it there already
Please advice as its urgent.
Edited by: Marwim on 29.03.2010 10:00 -
How to enable RFC and how to use it in Report..please tell its very urgent
Dear Techie's,
Please tell its very urgent..
How to enable RFC and how to use it in Report. ??
Virendrahi,
pls chk any of these links.
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
rgds
Anver
Maybe you are looking for
-
MSI Big Bang XPower Power won't post (d4 debug) (again!)
Specifications: MSI Big Bang XPower Mainboard Rosewill 1100W Bronze Edition GeForce 465 Fermi Corsair Dominator DDR3 1886 6 x 2GB RAM Intel i7-930 processr Issue: System powers up for about 30 seconds, the debug indicator gets to d4 (indicating prob
-
Camera doesn't work on Windows 8.1 on MacBook Pro
I have a MacBook Pro 15" 2.5GHz When I run Windows 8.1 Enterprise on BootCamp the webcam is not working properly, hardly at all, in fact. In all apps I tried (e.g. Skype) the image is "heavily shaking" (it looks as if each frame is taken with a diffe
-
Custom Auth. Object with Profile and role assignment not working
Hi, I have created custom Authorization Object with field ACTVT with allowed values - 01,02, 03. Now test it with custom program using AUTHORITY-CHECK OBJECT 'Z_AUTHORIZ' it is working fine and returning sy-subrc 12. At this point i have not created
-
How durable is the 7th Generation ipod nano screen against scratches?
Also has anyone tried Shield Skins screen and body protectors? Would Shield Skin be a good product for me?
-
Downloaded new numbers...can't open it
I took the advice of another user who told me to get rid of it on my dock and reopen from my launchpad...still isn't working..the colored ball keeps spinning. any other advice?