BP Ageing Repot in below format
How to get a report like
BPName Docdate Doctype TotalDue Due-within Due-within Due-within
30 days 30-60 days 60-90 days
In ageing report im not getting the required solution.
Can any one help me in getting this report?
It can be in querry generator or in XL Reporter.
Hi
it can be done in both ways.
in query generator u have to make query hving date condition and in xl reporter u have formula field.
there are some system template having the same pattern , so foollow them .
Rgds,
Premraj
Similar Messages
-
Need to convert AP Invoice Aging Report in Excel format
Hi,
Need to convert AP Invoice Aging Report in excel format..there was an existing Invoice Aging report in AP and that was in paper format. That we need to convert to rtf template..
There was an other concurrent program called 'Invoice Aging Report (XML) - Reserveed for future use', when i am using that rtf template..to get the report output it was taking more than 1 hr time.
1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
2) is there any other way to get the report output faster.
Thanks..Hi,
When submitting the request, you may change the output to Excel and get the output in Excel. Otherwise as you mention if you getting the output in text format, you may download the text format and open the document in excel and use the delimitation to format in excel as per your requirement.
1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
2) is there any other way to get the report output faster.
Is your statistics up to date, when did you last run gather schema statistics program in Sysadmin responsibility.
Also what is the record quantity that you are expecting here? Is date range parameter available in the report and if yes, did you try running the report for a day to check the output.
Thanks &
Best Regards, -
Can we parse the CSV's in the below format using PowerShell?
Hi Team,
I have the data in the below format and I am unable to get this data into excel for the reason that we have even fields with multiple values which have commas in them (for example: a server might have multiple NICs which are comma seperated). I wanted to
know if there is any easier solution available with in powershell so that we can get the data into a formatted csv or excel. I cant get this data exported with a special delimiter character as well.
ServerName.FQDN: {'biosversion': 'Default System BIOS', 'kernel': 'Windows', 'domain': 'FQDN', 'zmqversion': '4.0.4', 'kernelrelease': '6.1.7601', 'pythonpath': ['c:\\tlas\\tlas-2014.1.11.win-amd64\\library.zip', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\esky-0.9.8-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\jinja2-2.7.1-py2.7.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\markupsafe-0.18-py2.7.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\msgpack_python-0.4.2-py2.7-win-amd64.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\psutil-2.1.0-py2.7-win-amd64.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\pyzmq-14.1.1-py2.7-win-amd64.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\tlas-2014.1.11-py2.7.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\setuptools-1.1.6-py2.7.egg', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\wmi-1.4.9-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64'], 'ip_interfaces': {'ServerName.FQDN': ['172.22.151.141'], 'ServerName.mnd.osc.zmk.local': ['192.168.8.26']}, 'shell': '/bin/sh', 'mem_total': 32768, 'tlasversioninfo': [2014, 1, 99, 0], 'timezone': '(UTC+01:00) Amsterdam,
Berlin, Bern, Rome, Stockholm, Vienna', 'id': 'ServerName.FQDN', 'osrelease': '2008ServerR2', 'ps': 'tasklist.exe', 'server_id': 1839579600, 'num_cpus': 8, 'hwaddr_interfaces': {'ServerName.FQDN': '68:B5:99:76:3E:BA', 'ServerName.mnd.osc.zmk.local': '00:76:55:E9:57:B1'},
'defaultlanguage': 'nl_NL', 'osfullname': 'Microsoft Windows Server 2008 R2 Enterprise', 'master': 'tlas.oss.local', 'ipv4': ['X.Y.Z.A', 'A.B.C.D'], 'ipv6': [], 'osversion': '6.1.7601', 'localhost': 'ServerName', 'fqdn_ip4': ['172.22.151.141', '192.168.8.26'],
'fqdn_ip6': ['::1'], 'nodename': 'ServerName', 'tlasversion': '2014.1.11', 'tlaspath': 'c:\\tlas\\tlas-2014.1.11.win-amd64\\tlas-2014.1.11-py2.7.egg\\tlas', 'pythonversion': [2, 7, 5, 'final', 0], 'host': 'ServerName', 'os_family': 'Windows', 'defaultencoding':
'cp1252', 'gpus': [], 'manufacturer': 'HP', 'num_gpus': 0, 'cpu_model': 'Intel64 Family 6 Model 26 Stepping 5, GenuineIntel', 'fqdn': 'ServerName.FQDN', 'productname': 'ProLiant DL380 G6', 'cpuarch': 'AMD64', 'osmanufacturer': 'Microsoft Corporation', 'path':
'c:\\tlas\\tlas-2019.1.11.win-amd64;C:\\Program Files\\HP\\NCU;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Ericomm Software\\PtTsAgent\\;C:\\Program Files\\Ericom Software\\Ericomm
Access Server\\;', 'os': 'Windows', 'windowsdomain': 'FQDN'}
Thanks,
VenuGopal
--VenuGopalThis turns out to be broken JSON. With a couple of simple fixes it can be loaded:
$jsontxt=@'
'Server': {
'biosversion': 'Default System BIOS',
'kernel': 'Windows',
'domain': 'FQDN',
'zmqversion': '4.0.4',
'kernelrelease': '6.1.7601',
'pythonpath':[
'c:\\tlas\\tlas-2014.1.11.win-amd64\\library.zip', 'c:\\tlas\\tlas-2014.1.11.win-amd64\\esky-0.9.8-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\jinja2-2.7.1-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\markupsafe-0.18-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\msgpack_python-0.4.2-py2.7-win-amd64.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\psutil-2.1.0-py2.7-win-amd64.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\pyzmq-14.1.1-py2.7-win-amd64.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\tlas-2014.1.11-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\setuptools-1.1.6-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64\\wmi-1.4.9-py2.7.egg',
'c:\\tlas\\tlas-2014.1.11.win-amd64'
'ip_interfaces': {
'ServerName.FQDN': ['172.22.151.141'],
'ServerName.mnd.osc.zmk.local': ['192.168.8.26']
'shell': '/bin/sh',
'mem_total': 32768,
'tlasversioninfo': [2014, 1, 99, 0],
'timezone': '(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna',
'id': 'ServerName.FQDN',
'osrelease': '2008ServerR2',
'ps': 'tasklist.exe',
'server_id': 1839579600,
'num_cpus': 8,
'hwaddr_interfaces': {
'ServerName.FQDN': '68:B5:99:76:3E:BA',
'ServerName.mnd.osc.zmk.local': '00:76:55:E9:57:B1'
'defaultlanguage': 'nl_NL',
'osfullname': 'Microsoft Windows Server 2008 R2 Enterprise',
'master': 'tlas.oss.local',
'ipv4': ['X.Y.Z.A', 'A.B.C.D'],
'ipv6': [], 'osversion': '6.1.7601',
'localhost': 'ServerName',
'fqdn_ip4': ['172.22.151.141', '192.168.8.26'],
'fqdn_ip6': ['::1'],
'nodename': 'ServerName',
'tlasversion': '2014.1.11',
'tlaspath': 'c:\\tlas\\tlas-2014.1.11.win-amd64\\tlas-2014.1.11-py2.7.egg\\tlas',
'pythonversion': [2, 7, 5, 'final', 0],
'host': 'ServerName',
'os_family': 'Windows',
'defaultencoding': 'cp1252',
'gpus': [],
'manufacturer': 'HP',
'num_gpus': 0,
'cpu_model': 'Intel64 Family 6 Model 26 Stepping 5, GenuineIntel',
'fqdn': 'ServerName.FQDN',
'productname': 'ProLiant DL380 G6',
'cpuarch': 'AMD64',
'osmanufacturer': 'Microsoft Corporation',
'path': 'c:\\tlas\\tlas-2019.1.11.win-amd64;C:\\Program Files\\HP\\NCU;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\Ericomm Software\\PtTsAgent\\;C:\\Program Files\\Ericom Software\\Ericomm Access Server\\;',
'os': 'Windows', 'windowsdomain': 'FQDN'
$obj=ConvertFrom-Json $jsontxt
$obj.Server.bios
Reformatting helps to find the damage.
¯\_(ツ)_/¯ -
How to create a custom table in the below format
Dear Friends
can any one please let me know hot to create a custom table as below
outpatient
|employeeno | class | startdate | enddate | spouse |1stchild | 2nchild| Rate | amount|
My FO wants to enter in the SM30 as above ......i.e he wants to have spouse ,1st child and 2nd child under one group........so he asking me to make as one group
and give a heading as outpatient.........similary i have to give for in patient.
Please could any one tell is it possible.
regards
syamala...Under the SAP forums section, there is ABAP development and in That there is ABAP General.
SAP forums > ABAP development > ABAP General.
Post in that forum.
Regards
AK
Please reward if helpful -
How to convert no of days in below format
i have two dates fields.
startdate and enddate
i am getting no of days from enddate - startdate
for example
startdate = 01-jan-11
enddate = 31-mar-11
select to_date('15-APR-12') - to_date('01-JAN-11') from dual;
470i want to display above query result in
1 year 3 months 15 daysit is possible.?The solution will not return consistent results always :
WITH
tst AS
SELECT
to_date('15.01.2012','dd.mm.yyyy') d1,
to_date('16.01.2011','dd.mm.yyyy') d2
FROM
dual
SELECT
extract(YEAR FROM (d1-d2) YEAR TO MONTH )
||' year(s)' as yr,
extract(MONTH FROM (d1-d2) YEAR TO MONTH )
||' month(s)' as mnt,
(d1-TRUNC(d1,'mm')+1)
||' day(s)' as dy
FROM
tst
YR MNT DY
1 year(s) 0 month(s) 15 day(s) -
drop table din_inst_detail;
create table din_inst_detail
(instNo number,
insdt date,
amt number);
insert into din_inst_detail values (1, '01-apr-2010', 10000);
insert into din_inst_detail values (2, '01-may-2010', 10000);
insert into din_inst_detail values (3, '01-jun-2010', 10000);
insert into din_inst_detail values (4, '13-jul-2010', 10000);
insert into din_inst_detail values (5, '05-aug-2010', 10000);
insert into din_inst_detail values (6, '01-sep-2010', 4000);
insert into din_inst_detail values (7, '01-oct-2010', 4000);
insert into din_inst_detail values (8, '01-nov-2010', 5000);
insert into din_inst_detail values (9, '01-dec-2010', 5000);
insert into din_inst_detail values (10, '01-jan-2011', 5000);
insert into din_inst_detail values (11, '01-feb-2011', 5000);
insert into din_inst_detail values (12, '01-mar-2011', 5000);
insert into din_inst_detail values (13, '01-apr-2011', 10000);
insert into din_inst_detail values (14, '01-apr-2011', 10000);
I want output like this.
S1 S2 Amt
1 3 10000
4 4 10000
5 5 10000
6 7 4000
8 12 5000
13 14 10000
How to achieve this in SQL?
Edited by: 801694 on 21-Apr-2011 03:38A simple test:
1. XML data
<element>row 1 - row 2</element>
2. RTF-Template
<?xdofx:replace(element,' - ',chr(13))?>
No need for any table structure or form fields, just paste this line of code as plain text into an empty rtf document.
Load the test data into your template builder for word and create Preview > Excel.
On BI Publisher Template Builder for Word 10.1.3.3.3 this returns the multiline output. If this doesn't work on your side, then it's most likely cause of your older version. -
Need output like below mentioned format
Hi,
By using below query , iam getting output in the below formate as metioned
select
m.year "Year",
--decode(m.year,like '200%','a') "DG",
--decode(instr(m.year,'200'),0,Null,'Shallow Water <1000 Feet') "DG",
--decode(substr('Shallow Water <1000 Feet',1,1),'S','Shallow Water <1000 Feet') "DG1",
'Shallow Water <1000 Feet' as "Depth Group",
'Deep Water 1000-5000 Feet' as "Depth Group",
'Ultra Deep Water > 5000 Feet' as "Depth Group",
sum(decode(M.FLUID,'O',nvl(M.YEAR_TO_DATE,0))) "Ytd Oil" ,
from pden_monthly_prod m,pi_pden_well w,pden p
--- Make sure all necessary Table joins are done
where P.ENTITY=M.ENTITY
and p.entity = w.entity
---- define limitations by column values
and m.year between 2000 and 2012
and ((p.entity_type in ('LEASE','WELL') and p.province_state not in ('17','42') and p.pi_situation_cd <> 'F')
or (p.entity_type = 'ALLOCATED' and p.province_state in ('17','42') and p.pi_situation_cd <> 'F')
or (p.entity_type = 'WELL' and p.province_state = '42' and p.pi_situation_cd <> 'F')
or(p.pi_situation_cd = 'F'))
and m.fluid in ('O','CN','G','CG','OW','GW','LW','FW')
and nvl(w.water_depth,'0') <1000
--or w.water_depth between 1000 and 5000
--or w.water_depth >5000
--for Federal state only (FOS)
and P.PI_SITUATION_CD IN ('F','S')
and p.province_state in ('17','42','60','01')
group by m.year
,'Shallow Water <1000 Feet'
,'Deep Water 1000-5000 Feet'
,'Ultra Deep Water > 5000 Feet'
order by m.year
i am getting output is
Year Depth Group Depth Group Depth Group Ytd Oil
2000 a b c 200
2001 a b c 150
2002 a b c 110
2003 a b c 100
but i need output like the below format
Year Depth Group Ytd Oil
2000 a 200
2000 b 200
2000 c 200
2000Total 600
2001 a 150
2001 b 150
2001 c 150
2001Total 450
2002 a 110
2002 b 110
2002 c 110
2002Total 330
2003 a 100
2003 b 100
2003 c 100
2003Total 300
could you please help on this ?UNPIVOT is equal to:
with t1 as (select 'a' f1, 1 f2, 2 f3, 3 f4 from dual union all
select 'b', 4, 5, 6 from dual union all
select 'c', 7, 8, 9 from dual union all
select 'd', 10, 11, 12 from dual)
select a.f1, b.f,
case b.f
when 'F2' then a.f2
when 'F3' then a.f3
when 'F4' then a.f4
end res
from t1 a, (select 'F2' f from dual union all
select 'F3' f from dual union all
select 'F4' f from dual) b
order by 1, 2 -
Need to format month into three characters in SSRS Expression
I am using the following expression to place the month in the heading of a column.
=MonthName(Month(DateAdd("M",-1,Now)))
The expression above gives me the previous month, but I need to have it as "Jan", not "January".
Can someone help me with an expression that will give me the three character month name instead of the full month. I've tried substituting the "M" with "MMM", but get an error. I've also tried "Mon", but again, I
get an error.
Help? Many thanks in advance.Hi Guoxiong,
Above expression is not working, its need some correction.
In above expression you are getting month number then doing formatting.
Always one rule of format is its format on date., so just remove the Month like I did below:-
=format(DateAdd("M",-1,Now()),"MMM")
Thanks
Prasad -
Re: Display format in ALV report
Hi Expert,
I have develop an alv report with some like lifnr,name1,dmbtr,budat,zterm, But my requiremnt is output should come in
the below format like
vendor number vendor name payment tern jan feb mar april ...................... upto december.
no value no value no value no value ..................
Abouce is my report format below jan i have two fields no and value for i have written code output is comming in alv but it
is not commig in the above format
My code is
TYPE-POOLS: SLIS.
TABLES: LFA1,BSAK,BSIK.
TYPES: BEGIN OF TY_LFA1,
LIFNR TYPE LFA1-LIFNR, "VENDOR NUMBER
NAME1 TYPE LFA1-NAME1, "VENDOR NAME
END OF TY_LFA1.
TYPES: BEGIN OF TY_BSIK,
LIFNR TYPE BSIK-LIFNR, "VENDOR NUMBER
DMBTR TYPE BSIK-DMBTR, "AMOUNT IN LOCAL CURRENCY
WMWST TYPE BSIK-WMWST, "TAX AMOUNT IN DOCUMENT CURRENCY
BUDAT TYPE BSIK-BUDAT, "POSTING DATE
ZTERM TYPE BSIK-ZTERM, "TERM OF PAYMENT
END OF TY_BSIK.
TYPES: BEGIN OF TY_OUTPUT,
LIFNR TYPE LFA1-LIFNR,
NAME1 TYPE LFA1-NAME1,
DMBTR TYPE BSIK-DMBTR,
BUDAT TYPE BSIK-BUDAT,
ZTERM TYPE BSIK-ZTERM,
NEW TYPE SY-DATUM,
END OF TY_OUTPUT.
SELECT T1~LIFNR
T1~NAME1
T2~DMBTR
T2~BUDAT
T2~ZTERM
INTO TABLE GT_OUTPUT FROM LFA1 AS T1 INNER JOIN BSIK AS T2
ON T1LIFNR = T2LIFNR
WHERE T1~LIFNR IN S_LIFNR
AND T2~BUDAT IN S_BUDAT
AND ZTERM NE ' '.
and then i have use alv function module REUSE_ALV_GRID_DISPLAY..........................
How to display the report in the above format
can any one throw some light in this..............
Regards,
AdduDear Koolspy,
You are correct i have check in the table BSIK their is one field called SHKZG for credit and debt please can you let me know how to wrtie this in my code my main logic is below.
SELECT T1~LIFNR
T1~NAME1
T2~DMBTR
T2~BUDAT
T2~ZTERM
INTO TABLE GT_OUTPUT FROM LFA1 AS T1 INNER JOIN BSIK AS T2
ON T1LIFNR = T2LIFNR
WHERE T1~LIFNR IN S_LIFNR
AND T2~BUDAT IN S_BUDAT
AND ZTERM NE ' '.
LOOP AT GT_OUTPUT INTO WT_OUTPUT.
WT_FINAL-LIFNR = WT_OUTPUT-LIFNR.
WT_FINAL-NAME1 = WT_OUTPUT-NAME1.
WT_FINAL-DMBTR = WT_OUTPUT-DMBTR. "Amount
WT_FINAL-NEW = WT_OUTPUT-BUDAT+4(2). "posting date
WT_FINAL-ZTERM = WT_OUTPUT-ZTERM.
APPEND WT_FINAL TO IT_FINAL.
CLEAR WT_FINAL.
ENDLOOP.
LOOP AT IT_FINAL INTO WT_FINAL.
COLLECT WT_FINAL INTO GT_OUTPUT5.
ENDLOOP.
LOOP AT GT_OUTPUT5 INTO WT_OUTPUT5.
WT_OUTPUT2-LIFNR = WT_OUTPUT5-LIFNR.
WT_OUTPUT2-NAME1 = WT_OUTPUT5-NAME1.
WT_OUTPUT2-DMBTR = WT_OUTPUT5-DMBTR.
WT_OUTPUT2-NEW = WT_OUTPUT5-NEW.
WT_OUTPUT2-ZTERM = WT_OUTPUT5-ZTERM.
IF WT_OUTPUT5-NEW = '01'. "2
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-JAN.
"2
ELSEIF WT_OUTPUT5-NEW = '02'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-FEB.
ELSEIF WT_OUTPUT5-NEW = '03'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-MAR.
ELSEIF WT_OUTPUT5-NEW = '04'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-APR.
ELSEIF WT_OUTPUT5-NEW = '05'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-MAY.
ELSEIF WT_OUTPUT5-NEW = '06'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-JUN.
ELSEIF WT_OUTPUT5-NEW = '07'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-JUL.
ELSEIF WT_OUTPUT5-NEW = '08'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-AUG. "5
ELSEIF WT_OUTPUT5-NEW = '09'. "
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-SEP.
ELSEIF WT_OUTPUT5-NEW = '10'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-OCT.
ELSEIF WT_OUTPUT5-NEW = '11'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-NOV.
ELSEIF WT_OUTPUT5-NEW = '12'.
MOVE WT_OUTPUT5-DMBTR TO WT_OUTPUT2-DEC.
MODIFY GT_OUTPUT2 FROM WT_OUTPUT2.
ENDIF.
APPEND WT_OUTPUT2 TO GT_OUTPUT2.
collect WT_OUTPUT2 inTO GT_OUTPUT2.
COLLECT WT_FINAL INTO GT_OUTPUT5.
clear : wt_output2.
ENDLOOP.
Please let me know where to insert that SHKZG field.
Regards,
Am -
Colum names mapping from formate file is not working
Hi All,
i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order
BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
FROM '\\192.168.97.23\poc\bulk.txt'
WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
Format file is :
10.0
7
1 SQLCHAR 0 12 "\t" 1 P_Id ""
2 SQLCHAR 0 255 "\t" 2 LastName SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 0 255 "\t" 3 FirstName SQL_Latin1_General_CP1_CI_AS
4 SQLCHAR 0 12 "\t" 4 age ""
5 SQLCHAR 0 255 "\t" 5 Address SQL_Latin1_General_CP1_CI_AS
6 SQLCHAR 0 255 "\t" 6 City SQL_Latin1_General_CP1_CI_AS
7 SQLCHAR 0 12 "\r\n" 7 no ""
input data file:
P_Id FirstNameLastName
ageAddress Cityno
1 first
one 11
sanathnagar HYD 5
2 second
two 12
xyz abc
0
3 third
three 20
ameerpet SEC
30
according to mapping the data in table must be like:
P_Id,LastName,FirstName,age,Address,City,no
1 one first 11 sanathnagar HYD 5
2 two second 12 xyz abc 0
3 third three 20 ameerpet SEC 30
but it inserting same as input file format so first name and last name are miss matching
please let me know if you have any idea.
Thanks,Hi All,
i tried to import data from text file using BULK INSERT format file option, am able to load the data from file to table but when i change the column name order in the input file it is not inserting according to change column order
BULK INSERT monsanto55_Steelwedge_monsanto_manualBuild_filters.dbo.bulk_test
FROM '\\192.168.97.23\poc\bulk.txt'
WITH( FORMATFILE = '\\192.168.97.23\poc\build.fmt',FIRSTROW = 2)
TABLE COLUMS: P_Id,LastName,FirstName,age,Address,City,no
Format file is :
10.0
7
1 SQLCHAR 0 12 "\t" 1 P_Id ""
2 SQLCHAR 0 255 "\t" 2 LastName SQL_Latin1_General_CP1_CI_AS
3 SQLCHAR 0 255 "\t" 3 FirstName SQL_Latin1_General_CP1_CI_AS
4 SQLCHAR 0 12 "\t" 4 age ""
5 SQLCHAR 0 255 "\t" 5 Address SQL_Latin1_General_CP1_CI_AS
6 SQLCHAR 0 255 "\t" 6 City SQL_Latin1_General_CP1_CI_AS
7 SQLCHAR 0 12 "\r\n" 7 no ""
input data file:
P_Id FirstNameLastName
ageAddress Cityno
1 first
one 11
sanathnagar HYD 5
2 second
two 12
xyz abc
0
3 third
three 20
ameerpet SEC
30
according to mapping the data in table must be like:
P_Id,LastName,FirstName,age,Address,City,no
1 one first 11 sanathnagar HYD 5
2 two second 12 xyz abc 0
3 third three 20 ameerpet SEC 30
but it inserting same as input file format so first name and last name are miss matching
please let me know if you have any idea.
Thanks,
Hi all,
Thanks for your response, and sorry for wrong question here i need to supply default values to column of
table based on input file so default values of columns will be changed based on input file, and one more thing i don't have any rights to change the table structure my work is to load data from file to table. Is there any chance to supply default values by XMLformat
file instead of .fmt file
or any other scenarios please let me know the possibility. -
How to get the Date in a particular format?
Hi,
How to get the Date in the below format? I will be passing the year in my method..
2/10/2003 9:46:52 PM
D/M/YYYY H:M:S A
public Date getDate (String year) {
Here i want to get the Date in this format
2/10/<Passed Year> 9:46:52 PM
ThanksThis is my code
public static Date getCalendar(Calendar calendar,int getYear) {
String formatted_date="";
int year = getYear;
int month = calendar.get(Calendar.MONTH+1);
int day = calendar.get(Calendar.DATE);
int hour = calendar.get(Calendar.HOUR);
int min = calendar.get(Calendar.MINUTE);
int sec = calendar.get(Calendar.SECOND);
int am_pm =calendar.get(Calendar.AM_PM);
formatted_date = month+"/"+day+"/"+year+" "+hour+":"+min+":"+sec+" PM";
System.out.println("formatted_date is "+formatted_date);
o/p : formatted_date is 1/4/2006 1:44:21 PM
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
// DateFormat dateFormat =DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
Date passdate = new Date();
try {
passdate = dateFormat.parse(formatted_date);
} catch (ParseException e) {
System.out.println("Invalid Date Parser Exception "+e.getLocalizedMessage()+"DateFormat is "+dateFormat);
System.out.println("The Date inside the function is "+passdate+"and the year passed is "+year);
o/p : The Date inside the function is Sat Apr 01 00:00:00 IST 2006and the year passed is 2006
return passdate;
Expected O/P is 3/1/2006 1:44:12 PM
} -
Download internal table in XML format
Hi experts,
I want to download an internal table into an XML format.
How can I achieve this?
I have used the GUI_DOWNLOAD earlier for XLS purpose, will that work in this case too?
Thanks,
Ajay.Hi Ajay,
You can use the below format
DATA : gs_xml TYPE lvc_t_fccl.
(Fill lt_Table here)
TRY.
CALL TRANSFORMATION id SOURCE root = lt_Table
RESULT XML gs_xml.
CATCH cx_st_error.
ENDTRY.
Then Call GUI_DOWNLOAD, passing gs_XML as data_tab and filetype = BIN
Note : GUI_DOWNLOAD will not work in background.
Hope this solves your problem
Regards,
Seema -
Hi All,
How can i configure output file name to the desired format generated in target directory in communication channel configuration in conf scenario.
ex: i want to generate the file in the below format..
YYYYMMDD_<Receiver>.TXT
Thanks and Regards
VenkateshHi,
This is the UDF u have to write in Mapping,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key =
DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Using this u will get the File name into target side,In this UDF add the Time stamp.
Check this link for more details.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
phani
Reward points if Helpful -
To arrange in a proper format in SAP script
Hi all,
I have to display the text in the below format:
Column 1 Column2
Remit info ACH/ info
Alexandra Technopark Bank Of America, Singapore
I have maintained this in window bank_details:
IF &NEXTPAGE& = '0' AND &BSID-BUKRS& EQ '0729'
POSITION XORIGIN '2,0' MM YORIGIN '+158' MM
BOX HEIGHT '30' MM FRAME 10 TW INTENSITY 15
BOTTOM
INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS
ENDBOTTOM
ENDIF
And getting in the below format:
Remit info:
Alexandra Technopark
ACH/ info
Bank Of America, Singapore
Please suggest me how to arrange it in proper format.
Appreciate your help.
Thanks,
Kiran
Edited by: kiran162 on Feb 3, 2012 2:30 AMHi Kiran,
I did not mean you choose the tag column for the 2nd include in the sapscript editor. I meant you should edit your text of the 2nd include in the tcode for standard text SO10 with the given object text name and text ID. But this is just applicable if each of your include text as only 1 line.
Here's the details:
+ Go to tcode SO10, enter the text name as ' F_0729_FOOTER' and text ID as 'ADRS' and your language (I guess EN).
+ Go inside, choose the tag column for the text as continuous text ( yah, blank indicator again).
But each of you include text has more than 1 line, so this is not applicable. You can ignore my third suggestion. I have another suggestions for you here:
+ No1: you can present like in the followings in your sapscript editor:
Remit info:
ACH/ info // blank inditor means continuous text
/: INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
/: INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS // in SO10 for this text, leave the tag column blank
This means you should hard-code the name of the address info.
+ No 2: - You can create 2 global text variables in the printing program.
- Use FM 'READ_TEXT' to read your address from the text pool. Store in 2 text table.
- Loop at the text table, transfer data from the text table to the 2 global text variable above, and write the window and the element here as well.
- You can use some wrapping FM to wrap the text in each variable.
- Then in the sapscript form, you just put the 2 global variables in the same line.
Hope you can complete the requirement.
Thanks,
Paul -
Formatting XML file to avoid mapping parser error
Hi,
We have requirement in our project to process input xml file which is of the below format:
<message>
<data>
<xml version=1.0 code=utf/>
<test>
<data>book</data>
</test>
</data></message>
Since <xml> tag is at the middle it is throwing a exception error in mapping.
Actual requirment is that we need
<test>
<data>book</data>
</test>
The xml of the above format is generated by some external system which PI need to pick it.
I think is not possible in XSLT mapping as it is not starting with xml tag .
So please let me know pointer ot resolve the issue.
Thanks in advance.Hi Yeshwanth,
If this input XML. Then it is valid XML.
<message>
<data>
<xml version="1.0" code="utf" />
<test>
<data>book</data>
</test>
</data>
</message>
Please paste the error message, input and expected output XML.
Regards,
Raghu_Vamsee
Edited by: Raghu Vamsee on Aug 25, 2011 12:10 PM
Maybe you are looking for
-
10g Automatic Stats Collection -- AUTO ( METHOD_OPT)
I have implememted Oracle 10g Auto Stats collection feature. To generate new stats on 10g optimizer I deleted the schema stats and then scheduled the DBMS_SCHEDULER to collect stats in AUTO method_opt. I see that the new 10g optimizer is collecting s
-
Function calling function passing data
We have developed an MQSERIES utility that is a function that calls many related functions and its purpose is to perform a variety of MQSeries functions with minimal interaction required by the user. The user provides the message, an activity code (p
-
MIRO showing wrong accounting entries
Dear Forum, While doing MIRO for PO(Account assigned),one unwanted amount is flowing into accounting doc..PO contains ST,Ecess,HEcess conditiion types and MIGO contains GL Acc to GR/IR clearing acc..Now while simulating MIRO,its accounting doc is sho
-
The Flash Media Encoder standalone program attaches to camera, but I want to process the video before it is encoded and transmitted. How can I get my code running between the camera and these stages of the Encoder?
-
BPEL11g - Settting Username and Password
Hi How to set the user credientials (username and password) in the BPEL application while calling a secure webservice. ? Thanks Sesha