Error in date format. using 'BAPI_FIXEDASSET_OVRTAKE_CREATE'.
Dear Expert,
I am uplaoding Asset master data using BAPI 'BAPI_FIXEDASSET_OVRTAKE_CREATE'.
But my problem is BAPI takes capitalization date in 'YYYYMMDD' FORMAT.
I am uplaoding in server which is having date format 'DDMMYYYY'.
Due this error i am unable to upload the data in asset master.
Please give some solution for this.
Regards.
Mohsin S.
Dear Reddy
My excel contain date format 'YYYYMMDD'
But the server in i am uploading data having date format 'DDMMYYYY'.
bapi also having date format YYYYMMDD.
BUT in TCODE AS91 HAVING DATE IN DDMMYYYY FORMAT.
Due to this format it is giving error.
Similar Messages
-
Error in date format returned in FM: RH_READ_OBJECT
Hi All,
I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
It is strange because it does not happen all the time just in some particular scenarios.
Do you have any idea about this issue? Is there any note related to this?
Below a link to a debug screenshot:
[http://tinypic.com/view.php?pic=1zegppt&s=7]
Thanks!Hi Viji and thanks for your answer!
I checked checked user default settings and we have the same date format as anther user who is working ok.
Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
Any other idea on this?
Thanks! -
Error in date format when I load a CSV file
I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
Sincerely,
PolonioSee Re: Get error in date when I load a CSV file
-
Date Parameters and List of Values (error message date format cannot be nul
I'm new to BI Publisher. I began with a simple report that has 4 parameters. The parameters are center code, sales date, customer number, and job number. I am trying to create a list of values on my customer number based on the center code and sales date entered by the user. My query for my LOV is:
select customer_nbr
from ticket
where center_cd = :center
and trunc(trans_date) = :salesDate
salesDate is defined as a date parameter with a format of MM-dd-yy. It's default value is 04-10-07.
When I attempt to view my report after adding the LOV, I receive the error:
Date format can not be null.
What am I doing wrong? Also, I would like the salesDate to default to the current date. I have tried using sysdate as the default value. This isn't working. The salesDate defualts to null when it is set to sysdate."Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
Page 4-9, Adding Parameters and Lists of Values
Oracle® Business Intelligence Publisher
Report Designer's Guide
Release 10.1.3.4
Part No. E12187-01 -
Hi,
In my procedure i am using cursor in which i am using the date format TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi').
the default date format is 5/20/0010 12:00:00.000 AM.
when i am using the TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi') in individual select statement it is working fine but when i am running the procedure giving me invalid month error.
Please help me regarding this.
Thanks in advance.
Regards,
Sruthi.I really suspect if thats the one causing the error. I tried this
alter session set nls_date_format = 'mm/dd/yyyy hh24:mi:ss'
create or replace procedure p
as
cursor c is
select TO_CHAR(SYSDATE,'dd/mm/YYYY hh24:mi')
from dual;
begin
open c;
close c;
end;
begin
p;
end;
/And it woks properly for me. So just check if you are looking at the wrong place. -
How can i records with date format using web services?
Hello
I can't record date records using web services. I get no message errors.
I can import string values but no dates (YYYY-MM-DD). Do you have any clue about that?
Regards
Arturohello,
That's the code I'm using to update an opportunity. In the date fields (e.g. dFecha_de_entrega_al_cliente) I've tried to put an specific date in the correct format (If i put it in another format i've got an error message due the wrong format). The CRM accepted the code but it didn't update the values that are different of string.
I don´t know if there is something missing in teh program or if the developer environment is not the adequate.
Regards for your comments
Arturo
Private Sub ActualizarOportunidad(ByVal fila As Data.DataRow, ByVal TipoPersona As String)
Dim oLog As New Log()
Dim IdLog As Integer
Dim NumSerie As String = ""
Try
oLog.Insert_Log("Activación Garantía - Crear Oportunidad", oLog.GetLastIdProceso())
IdLog = oLog.GetLastId()
Dim sr_input As Opportunity.OpportunityUpdate_Input
Dim sr_output As Opportunity.OpportunityUpdate_Output
sr_input = New Opportunity.OpportunityUpdate_Input
Dim sr(1) As Opportunity.OpportunityData
sr(0) = New Opportunity.OpportunityData
NumSerie = fila("NumeroSerie").ToString().Trim()
sr(0).ExternalSystemId = NumSerie
sr(0).OpportunityName = fila("NumeroSerie").ToString().Trim()
sr(0).SalesStage = "Deseo" '"Cerrada/Ganada"
sr(0).dFecha_de_entrega_al_cliente = fila("FechaEmision").ToString().Trim()
sr(0).dFecha_de_facturacin_al_cliente = fila("FechaCompra").ToString().Trim()
sr(0).stNro_Factura = fila("NumeroFactura").ToString().Trim()
sr(0).plActividad_Economica = fila("IdActividad").ToString().Trim()
sr(0).plTipo_de_Venta = fila("TipoCompra").ToString().Trim()
sr(0).CustomObject8ExternalSystemId = fila("ApellidoVendedor").ToString.Trim()
'sr(0).CustomObject8ExternalSystemId = IIf(TipoPersona = "J", fila("DocumentoE").ToString().Trim(), fila("Documento").ToString.Trim())
'sr(0).CustomObject7ExternalSystemId = fila("")
Dim lofsr As Opportunity.ListOfOpportunityData
lofsr = New Opportunity.ListOfOpportunityData
lofsr.Opportunity = sr
sr_input.ListOfOpportunity = lofsr
sr_output = oOpportunity.OpportunityUpdate(sr_input)
oLog.Update_Log(IdLog, "Si", NumSerie, "")
Catch ex As SoapException
Me.txtError.Text = ex.Detail.InnerText.ToString()
oLog.Update_Log(IdLog, "No", NumSerie, ex.Detail.InnerText.ToString())
End Try
End Sub
************************************************************************ -
Oracle Error 1801 - "Date format is too large for internal format"
We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be?We have an application deployed under WebLogic and are using the Oracle JDBC drivers to talk to the DB. It appears that when under heavy load and trying to hit a stored procedure we get "Action:EnrollParticipant,Error
type:Application error,doing:writeEmpUpdate,dbcode:-1801,ssn:xxxxxxxxxx". The dbcode of 1801 is a "Date format is too large for internal format". Has anyone had this happen, or know what the solution might be? -
BAD DATA FORMAT using cl_gui_frontend_services= gui_upload
Hello SAPients!
I'm using the method cl_gui_frontend_services=>gui_upload to upload a file to my program like this
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = lvs_input_f1
filetype = 'ASC'
CHANGING
data_tab = in_rec[]
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
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
The SY-.SUBRC field always returns with a value of 8 (Bad data format?). The thing is that the last field of the structure IN_REC is of type i (integer) and I think this is the problem. I modified the file with a text editor and set the last field with 2, 4, 8 and 16 chars but I always receive the same error. I can't change the last field to char. Does any one have an idea of what is the problem? How can I ensure that the last field have an integer value?
Thank you.Ok, I have modified the code a bit, you might want to try it. First upload to a table of type STRING, then move the values to the other internal table.
report zrich_0001 .
data: begin of in_rec occurs 0,
matnr(18), "Material Number
bwkey like mbew-bwkey, " For Plant
werks like mbew-bwkey, " Add Plant
type(2) type c, " TYPE.
cname(50) type c, " Changble Name
bom(1) type c, " BOM Usage
task(2) type c, " task type
verid_nd like ckmlmv001-verid_nd, "Production Version
perc(16) type c, " Percent for Plant1
* above are user inputs ; below are program flag.
flag(1) type c, " Program flag.
kalnr like ckmlmv001-kalnr, "
mix_flag(1) type c, " Program flag.
cnt type i,
end of in_rec.
data: istr type table of string with header line.
parameters: p_file type localfile.
at selection-screen on value-request for p_file.
data retfiletable type filetable.
data retrc type sysubrc.
data retuseraction type i.
call method cl_gui_frontend_services=>file_open_dialog
exporting
multiselection = abap_false
changing
file_table = retfiletable
rc = retrc
user_action = retuseraction.
read table retfiletable into p_file index 1.
start-of-selection.
perform open_file.
*& Form OPEN_FILE
form open_file.
*------------------------ Begin Change - UN001 ------------------------*
* CALL FUNCTION 'WS_UPLOAD'
* EXPORTING
* filename = input_f1
* filetype = 'DAT'
* TABLES
* data_tab = in_rec.
data:
lvs_input_f1 type string. " To store filename
* lit_mat_tbl TYPE TABLE OF lt_raw_tab, " To store file lines
* lwa_mat_tbl TYPE lt_raw_tab. " Work area
lvs_input_f1 = p_file.
* lvs_input_f1 = input_f1.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = lvs_input_f1
filetype = 'ASC'
changing
data_tab = istr[]
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 = 19.
if sy-subrc ne 0.
* WRITE / text-e01.
message e000(fb) with text-e01.
endif.
loop at istr.
in_rec = istr.
append in_rec.
endloop.
loop at in_rec.
write:/ in_rec.
endloop.
*------------------------ End Change - UN001 ------------------------*
*SKD 08/02/06---------DEVK980441-----------v
delete in_rec where perc = 0.
*SKD 08/02/06---------DEVK980441-----------^
endform. "OPEN_FILE
Regards,
Rich Heilman -
Hello,
we had created a scenario file to jdbc. while sending file to Oracle DB, it shows error as "ORA-01861: literal does not match format string". we checked the literals and white spaces. still we have same problem. so i have doubt on DATE format. we are sending date from PI system as yyyyMMdd which is not supported by Oracle i think. So please provide the DATE format accepted by Oracle and how to pass from SAP PI mapping. it will be appreciable if provide Steps to do in mapping or UDF code sample.
Also in response status we get the error "ORA-00917: missing comma ". So plz let me know how to solve this issue.
Thanks in Advance.Hi
The date format for oracle is dd-MON-yyyy.
Please refer to blog below
/people/santhosh.kumarv/blog/2008/10/10/life-is-all-about-days-date-in-xi
/people/sarvesh.singh3/blog/2009/02/13/yes-it-is-possible-with-datetrans-function
Regards,
Deepak.
Edited by: Deepak Shah on May 21, 2010 3:35 PM -
Problem with date format using TEXT_CONVERT_XLS_TO_SAP
I'm using fm TEXT_CONVERT_XLS_TO_SAP to upload an xls file.
I've the following problem the date in the spreadsheet is 01.01.2010 the result in the internal table after using the fm is 01.jan.2010. What must i do to get 01.01.2010 in the internal table?
My setting in sap for the date format is DD.MM.YYYYHi,
What is type and size of your internal table field? Covert your excel column to text field. Now it is of type date i hope.
Best option is, always have the value in excel in YYYYMMDD (SAP standard format) and internal table field as of type sy-datum.
After uploading use WRITE TO statement to a character variable to convert the date as per user settings. Your current logic may not work if the date setting is different.
Thanks,
Vinod. -
Problem with date format using date picker
In my application I provide to user ability to change date format. When using "MMM dd yyyy" format, the date picker paste to the inputbox something like "1111 07 2008" instead of "Nov 07 2008".
To set the date format I use the following code:
wdContext.nodeDateNode().getNodeInfo().getAttribute("date").getModifiableSimpleType().setFormat("MMM dd yyyy");
I know that is known bug of date picker. But there should be other way to implement this functionality. Isn't it?Hi
Check this link
/message/6430993#6430993 [original link is broken]
For more details
http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/frameset.htm
Thanks -
Date format used in the datepicker
Hi, I have a problem with date format when I open the pop up calendar:
w=open("wwv_flow_utilities.show_as_popup_calendar" +.....
"&p_date_format=" + escape('MM/DD/YYYY HH:MI ' )...
I have the popUp window with message instead of calendar:
" NOT FOUND.
The requested URL /pls/htmldb/wwvflow_utilities.show_as_popup_calendar
was not found on this server."
The same code with format ('MM/DD/YYYY HH24:MI ' ) works.
Tabular form lets me display and use popup_calendar in
format I want('MM/DD/YYYY HH:MI ' ), so I'm sure the datepicker in HTMLDB
can be used with this format.
Did someone go over this? May be any ideas?
Thanks.Thank you , Scott.
This way to solve the problem is really lifesaving,
but it does not display the date and time contained in the element calling date_popup. May be documentation you used to provide the date_popup with 10 argument has something about setting the date/time to be displayed? If yes please let us know.
By the way the loosing arguments during calling the date_popup from code is the reason why calendar cannot be found. It can be seen using source view of the page:
w = open("wwv_flow_utilities.show_as_popup_calendar" +
"?p_element_index=" + escape('f03' + '['.substr(0,elemArrLen) +'0'.substr(0,elemArrLen) + ']'.substr(0,elemArrLen)) +
"&p_form_index=" + escape('0') +
"&p_date_format=" + escape('MM/DD/YYYY HH:MI') +
"&p_application_format=" + escape('Y') +
"&p_bgcolor=" + escape('#666666') +
"&p_dd=" + escape('') +
"&p_hh=" + escape('') +
"&p_mi=" + escape('') +
"&p_pm=" + escape('') +
"&p_yyyy=" + escape('2005') +
"&p_nls_language=" + escape('AMERICAN') +
"&p_mm=" + escape('11'),
"winLov",
Year and month have default values, but function expects more parameters.
It seems it is possible to make work the data_popup calling it from code and provide it with full set of data/time arguments given to js function as parameters. It works but involves too much typing.
Do you know if the HTMLDB 2.0 has this problem solved?
Thanks again Scott
Thankful anonymous. -
DVT X Axis Date Formatting using tabular data
Hi,
I have a curious question about the <dvt:attributeFormat>.
I wanted to format my bar graph x-axis with locale sensitive date formatting.
I saw this attribute <dvt:attributeFormat> which I think is the best tool for the job.
<dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
<dvt:a t t r i b u t e F o r m a t >
<af:convertDateTime locale="#{myBean.locale}"/>
</dvt:a t t r i b u t e F o r m a t >
</dvt:barGraph>
My only concern is this. I am not using page binding in building my graph data but using tabularData property instead.
I am passing a java.util.Date object also from my getTabularData method
public class MyBean{
public List getTabularData(){
/*More code her*/
return list;
According to the java docs here http://docs.oracle.com/cd/E24382_01/apirefs.1112/e17490/tagdoc/dvt_attributeFormat.html
The name of the categorical attribute is the name of the attribute/layer that was added to the Graph DataModel. The Graph model can be set declaratively by updating the pagedef. Here is the associated view pagedef for the above graph:
<graph IterBinding="EmpView1Iterator" id="EmpView1"
xmlns="http://xmlns.oracle.com/adfm/dvt" type="BAR_VERT_CLUST">
<graphDataMap leafOnly="true">
<series>
<data>
<item value="Bonus"/>
</data>
</series>
<groups>
<item value="Hiredate"/>
</groups>
</graphDataMap>
</graph
>
..but since I am not using page binding then what name should I put there?
Any DVT experts around?I tried different name but I cant find the correct attribute name. Tried 'object', 'attribute 1' etc but it seems not correct.
<dvt:barGraph id="wsssudg1" subType="BAR_VERT_CLUST" tabularData="#{myBean.tabularData}">
<dvt:a t t r i b u t e F o r m a t >
<af:convertDateTime locale="#{myBean.locale}"/>
</dvt:a t t r i b u t e F o r m a t >
</dvt:barGraph>
Does this mean that this tag only works when you are using page binding?
If you are using tabulardata in managing your data then does it mean that you cannot use this tag?
Then how do you format DVT graph data that uses tabularData if you do not know the attribute name?
The javadoc tag reference does not mention anything about this.
Anyone has experience in dealing with this scenario?
Use case:
How do you format date attribute in a locale sensitive manner when your graph is using custom list in the tabulardata tag property of your graph component.
Thanks -
Hi all,
Has anyone seen the following error please or has a troubleshooting hint: -
"[NT AUTHORITY\SYSTEM (15/10/2012 18:35:12) - Service request cancelled due to an error.
Error Code: 10000
Error Description: Failed to create lease requisition.
Fault code: soap:Server
Fault string: Service Form Field: 'WarningDate2' has Date format issue.
Fault details: REQ_0024Service Form Field: 'WarningDate2' has Date format issue.
CIAC = 3.01
Date and Time format on the CCP, CPO, vmware and SQL servers all Italian (dd/mm/yy)
This only happens when we add a Lease Time on the request.
Do they all have to be set to the US format for this to work?
If this is a regional setting thing, do I have to change the format on all of the servers (CIAC components)?
Cheers
mdThis test program might help...
import java.util.*;
import java.text.*;
public class ExpandYear
public static void main(String[] args) throws ParseException
SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
String test1 = "3/21/00";
System.out.println("test1: " + test1 + " to : " +
sdf_4dyear.format(sdf_2dyear.parse(test1)));
String test2 = "4/9/99";
System.out.println("test2: " + test2 + " to : " +
sdf_4dyear.format(sdf_2dyear.parse(test2))); -
Get OIM Date format using Adapter Factory
I have written below java snippet to convert date to oim date format.
public String getOIMDate() {
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss z");
Date date = new Date();
return dateFormat.format(date);
}The above code will return current date as string which is used to update user in OIM.
I need to use Adapter Factory to return current OIM date in string format.
Can you help me in building the adapter with the way i mentioned above?just build jar for same and place this to <OIM_HOME>/server/JavaTask folder or upload in db using UploadJars.sh script.
Then follow below steps to create Adapter task(Hope you are looking for Pre-populate adapter)
http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/creadp.htm#BABHGEBG
Maybe you are looking for
-
Error While Transporting the DSOs
Hi Experts, I am transporting a DSO from DEV to QA in 7.0 system.While transporting the DSO, i am getting the below mentioned error. The creation of the export DataSource failed Reading the Metadata of APMD0009 ... Creating DataSource 8APMD0009 ... P
-
Why adobe reader didn't support window 7 64 bits preview thumbnail
why window 7 32 bits can preview thumbnail, 64 bit can't? I already asked window support, they reply is adobe reader supporting problem. Any solution for this issue??
-
Hey there, All I want to do is uninstall this terribly designed update. Can some please tell me how to do this and possibly give me an email to someone who actually works at the company. My phone doesn't work as a phone anymore so I can't call the
-
Hi, My WSUS server is running server 2008 R2 with WSUS 3.0 sp2 installed. The server is running fine without any issues. However I would like to be able to manage WSUS a bit better by upgrading the server from server 2008 R2 to Server 2012 R2. The
-
Is RDS 2012 user profile disks supported on DFS?