How to updata data from SAP EP into SAP R/3 ?
Hi,
How to create the material from SAP CE 7.1 into SAP R/3. Is BAPI the only way for this or there is some other solution.
Also, please explain how to use BAPI in this scenario.
Regards,
Yogita.
Please look into the following link
http://help.sap.com/saphelp_nw70/helpdata/en/19/4554426dd13555e10000000a1550b0/frameset.htm
Thanks,
Raju Bonagiri
Similar Messages
-
How to extract data from info cube into an internal table using ABAP code
HI
Can Anyone plz suggest me
How to extract data from info cube into an internal table using ABAP code like BAPI's or function modules.
Thankx in advance
regds
AJAYHI Dinesh,
Thankq for ur reply
but i ahve already tried to use the function module.
When I try to Use the function module RSDRI_INFOPOV_READ
I get an information message "ERROR GENERATION TEST FRAME".
can U plz tell me what could be the problem
Bye
AJAY -
To read data from exel file into sap
hi all,
How to read data from exel file into the internal table in abap?
Regards,
sugeet.Hi Sugeet,
Use the following code.
DATA : BEGIN OF tbl_asset occurs 0,
anlkl LIKE anla-anlkl, " Asset Class
bukrs LIKE anla-bukrs, " Company Code
ranl1 LIKE ra02s-ranl1, " Asset #
txt50 LIKE anla-txt50, " Description 1
txa50 LIKE anla-txa50, " Description 2
sernr LIKE anla-sernr, " Serial #
invnr LIKE anla-invnr, " Inventory #
menge LIKE anla-menge, " Quantity
meins LIKE anla-meins, " Base UOM
inken LIKE anla-inken, " Inventory
END OF tbl_asset.
DATA : w_filename TYPE IBIPPARMS-path,
w_file TYPE string.
start-of-selection.
*popup for file path from user
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
IMPORTING
FILE_NAME = w_filename .
MOVE w_filename TO w_file .
* upload data
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = w_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = tbl_asset
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
for HAS_FIELD_SEPARATOR Use
'X': Fields are separated by tabs.
SPACE: Fields are not separated by tabs. In this case, the table must contain only one column or all columns must be contained in the file in their entire length.
Hope it helps...
Lokesh
Pls. reward appropriate points -
How to extract data from ODS to non-SAP system
Hi,
Can anybody tell me, step by step, how to extract data from ODS to a non-SAP system?
Is it possible to do it without programming effort? And is there volume limits for this kind of extraction?
The non-SAP system is an unix system.
Thanks in advance
EllaElla,
You can look at it from the concept of a BADI / Infospoke
Extract the data from the ODS to a Flat file / RDBMS using an infospoke. I am not sure as to how the infospoke loads data into the RDBMS ( did it very long ago ) but then you can push it into an RDBMS and I am sure it will be system neutral.
Hope this helps...
Arun
Assign points if it helps -
How to bring data from Oracle based Non SAP System to SAP
Dear Friends,
I have two servers, one is SAP and the other one is Non SAP with Oracle in backend. Please suggest how to take data from the NonSAP server to SAP server or how to connect the two.
Please send the step-by-step configuration if possible.
Thanks in advance,
Alok.Hi
Step 1: Create an entry for the External database in DBCON table using Trxn: DBCA.
Table: DBCON (Description of Database Connections)
Field Name Description Value (For: E.g.:)
CON_NAME Logical name for a database connection RAJ
DBMS Database system MSS
USER_NAME Database user <username>
PASSWORD Password for setting up the connection <pwd>/<pwd>
CON_ENV Database-specific information MSSQL_SERVER=depotserver MSSQL_DBNAME=HOF_INDORE
DB_RECO
Step 2: Now you can write code to connect to the external database
Your Sample code can be something like this
FUNCTION-POOL z_houston. "MESSAGE-ID ..
DATA: BEGIN OF wa,
c_locid(3),
c_locname(50),
c_locstate(5),
END OF wa.
FUNCTION z_houston_connect.
""Local interface:
EXEC SQL.
CONNECT TO 'RAJ' AS 'V'
ENDEXEC.
EXEC SQL.
SET CONNECTION 'V'
ENDEXEC.
*- Get the data from MS-SQL Server
EXEC SQL.
open C1 for
select
loc_id,
loc_name,
loc_state
from ho_loc_mast
ENDEXEC.
DO.
EXEC SQL.
FETCH NEXT C1 into :wa-c_locid, :wa-c_locname, :wa-c_locstate
ENDEXEC.
IF sy-subrc = 0.
PERFORM loop_output.
ELSE.
EXIT.
ENDIF.
ENDDO.
EXEC SQL.
CLOSE C1
ENDEXEC.
ENDFUNCTION.
*& Form LOOP_OUTPUT
Output
FORM loop_output .
WRITE: /5 wa-c_locid, 10 wa-c_locname, 65 wa-c_locstate.
CLEAR wa.
ENDFORM. " LOOP_OUTPUT
Regards
Raj -
Uploading data from MS Access into SAP R3 v3.1
Hey Gurus,
I am wondering which options I have to import data from a MS Access database into SAP R3 version3.1. For example, can I make use of the LSM Workbench?
Regards,
Pim
points are awarded if helpfullIt is much better to take the help of technical person, as directly you can upload the data from MS Access to SAP ..the thing you have to keep in mind is tell theABAPer to convert the file into a .txt one..as then only SAP will allow.
Reward Points if it helps,
Regards,
N -
How to take data from HTML Template into BSP Variable?
hi all,
can we take the data from the input field of HTML Template and collect into BSP variable? i have the shown the HTML Template into BSP page by passing the url in <IFRAME> tag now i have to take the data form the into field of HTML Template and save it back to the BSP table onclicking the Save button of BSP Page. please help me out thanks in advance.
Thanks & Regards,
AmolHi Amol,
This is very simple....
In the onInputProcessing event of the page use the following code to read data from the InputField into an ABAP variable...
Then you can use it at will..!
Code is :
data : event TYPE REF TO if_htmlb_data,
but_event TYPE REF TO cl_htmlb_event_button.
event = cl_htmlb_manager=>get_event( request ).
IF event->EVENT_NAME = 'button' and event->EVENT_TYPE = 'click'.
but_event ?= event.
CASE event->EVENT_ID.
when 'your_button_id'.
data : lw_inf type ref to cl_htmlb_inputfield.
lw_inf ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'inputField'
id = 'your_inputField_id' ).
if lw_inf->value is not initial.
lw_variable = lw_inf->value.
endif.
ENDCASE.
ENDIF. -
IDOC :: how to send data from Custom Infotype in SAP HR to third party
Hi,
I have created one custom Infotype by number 9020. How to send data from this infotype to third party system and also change pointers need to trigger for this infotype.
Please help me in doing it.
I am using one Custom Message type ZTALENT and Custom Idoc Type ZTALENT.
ZTALENT Talent Management
5 E1PLOGI Header for an HR Object (Master Data or Organizational Data)
5 E1PITYP HR: Transported Infotypes and Subtypes for an Object
ZPUSER User base Data File
ZPERSON Personal Information File Segment
ZPOST Position File
ZOPE Overall Performance
ZPWORK Outside Work Experience
ZPEDUC Education Details of Employee
E1P0000 HR: HR Master Record Infotype 0000 (Actions)
E1P0001 HR: HR Master Record Infotype 0001 (Org. Assignment)
E1P0002 HR: HR Master Record Infotype 0002 (Personal Data)
E1P0016 HR Master Record: Infotype 0016 (Contract Elements)
E1P0022 HR Master Record: Infotype 0022 (Education)
E1P0023 HR Master Record: Infotype 0023 (Other/Previous Employers)
E1P0041 HR Master Record: Infotype 0041 (Date Specifications)
E1P0105 HR: HR Master Record Infotype 0105 (Communications)
ZE1P9020
ZPLANG Language Details
ZACTION Actions Changes
Regards,
KrishnaHello Shankar,
Technically TEMSE files are read by calling the following 3 function modules in sequence,
1) RSTS_OPEN_RLC or RP_TS_OPEN: open the temse object
2) RSTS_READ : read the object
3) RSTS_CLOSE: close the object
Regards,
Rajesh -
How to write data from planning folder into a planning cube in BPS
Hi All,
I have an issue in writing data from planning folder to planning cube.
I updated the excel sheet in planning folder in UPSPL tcode.
After clicking on save button in the excel sheet the data did not get updated into the cube.
I set the real time cube to planning mode.
Please let me know if there are any settings to save the data to cube or how can it be done.
Thanks in advance.
Regards,
Lavanya.Hi Lavanya,
What do you mean by "the data did not get updated into the cube" ?
Don't you find a yellow request in the cube administration transaction ? What happened if you set it to green ?
Regards,
Fred -
How to transfer data from legacy system to SAP
Hi Friends,
I would like to know the process and the steps followed to transfer data from my legacy system to SAP.
Suppose if i have all the data in the form of Excel sheet or doc type. How can i transfer this data into SAP.
Please explain the steps followed.
Appreciate your help
AnilHi ,
Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
the below link gives a brief explanation of the LSMW tool
http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
There are various methods to upload data within LSMW. If the number of records are very high like Article Master or Conditions for Retail the IDOC method must be used.
Standard IDocs
1. Article Master - ARTMAS
2. Conditions - COND_A
3. Source list - SRCLST
4. Customer Master or WRF3/WRF6 tables - DEBMAS
5. Vendor master- CREMAS
Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
Regards
Prabhu -
How to retrieve data from a CGI to SAP?
Hi guys,
I'm looking for a way to retrieve information from a CGI page into SAP. This CGI generates a XML with the response from the parameters I use on the URL.
I can xsl transform the result into ABAP variables, but first I need to know how to get that information.
As anyone come across this or knows how to do it?
Thanks in advance,
RicardoHi,
In your case, Include prog is part of FM, no need to treat it as an Entity.
Now, Your Answer -
In SCRIPT - IN Page Window -->
PERFORM GET_MVAT_TIN IN PROGRAM Z_SCRIPT_PERFORMS_ABAPDB3
USING &VBDKR-KUNRE&
CHANGING &STCD1&
CHANGING &STCD2&
ENDPERFORM
IF &STCD1& <> ' '
<B>MVAT Number :</> &STCD1&
ENDIF
Then go to SE38 --> Creat prog with type - Subroutine pool
In that Write FORM statement for this PERFORM.
FORM get_mvat_tin TABLES inttab STRUCTURE itcsy
outtab STRUCTURE itcsy.
DATA : v_kunre TYPE kna1-kunnr,
v_stcd1 TYPE kna1-stcd1,
v_stcd2 TYPE kna1-stcd2.
LOOP AT outtab.
CLEAR outtab-value.
MODIFY outtab.
ENDLOOP.
READ TABLE inttab INDEX 1.
v_kunre = inttab-value.
IF v_kunre CA sy-abcde.
ELSE.
UNPACK v_kunre TO v_kunre.
ENDIF.
" Here You can take your Funcion module ***************************
SELECT SINGLE stcd1 stcd2 FROM kna1 INTO (v_stcd1, v_stcd2)
WHERE kunnr = v_kunre.
IF sy-subrc = 0.
READ TABLE outtab INDEX 1.
WRITE v_stcd1 TO outtab-value.
MODIFY outtab INDEX 1.
READ TABLE outtab INDEX 2.
WRITE v_stcd2 TO outtab-value.
MODIFY outtab INDEX 2.
ENDIF.
ENDFORM. -
How to update data from PSA to target in BI 7.0
Hi all,
can you pls tell me the procedure/process to load data from PSA to data target. We got a load failure while activating the data in DSO.We made necessary changes to the incorrect data in PSA and we saved. When i run the DTP again it gives me 0 records. Is there any option like in 3.5 where we can select the PSA right click.....schedule the update/start the update immediate. or any other process which solves my problem.
Thank you all,
Regards,
PraveenA new object concept is available for the ETL process as sap Net Weaver 2004. To implement the EDW layer paradigm, sap has changed the concept of the ETL data flow and process design.
The most important innovations in the modified object concept are as followes.
1. When a Datasource is activated, a PSA table is generated in the inbound laywr of the BI so that data
can already be loaded.
2 The infopackage is only used to load the data from the source system into PSA.
3 This is followed by the data transfer proccess (DTP) step to transfer data within the BI from one
persistent object to another by using transformation and filters,
4 The definition for which data targets the data from the Datasource is to be updated into occurs in
transformations. this is also where fields of Datasource are assigned to infoObjects of the target
objects in bi. -
How to insert data from APEX form into two tables
Hi,
I'm running APEX 4.1 with Oracle XE 11g, having two tables CERTIFICATES and USER_FILES. Some of the (useless) fields are cut to reduce information:
CREATE TABLE CERTIFICATES
CERT_ID NUMBER NOT NULL ,
CERT_OWNER NUMBER NOT NULL ,
CERT_VENDOR NUMBER NOT NULL ,
CERT_NAME VARCHAR2 (128) ,
CERT_FILE NUMBER NOT NULL ,
) TABLESPACE CP_DATA
LOGGING;
ALTER TABLE CERTIFICATES
ADD CONSTRAINT CERTIFICATES_PK PRIMARY KEY ( CERT_ID ) ;
CREATE TABLE USER_FILES
FILE_ID NUMBER NOT NULL ,
FILENAME VARCHAR2 (128) ,
BLOB_CONTENT BLOB ,
MIMETYPE VARCHAR2 (32) ,
LAST_UPDATE_DATE DATE
) TABLESPACE CP_FILES
LOGGING
LOB ( BLOB_CONTENT ) STORE AS SECUREFILE
TABLESPACE CP_FILES
STORAGE (
PCTINCREASE 0
MINEXTENTS 1
MAXEXTENTS UNLIMITED
FREELISTS 1
BUFFER_POOL DEFAULT
RETENTION
ENABLE STORAGE IN ROW
NOCACHE
ALTER TABLE USER_FILES
ADD CONSTRAINT CERT_FILES_PK PRIMARY KEY ( FILE_ID ) ;
ALTER TABLE CERTIFICATES
ADD CONSTRAINT CERTIFICATES_USER_FILES_FK FOREIGN KEY
CERT_FILE
REFERENCES USER_FILES
FILE_ID
NOT DEFERRABLE
What I'm trying to do is to allow users to fill out all the certificate data and upload a file in an APEX form. Once submitted the file should be uploaded in the USER_FILES table and all the fields along with CERT_ID, which is the foreign key pointing to the file in the USER_FILES table to be populated to the CERTIFICATES table. APEX wizard forms are based on one table and I'm unable to build form on both tables.
That's why I've created a view (V_CERT_FILES) on both tables and using INSTEAD OF trigger to insert/update both tables. I've done this before and updating this kind of views works perfect. Here is where the problem comes, if I'm updating the view all the data is updated correctly, but if I'm inserting into the view all the fields are populated at CERTIFICATES table, but for USER_FILES only the fields FILE_ID and LAST_UPDATE_DATE are populated. The rest three regarding the LOB are missing: BLOB_CONTENT, FILENAME, MIMETYPE. There are no errors when running this from APEX, but If I try to insert into the view from SQLDeveloper, I got this error:
ORA-22816: unsupported feature with RETURNING clause
ORA-06512: at line 1
As far as I know RETURNING clause in not supported in INSTEAD of triggers, although I didn't have any RETURNING clauses in my trigger (body is below).
Now the interesting stuff, after long tracing I found why this is happening:
First, insert is executed and the BLOB along with all its properties are uploaded to wwv_flow_file_objects$.
Then the following insert is executed to populate all the fields except the BLOB and it's properties, rowid is RETURNED, but as we know RETURNING clause is not supported in INSTEAD OF triggers, that's why I got error:
PARSE ERROR #1918608720:len=266 dep=3 uid=48 oct=2 lid=48 tim=1324569863593494 err=22816
INSERT INTO "SVE". "V_CERT_FILES" ( "CERT_ID", "CERT_OWNER", "CERT_VENDOR", "CERT_NAME", "BLOB_CONTENT") VALUES (:B1 ,:B2 ,:B3 ,:B4, ,EMPTY_BLOB()) RETURNING ROWID INTO :O0
CLOSE #1918608720:c=0,e=11,dep=3,type=0,tim=1324569863593909
EXEC #1820672032:c=3000,e=3168,p=0,cr=2,cu=4,mis=0,r=0,dep=2,og=1,plh=0,tim=1324569863593969
ERROR #43:err=22816 tim=1324569863593993
CLOSE #1820672032:c=0,e=43,dep=2,type=1,tim=1324569863594167
Next my trigger gets in action, sequences are generated, CERTIFICATES table is populated and then USER_FILES, but only the FILE_ID and LAST_UPDATE_DATE.
Finally update is fired against my view (V_CERT_FILES), reading data from wwv_flow_files it populates BLOB_CONTENT, MIMETYPE and FILENAME fields at the specific rowid in V_CERT_FILES, the one returned from the insert at the beginning. Last, file is deleted from wwv_flow_files.
I'm using sequences for the primary keys, this is only the body of the INSTEAD OF trigger:
select user_files_seq.nextval into l_file_id from dual;
select certificates_seq.nextval into l_cert_id from dual;
insert into user_files (file_id, filename, blob_content, mimetype, last_update_date) values (l_file_id, :n.filename, :n.blob_content, :n.mimetype, sysdate);
insert into certificates (cert_id, cert_owner, cert_vendor, cert_name, cert_file) values (l_cert_id, :n.cert_owner, :n.cert_vendor, :n.cert_name, l_file_id);
I'm surprised that I wasn't able to find a valuable source of information regarding this problem, only MOS note about running SQLoader against view with CLOB column and INSTEAD OF trigger. The solution would be to ran it against base table, MOS ID 795956.1.
Maybe I'm missing something and that's why I decided to share my problem here. So my question is how do you create this kind of architecture, insert into two tables with a relation between them in APEX ? I read a lot in the Internet, some advices were for creating custom form with APEX API, create a custom ARP, create two ARP or create a PL/SQL procedure for handing the DML?
Thanks in advance.
Regards,
SveThank you however I was wondering if there was an example available which uses EJB and persistence.
-
How to import data from legacy system to SAP
How do we import legacy data to SAP system? Iu2019m a trainee on SAP HR, just wanted a brief description on that in layman terms?
There are lot of threads related to issue please use Search forum for Better results before posting the query search the forum for better prospectsHi ,
Conversion of legacy data into SAP can be uploaded using a standard SAP Tool called LSMW ( TCode:LSMW).
the below link gives a brief explanation of the LSMW tool
http://tutorialsap.com/abap/sap-lsmw-tutorial-with-steps-to-create.html
There are various methods to upload data within LSMW. If the number of records are very high like Article Master or Conditions for Retail the IDOC method must be used.
Standard IDocs
1. Article Master - ARTMAS
2. Conditions - COND_A
3. Source list - SRCLST
4. Customer Master or WRF3/WRF6 tables - DEBMAS
5. Vendor master- CREMAS
Etc. Use transaction code WE60 to see the structure of each of the idocs. New enhancements can be done for the idocs if the required field is not available.
Regards
Prabhu -
How to retract data from BPC Netwaver to SAP R/3
Hi all,
I have three questions concerning the retraction of data from BPC to R/3:
1)Can someone explain me how i can send data from BPC to R/3 (via SAPBI)??
2)What's a better choice => Can i do this from an infocube or a DSO?
3)And what is the role of the BAPI's "BAPI_0050_CREATION" and "BAPI_TRANSACTION_COMMIT"
Or are those not important?hi,
The push principle shows a workaround to start an extractor from the source system.... for this you can try APDs (esp for CRM system)and open hub destinations(OH).
or
kindly refer to below document which describes about the COPA retraction as an example for the same
http://tleterme.developpez.com/bw/how/HowTo_COPA_Retraction.pdf
also below thread explain that in detail about retractionand has diff links that might be helpful to you
Retractors to SAP ECC from SAP BI
regards
laksh
Maybe you are looking for
-
My cd rom drive no longer works,
can i directly connect to another mac to install programs lost when my hard drive crashed? the time machine replaced the programs however i get a message that the i work program is not supported with this version of os
-
I've got a 30G G5 Ipod and it won't function other than what's listed here. When connected to my computer I get the low battery symbol. When I've got it connected to the fast charger, the screens repeatedly change from the apple, to the sad Ipod, to
-
JDBC sender channel running but not picking up the data from sp
Hi, One of the jdbc sender channels in production is running at its schedule time but it is not picking up the data from the sql side, we have checked with the sp side and they are saying that sp is running fine. No changes have been done in its conf
-
Writing my own readLine() method
I am trying to write my own readLine() method. I am using the read() method from BufferedReader to read one char at a time into an array. Then when I encounter a \n chacter I convert the array to a string and return it. The problem arrises when i rea
-
ASA5505 un-responsive after installing ASA-SSC-AIP-5 IPS module
Hello, Can anyone help? I have a pair of ASA 5505 firewalls in a failover configuration. Everything works correctly until I install the IPS module into the secondary firewall. When install I can no longer ping the firewall from the inside network. We