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 Bahal

i 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

Similar Messages

  • 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
    Shiv

    Hi,
    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

  • Validation on Posting Data in MIGO

    Dear Experts,
    My requirement is to put validation on Posting date during MIGO. How can i do that? Can i do it from OMJX?
    Regards,

    Dear,
    You do this with screen or tannscation variant through SHD0 for MEGO here make filed posting date as display field or use BADI MB_MIGO_BADI for posting date check. There is nothing from configuration point of view.
    Hope it will help you.
    Regards,
    R.Brahmankar

  • How to get current date for posting date

    hi,
    how to get current date for posting date ? any sample code ?
    Thanks

    Hi......
    Use
    Select getdate()
    for current date.......
    Regards,
    Rahul

  • IFS-12635: SimpleXmlParser: Value(10/10/99) not valid for type (Date)

    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
    null

    Is 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.

  • MATERIAL DOCUMENTS FOR POSTING DATE TCODE ?

    HI ALL,
    CAN SOMEBODY GIVE ME THE MATERIAL
    DOCUMENTS FOR POSTING DATE TRANSACTION CODE.
    THANKS,
    KSR

    Hi all,
    For dispaly of Material Document we have Transaction Code : MB03,
    this with the Document No & Year,
    like wise for dispaly of Material Document for a date range i want to know the Tranasction Code.
    Thanks

  • No Oracle SSO support for POSTing data to protected resource [yet]

    Hi,
    I am using OHS infront of JBOSS and redirecting all requests from OHS to JBOSS after SSO Authentication.
    Everything works fine except that I get 500 error when I try to post data from HTML form.
    When i click on a button on a JSP page that submits page with the Form Post, the request goes to the OHS and is not getting forwarded.
    OHS log shows the following
    127.0.0.1 - - [11/Sep/2007:08:57:23 -0400] "POST /Sample/protected/standard.do HTTP/1.1" 500 788
    Proxy_error.log shows the followin error
    [Tue Sep 11 08:57:23 2007] [error] [client 127.0.0.1] [ecid: 1189515443:10.6.2.137:268:5568:74,0] \n[OSSO] E09: No Oracle SSO support for POSTing data to protected resource [yet].\n
    Any idea?
    Thanks
    Srikar.

    This error does no occur in our dev or test environments, only production. A workaround for us was to disable SSO by commenting the line to load it in the file $ORACLE_HOME/Apache/Apache/conf/httpd.conf. The line to comment out looks like: include "/u01/app/oracle/product/mid/Apache/Apache/conf/mod_osso.conf" where the /u01/app... above is the expansion of $ORACLE_HOME/Apache/Apache/conf/mod_osso.conf.
    We do not use SSO for our application, so this is not a problem. I next plan to try to figure out why this behaves like this, so I can keep all the server configurations consistent.
    HTH,
    Mark

  • Details on data types for posting data to DB2 on AS400 from XI

    Hi
       We have a scenario in which we post data from XI (3.0, SP23 ) to DB2 on AS400 and we are using jdbc adapters ( jdbc drivers from IBM deployed on XI J2EE server as per SAP's instructions )
    On AS400-DB2, there are two files F1 and F2  that we have to update in a particular library L1 - on a server S1.  Each of the two files has a single field with the same name as that of the file.
    I have the following questions :
    1. How do we construct/specify the data type in order to convert XML from XI to the sql that DB2 needs - I do understand there is a standard data type structure used to convert XML to sql calls when we use JDBC receiver adapter type communication channel. Do we use the same for posting XML data from XI to DB2 too ? 
    2. What is the url for the jdbc driver - to connect to DB2 on AS400 ?
    Please share experiences of XI -- > posting to DB2 using JDBC.

    Used standard xml -->SQL constructs

  • FMS required for Posting Date + 4 week excluding weekends

    Hi,
    I have a UDFas U_FRDWDT in which I want that if the Sales Order posting date is 15/12/2010 then this udf should automatically update + 4 weeks EXCLUDING Fridays and Saturdays which is there in the 4 weeks hence the result should be e.g 27/01/2010 which is excluding Fridays and Saturdays.The requirement is as such that Friday and Saturday are holidays for the company and the client wants to have this field updated on + 4 weeks basis but it should not consider Friday and Saturday as its holiday.
    Also note in SAP base setup Holiday Master Weekend is set from Friday to Saturday. Will this help in any way of updating the field or through formated search.
    Kindly advise what best solution can be given
    Regards,
    Soni

    Hi Gordon,
    I used this formatted search and seeing some discripencies as if lets asume the Sales Order Posting Date is 15/12/2010 then 4 weeks should come in the udf means excluding friday and saturday and the date which is coming as per fms is 12/01/2011 but i guess the fms should show 25/01/2010 which is 4 weeks ( no of days 30 ) excluding friday and saturday. I think your fms is just brining 22 working days and then its showing 12/01/2010.
    I want the fms to consider friday and saturday as holiday and then give me 4 weeks.
    I hope i am clear to my requirement and able to make you understand.
    Regards,
    Soni

  • Idoc for Posting data to FB01 transaction

    Hi,
    In my Interface, i need to post data to a SAP FI system->FB01 transaction from XI. The scenario is nonSAP system->XI->SAP FI.So what are the possibilites to post data to SAP FI->FB01 transaction. Is there any Idocs for that or any other method.
    Please share your ideas..Ponts will be rewarded for good inputs...
    Thanks

    Hi,
    You need to get the file with the required format from the sender system and there shouldn't be any mapping in PI. Also please check the below link on how to get the file structure.
    Re: File for 'RFBIBL00'
    There is also a help for the RFBIBL00 program. Check this too.
    http://help.sap.com/saphelp_45b/helpdata/en/35/a47e63763e0392e10000009b38f9b7/content.htm
    The file should be placed in the ECC application folder and this program needs to be scheduled with that file path. If you are not able to get the file in the required format then you may need to go with the IDOC or BAPI solution.
    ~Vaas

  • MB5B - Closing Value for Posting Date inconsistently reported.

    Greetings,
    I am executing transaction MB5B in ECC 6.0 for a single Posting Date in November of 2008.  The parameters include 3000 ROH materials (selected by MIN/MAX material number ranges)  in 30 plants within 3 different companies (selecting all by leaving these values blank).  The problem I am having is that I am getting a different total USD valuation each time I run the report.  If I run the report 3 times in 15 minutes I will get 3 different USD totals.  Difference is usually small (.006%).
    At times I will get exact matches.  Yesterday, 3 out of 5 runs were exactly the same result.
    Can anyone advise what might be causing this variability?  And how it might be corrected.  Either by using different selection parameters of another more reliable transaction code.
    Regards,
    Joe

    Hi,
    If you post in the previous period and the material price in the previous period differs from the current price, the system generates a stock posting and revaluation line with the same value but opposite signs.
    You can ran an inconsistency check report using SE16: MBEW
    Go through SAP Note 518368
    Bye,
    Muralidhara

  • UDF FOR POSTING DATE

    Hi all,
    i have a document of fileld(LFA1=LIFNR),IT SHOULD BE POSTED ACCORDING TO POSTING DATE (BKPF-BUDAT).i.e 22022008.
    how  to caheive this functionality.should we write UDF?
    regards,
    rao

    Hi rao,
    According to me you don't need any UDF.
    the field lifnr has 7 line items ,these 7 line items should go in onedocument
    For this you have to use concat function.
    posting date for this document is as per (BKPF-BUDAT).
    For this you have to use IfWithOutElse function. By using Equals (Text category) and constant function.
    Take care of CONTEXT. Put Context of all input parameters at upper node(same level).
    and before map to Target field use SplitByValue function.
    Regards,
    Rohit
    Reward points if useful.

  • 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

  • QA11 for posting date

    Hi all ,
    System allowing to post document having "Posting Date" greater than "System Date" in QA11.
    Any BADI is avialable to restrict the same.
    Please help

    As I know there is no customer exit or BADI to control the posting date field(RQEVA-BUDAT) at UD transaction.
    Using a field exit is only way for your requirement.
    But SAP does not support the field exit functionality anymore through CMOD from version 4.6C.
    Therefore you have to use report RSMODPRF or develop a function like as 'FIELD_EXIT_***'.
    Regards
    Luke

  • 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,
    Raj

    Hi 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

Maybe you are looking for

  • ME9F Print preview vs Output Message

    Dear Expert, I would like to know that can we add any text on the face of the PO that shows that it is printed from the Trial Printout button, so that user should use the Output button to finally printout the PO? Thanks for all your kind attention, R

  • Circuit Design Suite 10.1. Evaluation error. Evaluation period is expired?

    Hi! I'm a student from Portugal and recently (Monday, March 23rd 2009) I have downloaded the evaluation version for the Circuit Design Suite 10.1 that includes MultiSim 10.1... Everything went perfect during the installation, but when I tried to run

  • [SOLVED] Screen resolution issue

    I've had an issue with screen resolution for awhile.  Basically, I have it set correctly, but a small portion of the screen is cut off on the right-hand side of the screen.  When using just the CLI, it's about a character that gets cut off, In X (reg

  • Nvidia Geforce 7800 GT Open GL questioin

    I have the above stated card installed on an Asus A8N - SLI Mobo.  I'm using just the one card right now.  The card came with "The Chronicles of Riddick: Escape from Butcher Bay."  I got the game installed went to launch it and it errored out saying

  • How to Trigger  Object type Event programmatically  in ABAP ?

    Experts, How to Generate an Object Type Event  programmatically in ABAP ???  We know that SAP std. applications do this by default ,for eg:  Sales Order creation event generation,  similarly , i want to generate an Event  ( SAP or a Z object event )