Validation for receipt dates
hi
What settings do i need to do , in order to create error message if the receipt date is not within the start and end date of the trip?
Hello,
Please use the user exit FITR0003 from transaction SMOD. This user exit works for checking the data before saving the trip.
So if you through an error message through this exit it will not let your user to go beyond until they put the correct date.
It will surely show the same error if you user the same error message in coding.
Cheers,
Vaibhav
Similar Messages
-
I am trying to uplaod an xml document sample which has an attribute of date datatype.
My sample is :
<?xml version="1.0" standalone="yes"?>
<document>
<name> test</name>
<createdate>1999/03/12</createdate>
</document>
I am getting this error:
IFS-12635: SimpleXmlParser: Value(10/10/99) not valid for type (Date).
If I input just the "name attribute" value, there is no problem. What is the date format, I should use?
Please suggest.
Thank you
nullIs there any way to specify the format in the custom type document itself. ? I do not want to specify the format in every document sample. Is there any way that it is possible. If I give the format in the document samples, as Matt said, there is no problem.
Now I tried to give the format in the type document itself.
I created a custom type document as follows:
<?xml version="1.0" standalone="yes"?>
<!--myTestType.xml-->
<ClassObject>
<Name>myTestType</Name>
<Description> myTestType Document </Description>
<Superclass Reftype ="name">Document</Superclass>
<Attributes>
<Attribute>
<Name> Category </Name>
<DataType> String </DataType>
<DataLength> 80 </DataLength>
</Attribute>
<Attribute>
<Name> posted_date </Name>
<DataType format="mm-dd-yyyy"> date </DataType>
</Attribute>
</Attributes>
</ClassObject>
I could able to upload this to ifs. No problem at this time. But when I try to load the below sample, I am getting the same parse problem.(IFS-12635 SimpleXmlParser: Value(12-25-1992) not valid for type (Date.).
sample xml document
<?xml version="1.0" standalone="yes"?>
<myTestType>
<name> testing.myTestType</name>
<Category>Administration_4</Category>
<posted_date >12-25-1992</posted_date>
</myTestType>
Thank you. -
Validation for posting date.
hi,
i am creating a validation for fb01 where the posting date should not be less than the posting date for last document posted for same doc type.
we have assigned different number ranges for different a set of document types.
From which table can i get the data regarding number ranges used for particular doc type or group of doc types.
for example i need the nyumber range assigned to doc type 'SA' and the last doc no. assigned to a document.
Regards,
Tarun Bahali have checked FBN1.... i beleive its for creating number ranges.....
how do we find out which range is assigned to which doc type.
Regards,
Tarun -
Parameter Validation for invalid date entered
I enter an invalid date like 99/08/2014 as one of the parameters for my report and get the following error.
The value provided for the report parameter 'P1' is not valid for its type. (rsReportParameterTypeMismatch)
To the report user audience, this message is not meaningful and it happened before the report is even executed .
Is there any way to override this and put a more meaningful error in ?Hello,
According to your description, you want to custom the error message when the input date value is invalid. In Reporting Services, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify
the system message when error occurs. However we can create a textbox in this report, use custom code and expression to display the custom error message. For more details, please refer to the following steps:
Go to Report Properties. Put the code below into custom code:
Public Shared a As Integer=0
Public Shared Function IsDate(d1 As String) as Integer
Try
FormatDateTime(d1)
Catch ex As Exception
a=1
End Try
return a
End Function
Change the parameter data type from Date to Text.
Change the filter expression from Parameters!ReportParameter1.Value to the following:
=IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,cdate(Parameters!ReportParameter1.Value),CDate("1/3/2013"))
Use the expression below to set the visibility of the tablix:
=IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,false,true)
Create a textbox with the expression below:
=IIF(Code.IsDate(Parameters!ReportParameter1.Value)=0,"","custom error message")
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to write Validations for Sample Data??
Hi Frnds,
I want to know how to write validations for sample oracle data?? Can anyone explain anyone clearly??
Regards,
RajHi shushma,
Simply put a check that:
If(wdContext.current<YOUR_NODE>Element().get<YOUR_ATTRIBUTE_NAME> !=null){
else{
// Show the error messages
//Displaying the error message is very easy.
//You can report exception using the message manager API's. You will get this easily on SDN.
I hope this helps! if you need ay further help please let me know.
Thanks and Regards,
Pravesh -
Validation for posting date is less than 7 days of current date
Hi
I want to create a validation wherein system will validate every entry that whether posting date is less than 7 days of current date. If it is than check in a set is that user id available if not than show error message.
If someone have any idea on this logic pls share with me.
Regd
ShivHi,
That's certainly possible via usual OB28 validation. Define your prerequisites for the posting date (you will have to do it via user-exit (bkpf-budat greater then sy-datum less 7 days) , and check whether the user is in the set.
Regards,
Eli -
XSD validation for incoming data into BPEL process
Please suggest how to validate XSD incoming data into BPEL process.
I just wanted to verify the data before entering into BPELHi,
I guess i am replying very late.
In BPEL 2.0 we have an activity called "Validate" which can do the XSD validations.
"Lets Learn Oracle SOA: Validate XML schema In BPEL"
Regards,
Chinmaya -
URGENT!!! is "DDIM" Data class valid for the upgrade in BI 7.0
Hello,
We're working on the prepare steps before the PREPARE upgrade phase.
One of these steps is the rename of the Infocube data classes which don't follow the new naming convention.
We have all infocubes defined in DDIM and DFACT data classes.
Could someone tell me if I have to rename the DDIM data class in a new one for the upgrade?
Many thanks in advanceThat's only valid for custom data classes.
DDIM & DFACT are SAP delivered and are still valid. -
Entity Object validation for "Date" type
I am trying to use the Entity Object validation for a Date field type, it is a required field.
I am using the format: MM/dd/yy HH:mm:ss
It is a simple validation where the date value must be less than or equal to the current date/time.
I tried using "Query Result" validation where the date is LESS THAN the query SELECT SYSDATE FROM dual.
This throws an error:
JBO-27011: Attribute set with value 2006-07-09 14:05:53.0 for LksrSurveyDte in LCFSReportService.LeakDetailView1 failed.
I have be unable to find help on validating dates using validation for an Entity Object and need some help.
Thanks in advance.In your case you can implement a service method in the VO to check if any other reservation overlaps with the new one (which is not inserted in the db).
I would use a an other VO (e.g. VODateCheck) for this. This VO has it's query build to check if a given roomid and a given startdate(time?) overlaps any other record for the roomid
select * from ReservationRoom where RoomId=:bindRoomId and ReservationEnd>=:bindReservationStartIf this query returns one or more rows you have an overlapping in the schedule and throw an error.
You call this VODateCheck from your service method in the other module before inserting the record. Set the bind variables in the VODateCheck and execute the query.
Timo -
HI SAP,
What logic must give in check filed in validation for " Back date posting not allowed for Cash book FBCJ" ??
I assiged in prerequest as " transaction code=FBCJ"
and in check == i assgned as Document date =current date or posting date =current date
and in messge --back date not allowed for cash
but above validation not working fine. how to do??
Regards,issue has been closed, which i writen a validation is correct
regards, -
Bill Passing to be done on the rate which is valid on the Goods Receipt Dat
Dear All,
My client has a very valid requirement which I am unable to provide. My client is basically a real estate company which is responsible for building. So the purchase cement, Paint etc. as raw material. The market rate of these raw materials varies almost everyday. So they maintain info record for material vendor combination. Then every day they change the price in percentage in MEKP.
So suppose someone has created a PO on today or 20th July. So system will pick the value from info record whatever is maintained there say Rs10/- . Then suppose on 22nd July market price change to Rs15/- . So they will change the value in info record. Goods receipt against this PO is done on 23rd July .
After GR they will do Bill passing on say 23rd itself. But system will take Rs10/- as this is the PO value. But my client wants it should take Rs15/- as this is the market price on Goods Receipt Date .
My question : Can this be done ? Can Bill passing amount take the value from info record condition rate as on the date of goods receipt ?
Please Reply ...
Regards
AbhijitDear,
That is a goods point . But is there any provision that this updated price will reflect in MIRO automatically or by a single click . Because anyhow they can change the amount manually in MIRO . But accounts person should not have the authorisation to change the price during MIRO .
Price should come from price master or a single click somewhere in MIRO which will update the price to market price . -
Hi All,
I want to do validity check in GR and IV postings. i want to do check in MIGO and MIRO transaction for start data and end date enterd in PO addiional tab.
Thanks
Rampls chk last posting in the link provided
"You can take help of ABAPer to have date automatically in validity start date and end date.
Ideally, user should enter that validity start and end date. At the same time you can have use the "Latest Possible Goods Receipt Date" for not allowing user to accept goods after latest GR date. Latest GR date option you can find on delivery tab at item level ".
BR,
Krishna -
Devolped an ALV report for daily cash receipts for selected date range
hi,
how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.hi,
how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report. -
Devloped an ALV report for daily cash receipts for selected date range
hi,
how to devlop an ALV report for daily cash receipts for selected date range.for this report what are the tables and fields we have to use.what is the selectionscreen&what is logic.give me sample report.Hi,
You can develop simple reports using Report Painter.
You may be also interested in:
Check report SAPMF05A for credit memo
See the following Std reports on Payment Advices execute the Tcodes:
S_ALR_87009888
S_ALR_87009889
S_ALR_87009890
S_ALR_87009891
S_ALR_87009892
S_ALR_87009893
S_ALR_87009978
S_ALR_87009979
S_ALR_87009980
S_ALR_87009981
S_ALR_87009982
S_ALR_87009983
S_ALR_87010056
S_ALR_87010057
S_ALR_87010058
S_ALR_87010059
S_ALR_87010060
S_ALR_87010061
S_ALR_87010066
S_ALR_87010067
S_ALR_87012106
S_ALR_87012107
S_ALR_87012108
S_ALR_87012109
S_ALR_87012110
S_ALR_87012111
S_ALR_87012116
S_ALR_87012117
S_ALR_87012200
S_ALR_87012201
S_ALR_87012202
S_ALR_870122
S_ALR_87012204
S_ALR_87012205
S_ALR_87012350
S_ALR_87012351
S_ALR_87012352
S_ALR_87012353
S_ALR_87012354
S_ALR_87012355
sample ALV report:
tables:
marav. "Table MARA and table MAKT
Data to be displayed in ALV
Using the following syntax, REUSE_ALV_FIELDCATALOG_MERGE can auto-
matically determine the fieldstructure from this source program
Data:
begin of imat occurs 100,
matnr like marav-matnr, "Material number
maktx like marav-maktx, "Material short text
matkl like marav-matkl, "Material group (so you can test to make
" intermediate sums)
ntgew like marav-ntgew, "Net weight, numeric field (so you can test to
"make sums)
gewei like marav-gewei, "weight unit (just to be complete)
end of imat.
Other data needed
field to store report name
data i_repid like sy-repid.
field to check table length
data i_lines like sy-tabix.
Data for ALV display
TYPE-POOLS: SLIS.
data int_fcat type SLIS_T_FIELDCAT_ALV.
select-options:
s_matnr for marav-matnr matchcode object MAT1.
start-of-selection.
read data into table imat
select * from marav
into corresponding fields of table imat
where
matnr in s_matnr.
end-of-selection.
Now, we start with ALV
To use ALV, we need a DDIC-structure or a thing called Fieldcatalogue.
The fieldcatalouge can be generated by FUNCTION
'REUSE_ALV_FIELDCATALOG_MERGE' from an internal table from any
report source, including this report.
The only problem one might have is that the report and table names
need to be in capital letters. (I had it )
Store report name
i_repid = sy-repid.
Create Fieldcatalogue from internal table
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = sy-repid
I_INTERNAL_TABNAME = 'IMAT' "capital letters!
I_INCLNAME = sy-repid
CHANGING
CT_FIELDCAT = int_fcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = i_repid
I_STRUCTURE_NAME = 'marav'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = imat.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
ENDIF.
Hope this will help.
Regards,
Naveen. -
Power View in SharePoint Server - The data extension type for a data source is not valid
Hi All,
All of a sudden I am getting following error when trying to create Power View report using shared report data source (no error testing the connection):
"The current action cannot be completed. The data extension type for a data source
'http://dev/Shared Ducuments/Sales.rsds' is not valid for this operation"
I already have a data source (I had created it after creating my site collection a week ago) and when I use this source to create Power View report then there is no error but I am getting above error when I create another similar data source and use it to create
a Power View report.
Please help me to resolve the error.
ThanksI am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'
Maybe you are looking for
-
I bought a 3.5 mm to 3.5 mm connecting cable to connect the Express to some outlet on the receiver back but am unsure which one to connect to. They have a combination of coaxial and optical plugs, nothing looks like a 3.5mm jack. I also bought a 3.5m
-
Proforma Invoice or Quotation from Project
Hi Experts, My client requirement is like this: 1. Receives request for procurement of goods/service from different user departments. 2. Will send estimation to the user departments and will proceed further. I want to map like this through PS (SD mod
-
Issues in executing SeedDemoCommunity example
Hi all, I am new to OBPM 11g. I have installed OBPM 11g suite but Iam facing some issues while deploying seed Demo application. I get the following error Exception : ORABPEL-10585 Service error. Internal Error; Service error occurs in JpsProvider in
-
AdfPage.PAGE.findComponent method usage
I have a function.js file which has the showMap() function. I am trying to display something using the AdfPage.PAGE.findComponent method which keeps returning undefined for any component I try to find from the js file. What am I doing wrong? Is it be
-
Error inserting data after creating a trigger (caused by commit)
Hi, I have registered a schema so that XML files are stored in a table XMLREADINGS. I create an AFTER INSERT tigger on this table. The trigger is very basic (inserting the system date into a test table). I discovered that it works fine so long as the