Me21n tcode pr validation based particular document

hi guru's
in me21n tcode in item level i want to check purchase requestion field initial or not
if its not initial it should throw error message 'please enter pr'  for PARTICULAR ORDER TYPE (document type ) how to do it .... it can be done by user exits r badi .. if it possiable please send the code

Hi,
badi ME_PROCESS_PO_CUST
method - PROCESS_ITEM
data: ls_poitem type mepoitem.
  ls_poitem = im_item->get_data( ).
  if ls_poitem-banfn eq ' '.
   message 'Plz Enter Purchase requisition'  type 'E'.
  endif.
Regards!

Similar Messages

  • In me21n tcode pr field as validate

    hi guru's
    in me21n tcode in item level i want to check purchase requestion field initial or not
    if its not initial it should trow the message 'please enter pr' how to do it .... it can be done by user exits r badi .. if it possiable please sen the code

    Making PR mandatory based on Doc Type can be achieved via SPRO. The path is
    SPRO>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level. Create a new field selection based on your exisiting field selection or modify your exisiting one. It depends on your requirement. Click on Reference data, item You would find PR and some radio buttons. Click the one for Reqd Entry. Save.
    Once this is saved, go to SPRO>Materials Management>Purchasing>Purchase Order> Define Document Type. Enter the updated field selection from above in the document type row for which this change needs to be activated.
    Hope this helps!
    Thanks!

  • How to Restrict printing the document using IRM for a Single Document?Allow printing for some documents and restrict the printing for particular documents in same document library?

    Can we able to Configure the IRM in Document Level in SharePoint Document libraries?
    The document library contains multiple document sets , Can we restrict the printing according to document sets? Allow printing for some documents and restrict the printing for particular documents in same document library
     Is this possible?Please suggest.

    Yes, that can be done. But note that all administrators will have the same right to print, so you need to make sure the users are not administrators. You can include a macro to disable printing, but if the users disable macro, they can print the documents.
    Hence, there is no foolproof way to prevent printing documents. If you still need a foolproof security, PDF format provides password based security (viewing doesn't require a password) that can be implemented to prevent the document from printing,
    which doesn't require any special scripts and is tough.
    You can have a look at the following links:
    http://msdn.microsoft.com/en-us/library/office/ms458245(v=office.14).aspx
    http://msgroups.net/microsoft.public.word.docmanagement/prevent-printing-of-docum/91353
    http://www.go4sharepoint.com/Forum/prevent-printing-saving-documents-10150.aspx
    The following link explains about the security features in PDF. This is for information purpose only and not for promotion of any products:
    http://www.pdflib.com/knowledge-base/pdf-security/
    Balaji Kundalam

  • F110- Check Sort Based on document number

    Hi All,
    We are using the program RFFOUS_C to print check when we are doing the payment run F110.
    Presently, checks are sorted as per vendor name (Name 1) while printing. We need to print check sorted based on document (Invoice) number, field BELNR. SO, that checks are printed in the same order as we have entered invoices.
    But the field BELNR field for sorting is not available in the application REGUH (Correspondence), which is a natural way to check print sorting. (In customizing FBZP, "Payment method in Company Code" form data, Sorting of corrpondence)
    Is there a way, we can sort check based on the invoice number (BELNR). .
    Thanks
    Ron
    Edited by: Ron on Jan 7, 2010 1:34 PM

    Hey Ron,
    In Free Selection tab on F110 tcode, Pick Field name as BKPF-BELNR (Document number). Now create the proposal and do the payment run.
    Thanks
    Raghuram

  • Maintain Validity Date for Documents

    Hi
    Any Idea how can we put and maintain Validity Dates for any Document uploaded in DMS Server.
    Validity Dates here means (Documents cannot be used if validty is over)
    I could not find any option in CV01*   T-Codes.
    Regards

    Dear Prasant,
    You can also do this solution also if you find it OK.
    1. Create a Class with "Validaty Date" as characteristics. Assign this Charac to class. Assign this class to doc Type. This charac should not be editable to any one except creator.
    2. Create a program with BAPI " Set Status" ( Check the name). which will run in background to check the validity date of Document. If the validity date is reached the BAPI will change the status to "S" as stated by Chritoph.
    This will help user to manually tracked which documents have exceded the validity date. You can also genegrate report and mail it to particular user that what documents have been set to Status "S".
    Hope I have provided a valid solution as I have tried similar kind of functionality with changing a characteristics with Date.
    With warm Regards
    Mangesh Pande

  • Screen value of table control in ME21N tcode condiions tab

    Hi ALL,
    I have a problem in ME21 Tcode .I want to read screen field value of net price  of Screen ME21N tcode conditions tab.
    when I change tax code in delivery tab then condition tab values changes according to price procedure.I want to read that conditions tab  Net price value  nothing but unit price (amount field in screen) and need to do validation .
    i used the BADI but could not able to find the screen value using DYNP_VALUES_READ fm.
    kindly sugest the  solution.
    regards,
    padmaja.

    Hi
    In BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM or in method CHECK, for interface IF_PURCHASE_ORDER_MM, use method GET_CONDITIONS.
    For instance in method CHECK
      include mm_messages_mac.
      data: header       type mepoheader,
            items        type purchase_order_items,
            po_line      type mepoitem,
            line_item    type purchase_order_item,
            po_condition type mmpur_tkomv,
      header = im_header->get_data( ).
      items  = im_header->get_items( ).
      loop at items into line_item.
        po_line = line_item-item->get_data( ).
        call method line_item-item->get_conditions
          importing
            ex_conditions = po_condition.
      endloop.
    I hope don't forget anything.
    I hope this helps you
    Regards
    Eduardo

  • Change Validation to complete document level

    SAP experts,
    In tcode F-65 the business is using account assignment model to post recurring entries by filling in the template. Here it has a validation "Amount is Zero - line item will be ignored" at the Line item level. Business wants this validation to be changed from Line item level to the whole document level (at the time of save).
    The message no. is -- FX090
    "Amount is Zero - line item will be ignored"
    How can I change this validation settings?... please help asap.
    Thanks in advance.

    Dear Sameer,
    You would need to implement it at header level.
    For example in IMG under
    Financial Accounting -> Accounts Receivables and Accounts Payable -> Business Transactions -> Posting with alternative Reconciliation accounts -> Carry out and check document settings -> Validation in Accounting Documents.
    You can see some of the validations are implemented at item level and some at header level.
    Regards,
    Naveen.

  • How do I open a web based PDF document on my iPad?

    I am unable to open web based PDF documents as I fear Apple does not trust PDF documents on the Web.

    Hi Rick,
    Did you try attaching screenshots to your reply to the email from this forum?  Because the Adobe forums do not accept any type of attachments for security reasons, your photo attachments did not get through.  Sorry about that.
    But I think I know what you saw when you tried to open one of the PDF Application Forms on the Alberta (Canadian) government web site.
    Did you see a message like this in Safari on your iPad?
    Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting  http://www.adobe.com/go/reader_download.
    If so, the PDF form is a special type of form called a "dynamic XFA form".  The message is displayed when a dynamic content is not supported by a PDF viewer.
    As far as I know, there are no iOS apps that support dynamic XFA forms. The mobile version of Adobe Reader does not support dynamic XFA forms.  Neither does Safari or iBooks on iOS.  It's the limitation of mobile PDF viewer apps.
    To recap
    Dynamic or static XFA forms - Use the desktop version of Adobe Reader or Acrobat on a Mac or Windows computer.
    Most PDF documents and non-XFA forms - Use the mobile or desktop version of Adobe Reader.
    Please note that Apple iOS apps (such as Mail, Safari, and iBooks) do not display filled form data or annotations (sticky notes, highlight, etc.) at all.  If a PDF document/form is first opened in Mail, Safari, or iBooks, you need to use the iOS "Open In" feature to open it in Adobe Reader for iOS.
    How to open PDF documents in Adobe Reader for iOS (iPad on iOS 7 or 8 version)
    (This is the same FAQ document that I mentioned in my reply #2 above.)
    In this particular case, using the "Open In" feature to transfer the PDF Application Form from Safari to Adobe Reader for iOS does not help.  Because Adobe Reader for iOS cannot display the dynamically generated content of the XFA form from the Alberta government web site.
    But you should be able to open other "regular" PDF documents (just like the one that I provided as a sample link) in Adobe Reader for iOS.
    Hope this helps.  Please let us know if you have additional questions.

  • Validations based on Listing

    Hi Experts,
    We are developing a custom program to upload the Lower and Capacity values for the SKU's in a custom table for every store.
    While uploading the data, we want to put a validation based on the Listing, so that we can put a check while updating the table.
    The reason being, if a particular SKU is not listed for a Store, then we don't want that SKU be updated in the table ( for reduced table value maintenance).
    We are using Listing procedure B3 by default for all SKU's in the article master.
    But I am not sure, how to put a validation check here.
    Could you please help me in this scenario?
    Regards
    Nainar

    Hi Nainar,
    please have a look at function module WLK1_CHECK to integrate that in your custom program. But logic can a little bit difficult as listing conditions are time-dependent (e.g. no longer valid or valid in the future). So you have to decide how to react in which case.
    From your description, it is not clear how often you want to upload your data and how often listing changes occur, etc.
    Hope it helps.
    Regards
    Tobias

  • For a particular document type posting using FB50/F-02 should be restricted

    Hi all,
    I have a requirement that, for a particular document type posting using FB50/F-02 should be restricted.
    Any idea?
    Thanks,

    Hi,
    what Exactly i need to write in validation is...
    PREREQUISITE.
    company code eq '0001' or '0002' or '0003'.
    and doc type 'XX'.
    CHECK
    data: l_flag type c.
    check action eq 'BU'.    "only when clicked on 'post' in FB50
    Import l_flag from memory id 'YMMID'.
    if l_flag eq ''.
    endif.
    message
    'Doc cann't be posted'.
    Is it possible to write above code in validation?

  • Running Aging reports based on Document date in 2007

    Hi All,
    I have an issue while running the Receivables aging report in the 2007 version. The customer usually runs the reports based on the document date. Document date holds more importance in their case.
    However, in the 2007 version, the aging report is totally governed by the posting date. For example, if I change the aging date, the posting date also changes to the aging date and viceversa. If I want to change the aging date to 01/31/09, the posting date u2018Tou2019 automatically changes to 01/31/09 and when we run the report, it will bring in all transactions until the posting date of 01/31/09.
    But, the requirement is to leave the posting date as blank and give the document date u2018Tou2019 01/31/09. This will then pull all transactions until the document date of 01/31/09 irrespective of the posting date.
    As a result, when you run the balance sheet with the document date of 01/31/09, receivables show a different balance. This discrepancy is due to the fact that AR Receivable aging report forces to keep the Aging date = Posting date.
    This was not the case in SAP 2005 version where we were allowed to key in the aging date and the document date to get results based on document date.
    This is very critical as they have recently upgraded from 2005 to 2007 and they are unable to reconcile the balances out of Balance sheet and Aging.
    Please advise.
    Thanks,
    Payal

    Hi Jitin,
    We tried that as well but no luck. There is still a discrepency between what the aging shows and what the BS shows. When we put the Aging date as 01/31/09 and Document date as 01/3109, the posting date 'To' is automatically filled with 01/31/09, so it basically searches for all transactions with the posting date 01/31/09 and document date 01/31/09. This is not the requirement as we do not want to consider the posting date at all while running the aging.
    I also have some screenshots if I can share. I am not sure if I should report this to SAP for further investigation or am I missing something here.
    Thanks for your help.
    Regards,
    Payal
    Edited by: Rui Pereira on May 1, 2009 10:48 AM

  • How to get the View for a particular Document position?

    Hi there,
    Does anyone know how to get the "deepest" View that is responsible for rendering a particular Document offset?
    I tried looking at modelToView() and some other methods, but I am lost.
    Can anyone please help me?
    Thanks,
    Swati

    Bart--
    To find the table cell of the insertion point, you could use something like:
    InterfacePtr<ITextStoryThread> storythreadp(txtModel->QueryStoryThread(startPos + 1));
    InterfacePtr<ICellContent> cellcontentp(storythreadp, UseDefaultIID());
    if (! cellcontentp) {
      // Not a table cell, so see if it's the primary thread (kTextStoryBoss/ITextModel).
      InterfacePtr<ITextModel> threadmodelp(storythreadp, UseDefaultIID());
      if (threadmodelp) {
        // It's the primary thread...
      else {
        // It's something else with an ITextStoryThread (note, footnote, etc.).
    else {
      // The insertion point's in a table cell (kTextCellContentBoss).
      InterfacePtr<ITableModel> tableModel(cellcontentp->GetTableModel(), UseDefaultIID());
      GridID gridID(cellcontentp->GetGridID());
      GridAddress gridLoc(cellcontentp->GetGridAddress());
      // ...and so on.
    Hope this helps get you where you want to go.
    Chris Roueche / Freelance Developer

  • Getting Modified date of a particular document in KM Content

    Hi,
    Can I fetch the modified date of a particular document from KM Content?
    I know  i can find the date in settings -> properties. But I want to fetch the value of modified date/time.
    I want to save that  modified date/time in particular attribute in a program developed in NWDS so that I can proceed with my code depending on modified date/time.
    Please guide me.
    Regards
    Simin

    Belw code snippet gives me the Modified date for the document RFCCall.html stored in documents folder.
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
              IUserContext uc = request.getUser();
              IUser user = (IUser)uc.getUser();
              ResourceContext ctxt = new ResourceContext(user);
              RID rid = RID.getRID("/documents/RFCCall.html");
              IResource resource;
              try {
                   resource = ResourceFactory.getInstance().getResource(rid, ctxt);
                   response.write(resource.getLastModified().toString());
              } catch (ResourceException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    You need to add a sharing reference to knowledgemanagement for this to work.
    Regards
    Prashant

  • Error message in Me21n tcode

    Hi,
       we have developed a  user exit to get error message when po value is greater than some amount in me21n tcode. am getting error message when entering all items. But when  press SAVE button  i want that error message also. But am not getting that error message in that time.How i can write a code for that.

    Hi Geetha,
    For that requirement you have to code in  EXIT_SAPMM06E_012 or  EXIT_SAPMM06E_013 MM06E005.
    EXIT_SAPMM06E_012 : it will get triggered whenever you press HOLD,CHECK or SAVE button
    EXIT_SAPMM06E_013 : it will get triggered just before saving the PO.
    Thanks & Regards,
    Faheem.

  • PO from PR only for a particular document type

    Dear Gurus
    I want purchase orders should be raised with reference to purchase requisitions only. System should allow to make purchase orders with reference to purchase requisitions only for a particular document type only.
    I have configured in OMET and assigend this in SU3, now the system is not allowing to create PO for all document types, but I want to restrict this for a particular document type only
    Is there any configu change required?
    Regards
    Muthukumar

    Hi
    You can make it in MM - purchasing -> purchase orders -> define document types -> check the document type -> click on link purchase requisitions.
    And in define screen layout at document level - make PR mandatory for your purchase order document type (field reference).
    Thanks
    Edited by: Praveen Raghavendra on Jan 12, 2009 2:07 PM

Maybe you are looking for

  • How to handle error pages in JSF

    Hii, I am facing problem in JSF handling server side errors like faces exception. For Ex; if i have a JSF screen,if i enter invalid data it will show error in the same page if i use messages tag,but i need to display errors in another page like error

  • CO46/MD4C - see 2 receipt elements (ShipNt & PchOrd) for one demand

    Scenario: Production Order for 10 ea for 'A' with a purchased material 'x'. The supplier confirms 5 ea of material 'x' have left the dock and I make a shipping notiication calculating expected delivery date and update MRP. I now have 2 receipt elemen

  • ITunes causing Beachball of Death bringing down the whole computer.

    My iTunes problems started about 3 months ago. Whenever I use iTunes (playing a song, downloading a podcast, syncing my iPhone, etc...) I get the beachball which never goes away. iTunes finishes playing the song that is currently playing but I am not

  • Transport request for admin cockpit  set-up

    Hi Experts, i have to do technical content installation (admin cockpit set up),for this i should create one transport request can any one tell me or share the docs how to create a Transport request for admin cockpot set up. Regards Mrudula

  • ITunes credit in Russia

    Hi can anyone give me some advice please, I'm after receiving an email to say someone has bought iTunes credit in Russia from my account, I don't know what to do as when I try to go into my account when I give my DOB and security questions they are s