Load table data to any server-client
Hi...
I have a requirement to load Cost Centre data from CSKS and CSKT tables to any Server u2013 Client. What is the best way to accomplish the same? Do i have to use RFC or just put the cost center into a file and load to another system?
Regards,
Aruna Nivetha.R
Hi,
Actually, it's a task more to your ABAP or BASIS team, but you can do it yourself as well. You can read more here:
http://help.sap.com/saphelp_47x200/helpdata/en/94/e2d63b8ad9c01ce10000000a11402f/frameset.htm
Another way, is to put this master data in a change request and transport it. You can do it via OKE6.
Regards,
Eli
Similar Messages
-
OMW hangs when loading table data?
Hello - I've got the OMW to read the xml version of my access database. However when I tell it to migrate to Oracle, it get through creating all the table users, tablespaces, etc and then it dies when it gets to "loading table data". Any ideas?
Thanks
RichardIf it is an MS Access database you are migrating from, then we create a schema with the same name as the mdb filename. So for file northwind.mwb we would create a schema called northwind. The default password is oracle unless you change it in the Oracle Model UI of the Workbench. In the Oracle Model looks under users to see what users exist.
Once the user is created you should simply be able to connect to that user via sqlplus and see all the schema objects/data migrated
Donal -
FM to upload the Internal table data into application server.
Hi,
Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
Regards,
deepthi.Hi Deepthi
Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
Here's the code snippet:
IF tb_alvdisplay[] IS INITIAL.
MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
ELSE.
IF NOT cb_ufile IS INITIAL "Download to file
AND sy-pagno = 0. "Only down page headers for first page
PERFORM fm_concatenate_path_name USING p_path
p_file
CHANGING v_file.
*Open file for download.
PERFORM fm_open_file USING v_file .
ENDIF.
LOOP AT tb_alvdisplay.
IF NOT cb_ufile IS INITIAL.
*Passing the values of the respective headings to the structure.
ws_rec-vend_no = tb_alvdisplay-vendno.
ws_rec-vend_nm = tb_alvdisplay-vendnm.
ws_rec-title = tb_alvdisplay-vendtl.
ws_rec-add = tb_alvdisplay-add.
ws_rec-city1 = tb_alvdisplay-city1.
ws_rec-region = tb_alvdisplay-region.
ws_rec-country = tb_alvdisplay-country.
ws_rec-pobox = tb_alvdisplay-po.
ws_rec-phone = tb_alvdisplay-telf1.
ws_rec-extn = tb_alvdisplay-extn.
ws_rec-fax = tb_alvdisplay-telfx.
ws_rec-zterm = tb_alvdisplay-zterm.
ws_rec-remark = tb_alvdisplay-remark.
ws_rec-email = tb_alvdisplay-email.
*Passing the separator 'PIPE' to the structure.
ws_rec-sep01 = co_sep.
ws_rec-sep02 = co_sep.
ws_rec-sep03 = co_sep.
ws_rec-sep04 = co_sep.
ws_rec-sep05 = co_sep.
ws_rec-sep06 = co_sep.
ws_rec-sep07 = co_sep.
ws_rec-sep08 = co_sep.
ws_rec-sep09 = co_sep.
ws_rec-sep10 = co_sep.
ws_rec-sep11 = co_sep.
ws_rec-sep12 = co_sep.
ws_rec-sep13 = co_sep.
TRANSFER ws_rec TO v_file.
ENDIF.
AT LAST.
IF NOT cb_ufile IS INITIAL.
*Closing the DATASET file.
CLOSE DATASET v_file.
IF sy-subrc <> 0.
*Failure Message.
MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
ELSE.
*Success message.
MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
ENDIF.
ENDIF.
ENDAT.
ENDLOOP.
ENDIF.
Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
Hope this helps.
Harsh -
Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel
Hi,
We are trying to load several Excel files into SQL Server SSIS and we need to save the data in the database in the same order as it is in Excel..
My question is, Does SSIS guarantee that it loads the data into SQL Server in the same order as it is in Excel. If so, we will add a sequence to ensure we have the order.
Please advise.
Thanks & Regards,
DhanumjayThanks for your response.
If it is one file then we can add an index column, but we have to load hundreds of files.
How adding an index/key column to the table works unless SSIS picks and loads the data in the table in the same order as it is in Excel?
Just to explain my question better,
If excel has three rows {a,b},{c,d},{e,f}, does SSIS ensure it loads the data in the same order in a table.
Thanks. -
How to load oracle data into SQL SERVER 2000?
how to load oracle data into SQL SERVER 2000.
IS THERE ANY UTILITY AVAILABLE?Not a concern for an Oracle forum.
Als no need for SHOUTING.
Conventional solutions are
- dump the data to a csv file and load it in Mickeysoft SQL server
- use Oracle Heterogeneous services
- use Mickeysoft DTS
Whatever you prefer.
Sybrand Bakker
Senior Oracle DBA -
Loading xml data before any other code
I am able to load xml but i want to load xml data before any other code so that i can use xml data in other time line......
In output i am getting like that.....
hiiiiiiiiiiiiiiiiiiiii in vertical
xmlData.servername in verr=undefined
hiiiiiiiiiiiiiiiiiiiii in vertical
xmlData.servername in verr=undefined
sunil
sunil
sunil
sunil
hiiiiiiiiiiiiiiiiiiiii in vertical
xmlData.servername in verr=DIN66003188
sunil
sunil
sunil
sunil
xmlData.servername is loading so late that it is taking undefined value.
So please suggest somthing.the code is like that
import com.utils.GlobalVarContainer;
import flash.display.Loader;
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;
var _xml:XML;
var xmlData:XML = new XML();
loadXMLFile();
var server;
var msgListGroup:XMLList;
function loadXMLFile():void
var loader= new URLLoader(new URLRequest("server.xml"));
loader.addEventListener(Event.COMPLETE, loadedCompleteHandler);
function loadedCompleteHandler(e:Event):void
xmlData = new XML(e.target.data);
GlobalVarContainer.vars.servername=xmlData.servername;
GlobalVarContainer.vars.projectname=xmlData.projectname;
msgListGroup=xmlData.servername;
i want to use this GlobalVarContainer.vars.servername within other movieclip.....so i m taking global variable but it is also not working.
this i m using in other movieclip...
var localhost=GlobalVarContainer.vars.servername;
var prjectName=GlobalVarContainer.vars.projectname;
compare_btn.addEventListener(MouseEvent.CLICK,compare_btnClick);
function compare_btnClick(e:Event){
trace("hi");
navigateToURL(new URLRequest("http://"+localhost+":8080/"+prjectName+"/web/vertical45.jsp?page=1"), "_self");
and this i cant put in COMPLETE event handler function bcoz this compare_btn code is in three frame.
plz advise. -
Sending internal table data to application server as an XML file
Hi All,
I am trying to send the internal table data to application server which should be stored in XML format.
I am using the following code:
DATA:
result TYPE xstring.
CALL TRANSFORMATION id
SOURCE tab = p_output-xsfdata
RESULT XML result.
OPEN DATASET l_xml_full_path FOR OUTPUT IN BINARY MODE.
TRANSFER result TO l_xml_full_path.
CLOSE DATASET l_xml_full_path.
And the content in the internal table is :
3C3F786D6C2076657273696F6E3D22312E30223F3E3C736620786D6C6E733D2275726E3A736
73796D206E616D653D22534653592D44415445223E30362F31302F323030393C2F73796D3E2
50617961626C653C6E65772D6C696E652F3E50617274206F6620746865204E616D653C6E657
.......and so on
With this a file is getting created on the application server, but the data is not correct. I am getting the data something like:
<?xml version="1.0" encoding="utf-8"?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"><asx:values><TAB><item>
PD94bWwgdmVyc2lvbj0iMS4wIj8+PHNmIHhtbG5zPSJ1cm46c2FwLWNv
MDA6eHNmIj48c21hcnR4c2Y+PGhlYWRlcj48Z2VuZXJhbD48dmVyc2lvbj4xLjE0LjI8L3ZlcnNp
b24PGZvcm0WkJMX1NESU5WX0xfMzwvZm9ybT48bGFuZ3VhZ2U+RU48L2xhbmd1YWdlPjxkZXZp
Y2UUFJJTlRFUjwvZGV2aWNlPjxvdXRwdXQtZGV2aWNlPlNYU0Y8L291dHB1dC1kZXZpY2UPC9n
ZW5lcmFsPjxwYWdlIG5hbWU9IkZJUlNUIiBpZD0iMDAxIi8PC9oZWFkZXIPGRhdGEgeG1sOnNw
YWNlPSJwcmVzZXJ2ZSIgc3R5bGU9Ii9TTUIxMS9CTF9TRiI+PGdyYXBoaWNzIG5hbWU9IkNPTUxP
R08iIG9iam5hbWU9Ii9TTUI0MC9MRUFGIiBvYmplY3Q9IkdSQVBISUNTIiBpZD0iQk1BUCIgdHlw
ZT0iQkNPTCIgcGFnZT0iRklSU1QiIHBhZ2UtaWQ9IjAwMSIgcmVzb2x1dGlvbj0iMDEwMCIvPjx3
aW5kb3cgbmFtZT0iU0VOREVSIiBwYWdlPSJGSVJTVCIgcGFnZS1pZD0iMDAxIj48dGV4dCBuYW1l
PSJDT01BRERSIiBzdHlsZT0iL1NNQjExL0JMX1NGIiBvYmpuYW1lPSIvU01CMTEvQkxfU0VOREVS
IiBsYW5nPSJFTiIPHAgbmFtZT0iWlMiPkJhc2VsaW5lIENvbXBhbnk8L3APHAgbmFtZT0iWlMi
PjM0NzUgRGVlciBDcmVlazx0YWIvPlBob25lOjx0YWIvPisxICg2NTApIDg0OS00MDAwPC9wPjxw
IG5hbWU9IlpTIj5QYWxvIEFsdG8sIENBIDk0MzA0PHRhYi8+RmF4Ojx0YWIvPisxICg2NTApIDg0
OS00MjAwPC9wPjxwIG5hbWU9IlpTIj5VU0E8dGFiLz5JbnRlcm5ldDo8dGFiLz5odHRwOi8vd3d3
LnNhcC5jb208L3A+PC90ZXh0Pjwvd2luZG93Pjx3aW5kb3cgbmFtZT0iUEFHRSIgcGFnZT0iRklS
U1QiIHBhZ2UtaWQ9IjAwMSI+PHRleHQgbmFtZT0iUEFHRU5VTUJFUiIgc3R5bGU9Ii9TTUIxMS9C
TF9TRiIgbGFuZz0iRU4iPjxwIG5hbWU9IlROIj5QYWdlIDxzeW0gbmFtZT0iU0ZTWS1QQUdFIj4x
PC9zeW0IG9mIDxzeW0gbmFtZT0iU0ZTWS1KT0JQQUdFUyIvPjwvcD48cCBuYW1lPSJUTiIPA==</item>
<item>c3ltIG5hbWU9IlNGU1ktREFURSI+MDYvMTAvMjAwOTwvc3ltPiA8c
RSIMTQ6MDg6MDM8L3N5bT48L3APC90ZXh0Pjwvd2luZG93Pjx3aW5kb3cgbmFtZT0iTkFNRSIg
cGFnZT0iRklSU1QiIHBhZ2UtaWQ9IjAwMSI+PHRleHQgbmFtZT0iRk9STVVMQVJUSVRFTCIgc3R5
bGU9Ii9TTUIxMS9CTF9TRiIgbGFuZz0iRU4iPjxwIG5hbWU9IlROIj48Y2hyIG5hbWU9Ik1MIj48
c3ltIG5hbWU9IlRJVExFIj5JbnZvaWNlPC9zeW0PC9jaHIPC9wPjwvdGV4dD48L3dpbmRvdz48
d2luZG93IG5hbWU9IkJJTExUT1BBUlRZIiBwYWdlPSJGSVJTVCIgcGFnZS1pZD0iMDAxIj48dGV4
dCBuYW1lPSJXSU5ET1dfVEVYVCIgc3R5bGU9Ii9TTUIxMS9CTF9TRiIgbGFuZz0iRU4iPjxwIG5h
bWU9IlRIIj5CaWxsLVRvLVBhcnR5PC9wPjwvdGV4dD48YWRkcmVzcyBuYW1lPSJCSUxMQUREUkVT
UyIgYWRkcm51bWJlcj0iMDAwMDAyMjQyNyI+PHRleHQgbmFtZT0iQklMTEFERFJFU1MiIHN0eWxl
PSIvU01CMTEvQkxfU0YiIGxhbmc9IkVOIj48cCBuYW1lPSJUMiI+VGVjaCBJbmM8bmV3LWxpbmUv
Could anyone tell me the reason why am I getting the data in this way?
Thanks in advance,
Swapna.
Edited by: NagaSwapna Thota on Jun 10, 2009 5:44 PMHI,
Use this FM SAP_CONVERT_TO_XML_FORMAT to convert the data to XML format and then upload the convert data from the internal table to Application server. -
How to transfer internal table data to Applicatiion Server in XML fromat.
how to transfer internal table data to Applicatiion Server in XML fromat.
Hi if u want to transfer from to application server using xml in
do like this,
v_xml_table is u r internal table,
and define li_xml_table as line of u r internal table
OPEN DATASET g_file FOR OUTPUT IN BINARY MODE .
LOOP AT v_xml_table INTO li_xml_table.
TRANSFER li_xml_table TO g_file .
ENDLOOP.
CLOSE DATASET g_file.
ENDIF.
<removed_by_moderator>
Regards,
Prasad.
Edited by: Julius Bussche on Jul 16, 2008 2:43 PM -
Load XML data from UNIX Server Directly into Relational Database Tables
Is there a way I can load data from an XML File into Oracle Tables , without having the Input XML file in some Oracle Server Directory. My XML File resides on UNIX Application server. And I need to directly load the data into Database tables. Without loading them into the Database Directory.
Also I am looking for a solution that would not load my Database much and effect other running processes. Can it be done using SQL Loader ?
Oracle Database Version is : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit ProductionThanks for your reply ,
Please would you quote an Example about : 'Load the file into that table using SQL*Loader' (From UNIX Server) Or instance of some existing thread that relates to my situation.
The Size of the File would be about 3 GB. For a similar requirement one of my peers Code which used XMLTABLE and XPATH Approach consumed a lot of resources while running and caused the other Database Applications to slow down. Thus those guys have come up with an approach to :
Parse XML using a C Code using some STRING Functions => For a CSV or Fixed width .dat file and then use SQL Loader to just load the file into Tables.
This approach is efficient in terms of Resources and Time(Takes 5 mins). But I am not confident about parsing XML based on String based C Functions.
Please comment about this approach . Also if possible Suggest the best efficient way of doing this. -
Error while loading ACS data model on server
Hi
I am installing a ACS4.6.1 framework on Tomcat3.2.3. One of the step in installation is to load the data model of ACs on oracle server.
They have given a sql script to do the same.
On running that script we get following errors:
BEGIN
ERROR at line 1:
ORA-20000: ConText error:
DRG-10703: invalid framework object AUTO_SECTION_GROUP
ORA-06512: at "CTXSYS.DRUE", line 122
ORA-06512: at "CTXSYS.CTX_DDL", line 173
ORA-06512: at line 2
CREATE INDEX xml_content_index ON search_content(xml_content) INDEXTYPE IS ctxsys.context
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: ConText error:
DRG-12203: section group autogroup does not exist
ORA-06512: at "CTXSYS.DRUE", line 122
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
ORA-06512: at line 1
CREATE INDEX raw_content_index ON search_content(raw_content) INDEXTYPE IS ctxsys.context
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: ConText error:
DRG-50704: Net8 listener is not running or cannot start external procedures
ORA-28575: unable to open RPC connection to external procedure agent
ORA-12154: TNS:could not resolve service name
ORA-06512: at "CTXSYS.DRUE", line 122
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 34
ORA-06512: at line 1
Are there any settings missing?
Versions are as under
Oracle server is 8i
Oracle client is 8.1.5
Oracle intermedia is installed on the server
I request you to provide help on this urgently .
Thanks in advance
ShriramAUTO_SECTION_GROUP is available in 8.1.6 or greater.
You also need to have the db listener running. -
Load Table Data into Excel Specific range
Hi,
I am working with Excel Destination in SSIS, where i have to insert table data into multiple excel sheets with specific range, sheet name same as table name and i should load each table into that particular sheet name in excel.
So Sheet name will decide at run time and i have created one variable to pass complete sheet name (like [DimAge$A16:R1000]) in excel destination, but it is throwing error Here i am facing two complexities
1)Getting error while passing excel sheet name as variable
2) How to insert into excel in specific range of values shown as above.
Ur help in solving this would be appreciatedHi Naveen,
Based on my research, a worksheet or range is the equivalent of a table or view in Excel. The lists of available tables in the Excel Source and Destination editors display only existing worksheets (identified by the $ sign appended to the worksheet name,
such as Sheet1$) and named ranges (identified by the absence of the $ sign, such as MyRange).
So when you use a variable with [DimAge$A16:R1000] or [Select * from DimAge!A$16:R$1000] value in the Excel Destination, the value acts as a worksheet or range name. But there is no such worksheet or range in the excel file, so the error message occurs.
To fix this issue, please select the cell range in your excel sheet, then right-click the range to define a name for the range to create some ranges with the specific ranges in excel file, then in the "Name of the Excel Sheet" drop down box of
"Excel Destination Editor" you can see that Named range. Then simply select the range from the drop-down list or use a variable with the range name as the Excel Destination.
For more information about how to import data to Excel sheet's specific region, please refer to the following blog:
http://getsetsql.blogspot.in/2012/01/using-ssis-load-data-to-excel-sheet-at.html
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Using OMW I succesfully managed to capture my access database and migrate it to Oracle. When is time to load the "table data" I get multiple errors one of them being: Integrity constraint violated-parent key not found.
What is the best way to go about loading data into my Oracle schema?
Thank you
PiltonIf it is an MS Access database you are migrating from, then we create a schema with the same name as the mdb filename. So for file northwind.mwb we would create a schema called northwind. The default password is oracle unless you change it in the Oracle Model UI of the Workbench. In the Oracle Model looks under users to see what users exist.
Once the user is created you should simply be able to connect to that user via sqlplus and see all the schema objects/data migrated
Donal -
Load ODS data to Application server file
Hi,
I need to upload ODS data to application server.
I can not use Open Hub service. I need to do the upload process in background as there is around 5 million data in ODS. Can anybody please guide
deepHi,
You can use Analytic Process Designer for your requirement.
Use 'RSANWB'.
It will allow you to select the source as DSO and also you can choose target as some logical path where you can define Application server path as Physical path. Use "FILE'
Also you can schedule the process in background.
Further you can refere to :
http://help.sap.com/saphelp_nw04/helpdata/en/49/7e960481916448b20134d471d36a6b/frameset.htm
Regards,
anil -
Upload internal table data to Application server in Excel Sheet
Hi All,
I have all my data in an internal table.I want to Upload this data to the Application server in the EXCEL sheet with the Column Header.
How can i do this.Is there any standarad function module or class to to write in xls format.
Can anybody help me.
Thanks,
SwapnaHi
In SAP ABAP you can transfer the contents of the internal table to a file. This is required when you wish to extract data from SAP tables into a flat file. This file can then be used to transfer data to another SAP or NON SAP system. This can also be used for an interfacing when you wish to transfer data on a daily or a weekly basis from R/3 to NON R/3 or SAP. The command used to create a file on the application server is as follows.
OPEN DATASET
Please see example code below.
REPORT ZEX_DATATOFILE .
*& ABAPLOVERS: Data Transfer
Parameters to enter the path
PARAMETERS FILENAME(128) DEFAULT '/usr/tmp/testfile.dat'
LOWER CASE.
Table Declaration
TABLES VBAK.
Data Declaration
DATA D_MSG_TEXT(50).
Get data for file transfer
DATA INT_VBAK LIKE VBAK OCCURS 100
WITH HEADER LINE.
SELECT * FROM VBAK INTO TABLE INT_VBAK.
SORT INT_VBAK BY VBELN.
LOOP AT INT_VBAK.
WRITE: / INT_VBAK-VBELN,
INT_VBAK-KUNNR.
ENDLOOP.
Opening the File
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
MESSAGE D_MSG_TEXT.
IF SY-SUBRC NE 0.
WRITE: 'File cannot be opened. Reason:', D_MSG_TEXT.
EXIT.
ENDIF.
Transferring Data
LOOP AT INT_VBAK.
TRANSFER INT_VBAK-VBELN TO FILENAME.
ENDLOOP.
Closing the File
CLOSE DATASET FILENAME. -
Error while transferin intenal table data to application server
*& Report YGL_BALANCES
REPORT YGL_BALANCES.
TABLES:BAPI1028_0,BAPI1028_4,faglflext.
data: f_glacc(10) type c value 'flgl.text' .
DATA: BALANCE LIKE BAPI1028_4-BALANCE,
RETUR LIKE BAPIRETURN,
FISC_YEAR LIKE BAPI1028_4-FISC_YEAR,
FIS_PERIOD LIKE BAPI1028_4-FIS_PERIOD,
DEBITS_PER LIKE BAPI1028_4-DEBITS_PER,
CREDIT_PER LIKE BAPI1028_4-CREDIT_PER,
PER_SALES LIKE BAPI1028_4-PER_SALES.
data:prctr like faglflext-prctr,
racct like faglflext-racct,
rbukrs like faglflext-rbukrs.
types: begin of st_i ,
COMP_CODE LIKE BAPI1028_4-COMP_CODE,
GL_ACCOUNT LIKE BAPI1028_4-GL_ACCOUNT,
FISC_YEAR(4),
FIS_PERIOD(2),
DEBITS_PER(23),
CREDIT_PER(23),
PER_SALES(23),
BALANCE(23),
CURRENCY LIKE BAPI1028_4-CURRENCY,
CURRENCY_ISO(3),
END OF st_i.
DATA: ITAB like BAPI1028_4 OCCURS 10 WITH HEADER LINE.
***********************************************************************jtab like faglflext occurs 0 with header line.
PARAMETERS: COMPCODE LIKE BAPI1028_0-COMP_CODE,
CURRENCY LIKE BAPI1028_5-CURR_TYPE,
YEAR LIKE BAPI1028_4-FISC_YEAR,
ACCOUNT LIKE BAPI1028_0-GL_ACCOUNT.
CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'
EXPORTING
COMPANYCODE = COMPCODE
GLACCT = ACCOUNT
FISCALYEAR = YEAR
CURRENCYTYPE = CURRENCY
IMPORTING
BALANCE_CARRIED_FORWARD = BALANCE
RETURN = RETUR
TABLES
ACCOUNT_BALANCES = ITAB.
open dataset f_glacc for output in text mode encoding default.
loop at itab .
transfer itab to f_glacc.
endloop.
close dataset f_glacc.
iam getting error like this
Runtime Errors UC_OBJECTS_NOT_CHARLIKE
Date and Time 01/16/2006 07:09:51
ShrtText
The current statement is defined for character-type data objects only.
What happened?
Error in ABAP application program.
The current ABAP program "YGL_BALANCES" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
Only character-type data objects are supported at the argument
position "f" for the statement
"TRANSFER f TO ...".
In this case, the operand "f" has the non-character-type "BAPI1028_4". The
current program is flagged as a Unicode program. In the Unicode context,
type X fields are seen as non-character-type, as are structures that
contain non-character-type components.
Trigger Location of Runtime Error
Program YGL_BALANCES
Include YGL_BALANCES
Row 48
Module Name START-OF-SELECTION
Source Code Extract
Line
SourceCde
18
FIS_PERIOD LIKE BAPI1028_4-FIS_PERIOD,
19
DEBITS_PER LIKE BAPI1028_4-DEBITS_PER,
20
CREDIT_PER LIKE BAPI1028_4-CREDIT_PER,
21
PER_SALES LIKE BAPI1028_4-PER_SALES,
22
23
ITAB LIKE BAPI1028_4 OCCURS 10 WITH HEADER LINE.
24
*data : wa like itab.
25
26
PARAMETERS: COMPCODE LIKE BAPI1028_0-COMP_CODE,
27
CURRENCY LIKE BAPI1028_5-CURR_TYPE,
28
YEAR LIKE BAPI1028_4-FISC_YEAR,
29
ACCOUNT LIKE BAPI1028_0-GL_ACCOUNT.
30
31
CALL FUNCTION 'BAPI_GL_GETGLACCPERIODBALANCES'
32
EXPORTING
33
COMPANYCODE = COMPCODE
34
GLACCT = ACCOUNT
35
FISCALYEAR = YEAR
36
CURRENCYTYPE = CURRENCY
37
IMPORTING
38
BALANCE_CARRIED_FORWARD = BALANCE
39
RETURN = RETUR
40
TABLES
41
ACCOUNT_BALANCES = ITAB.
42
43
*OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
44
*TRANSFER `1234567890` TO file.
45
46
open dataset f_glacc for output in text mode encoding default.
47
loop at itab .
>>>>>
transfer itab to f_glacc.
49
endloop.
50
close dataset f_glacc.
51
52
53
54
*CALL FUNCTION 'WS_DOWNLOAD'
55
EXPORTING
56
BIN_FILESIZE = ' '
57
CODEPAGE = ' '
58
FILENAME = 'C:\KLN.TXT'
59
FILETYPE = 'DAT'
60
MODE = ' '
61
WK1_N_FORMAT = ' '
62
WK1_N_SIZE = ' '
63
WK1_T_FORMAT = ' '
64
WK1_T_SIZE = ' '
65
COL_SELECT = ' '
66
COL_SELECTMASK = ' '
67
NO_AUTH_CHECK = ' 'Hi ,
what is that file type .text ...?
there is some problem as i understand from ur code ...
There actually u have to mention application server path
with file name...
go thru this code ..I hope it will be helpful for u
ELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001
PARAMETERS : p_afile LIKE filename-fileintern LOWER CASE.
SELECTION-SCREEN END OF BLOCK a.
OPEN DATASET p_afile FOR OUTPUT IN TEXT MODE.
*Display this message if the file is not opened successfully
IF sy-subrc NE 0.
MESSAGE e006 WITH 'Error in opening Server file'.
ELSE.
LOOP AT it_display.
TRANSFER it_display TO p_afile.
ENDLOOP.
IF sy-subrc EQ 0.
WRITE : /'File posted successfully'.
ENDIF.
*Close dataset
CLOSE DATASET p_afile.
*Display this message if the file is not closed
IF sy-subrc NE 0.
MESSAGE e006 WITH 'Error in closing Server file'.
ENDIF.
ENDIF.
Maybe you are looking for
-
When analyze it by the tool of WINDBG, see the following information: (3fc.3f8): Access violation - code c0000005 (!!! second chance !!!) eax=00010004 ebx=00000000 ecx=7c9375b4 edx=7c99b178 esi=121db898 edi=121db820 eip=124e1040 esp=121db7a4 ebp=121d
-
To BlackBerry Malaysia, BlackBerry International and Brightstar Corp, On the 17th of October 2013 (2:44:27 PM), I’ve sent in my BlackBerry 9810 for service of the track pad with the work order (WO621039) and serial number ([removed]) at your BlackBer
-
Audio & video via HDMI to an external monitor with lid closed.
I would like to run a Macbook Pro Retina (2014) with the lid closed and all video and audio via HDMI routed to an external monitor (Samsung Syncmaster from 2010). Is this possible? When I try this, no sound is transferred to the external monitor and
-
Stop Lightroom 2.4 from Importanting Images w/camera connected
I want to stop LR 2.4 from auto importing images when I connect my camera. I have tried many times to set "Preferences" so it would not auto import images when I connect my camera (Edit > Preferences... > Import > (uncheck box) next to "Show import d
-
Email confirmation help in iStore
Hi, I need to send an email confirmation to t able to the users who register with our website. Here is the body section of the email. I am not able to find out where this code is written. I believe it is a media object or template.but not able to fin