How to Download a Hierarchie to a Flat File
Hallo Experts,
sorry i just have a second question. We make the solution
"How to Download a Hierarchy to a flat file"
Program works
transport green
Upload ok,
but the Text Node keys are there, but not the text
e.g.
description text note short: 00000000000000000000
description text note long: empty
The rest is alright ????? Has someone a idea?
Thanks
Santra
Hi,
You may be interested in this official SAP How-To-Guide document:
"How to Download a Hierarchy to a Flat File"
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb
Similar Messages
-
How to load hierrarchies using dtp using flat file in bw ineed clear ste
how to load hierrarchies using dtp using flat file in bw ineed clear steps
Hi,
If you want to load InfoObjects in the form of hierarchies, you have to activate the indicator with hierarchies for each of the relevant InfoObjects in the InfoObject maintenance. If necessary, you need to specify whether the whole hierarchy or the hierarchy structure is to be time-dependent, whether the hierarchy can contain intervals, whether additional node attributes are allowed (only when loading using a PSA), and which characteristics are allowed.
1.Defining the source system from which you want to load data:
Choose Source System Tree ® Root (Source System) ® Context menu (Right Mouse Button) ® Create.
For a flat file, choose: File System, Manual Metadata; Data via File Interface.
2.Defining the InfoSource for which you want to load data:
Optional: Choose InfoSource Tree ®Root (InfoSources) ® Context Menu (Right Mouse Button) ® Create Application Component.
Choose InfoSource Tree ® Your Application Component ® Context Menu (Right Mouse Button) ® Create InfoSource ® Direct Update
Choose an InfoObject from the proposal list, and specify a name and a description.
3.Assigning the source system to the InfoSource
Choose InfoSource tree ® Your Application Component ® One of your InfoSources ® Context Menu (Right Mouse Button) ® Assign Source System. You are taken automatically to the transfer structure maintenance.
The system automatically generates DataSources for the three different data types to which you can load data.
Attributes
Texts
Hierarchies (if the InfoObject has access to hierarchies)
The system automatically generates the transfer structure, the transfer rules, and the communication structure (for attributes and texts).
4.Maintaining the transfer structure / transfer rules
Choose the DataSource to be able to upload hierarchies.
Idoc transfer method: The system automatically generates a proposal for the DataSource and the transfer structure. This consists of an entry for the InfoObject, for which hierarchies are loaded. With this transfer method, during loading, the structure is converted to the structure of the PSA, which affects performance.
PSA transfer method: The transfer methods and the communication structure are also generated here.
5.Maintaining the hierarchy:
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields. This option allows you to load characteristic values having a length greater than 32 characters.
Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
Description
Field Name
Length
Type
Node ID
NODEID
8
NUMC
InfoObject name
INFOOBJECT
30
CHAR
Node name
NODENAME
32
CHAR
Catalog ID
LINK
1
CHAR
Parent node
PARENTID
8
NUMC
First subnode
CHILDID
8
NUMC
Next adjacent node
NEXTID
8
NUMC
Language key
LANGU
1
CHAR
Description - short
TXTSH
20
CHAR
Description - medium
TXTMD
40
CHAR
Description- long
TXTLG
60
CHAR
The system transfers the settings for the intervals and for time-dependency from the InfoObject maintenance. Depending on which settings you have defined in the InfoObject maintenance, further table fields can be generated from the system.
The valid from and valid to field is filled if you select Total Hierarchy Time-dependent in the InfoObject maintenance. The time-dependent indicator is activated if you select the Hierarchy Nodes Time-dependent option in the InfoObject maintenance.
6.Save your entries.
Depending on which settings you defined in the InfoObject maintenance, additional fields can be generated from the system. Also note the detailed description for Structure of a Flat Hierarchy File for Loading via an IDoc and for Structure of a Flat Hierarchy File for Loading via a PSA.
Also find the below blog for your reference...
/people/prakash.bagali/blog/2006/02/07/hierarchy-upload-from-flat-files
You can load hierarchy using process chain...
Find the below step by step procedure to load hierarchy using process chain...
http://help.sap.com/saphelp_nw70/helpdata/EN/3d/320e3d89195c59e10000000a114084/frameset.htm
Assign points if this helps u...
Regards,
KK.
Edited by: koundinya karanam on Apr 8, 2008 1:08 PM
Edited by: koundinya karanam on Apr 8, 2008 1:09 PM -
How to extract data from Essbase to Flat File using ODI
Hi,
Anyone know how to extract data from Essbase to Flat File using ODI?
Thanks in advance.
Regards,
SumardiHi,
Have you read through :-
Oracle Data Integrator Adapter for Hyperion Essbase Getting Started - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_getting_started.pdf
Oracle Data Integrator Adapter for Hyperion Essbase User's Guide - http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/odiess_users.pdf
If you have read them and are still have a problem at what stage are you having the issues?
Cheers
John
http://john-goodwin.blogspot.com/ -
How to download the script data into pdf file
how to download the script data into pdf file
i have one option to download the script data to pdf file --->rstxpdft4 program.
i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
Thanks and regards,
Sri.Hi Sri Sai,
I know one method to convert the sapscript to pdf file :
first generate a Spool Request for the required Sapscript
then goto transaction SP01 and copy the generated Spool Request number
now execute the SAP report RSTXPDFT4
here enter the copied Spool request number and the target directory into the parameters
execute the report
required pdf file will be generated into the target directory
i hope it will help you out
Please refer this simple program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Reward points if found helpful....
Cheers,
Eshwar. -
DOWNLOAD CHEQUE FORMAT INTO A FLAT FILE
hi,
i have a requirement to download cheque format into a flat file.
as shown below. can any one guide me in this.
Check No. Date Payment Amt
1200175681 16/05/07 229.26 CAD
Pay TWO HUNDRED TWENTY NINE & 26/100*************************** CANADIAN D
To The MINISTER OF FINANCE
Order BARRIE SMALL CLAIMS COURT
Of 114 WORSLEY STREET
BARRIE ON L4M 1M1 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
BARRIESMCC 1200175681 16/05/07
Payee
MINISTER OF FINANCE
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 BARRIESMCC02MAY 0.00 CAD 229.26
Check No. Date Payment Amt
1200175682 16/05/07 149.96 CAD
Pay ONE HUNDRED FORTY NINE & 96/100**************************** CANADIAN D
To The BELLEVILLE ONTARIO HRDC
Order REMITTANCES
Of PO BOX 6767
MATANE QC G4W 4T1 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
BELLEVONHR 1200175682 16/05/07
Payee
BELLEVILLE ONTARIO HRDC
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 HRDCQC09MAY07 0.00 CAD 149.96
Check No. Date Payment Amt
1200175683 16/05/07 1,590.00 CAD
Pay ONE THOUSAND FIVE HUNDRED NINETY & 00/100****************** CANADIAN D
To The CANADIAN ENERGY EFFICIENCY
Order ALLIANCE
Of 2800 SKYMARK AVENUE
MISSISSAUGA ON L4W 5A6 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
CANENERGEF 02 1200175683 16/05/07
Payee
CANADIAN ENERGY EFFICIENCY
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
11/05/07 2117 0.00 CAD 1,590.00
Check No. Date Payment Amt
1200175684 16/05/07 8,701.83 CAD
Pay EIGHT THOUSAND SEVEN HUNDRED ONE & 83/100****************** CANADIAN D
To The CITY OF HAMILTON
Order ACCOUNTS RECEIVABLE
Of 120 KING ST WEST
SUITE 900, STANDARD LIFE BLDG ______________________________
HAMILTON ON L8P 4V2
Authorized Signature
Vendor ID Personnel ID Check No. Date
CITYHAMIL 01 1200175684 16/05/07
Payee
CITY OF HAMILTON
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
12/04/07 112949 0.00 CAD 8,701.83
Check No. Date Payment Amt
1200175685 16/05/07 23,104.38 CAD
Pay TWENTY THREE THOUSAND ONE HUNDRED FOUR & 38/100************ CANADIAN D
To The MINISTRY OF COMMUNITY AND
Order SOCIAL SERVICES, DIRECTOR
Of FAMILY RESPONSIBILITY OFFICE
PO BOX 2204 STATION P ______________________________
TORONTO ON M5S 3E9
Authorized Signature
Vendor ID Personnel ID Check No. Date
FAMILYREOF 1200175685 16/05/07
Payee
MINISTRY OF COMMUNITY AND
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 FRO02MAY07 0.00 CAD 23,104.38
Check No. Date Payment Amt
1200175686 16/05/07 553.85 CAD
Pay FIVE HUNDRED FIFTY THREE & 85/100************************** CANADIAN D
To The HAROLD MCQUAKER ENTERPRISES
Order LTD
Of BOX 538
EMO ON P0W 1E0 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
HAROLDMCEN 1200175686 16/05/07
Payee
HAROLD MCQUAKER ENTERPRISES
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
17/03/07 121 0.00 CAD 553.85
Check No. Date Payment Amt
1200175687 16/05/07 428,684.44 CAD
Pay **********428,684.44************************************* CANADIAN D
To The MERIDIAN CREDIT UNION
Order STE 160 S
Of 483 BAY ST
TORONTO ON M5G 2E1 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
HEPCOEDRUN 12 1200175687 16/05/07
Payee
MERIDIAN CREDIT UNION
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 MERIDIEN02MAY07 0.00 CAD 428,684.44
Check No. Date Payment Amt
1200175688 16/05/07 7,319.15 CAD
Pay SEVEN THOUSAND THREE HUNDRED NINETEEN & 15/100************* CANADIAN D
To The HYDRO ONE EMPLOYEES AND
Order PENSIONERS CHARITY TRUST
Of 483 BAY STREET 14TH FL
NORTH TOWER ______________________________
TORONTO ON M5G 2P5
Authorized Signature
Vendor ID Personnel ID Check No. Date
HYDROONEEP 1200175688 16/05/07
Payee
HYDRO ONE EMPLOYEES AND
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 CHARITY02MAY07 0.00 CAD 7,319.15
Check No. Date Payment Amt
1200175689 16/05/07 357.97 CAD
Pay THREE HUNDRED FIFTY SEVEN & 97/100************************* CANADIAN D
To The MINISTER OF FINANCE
Order KENORA SMALL CLAIMS COURT
Of 216 WATER STREET
KENORA ON P9N 1S4 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
KENORASMCC 1200175689 16/05/07
Payee
MINISTER OF FINANCE
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 KENORASMCC09MAY 0.00 CAD 357.97
Check No. Date Payment Amt
1200175690 16/05/07 692.41 CAD
Pay SIX HUNDRED NINETY TWO & 41/100**************************** CANADIAN D
To The MURRAY, WALTER
Order .
Of 1721 CEDAR LANE
BRACEBRIDGE ON P1L 1W9 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
MURRAYWALT 1200175690 16/05/07
Payee
MURRAY, WALTER
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
09/05/07 EXS2007710 0.00 CAD 692.41
Check No. Date Payment Amt
1200175691 16/05/07 2,437.44 CAD
Pay TWO THOUSAND FOUR HUNDRED THIRTY SEVEN & 44/100************ CANADIAN D
To The PACE, ROBERT
Order .
Of 5121 SACKVILLE ST, 7TH FLOOR
HALIFAX NS B3J 1K1 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
PACEROBERT 1200175691 16/05/07
Payee
PACE, ROBERT
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
09/05/07 EXS200711 0.00 CAD 2,437.44
Check No. Date Payment Amt
1200175692 16/05/07 2,718.35 CAD
Pay TWO THOUSAND SEVEN HUNDRED EIGHTEEN & 35/100*************** CANADIAN D
To The RECEIVER GENERAL FOR CANADA
Order CANADA CUSTOMS REVENUE AGENCY
Of 875 HERON RD
OTTAWA ON K1A 1B1 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
RECEIVEGEN 1200175692 16/05/07
Payee
RECEIVER GENERAL FOR CANADA
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 CRABNW02MAY07 0.00 CAD 2,718.35
Check No. Date Payment Amt
1200175693 16/05/07 7,688.00 CAD
Pay SEVEN THOUSAND SIX HUNDRED EIGHTY EIGHT & 00/100*********** CANADIAN D
To The RECEIVER GENERAL FOR CANADA
Order INDIAN & NORTHERN AFFAIRS
Of 100 ANEMKI DRIVE
RR #4 ______________________________
THUNDER BAY ON P7J 1A5
Authorized Signature
Vendor ID Personnel ID Check No. Date
RECEIVGECA 77 1200175693 16/05/07
Payee
RECEIVER GENERAL FOR CANADA
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
14/05/07 P2107132007 0.00 CAD 7,688.00
Check No. Date Payment Amt
1200175694 16/05/07 4,155.20 CAD
Pay FOUR THOUSAND ONE HUNDRED FIFTY FIVE & 20/100************** CANADIAN D
To The REUTERS CANADA LIMITED
Order CANADA
Of PO BOX 1519, STATION A
TORONTO ON M5W 3N9 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
REUTERINSV 1200175694 16/05/07
Payee
REUTERS CANADA LIMITED
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
01/04/07 ICA807040667 0.00 CAD 4,155.20
Check No. Date Payment Amt
1200175695 16/05/07 4,155.20 CAD
Pay FOUR THOUSAND ONE HUNDRED FIFTY FIVE & 20/100************** CANADIAN D
To The REUTERS CANADA LIMITED
Order CANADA
Of PO BOX 1519, STATION A
TORONTO ON M5W 3N9 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
REUTERINSV 1200175695 16/05/07
Payee
REUTERS CANADA LIMITED
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
01/05/07 ICA807050645 0.00 CAD 4,155.20
Check No. Date Payment Amt
1200175696 16/05/07 10,000.00 CAD
Pay TEN THOUSAND & 00/100************************************** CANADIAN D
To The WATERLOO REGIONAL CHILDRENS
Order MUSEUM
Of 10 KING ST W
KITCHENER ON N2G 1A3 ______________________________
Authorized Signature
Vendor ID Personnel ID Check No. Date
WATERLRECM 1200175696 16/05/07
Payee
WATERLOO REGIONAL CHILDRENS
Date Invoice No. PO/Cntrct Rel Discount/Wthld Cur Payment Amount
29/11/06 2006050034 0.00 CAD 10,000.00Raj:
You could create a 'Before Header' page process to create this 'flat file'. The code for the page process will be something similar to declare
v_file_name VARCHAR2 (2000) := 'fixedFieldsFile.txt';
--- Client Record Format
f1 char(20);
f2 char(20);
f3 char(20);
---- End format
begin
OWA_UTIL.mime_header ('application/txt', FALSE);
htp.p('Content-Disposition:attachment;filename="'|| v_file_name|| '"');
OWA_UTIL.http_header_close;
for c1 in (select * from emp) loop ----- The report query
f1:= c1.empno;f2:=c1.ename;f3:=c1.sal;
htp.p(f1||f2||f3);
end loop;
apex_application.g_unrecoverable_error:=true;
exception when others then
null;
end; Varad -
Creating BOM using BDC :How to display no of records from flat file under
Hi,
How to display no of records from flat file under one (Alternative BOM) vertically.
When i execute, the records are replacing one by one.
Here my coding:
report ZBOM1
no standard page heading line-size 255.
*include bdcrecx1.
DATA: BEGIN OF bdc OCCURS 0,
matnr(18),
werks(4),
stlan(1),
END OF BDC.
DATA: BEGIN OF BDC1 OCCURS 0,
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
END OF bdc1.
DATA: BEGIN OF BDCDATA OCCURS 0,
matnr(18),
werks(4),
stlan(1),
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
posnr(4),
END OF BDCDATA.
data: ibdcdata type standard table of bdcdata WITH HEADER LINE.
*start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ','
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = BDCDATA
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.
*perform open_group.
loop at bdcdata.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR'
'SOFTDRINKS'.
perform bdc_field using 'RC29N-WERKS'
'WIND'.
perform bdc_field using 'RC29N-STLAN'
'1'.
perform bdc_field using 'RC29N-DATUV'
'16.09.2008'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
perform bdc_field using 'RC29P-IDNRK(01)'
BDCDATA-IDNRK.
perform bdc_field using 'RC29P-MENGE(01)'
BDCDATA-MENGE.
perform bdc_field using 'RC29P-MEINS(01)'
BDCDATA-MEINS.
perform bdc_field using 'RC29P-POSTP(01)'
BDCDATA-POSTP.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR'
BDCDATA-POSNR. "'0010'.
perform bdc_field using 'RC29P-IDNRK'
BDCDATA-IDNRK. "'15'.
perform bdc_field using 'RC29P-MENGE'
BDCDATA-MENGE. "'1'.
perform bdc_field using 'RC29P-MEINS'
BDCDATA-MEINS. "'ml'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
*perform bdc_transaction using 'CS01'.
*perform close_group.
CALL TRANSACTION 'CS01' USING IBDCDATA MODE 'A' UPDATE 'S'.
REFRESH IBDCDATA.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR iBDCDATA.
iBDCDATA-PROGRAM = PROGRAM.
iBDCDATA-DYNPRO = DYNPRO.
iBDCDATA-DYNBEGIN = 'X'.
APPEND ibDCDATA .
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL <> NODATA.
CLEAR iBDCDATA.
iBDCDATA-FNAM = FNAM.
iBDCDATA-FVAL = FVAL.
APPEND iBDCDATA .
ENDIF.
ENDFORM.Hi,
the BDCDATA structure must be fnam, fval,dynbegin,dynpro,program.
You have to declare like this and pass this in your CALL TRANSACTION statement.
Please give some other table name for BDCDATA you declared for and also for IBDCDATA. -
BW 2.1C Download a hierarchy to a flat file
Hello
I copy and paste the BW ABAP source "download a hierarchy to a flat file" in a BW 2.1C system.
When I check programm a error occurs " The type RSSH_S_HTAB" is unknown.
Can you help me ?Hi,
DATA : BEGIN OF I_DISPLAY OCCURS 0,
REC(400),
END OF I_DISPLAY.
based on date
select StudentNo S_Course from Course Record
into i_Course Record
****if parameter
where date eq p_Date_join
****if select-options.
where date in s_Date_join.
select StudentNo S_Course from Student Details
into i_Student Details
****if parameter
where date eq p_Date_join
****if select-options.
where date in s_Date_join.
select StudentNo S_Mark S_Subject
from Student_results
into i_Student_results
****if parameter
where date eq p_Date_join
****if select-options.
where date in s_Date_join.
DATA : FNAME(255) TYPE C VALUE '/data/sapdata/eu_ums/astdetails'.
CONSTANTS : C_COMMA TYPE C VALUE ','.
********Fields to insert
I_FINAL-StudentNo = 'StudentNo.
I_FINAL-S_Course = 'S_Course'.
INSERT I_FINAL INDEX 1.
CLEAR I_FINAL.
LOOP AT I_FINAL.
CONCATENATE
I_FINAL-DOCNUM
I_FINAL-STATXT
into I_DISPLAY-REC SEPARATED BY C_COMMA.
APPEND I_DISPLAY.
CLEAR I_DISPLAY.
ENDLOOP.
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE.
LOOP AT I_DISPLAY.
TRANSFER I_DISPLAY TO FNAME.
ENDLOOP.
CLOSE DATASET FNAME.
Do this for all tables.
Don't forget to reward if useful -
How can I download from R/3 to flat file?
Hi
My requirement is to download Material and Supplier data from R/3 to flat file...
These are the fields I have to bring it from SAP R/3 but I don not want to DOWNLOAD FM. I want to Concatenate from Internal Table and put it on application server.
There are my following fields...
Material and Supplier
1. Selection criteria
- Based on plant
- Hubs and FSL/Hubs
- Hubs can pull both Repair and NewBuy vendor
- FSL/Hubs pull only Repair vendor
2. Material EORD-MATNR
3. Region Determined by 9* plants
4. Site
1. plant-(W) and plant-(C) for FSL/Hubs
2. plant-(S) for DCs
5. Supplier
1. Menlo/Repair for DC
2. Repair only for hub/fsl
6. Supplier-type PURCHASE or REPAIR
7. Leadtime - (The number of days between placing an order and receiving an order)
8. Order Horizon 2
9. Minimum OQ 3
10. Order cost 50
11. Supplier part number EORD-MATNR
Waiting for some help and (or) sample code for this...
Thanks in advance.Here is an example program showing how to write a tab-delimited file to the application server. All you need to do is get all your data into an internal table, then loop at it, concatenate all fields into a string and then transfer that string.
report zrich_0001.
parameters: d1 type localfile default '/usr/sap/TST/SYS/Test.txt'.
data: begin of itab occurs 0,
field1(20) type c,
field2(20) type c,
field3(20) type c,
end of itab.
data: str type string.
constants: con_tab type x value '09'.
* if you have a newer version, then you can use this instead.
*constants:
* con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
start-of-selection.
itab-field1 = 'ABC'.
itab-field2 = 'DEF'.
itab-field3 = 'GHI'.
append itab.
itab-field1 = '123'.
itab-field2 = '456'.
itab-field3 = '789'.
append itab.
open dataset d1 for output in text mode.
loop at itab.
concatenate itab-field1 itab-field2 itab-field2 into str
separated by con_tab.
transfer str to d1.
endloop.
close dataset d1.
Regards,
Rich Heilman -
How can we append data in existing flat file
how can we append data to a existing flat file (Text file).
just fill the itab from data which suppose to append to text file.than read text file from GUI_UPLOAD and loop on itab and with the use of read statements you may append the data.
-
How to Add Header and Footer in Flat file
HI All,
I am using ODI 11g.
MY interface is populating data from joining to 2 tables through sql query and Loads in to Flat file.
But i need to add Header and Footer in the Flat file.
In the below 3 lines
The 1st line is header ....2nd line is Data ....3rd line is Footer.
Any ideas how to work on this.
HSB9KT.KTPRTO.EBSDATA.D0000000 20120626020636
CFFE00263 SOLGSR014991340000527894536058173880207SOLNE06242012072420120000009048382650000247MRS
T00000000000000000000
Thanks,
LonyHi Drieux,
i am able to add Header and Footer in this.
But i want the header like Its like HSB9KT.KTPRTO.EBSDATA.D0000000 || SYSDATE (YYYYMMDDHHMMSS)
In my Out put i only see header as HSB9KT.KTPRTO.EBSDATA.D0000000 .
I have added a Variable where i am using SELECT to_char(sysdate,'YYYYMMDDHHMMSS') FROM DUAL query.
create header (HSB9KT.KTPRTO.EBSDATA.D0000000 #v_DATE)
/*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=FFT_SOLSNP$CRLOAD_FILE=/home/tarak/FFT_SOL.datSNP$CRFILE_FORMAT=FSNP$CRFILE_SEP_FIELD=0x0009SNP$CRFILE_SEP_LINE=0x000ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=descrSNP$CRTYPE_NAME=STRINGSNP$CRLINE_OFFSET=1SNP$CRLENGTH=994SNP$CRPRECISION=994SNP$CR$$SNPS_END_KEY*/
Any idea why this sysdate part is not showing in Header. -
How to to load data from a flat file in selection screen in portal .
Dear All,
I have a question to share : In BEX analyzer i know how i can upload multiple data in selection screen through a flat file , for example if i have to load 200 materials at one go in the selection screen, i can do that in BEX Analyzer . But if i run the same report through portal i am not able to find the upload option through flat file ..... Am i missing some option here ?
Thanks & Regards,
Ashutosh SinghYou will not be able to load through the portal directly. it is possible to load if you can create Visual composer model. that also you will not be able to upload in bulk.
-
How can I include loops in positional flat files?
Hi,
I got a simple record structure flat file working in B2B, but my data file is more complex and I want to know how I can define the ecs file for the same.
My data has orders, lines underneath and finally a trailer with the total number of lines in the file. So when this goes to my target system, I would like to create order and lines underneath so I am expecting my schema as a result of the ecs to represent that loop structure.
In the document editor, when I right click on the message I see Insert Child Node --> Record, but under the record I see both Insert Node and Insert Child Node again, and I am lost as I don't find any document on what these options mean.
Can someone please throw some light on this?
Thanks
VenkatHi Venkat,
You may find Min Use and Max Use record properties at right side when you click on a record. Set min use as 0 (or 1 if it is not optional) and max use to 999999 or any other high value and you are good to go.
Inside record, you can insert Fields which will eventually hold the line data.
Regards,
Anuj -
How to download the attachment text to local file.
Hi Xperts,
My requirement is at the time of workitem execution, Approver can write the attachment with the reason for Rejection.
Now, I need to down load that attachment content to local file and then that content needs to be updated in the PO Header changes.
I can able to get the attachment files' title, size and everything from the DB Table SOOD. But there is no Attachment's content is getting updated in that table.
Will you pls let me know how to download the content of the attachment to a local file from the sap.
ThanX in ADvance.
Krish.HI Arghadip Kar,
By using the Function Module SAP_WAPI_GET_ATTACHMENTS, we can get the Object id of the attachment, but not the content of the Attachment.
But, my requirement is to get the content of the attachment.
Best Regards,
Krishna. -
How to download data from spool to excel file
Hi,
I have requirement like....i need to download data from spool to excel file.
Please let me know the process how to download...
<removed by moderator>
<removed by moderator>
Thanks,
Khasimsa
Moderator message: please (re)search yourself before asking, do not assign priorities, do not offer re-ward
locked by: Thomas Zloch on Sep 8, 2010 1:18 PMHi try this way..
*FM called that returns the Spool Request Number data into and internal table
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = p_spool "Spool Request Number
first_line = 1
TABLES
buffer = it_spool_xls "Internal table that will have the Spool Request No data
EXCEPTIONS
no_such_job = 1
not_abap_list = 2
job_contains_no_data = 3
selection_empty = 4
no_permission = 5
can_not_access = 6
read_error = 7
OTHERS = 8.
*To convert the spool data into excel format
CALL FUNCTION 'SO_RAW_TO_RTF'
TABLES
objcont_old = it_spool_xls "Internal table having spool data
objcont_new = it_xls_spool. "Int table having Excel format data converted from Spool data
"call GUI down Load by passing it_xls_spool
Prabhudas -
How can I change from JDBC to flat files
I have an application setup that runs on MySQL using JDBC. But, I'm having problem with the database(ConnectorJ to be exact). I just want check the functionality of this application. Can I use a flat file as opposed to the DB? How can I possibly do this?
The text driver supports a very simple SQL. Inserts, deletes are allowed. Not sure about updates. Joins on tables are not.
Of course it will still require a connection string.
Maybe you are looking for
-
I've tested my DVD Studio Pro produced DVD on 5 different DVD players with success, yet it WILL NOT play on a client's SANYO DVD player. Is this player too old? The disc was produced straight from my G5's DVD burner. The stock used was DVD-R. Anyone
-
How do I set a default page size?
When Firefox opens, pages are displayed in about 1/3 the size of the screen. I would like to be able to set a default display size for all pages, in the same manner that I can set a default zoom in Google Chrome.
-
Problems with B2B Editor validating HL7 Messages
Hi all, I am having some problems related to B2B Document Editor and HL7 messages. When we ran the Analyzer with the following document: MSH|^~\&|ALERT|CHVNG|CPCHS|CHVNG|20070409145826+0000||OMG^O19^OMG_O19|1|P|2.4| PID|||303030^^^SONHO^NS||Patient^A
-
I can't drag files from iTunes to my iphone 5, I get an alert that says files can't be copied because I have iTunes Match enabled but I do not have iTunes M
-
BAPI/FM to Create Projects from Templates
Is there any BAPI/FM that can create Operative Project Structures referring the Standard WBS including all objects i.e, WBS,N/W,Activities,Milestone of standard project? If not, what could be the work around? Regards Sreenivas