How to load data with carriage return through DRM action script ?
Hello,
We are using DRM to manage Essbase metadata. These metadata contain a field for member formula.
Currently it's a string data type property in DRM so we can't use carriage return and our formula are really hard to read.
But DRM support other data type property : memo or formatted memo where we can use carriage return.
Then in the export file, we have change the record delimiter to an other character than CRLF
Our issue : we are regularly using action script to load new metadata => How to load data properties with carriage return using action script ? There is no option to change the record delimiter.
Thanks!
Hello Sandeep
here what I want to do through action script : loading a formula that use more on than one line:
Here, I write my formula using 4 lines but action script cannot load since one line = 1 record.
ChangeProp|Version_name|Hier_name|Node_name|Formula|@round(
qty*price
*m05*fy13
Similar Messages
-
Strange sqlloader loader issue with carriage return in Unix
Oracle 10g
Solaris
Hi All, I'm having issues in running some data into a table via sqlloader. The data was extracted using concatanated SQL with a | delimiter. sql script was executed in the shell to produce the data file.
eg
a,b,c|
d,e,f|
The control file specifies a string terminator as "str '|\n'" but when i run the sqlloadr command on the unix box I states that
no terminator found after TERMINATED and ENCLOSED field.
Ive tried it with \n\r same sort of issue.
The strange scneario i encountered was when I just specified "str '|'" as I read unix would default to \n, the weird thig was that my 6 records DID load into the table succesfully but a bad file was produced with a | character in it and the log file specfied that it tried to load 7 records where 6 were succesfull and 1 failed even though I only had 6 record to play with in the 1dst place.
Any ideas / thoughts greatly appreciated?!
Kind regards
SatnamHi All,
Ive updated the problem..with some output... essentially Ive get it to a situation wher I load ALL my records into the table but I still get a bad file with a "|" record issue and the log file still syas that Im trying to load 7 record when I only have the 6 records.
...............SQL statment...
set trimpspool on
set feedback off
set heading off
set linesize 500
set pagesize 0
spool loaddata_FP.lst
SELECT '"'||spart.x_lsm_region||'"'||','||
'"'||spart.x_sub_type||'"'||','||
'"'||spart.x_origin_type||'"' ||'|'
FROM siebel.cx_ls_part_ship spart;
spool off
-- sample of control file
load data infile 'loaddata_FP.lst' "str '|'"
into table siebel_data_fp fields terminated by "," optionally enclosed by '"'
(x_lsm_region,
x_sub_type,
x_cust_face_staff,
x_nature_partner,
x_origin_type)
--sample log file with error why is it telling me I have 7 records when I am processing 6?
value used for ROWS parameter changed from 64 to 22
Record 7: Rejected - Error on table SIEBEL_DATA_FP, column X_SUB_TYPE.
Column not found before end of logical record (use TRAILING NULLCOLS)
Table SIEBEL_DATA_FP:
6 Rows successfully loaded.
1 Row not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
--- sample bad file showing the pipe ... whay is sqlloader trying to process this pipe when its part of the record...
/u01/oracle/admin/adhoc/xxxl(TESTxx)$
/u01/oracle/admin/adhoc/xxx(TESTxx)$ vi FCT_PARTNERSHIP_ldrcontrol.bad
"FCT_PARTNERSHIP_ldrcontrol.bad" [Incomplete last line] 2 lines, 213 characters
|
~
~
~
any help appreciated!
Edited by: spliffer on 04-May-2010 05:06 -
How to load date with time zone using sql loader???
Hi All,
How to load following value in the table using SQL loader.
[11/Jan/2006:15:20:14 -0800]
What should be the datatype of the column in the table. I have tried with "timestamp with local time zone", but unable to load the record using sql loader. What should be the format string in the loader control file to load this type of record.
Any help in this regard is highly appreciated.
SameerTry something like this in your control file:
mycol char "TO_TIMESTAMP_TZ(mycol, 'DD/MON/YYYY:HH24:MI:SS TZH:TZM')"
[pre]
Message was edited by:
Jens Petersen -
How can i put three carriage returns (ENTERs) in this script's output?
I have a script like
begin
select tablename list;
dbms_output.put_line(q'[Altering selected tables' datalength]' );
for i in 1..x loop
execute immediate v_sql;
end;While executing this in SQL*Plus, the output currently looks like
Altering selected tables' datalength
ALTER TABLE EMP MODIFY (ENAME VARCHAR2(30 CHAR ))
ALTER TABLE DEPT MODIFY (DEPTNO VARCHAR2(30 CHAR ))
ALTER TABLE ARCHIVE_CNG MODIFY (TMAT_ENABLED CHAR(30 CHAR ))
.But i need three ENTERs (Carriage Returns) after the text Altering selected tables' datalength.
ie the output should look like
Altering selected tables' datalength
ALTER TABLE EMP MODIFY (ENAME VARCHAR2(30 CHAR ))
ALTER TABLE DEPT MODIFY (DEPTNO VARCHAR2(30 CHAR ))
ALTER TABLE ARCHIVE_CNG MODIFY (TRIGGER_ENABLED CHAR(30 CHAR ))
ALTER TABLE ARCHIVE_CONFIG MODIFY (USER_ID VARCHAR2(30 CHAR ))
.user659394 wrote:
What is the difference between a carriage return and a newline ? Aren't they both the same?
Edited by: user659394 on May 13, 2009 10:28 AMThey are different characters, one is chr(13) and the other is chr(10). Many editors will treat them the same but by default, when you hit the Enter key on your keyboard the character generated depends on your operating system
Mac chr(13), unix chr(10), windows chr(13)||chr(10)
That's basically the difference between an ascii and a binary transfer between machines with different operating systems. In a binary transfer nothing is changed in the transfer. In an ascii transfer carriage return/newline characters are converted to the default for the operating system. -
hi.,
By SQL LOADER iam able to Transfer data to Oracle Database, from a Flat File System.
But now i want to Transfter the data from Flat Files, to Oracle Apps/VB/D2k Etc.,
with help of SQL Loader.,
is it possible to do..?
Thanks in Advance,
With Regards.,
N.GowriShankar.For the Applications you can use file handling built-ins such as TEXT_IO, UTL_FILE, etc. You can write a batch program for sqlldr and can invoke it from front end Applications.
-
SQL * Loader : Load data with format MM/DD/YYYY HH:MI:SS PM
Please advice how to load data with format MM/DD/YYYY HH:MI:SS PM into an Oracle Table using SQL * Loader.
- What format should I give in the control file?
- What would be the column type to create the table to load data.
Sample data below;
MM/DD/YYYY HH:MI:SS PM
12/9/2012 2:40:20 PM
11/29/2011 11:23:12 AM
Thanks in advance
AvinashHello Srini,
I had tried with the creation date as DATE datatype but i had got an error as
ORA-01830: date format picture ends before converting entire input stringI am running the SQL*LOADER from Oracle R12 EBS front-end.
the contents of my control file is
LOAD DATA
INFILE "$_FileName"
REPLACE
INTO TABLE po_recp_int_lines_stg
WHEN (01) = 'L'
FIELDS TERMINATED BY "|"
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
INDICATOR POSITION(1) CHAR,
TRANSACTION_MODE "TRIM(:TRANSACTION_MODE)",
RECEIPT_NUMBER "TRIM(:RECEIPT_NUMBER)",
INTERFACE_SOURCE "TRIM(:INTERFACE_SOURCE)",
RECEIPT_DATE "TO_CHAR(TO_DATE(:RECEIPT_DATE,'MM/DD/YYYY'),'DD-MON-YYYY')",
QUANTITY "TRIM(:QUANTITY)",
PO_NUMBER "TRIM(:PO_NUMBER)",
PO_LINE_NUMBER "TRIM(:PO_LINE_NUMBER)",
CREATION_DATE "TO_CHAR(TO_DATE(:CREATION_DATE,'MM/DD/YYYY HH:MI:SS AM'),'DD-MON-YYYY HH:MI:SS AM')",
ERROR_MESSAGE "TRIM(:ERROR_MESSAGE)",
PROCESS_FLAG CONSTANT 'N',
CREATED_BY "fnd_global.user_id",
LAST_UPDATE_DATE SYSDATE,
LAST_UPDATED_BY "fnd_global.user_id"
{code}
My data file goes like
{code}
H|CREATE|123|ABC|12/10/2012||||
L|CREATE|123|ABC|12/10/2012|100|PO12345|1|12/9/2012 2:40:20 PM
L|CORRECT|123|ABC|12/10/2012|150|PO12346|2|11/29/2011 11:23:12 AM{code}
Below is the desc of the table
{code}
INDICATOR VARCHAR2 (1 Byte)
TRANSACTION_MODE VARCHAR2 (10 Byte)
RECEIPT_NUMBER NUMBER
INTERFACE_SOURCE VARCHAR2 (20 Byte)
RECEIPT_DATE DATE
QUANTITY NUMBER
PO_NUMBER VARCHAR2 (15 Byte)
PO_LINE_NUMBER NUMBER
CREATION_DATE TIMESTAMP(0)
ERROR_MESSAGE VARCHAR2 (4000 Byte)
PROCESS_FLAG VARCHAR2 (5 Byte)
CREATED_BY NUMBER
LAST_UPDATE_DATE DATE
LAST_UPDATED_BY NUMBER {code}
Thanks,
Avinash -
How To Load a Project Budget Line Through API in R12 ?
Hello
Could you please let me know how to load the project budget lines through API in R12 system, I am trying with below script but it is not working.
Could you please let me know if you have any solution.
=========================================================================================================================================================================
Script
DECLARE
--––variables needed for API standard parameters
l_api_version_number NUMBER := 1.0;
l_commit VARCHAR2 (1) := 'T';
l_return_status VARCHAR2 (1);
l_init_msg_list VARCHAR2 (1);
l_msg_count NUMBER;
l_msg_data VARCHAR2 (2000);
l_data VARCHAR2 (2000);
l_msg_entity VARCHAR2 (100);
l_msg_entity_index NUMBER;
l_msg_index NUMBER;
l_msg_index_out NUMBER;
l_encoded VARCHAR2 (1);
i NUMBER;
a NUMBER;
--––variables needed for Oracle Project specific parameters
l_pm_product_code VARCHAR2 (100);
l_pa_project_id NUMBER;
l_pm_project_reference VARCHAR2 (100);
l_budget_type_code VARCHAR2 (30);
l_change_reason_code VARCHAR2 (30);
l_description VARCHAR2 (255);
l_entry_method_code VARCHAR2 (30);
l_resource_list_name VARCHAR2 (60);
l_resource_list_id NUMBER;
l_budget_lines_in pa_budget_pub.budget_line_in_tbl_type;
l_budget_lines_in_rec pa_budget_pub.budget_line_in_rec_type;
l_budget_lines_out pa_budget_pub.budget_line_out_tbl_type;
l_line_index NUMBER;
l_line_return_status VARCHAR2 (1);
l_user_id NUMBER;
l_responsibility_id NUMBER;
API_ERROR EXCEPTION;
BEGIN
-- SET GLOBAL INFO
SELECT user_id,
responsibility_id
INTO l_user_id,
l_responsibility_id
FROM pa_user_resp_v
WHERE user_name = 'RAJU';
PA_INTERFACE_UTILS_PUB.SET_GLOBAL_INFO (p_api_version_number => 1.0,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status
IF l_return_status != 'S'
THEN
RAISE API_ERROR;
END IF;
--––PRODUCT RELATED DATA
l_pm_product_code := 'GMS';
--––BUDGET DATA
l_pa_project_id := 6271;
l_pm_project_reference := NULL;--'ABC';
l_budget_type_code := 'FC';
-- l_change_reason_code := 'INITIAL';
l_description := 'New description –> 2';
l_entry_method_code := 'PA_TASKLVL_BASELINE';
l_resource_list_id := 1001;
--––BUDGET LINES DATA
a := 1;
FOR i IN 1 .. a
LOOP
l_budget_lines_in_rec.pa_task_id := 405156;
l_budget_lines_in_rec.pm_task_reference := NULL;
l_budget_lines_in_rec.resource_alias := 'Labor';
l_budget_lines_in_rec.resource_list_member_id := '1034';
-- l_budget_lines_in_rec.budget_start_date := '01-Jan-13';
-- l_budget_lines_in_rec.budget_end_date := '31-Dec-14';
-- l_budget_lines_in_rec.period_name := 'JUL-10FY2011';
l_budget_lines_in_rec.description := 'Some Text';
l_budget_lines_in_rec.quantity := 100.00;
l_budget_lines_in_rec.raw_cost := 300.00;
l_budget_lines_in (i) := l_budget_lines_in_rec;
END LOOP;
--––INIT_BUDGET
pa_budget_pub.init_budget;
--––LOAD_BUDGET_LINE
FOR i IN 1 .. a
LOOP
pa_budget_pub.load_budget_line
(p_api_version_number => l_api_version_number,
p_return_status => l_return_status,
p_pa_task_id => l_budget_lines_in (i).pa_task_id,
p_pm_task_reference => l_budget_lines_in (i).pm_task_reference,
p_resource_alias => l_budget_lines_in (i).resource_alias,
p_resource_list_member_id => l_budget_lines_in (i).resource_list_member_id,
p_budget_start_date => l_budget_lines_in (i).budget_start_date,
p_budget_end_date => l_budget_lines_in (i).budget_end_date,
p_period_name => l_budget_lines_in (i).period_name,
p_description => l_budget_lines_in (i).description,
p_raw_cost => l_budget_lines_in (i).raw_cost,
p_burdened_cost => l_budget_lines_in (i).burdened_cost,
p_revenue => l_budget_lines_in (i).revenue,
p_quantity => l_budget_lines_in (i).quantity
END LOOP;
IF l_return_status != 'S'
THEN
RAISE api_error;
END IF;
--––EXECUTE_CREATE_DRAFT_BUDGET
pa_budget_pub.execute_create_draft_budget (p_api_version_number => l_api_version_number,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_pm_product_code => l_pm_product_code,
p_pa_project_id => l_pa_project_id,
p_pm_project_reference => l_pm_project_reference,
p_budget_type_code => l_budget_type_code,
p_change_reason_code => l_change_reason_code,
p_description => l_description,
p_entry_method_code => l_entry_method_code,
p_resource_list_name => l_resource_list_name,
p_resource_list_id => l_resource_list_id
IF l_return_status != 'S'
THEN
NULL; --––RAISE API_ERROR;
END IF;
--––FETCH_LINE
FOR l_line_index IN 1 .. pa_budget_pub.g_budget_lines_tbl_count
LOOP
pa_budget_pub.fetch_budget_line (p_api_version_number => l_api_version_number,
p_return_status => l_return_status,
p_line_index => l_line_index,
p_line_return_status => l_line_return_status
IF l_return_status != 'S' OR l_line_return_status != 'S'
THEN
RAISE api_error;
END IF;
END LOOP;
--––CLEAR_BUDGET
pa_budget_pub.clear_budget;
IF l_return_status != 'S'
THEN
RAISE api_error;
END IF;
--––HANDLE EXCEPTIONS
EXCEPTION
WHEN api_error
THEN
FOR i IN 1 .. l_msg_count
LOOP
pa_interface_utils_pub.get_messages (p_msg_data => l_msg_data,
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out => l_msg_index_out
DBMS_OUTPUT.put_line ('Error Mesg ' || l_data);
DBMS_OUTPUT.put_line ('Error Mesg ' || l_msg_data);
END LOOP;
WHEN OTHERS
THEN
FOR i IN 1 .. l_msg_count
LOOP
pa_interface_utils_pub.get_messages (p_msg_data => l_msg_data,
p_data => l_data,
p_msg_count => l_msg_count,
p_msg_index_out => l_msg_index_out
DBMS_OUTPUT.put_line ('error mesg ' || l_data);
END LOOP;
END;
=========================================================================================================================================================================Not knowing how its embedded... you will need to get the report instance from the dll and cast it as a ReportDocument object.
Given the info so far, that is all we can say.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Error while loading data on 0LIV_DS01 ODS through DTP
Hi Expert,
I am trying to load data on 0LIV_DS01 ODS through 2LIS_06_INV datasource data is comming correctly in PSA
while i'm trying to load data on ODS through DTP is runing properly till 9th package but at 10th package it showing me error
like "Exception condition "CTT_NOT_FOUND" raised"
Error Analysis
"A RAISE statement in the program "SAPLRSW0" raised the exception
condition "CTT_NOT_FOUND".
Since the exception was not intercepted by a superior
program, processing was terminated."
please tell me how i rectify the error....
Thanks and Regards
Lalit KumarHi,
This error has to do something with Currency Conversion.
While loading from the DSO to the cube, do you have any currency conversions?
Please look at the below threads:
Loading error in 0LIV_DS01
Raise Exception error: CTT_NOT_FOUND
Hope this helps.
Regards
Vishal -
How to load data into user tables using DIAPIs?
Hi,
I have created an user table using UserTablesMD object.
But I don't have know how to load data into this user table. I guess I have to use UserTable object for that. But I still don't know how to put some data in particular column.
Can somebody please help me with this?
I would appreciate if somebody can share their code in this regard.
Thank you,
SudhaYou can try this code:
Dim lRetCode As Long
Dim userTable As SAPbobsCOM.UserTable
userTable = pCompany.UserTables.Item("My_Table")
'First row in the @My_Table table
userTable.Code = "A1"
userTable.Name = "A.1"
userTable.UserFields.Fields.Item("U_1stF").Value = "First row value"
userTable.Add()
'Second row in the @My_Table table
userTable.Code = "A2"
userTable.Name = "A.2"
userTable.UserFields.Fields.Item("U_1stF").Value = "Second row value"
userTable.Add()
This way I have added 2 lines in my table.
Hope it helps
Trinidad. -
How to upload datas in excel sheet through BDC
Hi,
I know how to upload datas in Text format through BDC...Suppose even when datas are in .xls format,I saved that file as Text(tab delimited) format...then file become text format and it can be easily uploaded....
So, I want to know How to upload datas in excel sheet through BDChi,
try this Example, hope useful to u, assign me point.
report ZMSV1_BDC_CALL
no standard page heading line-size 255.
*include bdcrecx1.
*parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting - DO NOT CHANGE ***
data: begin of record,
data element: BUKRS
BUKRS_001(004),
data element: KTOKK
KTOKK_002(004),
data element: NAME1_GP
NAME1_003(035),
data element: SORTL
SORTL_004(010),
data element: ORT01_GP
ORT01_005(035),
data element: LAND1_GP
LAND1_006(003),
data element: SPRAS
SPRAS_007(002),
data element: BANKS
BANKS_01_008(003),
data element: BANKK
BANKL_01_009(015),
data element: BANKN
BANKN_01_010(018),
end of record.
End generated data section ***
data: itab like record occurs 0 .
data: it_bdc type bdcdata occurs 0 with header line.
data: it_msg type bdcmsgcoll occurs 0 with header line.
parameter p_file type rlgrap-filename default 'c:\vendor.txt' obligatory
start-of-selection.
perform open_dataset using p_file.
perform open_group.
*perform close_group.
*perform close_dataset using dataset.
*& Form open_dataset
text
-->P_P_FILE text
form open_dataset using p_p_file.
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
CODEPAGE = ' '
FILENAME = p_file
FILETYPE = 'DAT'
HEADLEN = ' '
LINE_EXIT = ' '
TRUNCLEN = ' '
USER_FORM = ' '
USER_PROG = ' '
DAT_D_FORMAT = ' '
IMPORTING
FILELENGTH =
TABLES
data_tab = itab
EXCEPTIONS
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " open_dataset
*& Form open_group
text
--> p1 text
<-- p2 text
form open_group .
loop at itab into record.
perform bdc_dynpro using 'SAPMF02K' '0105'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-KTOKK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-BUKRS'
record-BUKRS_001.
perform bdc_field using 'RF02K-KTOKK'
record-KTOKK_002.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-ORT01'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
record-NAME1_003.
perform bdc_field using 'LFA1-SORTL'
record-SORTL_004.
perform bdc_field using 'LFA1-ORT01'
record-ORT01_005.
perform bdc_field using 'LFA1-LAND1'
record-LAND1_006.
perform bdc_field using 'LFA1-SPRAS'
record-SPRAS_007.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-KOINH(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_field using 'LFBK-BANKS(01)'
record-BANKS_01_008.
perform bdc_field using 'LFBK-BANKL(01)'
record-BANKL_01_009.
perform bdc_field using 'LFBK-BANKN(01)'
record-BANKN_01_010.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-AKONT'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
call transaction 'FK01' using it_bdc mode 'A' update 'S'
messages into it_msg.
write:/ sy-subrc.
perform message_formatwrite.
refresh it_bdc.
clear it_bdc.
endloop.
endform. " open_group
*& Form message_formatwrite
text
--> p1 text
<-- p2 text
form message_formatwrite .
data:l_msg(10).
loop at it_msg.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = SY-MSGID
LANG = sy-langu
NO = SY-MSGNO
V1 = SY-MSGV1
V2 = SY-MSGV2
V3 = SY-MSGV3
V4 = SY-MSGV4
IMPORTING
MSG = l_msg
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endloop.
endform. " message_formatwrite
*& Form bdc_dynpro
text
-->P_0112 text
-->P_0113 text
form bdc_dynpro using value(p_0112)
value(p_0113).
it_bdc-program = p_0112.
it_bdc-dynpro = p_0113.
it_bdc-dynbegin = 'X'.
append it_bdc.
clear it_bdc.
endform. " bdc_dynpro
*& Form bdc_field
text
-->P_0117 text
-->P_0118 text
form bdc_field using value(p_0117)
value(p_0118).
it_bdc-fnam = p_0117.
it_bdc-fval = p_0118.
append it_bdc.
clear it_bdc.
endform. " bdc_field
Regards
fareedas -
Step by Step details on how to load data from a flat file
hi can anyone explain how to load data from a flat file. Pls giv me step by step details. thnx
hi sonam.
it is very easy to load data from flat file. whn compared with other extrations methods...
here r the step to load transation data from a flat file.......
step:1 create a Flat File.
step:2 log on to sap bw (t.code : rsa1 or rsa13).
and observe the flat file source system icon. i.e pc icon.
step:3 create required info objects.
3.1: create infoarea
(infoObjects Under Modeling > infoObjects (root node)-> context menu -
> create infoarea).
3.2: create char /keyfig infoObject Catalog.(select infoArea ---.context menu --->create infoObject catalog).
3.3: create char.. infoObj and keyFig infoObjects accourding to ur requirement and activate them.
step:4 create infoSource for transaction data and create transfer structure and maintain communication structure...
4.1: first create a application component.(select InfoSources Under modeling-->infosources<root node>>context menu-->create applic...component)
4.2: create infoSource for transation data(select appl..comp--.context menu-->create infosource)
>select O flexible update and give info source name..
>continue..
4.4: *IMp* ASSIGN DATASOURCE..
(EXPAND APPLIC ..COMP..>EXPAND YOUR INFOSOURCE>CONTEXT MENU>ASSIGN DATASOURCE.)
>* DATASOURCE *
>O SOURCE SYSTEM: <BROWSE AND CHOOSE YOUR FLAT FILE SOURCE SYSTEM>.(EX:PC ICON).
>CONTINUE.
4.5: DEFINE DATASOURCE/TRANSFER STRUCTURE FOR IN FOSOURCE..
> SELECT TRANSFER STRUCTURE TAB.
>FILL THE INFOOBJECT FILLED WITH THE NECESSARY INFOOBJ IN THE ORDER OR SEQUENCE OF FLAT FILE STRUCTURE.
4.6: ASSIGN TRANSFER RULES.
---> NOW SELECT TRANSFER RULES TAB. AND SELECT PROPOSE TRANSFER RULES SPINDLE LIKE ICON.
(IF DATA TARGET IS ODS -
INCLUDE 0RECORDMODE IN COMMUNICATION STRUCTURE.)
--->ACTIVATE...
STEP:5 CREATE DATATARGET.(INFOCUBE/ODS OBJECT).
5.1: CREATE INFO CUBE.
-->SELECT YOUR INFOAREA>CONTEXT MENU>CREATE INFOCUBE.
5.2: CREATE INFOCUBE STRUCTURE.
---> FILL THE STRUCTURE PANE WILL REQUIRE INFOOBJECTS...(SELECT INFOSOURCE ICON>FIND UR INFOSOURCE >DOUBLE CLICK > SELECT "YES" FOR INFOOBJECT ASSIGNMENT ).
>MAINTAIN ATLEAST ON TIME CHAR.......(EX; 0CALDAY).
5.3:DEFINE AND ASSIGN DIMENSIONS FOR YOUR CHARACTERISTICS..
>ACTIVATE..
STEP:6 CREATE UPDATE RULES FOR INFOCUDE USING INFOSOURCE .
>SELECT UR INFOCUBE >CONTEXT MENU> CREATE UPDATE RULES.
> DATASOURCE
> O INFOSOURCE : _________(U R INFOSOURCE). AND PRESS ENTER KEY.......
>ACTIVATE.....UR UPDATE RULES....
>>>>SEE THE DATA FLOW <<<<<<<<----
STEP:7 SCHEDULE / LOAD DATA..
7.1 CREATE INFOPACKAGE.
--->SELECT INFOSOURCE UNDER MODELING> EXPAND UR APPLIC.. COMP..> EXPAND UR INFOSOURCE..> SELECT UR DATASOURCE ASSIGN MENT ICON....>CONTEXT MENU> CREAE INFOPACKAGE..
>GIVE INFOPACKAGE DISCREPTION............_________
>SELECT YOUR DATA SOURCE.-------> AND PRESS CONTINUE .....
>SELECT EXTERNAL DATA TAB...
> SELECT *CLIENT WORKSTATION oR APPLI SERVER >GIVE FILE NAME > FILE TYPE> DATA SAPARATER>
>SELECT PROCESSING TAB
> PSA AND THEN INTO DATATARGETS....
>DATATARGET TAB.
>O SELECT DATA TARGETS
[ ] UPDATE DATATARGET CHECK BOX.....
--->UPDATE TAB.
O FULL UPDATE...
>SCHEDULE TAB..
>SELECT O START DATA LOAD IMMEDIATELY...
AND SELECT "START" BUTTON........
>>>>>>>>>>
STEP:8 MONITOR DATA
> CHECK DATA IN PSA
CHECK DATA IN DATA TARGETS.....
>>>>>>>>>>> <<<<<<<<<----
I HOPE THIS LL HELP YOU..... -
I would get the batch file with details of individual jobs as the output schema. The xml file looks alright. However when opened in notepad does not come with carriage return included.
I know that we can include child delimiter if it's an input flat file converted to xml schema, but no idea on output files.
Is there anyway we can include the Carriage return line feed in the schema so that when opened in notepad it's readable.Assuming you're talking about the output XML rather than the schema; if you open the XML in Visual Studio press the following keys
<crtl>KD and the XML will be formatted with indentation (hold the
<crtl> key down while pressing both the K and
D keys).
If you want a simple command line utility to format XML for you, the following should do the trick (pass in the name of the XML file):
static void Main(string[] args)
XmlDocument document = new XmlDocument();
document.Load(args[0]);
XmlTextWriter writer = new XmlTextWriter(args[0], Encoding.UTF8);
writer.Formatting = Formatting.Indented;
document.Save(writer);
writer.Flush();
writer.Close();
NOTE: this key sequence also formats source code.
David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful. -
How to load flat file in BPS through Web-debugging
Hi,
We are working on flat file upload in BPS thru guide 'How to load flat file in BPS through Web'. Can some one guide on how to debug the function modules used while uploading the data.
We have set up the break point in the function modules and also in the BSP page. But when trying to debug while uploading, it is not going to the break point which was set.
Could you assist in setting up the break point.
Regards,
Sreenath
Message was edited by:
sreenath reddyHi,
I have put an external break-point.
I have hard coded it in the coding of the function module itself.
The code is perfectly working. But, when I want to check for the values of the variables in the F.M during runtime, the break-point is not triggering. Any ideas??
Regards, -
I need how to load data from MS Excel(csv format) to NW Excel
Hi,
I am doing Migration project from SAP MS to NW Manually.
I need how to load data from MS excel (csv format) to NW excel .
For example 2008 budget data.
Could you please help me in this.
Thanks and Regards
KrishnaHi,
You need to create a transformation file and a conversion file if required. First upload the excel (csv) file into BPC using Manage Data and Upload File option.
Create the transformation file (refer to the sap help on how to define a transformation file). You need to specify the mapping correctly and include all your application dimensions and map them to appropriate columns of the flat file.
Before running the import package, do validate the data in the flat file you uploaded into BPC with the transformation file you created.
Thanks,
Sreeni -
Help - Step by Step Material on How to load Data from flatfile to BI 7.0
Hi BI Experts,
Can any one send the document or a pdf file on how to load data from flat file to BI 7.0 in step by step process.
Thanks in Advance
Regards
Ramakrishna Kamurthy
+91-99631010731. On log on you will be placed in the SAP Easy Access Strategic Management/ Business Analytics
1. You see the screen divided in two segments.
2. Follow the left segment.
3. Click on the Business Information Warehouse.
4. Sub Menu  BW Administration.
5. You find various entries in it.
6. Now double click on UG_BW_RSA1-Administrator Workbench
2. Creation of Info Area
1. Click on InfoObjects.
2. Now in the right hand side screen select the InfoObjects (First item on the top). Right click the mouse and select Create InfoArea.
3. A dialog box pops up.
4. Give the InfoArea as ZIVY_Iarea.
5. Give the Long Description as ZIVY Info Area.
3. Create a Catalog:
1. Select the InfoArea just created ZIVY_Iarea.
2. Right click the mouse pointer and select the option Create InfoObject Catalog
3. A dialog box pops up.
4. Give the InfoObjCat = ZIVY_CHCAT
i. Description = ZIVY Character Catalog
ii. InfoObjectType: Check the Character. ( As we are creating the master data, check the Character)
iii. Now at the bottom of this dialog box you see an icon called CREATE. Click this icon.
1.
1. The next screen in front of you is the Edit InfoObject Catalog.
2. Simply click the activate icon present on the Application Toolbar.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CUST and
i. Description Customer Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CUST: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP .
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_CUST, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_CITY
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CITY and
i.
Description
Customer
City Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CITY: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 25
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CITY, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_STATE
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_STATE and
i.
Description
Customer
State Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_STATE: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 25
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_STATE, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_CTRY
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_CTRY and
i. Description Customer Country Name.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_CTRY: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data
2. Check the With Texts and make suitable Text Table Properties.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
1. Creation of Attributes and InfoObject from the ZIVY_CUST InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_CUST. Double click the InfoObject ZIVY_CUST.
6. You find the screen Change Characteristic ZIVY_CUST:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_CITY and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Similarly, type ZIVY_STATE, ZIVY_CTRY.
11. Now, we will create another InfoObject ZIVY_TEL, from here.
12. So type ZIVY_Tel and enter the ENTER KEY.
13. A dialog box pops up, and request you If you want to Create an InfoObject
14. Select Create Attribute As Characteristic and click the check mark.
15. Another window pops up. Give the following:
i. In the General Tab:
1. Long Description: ZIVY Telephone Number
2. Short Description: ZIVY Telephone Number
3. DataType : NUMC
4. Length : 10
5. Uncheck Attribute Only
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies
iv. Now click the TICK MARK
1.
1. Click the ACTIVATE
2. A window pops up.
i. Select activate dependent InfoObjects.
ii. Click the Check Mark.
1. Creation of InfoObject: ZIVY_DATE
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_DATE and
i. Description ZIVY Date.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_DATE: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: DATS
2. Length: 8
ii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_CTRY, by clicking the icon ACTIVATE.
2. Create ZIVY Application Component:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Right click the mouse pointer and select the entry Create Application Component
5. A window pops up.
i. Application Component: ZIVY_APPCOMP
ii. Long Description : ZIVY Application Component
iii. Click the check mark.
1. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_CUST
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the Customer Info Object.
2. Select the Customer Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_CUST
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_CUST,
3. Second field is ZIVY_CITY.
4. And so on.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_CUST MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_CUST,
4. Third field is 0TXTMD.
5. Click the Transfer Rule adjacent to 0LANGUAGE
6. A window pops up.
a. Check the CONSTANT and give the value as EN
b. Click the TICK MARK.
7. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_CUST_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_CUST_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_CUST alias Customer Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_CUST_ATTR.
ii. Select ZIVY_CUST_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_CUST alias Customer Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_CUST_TEXT.
ii. Select ZIVY_CUST_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_CUST_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_MAT and
i. Description ZIVY Material Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_MAT: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP 17).
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_MAT, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_GROUP
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_GROUP and
i. Description ZIVY Material Group.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_GROUP: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data
2. Check the With Texts and make suitable Text Table Properties.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_GROUP, by clicking the icon ACTIVATE.
2. Creation of InfoObject: ZIVY_COLOR
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_COLOR and
i. Description ZIVY Material Color.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_COLOR: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 10
ii. In the Master Data/ Texts Tab:
1. Uncheck the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_COLOR, by clicking the icon ACTIVATE.
2. Creation of InfoObject from the ZIVY_MAT InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_MAT. Double click the InfoObject ZIVY_MAT.
6. You find the screen Change Characteristic ZIVY_MAT:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_GROUP and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Similarly, type ZIVY_COLOR.
11. Click the ACTIVATE
3. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_MAT
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the ZIVY Material Info Object.
2. Select the ZIVY Material Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_MAT
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_MAT,
3. Second field is ZIVY_GROUP.
4. Third field is ZIVY_COLOR.
5. Check the mapping. If you dont see the mapping.
6. Click on the empty row in the group Assign InfoObjectField, the box to the right.
7. Type ZIVY_GROUP, ZIVY_COLOR.
8. Check the transfer rules.
9. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_CUST MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_MAT,
4. Third field is 0TXTSH.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_Material_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_Material_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_MAT alias ZIVY Material Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_MAT_ATTR.
ii. Select ZIVY_MAT_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_Material_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_MAT alias ZIVY Material Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_MAT_TEXT.
ii. Select ZIVY_MAT_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_MATERIAL_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_SPER and
i. Description ZIVY Sales Person Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_SPER: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 20
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
2. Use suitable formats in the fields.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
iv. In the Attributes Tab:
1. We need to create the Attribute InfoObjects. These could be done directly from here or even from the RSA1  InfoObject  ZIVY_IareaZIVY_CHCAT. This will be delt in the forth coming steps (STEP 24).
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_SPER, by clicking the icon ACTIVATE
2. Creation of InfoObject: ZIVY_SREG
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_SREG and
i. Description ZIVY Sales Region.
ii. Click the TICK mark.
1.
1. The next screen you see is Change Characteristic ZIVY_SREG: Detail.
2. In this screen the following fields have to be modified:
i. In the General Tab
1. DataType: CHAR
2. Length: 20
ii. In the Master Data/ Texts Tab:
1. Check the With Master Data and With Texts.
iii. In the Hierarchy Tab:
1. Uncheck the With Hierarchies.
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the InfoObject ZIVY_SREG, by clicking the icon ACTIVATE.
2. Creation of Attributes from the ZIVY_SPER InfoObject:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_CHCAT,which is ZIVY Character Catalog.
5. In this ZIVY_CHCAT, you see the InfoObject ZIVY_SPER. Double click the InfoObject ZIVY_SPER.
6. You find the screen Change Characteristic ZIVY_SPER:Detail.
7. Click on the tab Attributes
8. In the Character Attribute Box, type ZIVY_SREG and enter the ENTER KEY.
9. You see the relevant information regarding this being inserted.
10. Click the ACTIVATE
3. Create InfoSoure:
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Right click the mouse pointer and select the entry Create InfoSource
6. A window pops up:
i. Select the Direct Update of Master Data
ii. InfoObject : ZIVY_SPER
iii. Click the CHECK MARK.
1.
1. Now beneath ZIVY Application Component you see the ZIVY Sales Person Info Object.
2. Select the ZIVY Sales Person Info Object mentioned above.
3. Right click the mouse pointer, and select the entry Assign DataSource.
4. A window pops up.
i. InfoSource: ZIVY_SREP
ii. Source System: FLATFILE
iii. Check the TICK MARK.
iv. Just click yes for the coming window pop ups.
1.
1. Key thing
i. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First field is ZIVY_SPER,
3. Second field is ZIVY_SREG.
4. Check the mapping. If you dont see the mapping.
5. Click on the empty row in the group Assign InfoObjectField, the box to the right.
6. Check the transfer rules.
7. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. ii. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
iii. Click the Activate Button. By clicking the ACTIVATE BUTTON you just activated the ZIVY_SREP MASTER DATA.
iv. Now in DataSource : select the text.
v. Click on the tab Transfer Rules
1. Have a look at the data mapping here.
2. First Field : 0LANGUAGE
3. Second field is ZIVY_SPER,
4. Third field is 0TXTSH.
5. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file. Ignore the first field, as it is a constant. vi. Click on the tab DataSource/Transport Structure1. This order is very very important, as we retrieve the data from a CSV file. The same order must be in the CSV file.
2. If the order is different, just shuffle the rows.
vii. Click the Activate Button. By clicking the ACTIVATE.
1. Create the DATA required for this MASTER DATA
1. Open EXCEL.
2. Type the following data:
1.
1. Save as ZIVY_SREP_MASTER.CSV
2. The file should be saved in COMMA SEPARATED FORMAT.
3. Open EXCEL
4. Type the following data:
5. Save the file *** ZIVY_SREP_TEXT.CSV
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_SPER alias ZIVY Sales Person Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_SPER_ATTR.
ii. Select ZIVY_SPER_ATTR
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_MASTER.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii. Browse the data.
1. Create InfoPackage
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoSource in the left hand segment.
3. In the right hand segment, select InfoSources.
4. Select the application component you created ZIVY_APPCOMP alias ZIVY Application Component.
5. Beneath this, you see ZIVY_SPER alias ZIVY Sales Person Info Object
6. Beneath this you see a FLAT FILE.
7. Select this FLAT FILE, right click the mouse pointer and select the option Create InfoPackage.
8. A window pops up.
i. InfoPackage Description: Info package for ZIVY_SPER_TEXT.
ii. Select ZIVY_SPER_TEXT
iii. Click the CHECK MARK
1.
1. You see a new screen Scheduler (Maintain InfoPackage).
2. Click the tab External Data
i. Name of file: C:\Personal\SAP\MyWork\MyBW\ZIVY_SPER_TEXT.csv
ii. Check the CSV file.
iii. Click the Preview Button.
iv. A window pops up, click the CHECK MARK.
v. You see the data present in the EXCEL File.
1.
1. Click the tab Update
i. Have a look at the entries.
1.
1. Click the tab: Scheduler:
i. Click the button Start
ii. You now click on MONITOR BUTTON present on the tool bar.
iii.
Browse the data.
1. Creation of InfoObject Catalog with Key Figures:
1. Select the InfoArea just created ZIVY_Iarea.
2. Right click the mouse pointer and select the option Create InfoObject Catalog
3. A dialog box pops up.
4. Give the InfoObjCat = ZIVY_KEYCAT
i. Description = ZIVY Key Figures Catalog
ii. InfoObjectType: Check the Key Figures.
iii. Now at the bottom of this dialog box you see an icon called CREATE. Click this icon.
1.
1. The next screen in front of you is the Edit InfoObject Catalog.
2. Simply click the activate icon present on the Application Toolbar.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3. Look for the InfoArea you created ZIVY_Iarea.
4. Select the catalog you created ZIVY_KEYCAT,which is ZIVY Key Figures Catalog.
5. Right click your mouse pointer, and select Create InfoObject.
6. A dialog box pops up.
7. Give the Character ZIVY_AMT and
i. Description ZIVY Amount Info Object
ii. Click the TICK mark.
1.
1. The next screen you see is Create Key Figure ZIVY_AMT: Detail.
2. In this screen the following fields have to be modified:
i. In the Type/ Unit Tab
1. DataType: Amount
2. Unit/ Currency = 0Currency
1.
1. Now save you work. Click on the SAVE icon on the COMMAND ToolBar.
2. Activate the ZIVY_AMT, by clicking the icon ACTIVATE.
2. Create InfoObject :
1. Go to the UG_BW_RSA1-Administrator Workbench.
2. Click on InfoObjects.
3.
Maybe you are looking for
-
Fx:Model works with mx datagrid but not spark ??
Using the Lynda example,... the Mx DataGrid works but the Spark does not???? Model is new to Flex 4, shouldn't it work with spark? <fx:Declarations> <fx:Model id="productModel" source="data/products.xml"/> </fx:Declarations> <mx:DataGrid da
-
Lightroom 3, CS5 & Canon 5D Mark III Issues
I have read the product support and am I right in understanding the you need camera raw 7 to import RAW files into Lightroom with the Canon 5D Mark III? And that this is not supported with CS5? I am unable to import RAW files into Lightroom 3. I u
-
i have put a jar file on my web server, and put following link in my web page a jar file i my local machine, this link work. my IE5.5 ask me do i want to excute it directly.... but when i put it in to web server the file renamed as "abc.gtz" on downl
-
Weird startup with Mac Book Pro
Have had a new Mac Book Pro since March, 2008. Worked fine until this evening. When I started it up, it showed the icon of a hard drive and nothing else for a bit. I clicked and it continued with the installation. I don't recall having seen that befo
-
Stop iPhoto prompting Import when i try to view a Picture
Every picture on my Mac is in the iPhoto Library. I've set iPhoto to my default for opening picture files. In Finder, the pictures are shown as belonging to iPhoto. Yet when I try to open the file from Finder, iPhoto prompts me to Duplicate the file,