Facing problem in fetching data
hello everyone ,
can anyone help me out frm the problem , i need to fetch data in alv report ( likp-vbeln ,lips-vgbel , likp-kunnr , vbpa-lifnr , vbrp-vgbel,vbuk-fkstk,vbrk-kunrg, vbrk-fkart and lfa1-name1 ) using input parameter lips-vbeln or likp-vbeln .every time i stuck in select querries for fetching fieds of vbpa vbrk vbrp vbuk and lfa1 .
i am new to this forum excuse for any mistake regarding the rules and restriction .
ranjan
Moderator message - Welcome to SCN.
Please read Please read "The Forum Rules of Engagement" before posting! HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
Thread locked.
Rob
Similar Messages
-
I have Problem in fetching data from CONTROL BLOCK
Sir,
I am facing problem in fetching data from control block.
Asif.is your control-block a filter-block for the detail-block?
Do you want to see only the detail-data of the user-id you have displayed in the master? -
Swing Applet in JSP: problem with fetching data from database
i am facing a problem while fetching data from database using Swing Applet plugged in a JSP page.
// necessary import statements
public class NewJApplet extends javax.swing.JApplet {
private JLabel jlblNewTitle;
private Vector vec;
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public NewJApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("TITLE");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum(); // data fetched fm DB r stored here.
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
// fetches datum from oracle database and stores it in a vector
return lvecData;
}//end of getDBDatum()
}//end of class
in index.jsp page i have included the following code for calling this applet:
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>
if i view it in using AppletViewer it runs perfectly and display the data in JLabel. (ie, both jlblTitle and jlblNewTitle).(ie, DATA FETCHES FROM db AND DISPLAYS PROPERLY)
BUT IF I CLICK ON INDEX.JSP, ONLY jlblTitle APPEARS. jlblnNewTitle WILL BE BLANK(this label name is supposed to fetch from database)
EVERY THING IS DISPAYING PROPERLY EXCEPT DATA FROM DATABASE!!!
i signed the applet as follows :
grant {
permission java.security.AllPermission;
Can any body help me to figure out the problem?This is the Swing Applet java code
import java.awt.Dimension;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Vector;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.JScrollPane;
import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTree;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
public class HaiApplet extends javax.swing.JApplet {
private JLabel jlblTitle;
private JLabel jlblNewTitle;
private Vector vec;
* main method to display this
* JApplet inside a new JFrame.
public static void main(String[] args) {
JFrame frame = new JFrame();
NewJApplet inst = new NewJApplet();
frame.getContentPane().add(inst);
((JComponent)frame.getContentPane()).setPreferredSize(inst.getSize());
frame.pack();
frame.setVisible(true);
public HaiApplet() {
super();
initGUI();
private void initGUI() {
try {
this.setSize(542, 701);
this.getContentPane().setLayout(null);
jlblTitle = new JLabel();
this.getContentPane().add(jlblTitle);
jlblTitle.setText("OMMS");
jlblTitle.setBounds(197, 16, 117, 30);
jlblTitle.setFont(new java.awt.Font("Dialog",1,20));
jlblTitle.setHorizontalAlignment(SwingConstants.CENTER);
jlblTitle.setForeground(new java.awt.Color(0,128,192));
jlblNewTitle = new JLabel();
this.getContentPane().add(jlblNewTitle);
Vector vecTemp = getDBDatum();
jlblNewTitle.setText(vecTemp.get(1).toString());
jlblNewTitle.setBounds(350, 16, 117, 30);
jlblNewTitle.setFont(new java.awt.Font("Dialog",1,20));
} catch (Exception e) {
e.printStackTrace();
}//end of initGUI()
private Vector getDBDatum() {
Vector lvecData = new Vector(10,5);
Connection lcon = null;
Statement lstmt = null;
ResultSet lrsResults = null;
String lstrSQL = null;
String lstrOut = null;
try {
OmmsDBConnect db = new OmmsDBConnect();
lcon = db.connectDb();
lstmt = lcon.createStatement(lrsResults.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
lstrSQL = "select DT_ID from P_DATATABLES";
lrsResults = lstmt.executeQuery(lstrSQL);
int i = 0;
lrsResults.last();
int length = lrsResults.getRow();
System.out.println(length);
lrsResults.beforeFirst();
int recCount = 0;
while (lrsResults.next()) {
recCount++;
lvecData.addElement(new String(lrsResults.getString("DT_ID")));
// System.out.println("ID : " + lrsResults.getString(1));
i++;
}System.out.println("here 3 out fm while");
catch(SQLException e) {
System.out.print("SQLException: ");
System.out.println(e.getMessage());
catch(Exception ex) {
lstrOut = "Exception Occured " + ex.getMessage();
finally {
try {
lrsResults.close();
lstmt.close();
lcon.close();
System.out.println("[DONE]");
catch(Exception e) {
System.out.println(e);
}//end of finally
return lvecData;
}//end of getDBDatum()
}//end of classOfcourse the above code compiles and runs well. in Applet Viewer
I plugged the above Swing Applet in a JSP page index.jsp
<jsp:plugin type="applet" code="NewJApplet.class" codebase="applets"
width="600" height="300">
<jsp:fallback>Could not load applet...</jsp:fallback>
</jsp:plugin>Every thing is working fine in AppletViewer...But if i view this in any browser, then only the jlblTitle is displaying. jlblNewTitle is not displaying(this label name is actually fetching from thedatabase)
can any body help me regarding this matter.? Thx in Advance. -
Facing problem with a date column in select query
Hi,
I am facing problem with a date column. Below is my query and its fainling with " invalid number format model" .
Query: SELECT *
FROM EMP
WHERE trunc(LAST_UPDATED) >= to_date(to_char(22-05-2009,'dd-mm-yyyy'),'dd-mm-yyyy')
LAST_UPDATED column is "DATE" data type.
Please help me ThanksRadhakrishna Sarma wrote:
SeánMacGC wrote:
WHERE LAST_UPDATED >= to_date('22-05-2009','dd-mm-yyyy');
You do not need the TRUNC here in any case.
I don't think so. What if the user wants only data for 22nd May and the table has records with date later than 22nd also? In that case your query willl not work. In order for the Index to work, I think the query can be written like this I think Sean is right though. Use of TRUNC Function is quiet useless based on the condition given here, since the to_date Function used by OP will always point to midnight of the specified date, in this case 22-05-2009 00:00:00.
Regards,
Jo
Edit: I think Sean proved his point... ;) -
Facing problem in saving data without overlapping in for loop
Hi,
I am facing problem in writting data withou overlapping if i run outer loop for 2 or more times and in inner for loop i am getting array in a way I want but when i try to build that array with logging temperature i am not able to do it. Please guide me through ths.
Thank You
Hnagpal
Solved!
Go to Solution.
Attachments:
data storage.vi 31 KB
what i am getting.xlsx 10 KB
what i want.xlsx 10 KBThanks odessy27, Matthew Kelton, for replying.
Matthew Kelton: Thanks for the solution i am adding outer loop so that i can increase the number of row. I am using it for some application which require me to save data several time and i used random number here but originally instead of random number there will be power meter reading and i want to save it every hour and plot it. I am also attaching a file what i made I don't know is this a good way or not. Actually i will also beneeded to plot a graph. But again how to increase a row and without replacing previous data i can write another row.
Yes i want to make one row for each iteration.
I attached both files in 2009 version.
Thank You
Himanshu Nagpal
Attachments:
desired result.xlsx 10 KB
data storage (1).vi 26 KB
data storage.vi 37 KB -
Can anyone pls. help me : facing problem while fetching the data from BAPI
Hi all,
we have installed xMII in a new server. In this new server I am trying to fetch data from a BAPI & write it into a file thru a transaction, but i cant see the data in the tracer, & neither is the file created. But with the same configuration & connection am able to get the data in the old server. Can anyone pls. tell me wat could be the problem?? or is there anything else that we might have forgotten while installing xMII in the new server.
ur help would be greatly appreciated.
Thanks,
Sushma.Hi Ravi,
no am not able to see the table structure also. This is what it is showing in the tracer :
[INFO ]: Execution Started At: 17:24:17
[DEBUG]: 00000.03100 Begin Transaction 'TMP99A51958-5BAE-CDE0-0DB5-A3A8C72BC297'
[DEBUG]: 00000.03100 Begin Sequence Sequence : ()
[DEBUG]: 00000.03100 Begin Action SAPJCOInterface_0 : (SAP JCO Interface)
[DEBUG]: 00006.43700 Connection Took 6406 mS
[DEBUG]: 00009.82800 Function Creation Took 3391 mS
[DEBUG]: 00010.25000 Execution Took 422 mS
[DEBUG]: 00010.25000 End Action SAPJCOInterface_0 : (SAP JCO Interface)
[DEBUG]: 00010.25000 Begin Sequence Sequence_0 : ()
[DEBUG]: 00010.25000 Begin Action Repeater_0 : (Repeater)
[DEBUG]: 00010.26600 End Action Repeater_0 : (Repeater)
[DEBUG]: 00010.26600 End Sequence Sequence_0 : ()
[DEBUG]: 00010.26600 End Sequence Sequence : ()
[DEBUG]: 00010.26600 End Transaction 'TMP99A51958-5BAE-CDE0-0DB5-A3A8C72BC297'
[INFO ]: Execution Completed At: 17:24:28 Elapsed Time was 10235 mS
I doubt the repeater is not working, becoz i checked the JCO connection & thats fine..
Thanks,
Sushma. -
Facing problem while loading data into XI
Hi All,
I am facing a peculiar problem while loading data into XI when we load small amount of data say 5-10 records these records gets processed, but when we try to load a bit higher volume say 100-500 which comes out to be around 7 record s per second then the record processing gets stalled. That is it gives a message that "recorded for outbound processing".
So can any body throw some light on it and can tell us why we rare facing such problem and how can we resolve that problem.
Thanks in Advance.
Regards
rahulHi rahul,
Deregistering and Registering the Queue is a temporary solution.
The better way to this would be to Tune your Xi system as already mentioned by Vijaya as mentioned in the guide ,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7fdca26e-0601-0010-369d-b3fc87d3a2d9
Regards,
Bhavesh -
Problem in fetching data for Tcode QA03
Hi,
I am working on a report in which i have to pick up the dates for a material i.e. when it is MIGO is done and when it is moved to unrestricted stock.
Till now i am fetching up the data from MSEG nad MKPF where i am getting the data w.r.t. movement types(101,321).
Now the problem is ,i had checked that when i execute Tcode QA03 there is a option of checking the log of it where i found that is shows the value that the purticular value has been moved to unretricted stcok..
The problem is it is storing the value in table RSTXT and field name TXLINE. How can i pick up the value for it and moreover it doesnot have the movt.type mentioned in it? Should i pick the value from MSEG n MKPF or make my logic through QALS and
RSTXT.
Please provide me some information about it...Hi Firends,
I had developed a code for it now,but the problem is i am facing right now is when try to have difference between dates and time of both mvt.types 101 and 321,there comes a problem that it is not able to calculate the diiference as the data of both present in the seperate lines of the itab. Is there anyway that it can be calculated.
Here is the link to the code which i had created, please tell me where i can rectify the error :-
I am really facing the problem in it.. plzz check the code whether it is corect or not?
http://docs.google.com/View?id=dngp529_4grr2ctf6
Edited by: nav009 on Nov 6, 2009 9:43 AM -
Facing problem in transferring data in APD
Hi All,
I have a query which has 2 structures and so the in normal conditions also when the query is executed it takes a lot of time to execute and the output file is also huge.
Now the client wants to automate this query by adding one new field in it by using the APD.
I tried using the approach
Query -> hide columns -> Routine(to add the new field) -> hide columns -> PC file
This thing was working when there was a filter condition for only 2 sales offices but after removing the filter there are 22 sales offices and I am getting a "Run time error" or "Memory low error".
So i tried the 2nd approach i.e.
Query -> transformation -> DSO1(direct update) -> DSO(standard)
but here also i am facing the same problem.
Please give me a good solution as this issue has to be completed ASAP.
Thanks in advance.Hi,
For trial purpose I have set a filter in which only 3 sales offices will be used out of 20. But still I am facing the same "Memory low" error. The sales offices I have considered have less data as compared to other sales offices but still I am facing this issue I dont know is this happening.
Can you guys share some info on this. -
Facing problem in Fetching Employee details
Hello All,
i need to write a abap coding to fetch the employee details from the corresponding table,i worte a code but its is not fetching the details of the employess in to the output,am sending my code along with this thread its great if any body help me out in ths regard,thanks in advance...
NAME : Chandeep Singh
DESCRIPTION : TO GENERATE SIMPLE REPORT USING HR ABAP
LOGICAl DATABASE- PNP .
REPORT zchandeep_hr_prog_1
LINE-SIZE 200 .
*Database Table
TABLES: pernr, " Pernr structure for Logical database
pa0001, " Actions
pa0002. " Personnel Info
*Infotypes
INFOTYPES: 0001, " Actions
0002. " personnel info
*Variable Declaration
DATA: form_nam LIKE p0001-ename,
v_age(5) TYPE c, "variable for calculating age in days
v_ctr1 TYPE i VALUE 0, "counter
v_ctr2 TYPE i VALUE 0, "counter
var(5) TYPE c , " variable to store btrtl
var1(5) TYPE c . " variable to store werks
*Internal Table Decalartion
DATA: BEGIN OF i_tab1 OCCURS 0,
pernr LIKE pa0001-pernr, "employee number
ename LIKE pa0001-ename, "employee name
begda LIKE pa0002-begda, "employee join date
werks LIKE pa0001-werks, "personnel area
btrtl LIKE pa0001-btrtl, "personnel sub area
persg LIKE pa0001-persg, "employee group
persk LIKE pa0001-persk, "employee sub-group
plans LIKE pa0001-plans, "position
gbdat LIKE p0002-gbdat, "date of birth
END OF i_tab1.
*START-OF-SELECTION
START-OF-SELECTION .
GET pernr .
rp-provide-from-last p0001 space pn-begda pn-endda . " Macro for IFT-0001
rp-provide-from-last p0002 space pn-begda pn-endda . " Macro for IFT-0002
**--> Populate internal table
MOVE p0001-pernr TO i_tab1-pernr .
MOVE p0001-ename TO i_tab1-ename .
MOVE p0002-begda TO i_tab1-begda .
MOVE p0001-werks TO i_tab1-werks .
MOVE p0001-btrtl TO i_tab1-btrtl .
MOVE p0001-persg TO i_tab1-persg .
MOVE p0001-persk TO i_tab1-persk .
MOVE p0001-plans TO i_tab1-plans .
MOVE p0002-gbdat TO i_tab1-gbdat .
**--> Append data to internal table
APPEND i_tab1 .
CLEAR i_tab1 . " Clear header I_TAB1******************************
*END-OF-SELECTION
END-OF-SELECTION.
*****sorting the internal table on personnel area & personnel sub-area
SORT i_tab1 BY werks btrtl.
*TOP_OF_PAGE
PERFORM top_of_page.
*Output Display
LOOP AT I_TAB1.
*for calculating the age in days
v_age = sy-datum - i_tab1-gbdat.
*control break on Personal Sub Area
LOOP.
AT NEW pnpbtrtl .
IF sy-tabix NE 1.
FORMAT COLOR COL_NORMAL ON.
WRITE:/5 'Total Number of Employees for personnel Sub-Area:',
var , 'is ',
v_ctr1.
CLEAR v_ctr1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
ENDLOOP.
**Control Break on personnel Area
LOOP.
AT NEW pnpwerks.
IF sy-tabix NE 1.
FORMAT COLOR COL_TOTAL ON.
WRITE:/5 'Total Number of Employees for Personal Area: ',
var1 ,'is ', v_ctr2. "color col_total. CLEAR V_CTR2.
SKIP 1.
FORMAT COLOR OFF.
ENDIF.
ENDAT .
WRITE:/5
i_tab1-pernr, "personnel number
16 i_tab1-ename, "emp name
47 i_tab1-begda, "join date
60 v_age, "age in days
74 i_tab1-werks, "P area
84 i_tab1-btrtl, "P sub Area
94 i_tab1-persg, "emp group
104 i_tab1-persk, "emp sub group
114 i_tab1-plans. "position
v_ctr1 = v_ctr1 + 1.
v_ctr2 = v_ctr2 + 1.
var = i_tab1-btrtl .
var1 = i_tab1-werks .
ENDLOOP.
*& Form top_of_page
Header Output
FORM top_of_page.
FORMAT COLOR COL_HEADING ON.
WRITE:/5 'Employee',
16 'Employee',
47 'Join Date',
62 'Age',
74 'Personal',
84 'Personal',
94 'Employee',
104 'Employee',
114 'Position ',
/5 'Number',
16 'Name',
60 '(In Days)',
74 'Area',
84 'Sub-Area',
94 'Group',
104 'Sub-Group'.
FORMAT COLOR OFF.
SKIP 1.
ENDFORM. " top_of_pageAfter tables pernr.
write this code :
GET PERNR.
and check the program
Regards,
Srinivas -
hi
I M FACING STRANGE PROBLEM.
WHEN I GIVE SIMPLE "SELECT * FROM TABLE@DBLINK" COMMAND IT GIVES NOT ERROR. ALSO ON THE MOTHER SCHEMA IT RUNS FINE. BUT WHEN I USE THIS COMMAND OVER OTHER DATABASE WITH DBLINK LIKE I MENTIONED HERE BELOW, A VERY STRANGE ERROR COMES.
PLEASE HELP IF SOME ONE HAS GAUGHT THROUG THIS ...?
COMMAND IS:-
SQLWKS> SELECT DISTINCT P.SALES_CONTRACT_NUM, P.SCHEDULE_NUM
2> FROM PROCESSING_SCHEDULE@MARK P
3> ORDER BY 1
4>
SALES_CONTRACT_NUM SCHEDULE_N
ORA-01114: IO error writing block to file 1027 (block # 9609)
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed.
O/S-Error: (OS 9609) DNS zone already exists.
ORA-01114: IO error writing block to file 1027 (block # 9609)
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed.
O/S-Error: (OS 9609) DNS zone already exists.
ORA-02063: preceding 8 lines from MARKFURTHOR MORE TO MY EARLIER QUERY, I FOUND THAT, ERROR COMES WHEN I USE DISTINCT KEYWORD, OTHER WISE IT EXECUTES WELL.
IS THERE SOME BUG WITH DISTINCT KEYWORK
??? -
Problem in fetching data from 0025IT
Hello...
Here we are working on One Page Profile and when i had made enteries in dev server for employee first aparaisal in infotype 25 , it has shown one record correctly.But in the table HRP1001 , it created two records with same dates and ratings but created two different object ids for the same record. It is showing same two record in the smartform also.
Please advice me how to solve this problem...
Thanks and Regards
Shivangi...Hello Experts ,
I have the problem regarding Infotype25 . I am working on one page profile , for that i have maintain new entry for an employee in infotype 25.In PA30 ,the record is maintained correctly but in the table HRP1001 it has shown two duplicate records with different object ids.Please help me how can i get the single record in that table .
Thanks and Regards,
Shivangi -
Facing problem in getting data in different field
hi,
i have made a report in ALV format. n the whole code is this..
TABLES: VBAK,vbap.
type-pools: slis. "ALV Declarations
SELECT-OPTIONS:
s_sales for vbak-kunnr obligatory,
s_date for VBAK-audat obligatory.
*Data Declaration
types: begin of s_sales,
kunnr like vbak-kunnr,
ernam like VBRP-ernam,
audat like VBAK-audat,
aufnr like VBAK-aufnr,
KBMENG like vbap-KWMENG,
matnr like vbap-matnr,
matwa like vbap-matkl,
end of s_sales.
DATA: IT_VBAKUK TYPE STANDARD TABLE OF s_sales INITIAL SIZE 0,
WA_sales TYPE s_sales.
*ALV data declarations.
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid.
*start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform display_alv_report.
*& Form build_fieldcatalog
text
form build_fieldcatalog.
fieldcatalog-fieldname = 'KUNNR'.
fieldcatalog-seltext_m = 'Customer Code'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'ernam'.
fieldcatalog-seltext_m = 'Customer Name'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'stadat'.
fieldcatalog-seltext_m = 'Order Date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'aufnr'.
fieldcatalog-seltext_m = 'Order No'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'KWMENG'.
fieldcatalog-seltext_m = 'Quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'matnr'.
fieldcatalog-seltext_m = 'Material Code'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'matkl'.
fieldcatalog-seltext_m = 'Material Description'.
fieldcatalog-col_pos = 7.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. "build_fieldcatalog
*& Form build_layout
text
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
endform. "build_layout
*& Form display_alv_report
text
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
TABLES
t_outtab = IT_VBAKUK
EXCEPTIONS
program_error = 1
others = 2.
if sy-subrc <> 0.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form data_retrieval
text
form data_retrieval.
select vbakkunnr VBakernam VBAkaudat vbakaufnr vbapKWMENG vbapmatnr vbap~matkl
up to 10 rows
from vbak inner join vbap on vbakvbeln = vbapvbeln
into table IT_VBAKUK.
endform. "data_retrieval
When a execute this query it get this result:
Customer code Customer No. Order Date *Order No. * *Quantity * Material code Material Description
0000001390 0000001390 0000001390 0000001390 0000001390 0000001390 0000001390
0000001175 0000001175 0000001175 0000001175 0000001175 0000001175 0000001175
0000001175 0000001175 0000001175 0000001175 0000001175 0000001175 0000001175
0000001175 0000001175 0000001175 0000001175 0000001175 0000001175 0000001175
0000001175 0000001175 0000001175 0000001175 0000001175 0000001175 0000001175
0000001001 0000001001 0000001001 0000001001 0000001001 0000001001 0000001001
0000002200 0000002200 0000002200 0000002200 0000002200 0000002200 0000002200
0000002200 0000002200 0000002200 0000002200 0000002200 0000002200 0000002200
0000002200 0000002200 0000002200 0000002200 0000002200 0000002200 0000002200
0000002200 0000002200 0000002200 0000002200 0000002200 0000002200 0000002200
You can see in all column data is repeating even tough i have given different field name...
Kindly give me solution of this problem.
Thanks n Regards.hi,
i have these field:
*select VBAK~KUNNR VBAK~ERNAM VBAK~AUDAT VBAK~AUFNR VBAP~KWMENG VBAP~MATNR VBAP~MATKL
up to 10 rows
from VBAK inner join VBAP on VBAK~VBELN = VBAP~VBELN
into table IT_VBAKUK.
endform.*
I want to add these field in my parameter by using WHERE clause but don't know how to restrict these field using where clause.
Kindly give me some example related to this.
Regards -
Problem in Fetching data using RFC FM from NON SAP system
Hi All,
Need help from experts on data transfer using RFC from a non SAP system/database. I have creasted the destination in sm59.
I have created a function module too which has an import parameter as a query and export parameter as an internal table.
No when i test run this function module it returns some entries. But when I call this FM in a program it throws a dump 'rfc_external_abort' . Here is what the call to FM looks like in my program. Please guide me on this.
Thanks in advance,
Saket.
DATA : lv_query TYPE string,
it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
DESTINATION 'D39'
EXPORTING
in_sql_query = lv_query
IMPORTING
ET_GDDB_DATA = it_gddbdataHi,
your question..
DATA : lv_query TYPE string,
it_gddbdata TYPE ZC9_TAB_SOLMAN_XI_RFC.
lv_query = 'SELECT * FROM GDDB.VW_GDDB_PERSONS WHERE LASTNAME = ''''A'''''.
CALL FUNCTION 'Z_C9_SOLMAN_XI_GDDBCON'
DESTINATION 'D39'
EXPORTING
in_sql_query = lv_query
IMPORTING
ET_GDDB_DATA = it_gddbdata
you are telling that you are fetching the data from non sap system using RFC function module.. how it is possible..you canot fetch the data from non SAP system using RFC FM alone.. you have to use the concept BAPI.. it will work..
I hope this will help you..
Regards,
Kiran -
Facing problem in writing data to excel sheet using ActiveX
Hi.
I want to write data from a one dimesional array to a particular excel sheet in a particular row.Please see the attached vi for explantion.
It is giving error.But If I give a new file name when the appliation is getting closed it is writing data to the new excel file.
Please help.
Thanks in advance
Attachments:
Excel sheetWrite.vi 90 KBThanks Jhoskin and Rudi .......
I am able to write data to excel sheet now. I am attaching one"test.zip" file that contains a VI named "Squence.vi "that contains another subVI named "Write U94006 Table To XL.vi"which does the functionality of counting the number of rows in the excel sheet and writing data in the next blank row. I am using the same subVI in the VI named "Sequence.vi"two times so it is taking a lot of time in opening and closing the excel sheet. Will you please suggest some way of calling the subVI only one time.
Rikki
Attachments:
Test.zip 105 KB
Maybe you are looking for
-
Scenario: With the release of Windows 10 Technical Preview (build 9926), some users may encounter an error message of “The account is not authorized to login from this station” when trying to access remote files saved in NAS storage. In addition, the
-
Hello, Just after install the new version for the Iphone , I lost all of my applications. I bought some of there. I lost my contacts too. I try to found somethings in the Help ,but nothing. Can you help me ? Ps: I'm french so sorry if you find mistak
-
Print preview issue with invoice script
Hi folks i am working on preparing UTP for a invoice script(modification of standard one). here when i am running the billing document number in VF02 i am not able to see the print preview. i would like to know what should i do on this as i need a pr
-
Production Order - Trigger won't Auto Refresh
2007A PL49 - Just upgraded from 2005A I have the following query set in a UDF on the Production Order. SELECT T1.PriceAfVAT FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.ItemCode = $[$-6.0.0] and T0.DocNum = $[$-32.0.0] The qu
-
Set measure to NULL for dates in the future
Hi all I am trying to set the values of a measure to NULL in case the date is in the future. I have a time dimension and fact table. What I have so fat is the following: IIF([Date].[CalendarDetailed].CURRENTMEMBER.Name < format(now(), "yyyy-MM-dd"),