Plz chk
hi all
i m getting error in jdbc connection.
it is giving count incorrect error.
can any body help me i m in trouble from last 2 days.
it is very urgent
plzzzz
<%@ page session="false" %>
<html>
<body>
<body>
<%@ page language="java" import="java.sql.*" %>
<h3><font color ="#800080"><center><Entry Before Repairs</center></FONT></h3>
<BODY BGCOLOR="#B0C4DE">
<style type="text/css">
body, td, th {
font-family: verdana;
font-size:13pt;
font-color:#800080;
th {
text-align: center;
h1 {
font-size: 150%;
text-align: center;
</style>
<form action="data.jsp" method="POST" name="bef_rep3.jsp">
<table width="25%">
<tr>
<td width="12%"><font color="#800080"><h4>SNo.</h4></font</td>
<td width="18%">
<input type="TEXT" name="sno"/>
</td>
<td width="16"><font color="#800080"><h4>Nature</h4></font</td>
<td width="52">
<select name="nature">
<option value="">Laptop</option>
<option value="">PC</option>
<option value="">Printer</option>
<option value="">Monitor</option>
<option value="">Peripherals</option>
</select>
</td>
<tr>
<td width="18"><font color="#800080"><h4>Description</h4></font</td>
<td width="18">
<textarea cols="20" rows="5" name="desc" /></textarea>
</td>
<td width="78"><font color="#800080"><h4>Serial No.</h4></font</td>
<td width="68">
<input type="TEXT" name="ser_no" />
</td>
<tr>
<td width="78"><font color="#800080"><h4>Gatepass</h4></font</td>
<td width="68">
<input type="TEXT" name="gatepass" />
</td>
<td width="78"><font color="#800080"><h4>Problem</h4></font</td>
<td width="68">
<textarea cols="20" rows="5" name="problem" /></textarea>
</td>
<tr>
<td width="78"><font color="#800080"><h4>Vendor</h4></font</td>
<td width="68">
<select name="vendor">
<%
Connection con = null;
Statement stmt = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:database");
stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from vendor");
if(rs != null)
while(rs.next()) {
String vendor = rs.getString("ven_name");
%>
<option selected><%= vendor %></option>
<%
%>
</select></td>
<td width="78"><font color="#800080"><h4>Return Status</h4></font</td>
<td width="68">
<input type="text" name="ret_sts">
</td>
</tr>
<tr>
<td width="78"><font color="#800080"><h4>source</h4></font</td>
<td width="68">
<select name="source">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:database");
stmt = con.createStatement();
rs = stmt.executeQuery("select * from location");
if(rs != null)
while(rs.next()) {
String source = rs.getString("loc_name");
%>
<option selected><%= source %></option>
<%
%>
</select></td>
<td width="78"><font color="#800080"><h4>Designation</h4></font</td>
<td width="68">
<select name="desi">
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:database");
stmt = con.createStatement();
rs = stmt.executeQuery("select * from location");
if(rs != null)
while(rs.next()) {
String desi = rs.getString("loc_name");
%>
<option selected><%= desi %></option>
<%
%>
</select></td>
</tr>
<tr>
<td width="78"><font color="#800080"><h4>Employee No.</h4></font</td>
<td width="68">
<input type="TEXT" name="emp_no" />
</td>
<td width="78"><font color="#800080"><h4>Employee Name</h4></font</td>
<td width="68">
<input type="TEXT" name="emp_name" />
</td>
</tr>
<tr>
<td width="78"><font color="#800080"><h4>Date Out Source</h4></font</td>
<td width="68">
<input type="DATE" name="dos" />
</td>
<td width="78"><font color="#800080"><h4>Date in Designation</h4></font</td>
<td width="68">
<input type="TEXT" name="did" />
</td>
</tr>
<p>
<tr>
<form action="data.jsp" method="post" name="bef_rep3.jsp" id="<h5>submit</h5>">
<td><BUTTON name="post" type="submit"><h5><font color="#800080">SUBMIT</font><h5></BUTTON></td>
</form>
</tr>
</p>
<td><BUTTON name="reset" type="Reset"><h5><font color="#800080">RESET</font></h5></BUTTON></td>
</form>
</body>
</html>data.jsp is:
<html>
<%@ page language="java" import="java.sql.*" %>
<body>
<%
Connection con = null;
Statement stmt = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
int sno = Integer.parseInt(request.getParameter("sno"));
String nature = request.getParameter("nature");
String desc = request.getParameter("desc");
String ser_no = request.getParameter("ser_no");
int gatepass = Integer.parseInt(request.getParameter("gatepass"));
String problem = request.getParameter("problem");
String vendor = request.getParameter("vendor");
String ret_sts = request.getParameter("ret_sts");
String source = request.getParameter("source");
String desi = request.getParameter("desi");
int emp_no = Integer.parseInt(request.getParameter("emp_no"));
String emp_name = request.getParameter("emp_name");
String dos = request.getParameter("dos");
String did = request.getParameter("did");
con=DriverManager.getConnection("jdbc:odbc:database");
String sql = "INSERT INTO br(sno,nature,desc,ser_no,gatepass,problem,vendor,ret_sts,source,desi,emp_no,emp_name,dos,did)
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
stmt = con.createStatement();
int rowsAffected = stmt.executeUpdate(sql);
if(rowsAffected == 1)
%>
<h1> submitted</h1>
<%
else
%>
<h1>not submitted</h1>
<%
stmt.close();
con.close();
%>
</body>
</html>plz check it
i m waiting for any solution
regards
Ce can NOT do that. Call AppleCare and give them the serial number. They are the only ones who can definitively tell you what carrier it's locked to if whoever you got it from doesn't know.
Similar Messages
-
Plz chk my country and oprater
plz chk my country and oprater
Ce can NOT do that. Call AppleCare and give them the serial number. They are the only ones who can definitively tell you what carrier it's locked to if whoever you got it from doesn't know.
-
hi
can any one execute the following code n tell me y its not workin...
actually the file is getting downloaded and it opens by excel but not with the pdf.
REPORT z_output_pdf.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA:wa_ekpo TYPE t_ekpo,
p_repid LIKE sy-repid,
it_ekpo TYPE STANDARD TABLE OF t_ekpo.
DATA : lv_repid TYPE sy-repid,
lv_uname TYPE sy-uname.
data:
mstr_print_parms like pri_params,
mc_valid(1) type c,
mi_bytecount type i,
mi_length type i.
data:
mtab_pdf like tline occurs 0 with header line,
mc_filename like rlgrap-filename.
lv_repid = sy-repid.
lv_uname = sy-uname.
SELECT ebeln matnr
FROM ekpo
INTO TABLE it_ekpo.
LOOP AT it_ekpo INTO wa_ekpo.
WRITE :/ wa_ekpo-ebeln, wa_ekpo-matnr.
ENDLOOP.
DATA: print_parameters TYPE pri_params,
valid_flag(1) TYPE c,
mi_rqident LIKE tsp01-rqident.
DATA: p_linsz TYPE sy-linsz VALUE 132, " Line size
p_paart TYPE sy-paart VALUE 'X_65_132'. " Paper Format
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
out_parameters = print_parameters
valid = valid_flag
EXCEPTIONS
invalid_print_params = 2
OTHERS = 4.
*-- Explicitly set line width, and output format so that
*-- the PDF conversion comes out OK
print_parameters-linsz = p_linsz.
print_parameters-paart = p_paart.
print_parameters-pdest = 'LOCL'.
*SUBMIT (lv_repid) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS print_parameters
VIA SELECTION-SCREEN
AND RETURN.
*IF sy-subrc <> 0.
WRITE :' error'.
*ENDIF.
*-- Find out what the spool number is that was just created
PERFORM get_spool_number USING lv_repid
lv_uname
CHANGING mi_rqident.
*-- Convert Spool to PDF
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = mi_rqident
no_dialog = space
dst_device = print_parameters-pdest
importing
pdf_bytecount = mi_bytecount
tables
pdf = mtab_pdf
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
call function 'DOWNLOAD'
exporting
bin_filesize = mi_bytecount
filename = mc_filename
filetype = 'BIN'
importing
act_filename = mc_filename
tables
data_tab = it_ekpo.
write :' ============'.
FORM get_spool_number *
Get the most recent spool created by user/report *
--> F_REPID *
--> F_UNAME *
--> F_RQIDENT *
FORM get_spool_number USING f_repid
f_uname
CHANGING f_rqident.
DATA:
lc_rq2name LIKE tsp01-rq2name.
CONCATENATE f_repid+0(8)
f_uname+0(3)
INTO lc_rq2name SEPARATED BY '_'.
DATA : ls_tsp01 TYPE tsp01,
lt_tsp01 TYPE TABLE OF tsp01.
SELECT * FROM tsp01
INTO TABLE lt_tsp01
WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
LOOP AT lt_tsp01 INTO ls_tsp01.
f_rqident = ls_tsp01-rqident.
EXIT.
ENDLOOP.
SELECT * FROM tsp01 WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
f_rqident = tsp01-rqident.
EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR f_rqident.
ENDIF.
ENDFORM." get_spool_number
plz chk n tell me where its goin wrong....
Message was edited by:
neha guptaHi neha,
i do it in this way:
REPORT ZGRO_ITAB_PDF_SPOOL.
DATA: BEGIN OF ITAB OCCURS 0,
TEXT(72),
END OF ITAB.
Länge der PDF-Datei in Byte
DATA: PDF_FILESIZE TYPE I.
DATA: BIN_FILESIZE TYPE I.
Druckparameter mit Gültigkeit
DATA: PARAMS LIKE PRI_PARAMS,
VALID TYPE C.
Spoolnummer
DATA: SPOOL_NR LIKE TSP01-RQIDENT,
SPOOL_NR_DEL LIKE TSP01_SP0R-RQID_CHAR.
PDF Ausgabetabelle
DATA: BEGIN OF PDF_OUTPUT OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF PDF_OUTPUT.
DATA: PROGRAM(128) TYPE C.
DATA: DATEI TYPE STRING VALUE 'D:TESTPDF.PDF'.
DATA: APPL TYPE STRING.
START-OF-SELECTION.
Druckparameter besorgen (hier für LOCA)
Line-size sollte entsprechende der Ausgabe gesetzt werden
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = 'LOCA'
LINE_SIZE = 080
IMMEDIATELY = ' '
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = PARAMS
VALID = VALID.
CHECK VALID <> SPACE.
Versorgen der internen Tabelle
READ REPORT 'ZGRO_ITAB_PDF_SPOOL' INTO ITAB.
Ausgabe der internen Tabelle mit den Druckparametern.
NEW-PAGE PRINT ON PARAMETERS PARAMS NO DIALOG NO-TITLE NO-HEADING.
LOOP AT ITAB.
WRITE:/ ITAB.
ENDLOOP.
NEW-PAGE PRINT OFF.
Spoolnummer besorgen
SPOOL_NR = SY-SPONO.
Konvertierung der Ausgabe nach PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = SPOOL_NR
IMPORTING
PDF_BYTECOUNT = PDF_FILESIZE
TABLES
PDF = PDF_OUTPUT
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11
OTHERS = 12.
CHECK SY-SUBRC = 0.
SPOOL_NR_DEL = SPOOL_NR.
Spool wieder löschen
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
SPOOLID = SPOOL_NR_DEL.
BIN_FILESIZE = PDF_FILESIZE.
Download der Spools
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
FILENAME = DATEI
FILETYPE = 'BIN'
CHANGING
DATA_TAB = PDF_OUTPUT[].
Programmpfad auf PC für PDF ermitteln
CALL FUNCTION 'SO_PROGNAME_GET_WITH_PATH'
EXPORTING
DOCTYPE = 'PDF'
IMPORTING
PATHNAME = PROGRAM
EXCEPTIONS
PATH_NOT_FOUND = 1
PROGRAM_NOT_FOUND = 2
NO_BATCH = 3
X_ERROR = 4
OTHERS = 5.
PDF ausführen
APPL = PROGRAM.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
PARAMETER = DATEI
APPLICATION = APPL.
Programmende *
Regards, Dieter -
Plz chk the code wats wrong in it
hi
i m having itab with vbeln
and ztable with objnr and ordsent.
where objnr and vbeln are equal
so now when i find objnr EQ vbeln i have to modify the ztable-ordsent = ' '.
i have writen the followin code
LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.
READ TABLE ct_success INTO ls_success WITH KEY ordnr =
ls_ztsd2marc-ordnr.
IF sy-subrc EQ 0.
ls_ztsd2marc-ordsent = ' '.
MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent .
MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.
IF sy-subrc EQ 0.
MESSAGE s112(z2).
ENDIF.
ENDIF.
ENDLOOP.
its updating it in work area but the changes are not gettin reflected in the internal table and not even in my ztable ztsd2marc.
plz tell me wat is wrong in this code?hi..
jus try the code below.. it'll def give the solution to ur question.
i've jus modified little of ur code that u posted.
LOOP AT lt_ztsd2marc INTO ls_ztsd2marc.
READ TABLE ct_success INTO ls_success WITH KEY ordnr =
ls_ztsd2marc-ordnr.
IF sy-subrc EQ 0.
ls_ztsd2marc-ordsent = ' '.
MODIFY TABLE lt_ztsd2marc FROM ls_ztsd2marc TRANSPORTING ordsent
where ordnr = ls_ztsd2marc-ordnr .
**MODIFY ztsd2marc FROM TABLE lt_ztsd2marc.
update ztsd2marc set ordsent = it_ztsd2marc-orsent
where ordnr = it_ztsd2marc-ordnr.
IF sy-subrc EQ 0.
MESSAGE s112(z2).
ENDIF.
ENDIF.
ENDLOOP.
all the best -
SELECT T0.[AcctName], T1.[Debit], T2.[U_SLRemark], T3.[RefDate], T3.[Number], T4.[Name], T5.[U_Project] FROM OACT T0 INNER JOIN JDT1 T1 ON T0.AcctCode = T1.Account INNER JOIN VPM4 T2 ON T0.AcctCode = T2.AcctCode INNER JOIN OJDT T3 ON T1.TransId = T3.TransId, [dbo].[@OSLA] T4, [dbo].[@SLT1] T5
in output all the rows are repeating even i used distinct also
plz helphai,
Just try this,
SELECT T0.AcctCode,T0.AcctName, T1.Debit, T2.U_SLRemark, T3.RefDate, T3.Number, T4.Name, T5.U_Project FROM OACT T0 INNER JOIN JDT1 T1 ON T0.AcctCode = T1.Account INNER JOIN VPM4 T2 ON T0.AcctCode = T2.AcctCode INNER JOIN OJDT T3 ON T1.TransId = T3.TransId, dbo.@OSLA T4, dbo.@SLT1 T5 group by T0.AcctCode
Thanks. -
==================================
PERFORM get_spool_number USING sy-repid
sy-uname
CHANGING mi_rqident.
=====================================
FORM get_spool_number USING f_repid
f_uname
CHANGING f_rqident.
DATA:
lc_rq2name LIKE tsp01-rq2name.
CONCATENATE f_repid+0(8)
f_uname+0(3)
INTO lc_rq2name SEPARATED BY '_'.
SELECT rqident FROM tsp01 WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
f_rqident = tsp01-rqident.
EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR f_rqident.
ENDIF.
ENDFORM." get_spool_number
Field list without INTO clause is not allowed . allowed. . allowed. .
is the error i m getting when i activate it..
what is the error in select query....Hi,
try this
==================================
PERFORM get_spool_number USING sy-repid
sy-uname
CHANGING mi_rqident.
=====================================
FORM get_spool_number USING f_repid
f_uname
CHANGING f_rqident.
DATA: lc_rq2name LIKE tsp01-rq2name.
CONCATENATE f_repid+0(8) f_uname+0(3)
INTO lc_rq2name SEPARATED BY '_'.
SELECT rqident INTO tsp01-rqident FROM tsp01
WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
f_rqident = tsp01-rqident.
EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR f_rqident.
ENDIF.
ENDFORM." get_spool_number
Make sure that u have declared teh TABLES: tsp01.
Hope thsi solves ur problem.
Reward points and close the thread if ur problem got solved. -
Creation of Database View on different tables
Hi All,
I want to create a Data base View on 5 Tables(LIKP,EQUI,MARA,QMFE,QMUR).
My Question is i will create a View without any selections and the View is based on tables Link (Primary&foreign keys) only.
Once my View is ready i will pull the data from SAP R/3 based on Infopackage selection.
Is my approach is correct?or i need to mention any thing while creating the View itself?
Waiting for reply and your points are assured.
Regards,
Madhu PonnadaHi Madhu,
Table Maintanance Generator are used to view ,modifi tables,Insert table values.
T-code:-SM30 Maintain tabel views .
SE54 Generate Table Maintenance Dialog: Initial table/View Screen .
SE55 Generate Table Maintenance Dialog: generation Environment .
Steps-to-create-Table Maintanance Generator
-->Create view in SE11
-->Goto transcation SE11 ABAP Dictionary
-->Select View and type in the name of the view you want to create.
-->Press the Create button
-->In the dialog box that appears, choose Maintenance View
-->Select tables and fields for the view
-->Activate the view
OR
-->Create view in SE11
-->Goto transcation SE11 ABAP Dictionary
-->enter table name
-->go to Utilities
-->select table maintainance Genarator
-->Enter single step
--> enter Function Group or same table name (all the code for Table mainaitenace is stored here)
-->eneter single step
-->enter Authorization gorup(we can restrict some user,s not tot update data)
Activate..
Plz chk the below links.
http://help.sap.com/saphelp_nw2004s/helpdata/en/a3/5a693c114bf147e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
Reagrds,
Prabhudas -
I have two parameters on selection screen .
P_QTR and P_YEAR
I have concatenated the Quarter and Year Value to give same f4 on both paramatersto give f4 using 'F4IF_INT_TABLE_VALUE_REQUEST'
for example Q1 2014
now when user selects one value i want to set Q1 to P_QTR and 2014 to P_YEAR.
but it is setting only one value for P_QTR correctly and the value for P_year is not coming on screen although the value is thier inside code in P_year
i am using same f4 for both events
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_qtr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_year.
here is the code i am using
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CHAR20'
window_title = text-026
value_org = 'S'
TABLES
value_tab = mt_input_f4
return_tab = mt_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
CLEAR mt_input_f4[].
ENDIF.
READ TABLE mt_return INTO ms_return INDEX 1.
IF sy-subrc EQ 0.
p_qtr = ms_return-fieldval+0(2).
p_year = ms_return-fieldval+3(4) .
ENDIF.
plz chk attached picsi am sorry for delayed update but i fixed it using following approach.
READ TABLE mt_return INTO ms_return INDEX 1.
IF sy-subrc EQ 0.
ls_dynpread-fieldname = 'P_QTR'.
ls_dynpread-fieldvalue = ms_return-fieldval+0(2).
APPEND ls_dynpread TO lt_dynpread.
ls_dynpread-fieldname = 'P_YEAR'.
ls_dynpread-fieldvalue = ms_return-fieldval+3(4).
APPEND ls_dynpread TO lt_dynpread.
**setting the selection screen values
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = '1000'
TABLES
dynpfields = lt_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
CLEAR lt_dynpread[].
ENDIF. -
Issue with Delta in Function Module
Hi Team,
I have an issue with delta in Genric extraction using function module.Full load is working fine and i have taken post_date as delta field.plz chk the code if any delta related statements are missing.
FUNCTION ZRSAX_BIW_MANGEMENT_RAT .
""Local interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZQMBW_FUJ_MANAGEMENT OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
Example: DataSource for table MANAGEMENT RATING
TABLES: ZQMBW_MANAGEMENT.
Auxiliary Selection criteria structure
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
counter
S_COUNTER_DATAPAKID LIKE SY-TABIX,
cursor
S_CURSOR TYPE CURSOR.
RANGES: POST_DATE FOR ZMMTVEND_RATING-POST_DATE,
VENDOR FOR ZMMTVEND_RATING-VENDOR.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZQMMANAGEMENT_DS'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE. "Initialization mode or data extraction ?
IF S_COUNTER_DATAPAKID = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'VENDOR'.
MOVE-CORRESPONDING L_S_SELECT TO VENDOR.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = VENDOR-LOW
IMPORTING
OUTPUT = VENDOR-LOW.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = VENDOR-HIGH
IMPORTING
OUTPUT = VENDOR-HIGH.
APPEND VENDOR.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'POST_DATE'.
MOVE-CORRESPONDING L_S_SELECT TO POST_DATE.
CONCATENATE L_S_SELECT-LOW6(4) L_S_SELECT-LOW3(2) L_S_SELECT-LOW+0(2) INTO POST_DATE-LOW.
CONCATENATE L_S_SELECT-HIGH6(4) L_S_SELECT-HIGH3(2) L_S_SELECT-HIGH+0(2) INTO POST_DATE-HIGH.
APPEND POST_DATE.
ENDLOOP.
**Get Management rating details
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT VENDOR POST_DATE OVERALL_MNGT_RAT OVERALL_DEV_RAT FROM ZMMTVEND_RATING WHERE VENDOR IN VENDOR AND POST_DATE IN POST_DATE .
ENDIF.
Fetch records into interface table.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION.Hi
Check URLs:
How to populate the ranges using FM for the SELECTs
Re: Generic Delta Function Module -
Problem in File Receiver comm channel
Hi,
I can't see anything in the Recevier communication channel in the RWB > Component Monitoring>Comm. channel monitoring-->Comm. channels.
I do have selected my comm channel.Its showing the message as "Comm. channel is configured correctly and started". But I cant see msgID and Explanation or error. Even, I cant fine any info in Error log.
The diagnosis i did as follows. Let me know if u come across any thing.
Checked the logs in VA but i didnt found any information and is not upto date. Bad luck
*Recreated the Rcvr comm channel again and teste. Nohope.
In the MONI its showing successfull, but i cant see output at destination.
*cache is uptodate
I have checked the queues, nothing got stuck.All queues are clear.
*I cant restart the Server since it is in production.
Your suggestions are highly appreciated.
Thanks
SRINilesh,
All the things you mentioned are done by XI IS. FYI plz chk below..
Send binary file "/home/dpiadm/xi/tmp/passthru/EDI_250123.rpz", size 60, character encoding 8859_1 with QoS EO
2007-10-19 13:48:43 Success MP: Entering module processor
2007-10-19 13:48:43 Success MP: Processing local module localejbs/SFTPFileUploadDownloadAdapterModule
2007-10-19 13:48:43 Success 192.133.217.6 /XI/SFTPTest pimsp kuljasimsim EDI_250123.rpz /home/dpiadm/SridharRajuMahali /home/dpiadm/xi/tmp/passthru/ EDI_250123.rpz Enable
2007-10-19 13:48:43 Success EDI_250123.rpz
2007-10-19 13:48:43 Success SFTPOutBoundEDIFileToFile
2007-10-19 13:48:43 Success SFTP_Sender_File
2007-10-19 13:48:43 Success 8878c990-7e6b-11dc-8137-001a4b065b86
2007-10-19 13:48:43 Success SFTPServerNameOrIpAddress 192.133.217.6
2007-10-19 13:48:43 Success Indiashining.txt SFTPOutBoundEDIFileToFile SFTP_Sender_File 8878c990-7e6b-11dc-8137-001a4b065b86 SFTPOutBoundEEIFileToFile
UNDEFINED
2007-10-19 13:48:43 Success Host Key Verified
2007-10-19 13:48:43 Success Socket Opened for Transport and connected..
2007-10-19 13:48:43 Success SFTP SshClient is connected
2007-10-19 13:48:43 Success Authentication Method is Public Key
2007-10-19 13:48:43 Success Ssh2 Client is Connected and Authenticated
2007-10-19 13:48:43 Success pimsp kuljasimsim
2007-10-19 13:48:43 Success /XI/SFTPTest
2007-10-19 13:48:43 Success /XI/SFTPTest
2007-10-19 13:48:43 Success localFolder2 + dropFileName2 /home/dpiadm/xi/tmp/passthru/EDI_250123.rpz
Entering to download file
2007-10-19 13:48:43 Success Current Directory before LCD0 : /home/dpiadm
2007-10-19 13:48:43 Success Current Directory After LCD0 :/home/dpiadm/xi/tmp/passthru
2007-10-19 13:48:43 Success download completed
2007-10-19 13:48:43 Success MP: Processing local module localejbs/CallSapAdapter
2007-10-19 13:48:43 Success Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System.
2007-10-19 13:48:43 Success Trying to put the message into the send queue.
2007-10-19 13:48:43 Success Message successfully put into the queue.
2007-10-19 13:48:43 Success The application sent the message asynchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
2007-10-19 13:48:43 Success MP: Leaving module processor
The message was successfully retrieved from the send queue.
2007-10-19 13:48:43 Success Confirmation mode test found. File sent.
2007-10-19 13:48:43 Success The message status set to DLNG.
2007-10-19 13:48:44 Success The message was successfully transmitted to endpoint http://quark:8005/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.
2007-10-19 13:48:44 Success The message status set to DLVD.
2007-10-19 13:48:44 Success The message was successfully delivered.
Note:- I AM NOT ABLE TO SEE ANYTHING IN THE RCVR COMM CHANNEL(RWB).
any Idea about, where can I see the message if it got stuck in Integration server apart from logs
Thanks
Sri Raj -
I am sending the standard Idoc ORDERS from R/3 to XI.When I post the IDOC from transaction WE19. It shows that IDOC is sucessfully sent and saved.
but when i check the message in XI by I enter Message ID: ORDERS, I am getting this popup "No message selected"
thnx
AnmolHi,
plz chk the ALE settings that you have done....
Steps for ALE settings:-
Steps for XI
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the R3 system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto IDX1.
Create a new port.
Give the port name.
Give the client number for the R3 system.
Select the created Rfc Destination.
Step 3)
Goto IDX2
Create a new Meta data.
Give the Idoc type.
Select the created port.
Steps for R3.
Step 1)
Goto SM59.
Create new RFC destination of type 3(Abap connection).
Give a suitable name and description.
Give the Ip address of the XI system.
Give the system number.
Give the gateway host name and gateway service (3300 + system number).
Go to the logon security tab.
Give the lang, client, username and password.
Test connection and remote logon.
Step 2)
Goto WE21.
Create a port under transactional RFC.(R3->XI)
Designate the RFC destination created in prev step.
Step 3)
Goto SALE.
Basic settings->Logical Systems->Define logical system.
Create two logical systems(one for XI and the other for R3)
Basic settings->Logical Systems->Assign logical system.
Assign the R3 logical system to respective client.
Step 4)
Goto WE20.
Partner type LS.
Create two partner profile(one for XI the other for R3).
Give the outbound or inbound message type based on the direction.
Step 5)
Not mandatory.
Goto BD64.
Click on Create model view.
Add message type.
Step 6)
Goto WE19
Give the basic type and execute.
fill in the required fields.
Goto IDOC->edit control records.
Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
Click outbound processing.
Step 7)
Go to SM58
if there are any messages then there is some error in execution.
Goto WE02.
Check the status of the IDOC.
Goto WE47.
TO decode the status code.
BD87 to check the status of IDOC.
In case if not authorized then go to the target system and check in SU53, see for the missing object
and assign it to the user.
SAP r3
sm59(status check)(no message)
WE02(status check)
WE05(status check)
BD87(status check)
Xi
IDx5(Idoc check)
SU53(authorization check)
reward points if helpful....
PrasHanT -
Line item display on GL account
DearAll,
my GL is line item display already,then there are transactionts posted in that GL,but still no line item display?and i have to run RFSEPA01.
but GL is line item display already,why still need that program to update the relevant tableHI dear
Plz chk when the line item display has been activated for that Gl account.
If that has been activated in the mid of year/month you will not able to see the line items that are posted prior to activation
so i can suggest you to deactivate the line item display and activate again
It will work
Thanks & regards
Prasad -
Problem is triggering ABAP proxy
Hi All,
My scenario is to create a sales order in R/3 system using ABAP proxy and to get the Sales Order number as the response from the synchornous BAPI.
While triggering the proxy, I'm gettin the error as follows,
Please help me out in clearing this issue.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area<b>="ABAP">SERIALIZE_APPLICATION_DATA</b></SAP:Code>
<SAP:P1>Response Message</SAP:P1>
<SAP:P2>CX_XSLT_RUNTIME_ERROR</SAP:P2>
<SAP:P3>: 0000000000</SAP:P3>
<SAP:P4>Error Text: No valid XSLT program supplied Kernel ErrorId: CX_XSLT_RUNTIME_ERROR</SAP:P4>
<SAP:AdditionalText>Error when handling Response Message; XSLT error: CX_XSLT_RUNTIME_ERROR: XSLT program and source line: : 0000000000; Error Text: No valid XSLT program supplied Kernel ErrorId: CX_XSLT_RUNTIME_ERROR</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Regards,
DhanaHi
Go thru SAP Note:<b>546048</b>
It says that application data is incorrect tht's why can't post the message.
So plz chk ur ABAP Server Proxy code.
Regards
Arpit Seth -
Seeburger SFTP Sender Adapter Failure
Hello,
a SFTP sender channel causes the follow error when executing a poll cycle:
SFTP Adapter failure Details: while trying to invoke the method com.seeburger.uri.dt.sftp.schema.DtSFTPPollingResponse.setSuccessMessage(java.lang.String) of an object loaded from local variable 'e'
The server was pinged successfully so there should be no firewall issue. We are also able to logon to the server using a third-party SFTP client.
The error description is not very meaningful for tracking down the root cause.
Do you have any idea what could have caused this error?
Thank you.
Edited by: Guppenberger Florian on Jan 24, 2011 4:00 PMFor the Roll back error plz chk the below points.
1. Check the module parameters.
2. Make sure the sender agreement doesnt have any * 's.
Ex: The SA should not be like : | BS | SI_test_oa | * | *
SA should be like BS | SI_test_oa | |
3. If the input file has special chanracters , use the encoding .
If the above doesnt work, try to create a new communication channel and test it.
We also faced this error toomany times in the sender CC for sFTP advatco adapter.
Thanks,
Soumya. -
HI All
I am facing a error in sender SFTP adapter
Error: Current transaction is marked for rollback: Trace of setRollbackOnly() invocation. (Software version: 3.0.17)For the Roll back error plz chk the below points.
1. Check the module parameters.
2. Make sure the sender agreement doesnt have any * 's.
Ex: The SA should not be like : | BS | SI_test_oa | * | *
SA should be like BS | SI_test_oa | |
3. If the input file has special chanracters , use the encoding .
If the above doesnt work, try to create a new communication channel and test it.
We also faced this error toomany times in the sender CC for sFTP advatco adapter.
Thanks,
Soumya.
Maybe you are looking for
-
All, Please see the scenario : I dont have QM Module here . Batch Management is active here . So while doing goods receipt the Raw materials will go to Quality Ispection SLoc(unrestricted status) and after quality Inspection ( physically ) , if it
-
Hi Dear Guru we have done sum stocks close in year ending 2008, in that time we have tranasferd Stock from material to material, we have tranferd all the stocks from material A to Material B. But theire is no stcoks in the MMBE for material A , for
-
No data to refresh in BPC for Ecxel
Hello, I created an input schedule and tested it by sending the data from BPC for Excel interface. It works fine. However, if I try to distribute the schedule as an offline document, collect the same after the user modifications and try to process it
-
Problems with paypal authorization
I am out of itunes cards and simply want to designate my paypal account to buy music. Everytime I try - it has me resign in with apple --->directs me to paypal -----> I accept terms and authorize---->I am redirected to download itunes on the apple s
-
Strange blurry effect - Premiere Pro CS4
It looks like I'm still far away from a standard, steady and predictable workflow because every now and then something strange occurs and mess up my work. Now I'm dealing with h.264 video. The problem occurs on my output video in a form of messed up