How to connect peoplesoft using bapi?
how to connect peoplesoft using bapi?
points will be awarded
Hi,
You can actually connect any 2 systems, if they are capable of providing and consuming web services.
If you want to connect SAP to Peoplesoft to fetch or send data, then Peoplesoft should expose these functionalities in the form of Webservice. Then you will have to create Proxy Objects in SAP by consuming these webservices (SE80). Through this proxy object you can communicate with Peoplesoft.
Thanks...
Preetham S
Message was edited by:
Preetham S
Similar Messages
-
Please provide me how change the Materil using BAPI...?
Hi Guru's,
could please provide me how change the Materil using BAPI...
please provide the BPAI name and step by step process...
if ou provide any program logic that would be helpfull to me...
thanks in advance
Srinivas....Hi,
THis is code .
*& Report Zs_MATMAS_BAPI
*& This program demonstrates how easy it is to create Material master
*& data using BAPI_MATERIAL_SAVEDATA
*& The program also generates a report post-execution displaying errors
*& as well as successful uploads
REPORT Zs_MATMAS_BAPI.
TABLES
FLAGS *
DATA: F_STOP. " Flag used to stop processing
DATA DECLARATIONS *
DATA : V_EMPTY TYPE I, " No. of empty records
V_TOTAL TYPE I. " Total no. of records.
STRUCTURES & INTERNAL TABLES
*BAPI structures
DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
BAPI_MAKT LIKE BAPI_MAKT, " Material Description
BAPI_MARA1 LIKE BAPI_MARA, " Client Data
BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
BAPI_MARC1 LIKE BAPI_MARC, " Plant View
BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
BAPI_RETURN LIKE BAPIRET2. " Return Parameter
*--- Internal table to hold excel file data
DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
*--- Internal table to hold Matetrial descriptions
DATA: BEGIN OF IT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF IT_MAKT.
*--- Internal to hold the records in the text file
DATA : BEGIN OF IT_DATA OCCURS 100,
WERKS(4), " Plant
MTART(4), " Material type
MATNR(18), " Material number
MATKL(9) , " Material group
MBRSH(1), " Industry sector
MEINS(3), " Base unit of measure
GEWEI(3), " Weight Unit
SPART(2), " Division
EKGRP(3), " Purchasing group
VPRSV(1), " Price control indicator
STPRS(12), " Standard price
PEINH(3), " Price unit
SPRAS(2), " Language key
MAKTX(40), " Material description
END OF IT_DATA.
SELECTION SCREEN. *
SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
'C:\Material_master.XLS'.
PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK SCR1.
AT SELECTION-SCREEN *
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
*--- Validating file
PERFORM VALIDATE_FILE USING P_FILE.
START-OF-SELECTION
START-OF-SELECTION.
*--- Perform to convert the Excel data into an internal table
PERFORM CONVERT_XLS_ITAB.
IF NOT IT_DATA[] IS INITIAL.
*--- Perform to delete Header lines
PERFORM DELETE_HEADER_EMPTY_RECS.
ENDIF.
END OF SELECTION. *
END-OF-SELECTION.
*--- Perform to upload Material Master data
PERFORM UPLOAD_MATMAS.
Form : validate_input_file
Description : To provide F4 help for file if read from PC
FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
CHANGING
FILE_NAME = F_FILE
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2.
IF SY-SUBRC 0.
MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
ENDIF.
ENDFORM. " validate_input_file
*& Form CONVER_XLS_ITAB
text
FORM CONVERT_XLS_ITAB.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = P_BEGCOL
I_BEGIN_ROW = P_BEGROW
I_END_COL = P_ENDCOL
I_END_ROW = P_ENDROW
TABLES
INTERN = IT_INTERN.
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*--- Perform to move the data into an internal data
PERFORM MOVE_DATA.
ENDFORM. " CONVERT_XLS_ITAB
*& Form MOVE_DATA
text
FORM MOVE_DATA.
DATA : LV_INDEX TYPE I.
FIELD-SYMBOLS <FS>.
*--- Sorting the internal table
SORT IT_INTERN BY ROW COL.
CLEAR IT_INTERN.
LOOP AT IT_INTERN.
MOVE IT_INTERN-COL TO LV_INDEX.
*--- Assigning the each record to an internal table row
ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
*--- Asigning the field value to a field symbol
MOVE IT_INTERN-VALUE TO <FS>.
AT END OF ROW.
APPEND IT_DATA.
CLEAR IT_DATA.
ENDAT.
ENDLOOP.
ENDFORM. " MOVE_DATA
*& Form DELETE_HEADER_EMPTY_RECS
To delete the Header and empty records
FORM DELETE_HEADER_EMPTY_RECS.
DATA: LV_TABIX LIKE SY-TABIX.
IF NOT P_HEADER IS INITIAL.
LOOP AT IT_DATA.
IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
DELETE IT_DATA FROM 1 TO P_HEADER.
P_HEADER = 0.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
CLEAR IT_DATA.
*--- To delete the empty lines from internal table
LOOP AT IT_DATA.
LV_TABIX = SY-TABIX.
IF IT_DATA IS INITIAL.
V_EMPTY = V_EMPTY + 1.
DELETE IT_DATA INDEX LV_TABIX..
ENDIF.
ENDLOOP.
CLEAR IT_DATA.
*--- Total no of recs in file
DESCRIBE TABLE IT_DATA LINES V_TOTAL.
IF V_TOTAL = 0.
MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
F_STOP = 'X'.
STOP.
ENDIF.
ENDFORM. " DELETE_HEADER_EMPTY_RECS
*& Form UPLOAD_MATMAS
to upload Material Master data
FORM UPLOAD_MATMAS .
LOOP AT IT_DATA.
Header
UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
BAPI_HEAD-BASIC_VIEW = 'X'.
BAPI_HEAD-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
Material Description
REFRESH IT_MAKT.
IT_MAKT-LANGU = IT_DATA-SPRAS.
IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
APPEND IT_MAKT.
Client Data - Basic
BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
BAPI_MARA1-DIVISION = IT_DATA-SPART.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
Plant - Purchasing
BAPI_MARC1-PLANT = IT_DATA-WERKS.
BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
BAPI_MARCX-PLANT = IT_DATA-WERKS.
BAPI_MARCX-PUR_GROUP = 'X'.
Accounting
BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWX-STD_PRICE = 'X'.
BAPI_MBEWX-PRICE_UNIT = 'X'.
*--- BAPI to create material
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
FORECASTPARAMETERS =
FORECASTPARAMETERSX =
PLANNINGDATA =
PLANNINGDATAX =
STORAGELOCATIONDATA =
STORAGELOCATIONDATAX =
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
WAREHOUSENUMBERDATA =
WAREHOUSENUMBERDATAX =
SALESDATA = BAPI_MVKE1
SALESDATAX = BAPI_MVKEX
STORAGETYPEDATA =
STORAGETYPEDATAX =
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = IT_MAKT
UNITSOFMEASURE =
UNITSOFMEASUREX =
INTERNATIONALARTNOS =
MATERIALLONGTEXT =
TAXCLASSIFICATIONS =
RETURNMESSAGES =
PRTDATA =
PRTDATAX =
EXTENSIONIN =
EXTENSIONINX =
IF BAPI_RETURN-TYPE = 'E'.
WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
ELSEIF BAPI_RETURN-TYPE = 'S'.
WRITE: 'Successfully created material' ,IT_DATA-MATNR.
ENDIF.
ENDLOOP.
ENDFORM. " UPLOAD_MATMAS
Thanks
Sarada -
How to create material using BAPI Methods?
hi,
how to create material master dat using BAPI?
could u guide me
i will be waiting for reply.
REGARDS
ESWAR.Hi eswar,
Try this code to create gods mmovement...
DATA: GOODSMVT_HEADER LIKE BAPI2017_GM_HEAD_01,
" Material Document Header Data
GOODSMVT_CODE LIKE BAPI2017_GM_CODE,
" Assign code to transaction for BAPI goods movement
MATERIALDOCUMENT LIKE BAPI2017_GM_HEAD_RET-MAT_DOC,
" Number of Material Document
GOODSMVT_ITEM LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER
LINE,
" Create Material Document Item
RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE
" Return table for messages
*Fill values in header
GOODSMVT_HEADER-PSTNG_DATE = '20030825'.
GOODSMVT_HEADER-DOC_DATE = '20030802'.
*Fill GOODSMVT_CODE
GOODSMVT_CODE-GM_CODE = '05' .
*Fill Item Table
GOODSMVT_ITEM-MATERIAL = '100-100'.
GOODSMVT_ITEM-PLANT = '1000'.
GOODSMVT_ITEM-STGE_LOC = '0001'.
GOODSMVT_ITEM-MOVE_TYPE = '501'.
GOODSMVT_ITEM-ENTRY_QNT = '50'.
GOODSMVT_ITEM-ITEM_TEXT = 'Test Sanket'.
*GOODSMVT_ITEM-COSTCENTER = '1000'.
APPEND GOODSMVT_ITEM.
*Create Good's movement
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = GOODSMVT_HEADER
GOODSMVT_CODE = GOODSMVT_CODE
IMPORTING
MATERIALDOCUMENT = MATERIALDOCUMENT
TABLES
GOODSMVT_ITEM = GOODSMVT_ITEM
RETURN = RETURN.
*Commit BAPI
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
*Display Goods movement number
FORMAT COLOR 6 INVERSE ON.
READ TABLE RETURN WITH KEY TYPE = 'E'.
IF SY-SUBRC = 0.
WRITE: /,'ERROR! Goods movement not created'.
ELSE.
WRITE: /,'Goods movent number',MATERIALDOCUMENT COLOR 5,
'posted for material',GOODSMVT_ITEM-MATERIAL.
ENDIF.
FORMAT COLOR OFF INVERSE OFF.
try this on report program and create a goods movement.
Sanket. -
How to create invoice using bapi base on delivery number with example
hi,
Pl give me one example to create invoice using bapi base on delivery number (PGI).Use this code
* Pass the delivery no to the FM to create the invoice
wa_vbsk-smart = u2018Fu2019.
wa_komfk-vbeln = nast-objky. u201CuF0DF-----delivery number
APPEND wa_komfk TO it_komfk.
CLEAR wa_komfk.
* To fill the message structure
* l_wa_error-vbeln_vl = nast-objky. " Delivery No.
* l_wa_error-fkart = wa_ztab-bil_doc_type." Billing Doc type
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
* delivery_date = 0
invoice_date = v_date u201C<- date
* invoice_type = ' '
* pricing_date = 0
vbsk_i = wa_vbsk
with_posting = u2018Du2019
* select_date = 0
i_no_vblog = ' '
i_analyze_mode = ' '
id_utasy = ' '
id_utswl = ' '
id_utsnl = ' '
id_no_enqueue = ' '
id_new_cancellation = ' '
** IMPORTING
* VBSK_E =
* OD_BAD_DATA =
* DET_REBATE =
TABLES
xkomfk = it_komfk
xkomv = it_komv
xthead = it_thead
xvbfs = it_vbfs
xvbpa = it_vbpa
xvbrk = it_xvbrk
xvbrp = it_vbrp
xvbss = it_vbss
* XKOMFKGN =
* XKOMFKKO = -
How to connect database using coding in trigger in forms
Oracle forms6i
Hai All
Is there any possiblity to connect database using coding.
For example when we open a form and we use some button and write some coding and when we execute a small will appear and we give username,connection identifier and database name.
Is it any possible there when we create a button and in that button we write coding our database name,connectionid and user and when we exe it will internally connect database Pls tell me..
Regards
Srikkanth.Muse LOGON Procedure
PROCEDURE LOGON
(username VARCHAR2,
password VARCHAR2);
logon('scott','tiger@orcl');Mr.Srikkanth.M if u dont close ur old questions dont expect others to answer ur question everytime......so plz remember if u think the person's answer is helpful or correct mark it accordingly
Thanks :)
Baig
[My Oracle Blog|http://baigsorcl.blogspot.com/] -
How to connect sqlserver use oracle sql developer?
I created a non-oracle location connection in owb and can load data from sqlserver to warehouse. Now, I want to use sqlplus or sqldeveloper to connect sqlserver directly, But I got this error message"ora-03135:connection lost contact".
How can I connect sqlserver in sqldeveloper or sqlplus?
ThanksHi Napo,
SQLDeveloper can migrate to oracle, browse sqlserver and run and display results from single statements.
I have not seen "ora-03135:connection lost contact" have you set up sqlserver for tcp/ip connection, checked the port is open (and not blocked by, for example, firewalls) and used the jtds driver to connect SQLDeveloper to sqlserver?
Note that "ora-03135:connection lost contact" is an oracle error and does not seem related to sqlserver.
Oracle also has heterogenous gateway products which may be useful
Oracle® Database Gateway for SQL Server User's Guide
http://download.oracle.com/docs/cd/B28359_01/gateways.111/b31049/toc.htm
-Turloch -
How to connect and use Stor.E TV with Apple Mac
Hi,
I just bought the Stor.E tv but I use Apple mac.
Is there a program that I can download or just some way I can connect my Stor.E to my computer?
Right now it's locked.
Thank you :)Hi
Im not quite sure if you could use this since there is no special software for MAC OS leopard.
But the TOSHIBA StorE TV supports an common USB port and can be connected to the mac/notebook using the common USB plug an play cable
Maybe the MAC will recognize this external USB device automatically and you will not need to install any software or drivers -
How to connect server using FTP
hi all,
i have an exception while running this program.
import java.io.*;
import java.net.*;
class FTPclientConn {
public final String host;
public final String user;
protected final String password;
protected URLConnection urlc;
public FTPclientConn(String host, String user, String _password) {
host= host; user= user; password= _password;
urlc = null;
protected URL makeURL(String targetfile) throws MalformedURLException {
if (user== null)
return new URL("ftp://"+ host+ "/"+ targetfile+ ";type=i");
else
return new URL("ftp://"+ user+ ":"+ password+ "@"+ host+ "/"+ targetfile+ ";type=i");
protected InputStream openDownloadStream(String targetfile) throws Exception {
URL url= makeURL(targetfile);
urlc = url.openConnection();
InputStream is = urlc.getInputStream();
return is;
protected OutputStream openUploadStream(String targetfile) throws Exception {
URL url= makeURL(targetfile);
urlc = url.openConnection();
OutputStream os = urlc.getOutputStream();
return os;
protected void close() {
urlc= null;
public class FTPupload {
protected FTPclientConn cconn;
public final String localfile;
public final String targetfile;
public FTPupload(String host, String user, String _password,
String localfile, String targetfile) {
cconn= new FTPclientConn(_host, user, password);
localfile= _localfile;
targetfile= _targetfile;
doit();
public FTPupload(String host, String user, String password, String file) {
cconn= new FTPclientConn(_host, user, password);
localfile= _file;
targetfile= _file;
doit();
protected void doit() {
try {
OutputStream os= cconn.openUploadStream(targetfile);
FileInputStream is= new FileInputStream(localfile);
byte[] buf= new byte[16384];
int c;
while (true) {
//System.out.print(".");
c= is.read(buf);
if (c<= 0) break;
//System.out.print("[");
os.write(buf, 0, c);
//System.out.print("]");
os.close();
is.close();
cconn.close(); // section 3.2.5 of RFC1738
} catch (Exception E) {
System.err.println(E.getMessage());
E.printStackTrace();
public static void main(String args[]) {
// Usage: FTPupload host, user, password, file
new FTPupload(args[0], args[1], args[2], args[3]);
i gave the input in command prompt: java FTPupload 172.16.2.1 username password filename and also i am getting exception as
D:\ftp>java FTPupload 172.16.2.1 hariraj raj_123 ftpcheck.java
Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
how to resolve this problem.thanks in advance.Connection refused means that you can't reach the server or that the server isn't listening.
Kaj -
How to connect mega516 using bluetooth
I can't connect megaplayer 516 and nokia 6230 using bluetooth.
my handset ask me to type passcode for megaplyer.
pls help meThe passcode should be 1111, hope its not too late
-
ACROBAT 8 - HOW TO CONNECT AND USE THE LiveCycle Policy Server?
Hello everybody!!! I've just bought the ACROBAT 8.0, and I'm trying to use the LiveCycle Policy Server. The point is, I couldn't connect to the server.... is there any especific way to do it? It is the same configuration to connect to a normal web site server, right?
I need to control a copyrighted PDF over the web restricting the massive copy
THANK YOU VERY MUCHNo it's not exactly like connecting to a normal web server. The connection must be made via https, not http. So the app server has to be configured for SSL. Also the connection will not be made in Acrobat if there are ANY warnings about the SSL cert. So if you can't go to https://serverName:serverPort in IE and get there with no warnings then you won't be able to connect via Policy Server. Also, you can't connect to Policy Server via Acrobat using a Policy Server admin user. It must be a user who doesn't have admin privileges.
Chris
Adobe Enterprise Developer Support -
How to Connect Database Using Script?
Hi all,
Am using Adobe InDesign CS3. Is there any way to connect database from Adobe InDesign CS3 Scripting (Javascript)? Thanks in advance.
Regards,
MohanI don't know javascript so I can't help with that part.
The system plug in you need is from Actual Technologies : http://www.actualtechnologies.com/ The setup for that is detailed in their instructions. You will probably want to set it up for system-wide access, not by user. I found system-wide access more reliable, fwiw.
For Applescript I send a command through the Terminal/command line that returns the data from the query.
Here is Applescript:
set query to "YOUR DB QUERY"
set results to (do shell script "echo \"" & query & "\" | iodbctest \"dsn=" & dsn & ";uid=" & uid & ";pwd=" & pwd & "\" | awk '{ if (match($0,\"SQL>\")) {k++; if (k==1) next; if (k==2) exit; } if (k==1) print; }'")
You can probably do something similar in Javascript. You'll have to parse out the text data returned then. I think there may be plug-ins for InDesign that can directly connect to a database (?). Or some plug-ins like inData can take their data passed from a script as well.
Chris -
How to connect obiee using java?
please any one help to my request.
-GBplease review my java code....
String s_userName = "Administrator";
String s_password = "Administrator";
String s_olapSvrName = "10.112.176.53";
String s_provider = "http://10.112.176.53:13080/aps/JAPI"; //what purpose this line and what type of service provider required here
try
IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
System.out.println("STEP1..........");
//IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
System.out.println("STEP2..........");
IEssOlapServer olapSvr = (IEssOlapServer)dom.getOlapServer(s_olapSvrName);
System.out.println("STEP3..........");
olapSvr.connect();
System.out.println("STEP4..........");
catch(Exception e) {
e.getMessage();
i am getting error
ERROR: Cannot connect to Provider Server.Make sure the signon parameters are correct and the Provider Server is running.
1. where we can find the provider service in obiee?
2. how to configure this service?
3. which port this service is running?
thanks in advance
-GB -
How to update data using BAPI for MD61
Hello,
IN my zprogram i used to bapis for uploading data from flat file to sap-system
1)BAPI_requirement_create
2)BAPI_requirement_change
i)my program is taking data from my flat file but it is wipping out old data i nned to update not to overwrite is there any BAPI for this query
ii)One more thing if data is already entered in on date (i.e 10.07.2009) and when he upload data from flat file for another date same month (12.07.2009) old date data sholud not removed ...
Please reply me if my query is not understand..
Thanks in advance..Assuming you have your new requirements in table IT_REQ.
You could do something like:
DATA: it_req TYPE TABLE OF BAPISSHDIN.
DATA: l_req TYPE BAPISSHDIN.
DATA: it_req_out TYPE TABLE OF bapisitmeo.
DATA: l_req_out TYPE bapisitmeo.
* Get existing requirements
CLEAR it_req_out[].
CALL FUNCTION 'BAPI_REQUIREMENTS_GETDETAIL'
EXPORTING
material = p_matnr
plant = p_werks
requirementstype = p_bedae
version = p_versb
reqmtsplannumber = ''
TABLES
requirements_out = it_req_out[]
return = lt_return[].
* Append old requirements to requirements table
LOOP AT it_req_out INTO l_req_out.
MOVE: l_req_out-date_type TO l_req-date_type,
l_req_out-req_date TO l_req-req_date,
l_req_out-req_qty TO l_req-req_qty,
l_req_out-unit TO l_req-unit.
APPEND l_req TO it_req.
ENDLOOP.
* Change requirements
CALL FUNCTION 'BAPI_REQUIREMENTS_CHANGE'
EXPORTING
material = p_matnr
plant = p_werks
requirementstype = p_bedae
version = p_versb
reqmtsplannumber = ''
vers_activ = p_vervs
TABLES
requirements_schedule_in = it_req[]
return = lt_return[]. -
How to connect database using JDBc?
Hi All,
I developed one Microsoft Access Database named "Test.mdb" in my "C" drive,
i used
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:C:\Test";
Connection con=DriverManager.getConnection(url);
While executing the above code, I m getting the following error
Error occurs java.sql.SQLException : No suitable driver
please help me what is the problem..i did code in proper try catch block ... so dont worry but let me know what is exactly reson behibd getting this querry....
my email id is : [email protected]
waiting for ur reply.. its urgentWhile executing the above code, I m getting the following error
Error occurs java.sql.SQLException : No suitable driverDon't post your e-mail.
This error always means that the URL you gave to connect to the database is incorrect. Yours is indeed wrong:
String url = "jdbc:odbc:C:\Test";You can correct it in either one of two ways:
(1) Create a DNS in Windows that points to your database (call it "Test") and change the URL so it says
String url = "jdbc:odbc:Test";(2) You can skip creating a DNS and use a connection String that looks like this:
"jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=<database-path>";In your case, <database-path> is "C:\\Test"
Better read a tutorial:
http://java.sun.com/docs/books/tutorial/jdbc/
% -
How to connect database using oracle SQL developer
Hello
I am newbie in EBS R12
I downloaded Oracle SQL Developer
and create new database conenction
Connection name: ebs demo db connection
username:
password:
Role: Default
Connection type: Basic
Hostname: ebstailin.demo.com
Port: 1521
SID: clone
when i try this there is an error
Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
no idea about this
but i used the apps/apps as username and password
please help
thanks
Edited by: cheesewizz on Jul 16, 2010 11:35 PMHello
Thanks for your reply
I tried to connect and here is the result: see below
[oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> CONNECT apps/apps
Connected.
SQL>
But still cannot connect using ORACLE SQL Developer
thanks
Maybe you are looking for
-
How to install Ilife 09 on new OS X lion installation?
I made a clean installation of OS X lion. I didn't buy iLife '11 but still work on iLife '09. Because of the fact I didn't do an upgrade but a clean install I of course lost my iLife '09 suite. Can I reinstall it from the original max os X dvd's? How
-
Any iTunes above 10 will screw up .mov accessibility in FCP, so I do not want to download iTunes 11 just to get this iPod Touch updated to 5 or 6. Can I download the update some other way?
-
Connect Mac mini and iMac... please!
Connect iMac and Mac mini... please Posted: Jan 30, 2006 7:17 AM Reply Email Hi guys I can't figure out how to make my iMac and Mac mini talk to each other... let me explain better... I have a wired Linksys router that always worked ok connecting the
-
Bundle the messages based on divisions with BPM!!
Hi Experts, I have one question about payload bundling; I do get 20 divisions xml message roughly 100 a day. The file name explains which division that file belongs to like (XML_DivisionNumber_TimeStamp.xml). This divisio number comes with N104 elem
-
Errors upon erasing free space
I have been experiencing particularly bizarre errors since switching to Mac. Two of the strangest are related to erasing free space. I wasn't aware that OS X could erase free space on its own, until I read the security guide, so I first purchased Shr