Error message & warning message while creating PO

Hi,
I have one requirement like when user create PO with 'critical material',while saving PO,user should get message "critical material".
For this ,in the enhancement MM06E005,EXIT_SAPMM06E_012(functional module),
I have written piece of code
*critical Material by Jaheer,ABAP & MM specialist
LOOP AT TEKPO.
IF TEKPO-MATKL EQ '9068'.
MESSAGE ID 'ZMM' TYPE 'W' NUMBER '013' with TEKPO-MATNR.
ENDIF.
endloop.
Here whenever I put message type 'E',I am getting message "critical material".But I donot want error message ,I want only warning message,so when I changed message type as "W",I am not getting any message while checking My PO.
What is the reason?
please,Can somebody throw some light on this?
With Reg,
Jaheer

Hi
Use the badi ME_PROCESS_PO_CUST, method CHECK, with a coding as this
  include mm_messages_mac.
  data: header       type mepoheader,
        items        type purchase_order_items,
        po_line      type mepoitem,
        line_item    type purchase_order_item.
  header = im_header->get_data( ).
  items  = im_header->get_items( ).
LOOP AT items INTO line_item.
IF condition IS TRUE.  "critical material (line_item-matnr)
       mmpur_message 'W' 'ZMM' '013' line_item-matnr ' ' ' '  ' '.
ENDIF.
ENDLOOP.
I hope this helps you
Regards
Eduardo

Similar Messages

  • WHAT ALL MESSAGE'S ISSUED WHILE CREATING PO

    Sir,
    ply let me know after saving the po i want to know what all messages were issued while creating the po.
    Like "warning" or "information" message
    where  can i see this
    regards
    amey

    Hi,
    PAth- Spro-MM-Purchasing-Environment Data-Define Attributes of System Messages...
    Here are few message type:
    Contract has different purchasing organization &     W
    Validity period of contract does not start until &     W
    Validity period of contract expired on &     W
    Target value of contract & exceeded by & &     W
    Net price for item & taken from conditions     W
    Purchase requisition & item & already deleted     W
    Scheduled quantity & & greater than target quantity & &     W
    Quantity smaller than invoiced quantity &     W
    Target quantity exceeded by  & &     W
    Not possible to determine a consumption account     W
    Release date lies in the past     W
    Base unit of measure & adopted from material master record
    Release date: next workday is &     W
    Contract target value & reached     W
    Please only use plants with company code &
    Order unit copied from material master record     W
    Hope it helps.
    Utsav..

  • Error or warning message when closing WBS element

    Hello Friends,
    Is it possible to issue any error or warning message while closing the account assigned WBS after balancing cost to zero on WBS by settlement and (commitment zero) fully  completion of GR, but IR has not yet done that means PO is still open.
    Thanks for the help.
    Kris

    you should not use messages on closure for this
    run ME5J report
    or run a line item report on the GR/IR account
    This should be checxked from logistics side not from WBS or projects

  • Error and warning message querry?

    How is it that i can see in spro all the error and warning messages???

    Hi,
    in table t100 through se11  i can see the field MSGNR  , THATS IT ,

  • Error and Warning message documentation

    Hi. I'm looking for general documentation that I can use as a reference whenever the compiler/linker/etc. spews out an error or warning message. For example, I'm trying to build a UnitTest framework and I'm getting the following error from the linker:
    ld: fatal: symbol 'X' is multiply defined: (file a.o and file b.o)
    Thanks,
    Mike

    Hi,
    in table t100 through se11  i can see the field MSGNR  , THATS IT ,

  • Regarding error and warning messages in log.

    hi all,
    i need to move the error meaasges and warning messages to log....am downloading the FI data from EC...
    my req is if the company code  is not in header..throws warning message" comp has not been for header" and at the same the file has to be generated.....
    and for line item if the trading partner is not present it throws error message and at the same time file has to be generated.....
    for exxample like this.....
    GL account     FS item      Trading Partner  TC     Value in TC       LC       Value in LC
    12345678          213344   XXXX            USD     1,000          1,000
         USD

    Hi,
    u can use an internla table and get all the Logs,
    for Example if company code is not there the move the company code and pernr to ITAB1,
    if EMP subgroup is not there in header then move to ITAB2.and at the final appene itab1,itab2 to one more inernal table so that this final table contains all the errored pernrs, and u can display it

  • IDOC to File (BYpass)-- Error or Warning  :  " Message Branched. "

    HI all,
    Iam trying idoc to file scenario(bypass)
    my idoc is triggered succesfully and it is reaching to the receiver system.
    but the problem is in SXMB_MONI ,it is not showing my Receiver service details and showing with different symbol like " <b>>></b>  " with message as " MESSAGE BRANCHED".
    what might be the problem....???
    Also Idoc reaching to the receiving system very lately.
    Pls suggest me ASAP..
    Thanks in Advance.
    Regards,
    Vijji

    In the receiver determination, do you have multiple receivers, i.e , is the same idoc being sent to multiple receivers ?
    If yes, then the message branch is used to split the source message so that it can be send to differetn targets. You will find multiple entires below the Slit Message Entry one for each receiver.
    Regards
    Bhavesh

  • Error in sales area while creating sales order

    Can anybody guide us in solving following issue-
    While creating a sales order, if there is mismatch between customer sales area (Particularly division) and material master division-
    1.the system is giving error message & not allowing to save the sales order for one sales area,
    2.but at the same time it is giving warning message and allowing to save the sales order for other sales area.
    Thanks & Regards

    Dear Mrunal
    Check in IMG --> Enterprise Structure --> Assignment --> Sales and Distribution --> Business Area Account Assignment --> Define Rules by Sales Area whether the respective Sales Organization, Distribution Channel and Division are assigned.
    Also check in <b>OVXG</b>.
    Either of the above is missing in your configuration and hence the error.
    Thanks
    G. Lakshmipathi

  • "Error in source system" while creating source system

    Hello,
    I don't know what's our general problem (I suppose that it's ageneral problem) but we always have the following eror while creating a source system:
    When we want to create a source system on BI, we first get an error "No connection to source system possible". After checking the RFC connection and correct the password of the remote user on the automatically created _DIALOG RFC connection the exception changes to "Error in source system".
    The error occurs after the information "Please log on as an administrator in the following screen".
    The remote user on R/3 side has got profiles S_BI-WHM_RFC and S_BI-WX_RFC (found two conflicting statements regarding this profiles), on BI side it has got SAP_ALL and some more profiles
    What else could be the problem?
    Greetings & Thanks
    Bettina

    Hello,
    now we know that
    1. the remote user needs profiles SAP_ALL and SAP_NEW and has to be dialog user with a password unequal that password it should have in the future (otherwise you don't see the error messages that appear during the login process)
    2. the system has to be changeable (scc4 and se03)
    After the source system is created the changeability can be changed to the original values and the remote user can be changed to a communication user again.
    Thanks for the tip regarding the authorizations.
    Greetings
    Bettina

  • Error related to depreciation while creating PR - BAPI_REQUISITION_CREATE

    Hi Experts,
    We are using the  BAPI_REQUISITION_CREATE to create the PR  (Purchase requisition).
    While creating the PR we were got stucked by the following errors.
    - Parallel depreciation area 33 is not posted
    -You cannot post to this asset (No depreciation areas present)
    Please guide us if someone had faced similar error/suituation.
    Early reply will be really appreciated.
    Thanks,
    Ravi.K

    Hi Ravi,
    Generally : the system checks whether depr.areas exist for this dummy asset and if not,  the error AA 304 is prompted.               
    Further checks are made when using (N) transactions, that's why you  get AA 025 when posting with ME51N.         
    Best regards Bernhard

  • Error in account determination while creating shipment cost document in SD

    Dear all,
    I have come across a case where an error has come in determining account while creating shipment cost document. This is happening only in the case of a particular shipment cost type. The Status of " Calculated" is C, the status of " Assigned" is " B" and the status of "Transferred" is A.
    Can any one throw any light as to why it is happening like this?
    Thanks and best regards
    Kumaran

    Dear all,
    With the help provided, I am unable to resolve the issue.
    Any further inputs please?
    Thanks & best regards
    Kumaran

  • Giving error of insufficient privileges while creating triggers

    Hi all,
    I am facing the problem of insuffcient privilege on base tables while creating triggers. I have three schemas say A, B, C in my database.
    Base tables are in schema A. I have given all the grants on base table to schema B and C.
    grant all on base_table_name to B;
    grant all on base_table_name to C;
    I have created synonym also on that base table.
    And i m creating triggers in schema B.
    When i execute the query for trigger the it giving following error :
    +AFTER INSERT OR UPDATE OR DELETE ON BASE_TBALE_NAME                                      *+
    ERROR at line 3:
    ORA-01031: insufficient privileges
    even i have checked in dba_tab_privs for that base_table.....it is showing all the grants to USER B and C.
    What should I do now?
    please suggest.......
    Regards,
    Andy.

    Hi karan,
    You are right. While searching docs i got the solution of my problem.
    Privileges Required to Use Triggers
    To create a trigger in your schema:
    +•You must have the CREATE TRIGGER system privilege+
    +•One of the following must be true:+
    +◦You own the table specified in the triggering statement+
    +◦You have the ALTER privilege for the table specified in the triggering statement+
    +◦You have the ALTER ANY TABLE system privilege+
    To create a trigger in another schema, or to reference a table in another schema from a trigger in your schema:
    +•You must have the CREATE ANY TRIGGER system privilege.+
    +•You must have the EXECUTE privilege on the referenced subprograms or packages.+
    To create a trigger on the database, you must have the ADMINISTER DATABASE TRIGGER privilege. If this privilege is later revoked, you can drop the trigger but not alter it.
    The object privileges to the schema objects referenced in the trigger body must be granted to the trigger owner explicitly (not through a role). The statements in the trigger body operate under the privilege domain of the trigger owner, not the privilege domain of the user issuing the triggering statement (this is similar to the privilege model for stored subprograms).
    I have to grant only create any trigger to user.
    Problem solved.
    Thanks to all for ur help.
    Regards,
    Andy.

  • Error regarding batch management while creating GRN

    Hello,
             While creating GR I am getting error as "Please enter batch".  So in Material master in Plant data/Stor1 view when i tried to remove the tick for Batch management it is giving the error as "Batch management requirement cannot be changed, choose "Display errors"".  In Display errors it says "Batches already exist". In stock overview some batches existed.
    - How can I remove this tick.
    Regards,
    Priyanka

    Hi,
    Below is the procedure to change the Batch Management indicator
    Hi,
    1 Check the Status of material MMBE
    2 There should not be any open Purchase Order Use SE16 & Table EKPO Give the material number for which we have to find the Open Pos; Alternateively ME2M can also be used
    3 There should not be any Open Production Order Use SE16 & Table AFPO Give the material number for which we have to find the Open Production Orders
    4 There sould not be any Sales Order Use SE16 & Table VBAP Give the material Number for which we have to find the Open Sales Orders
    5 There should not be any Purchase Requistion Use SE16 & Table EBAN Give the material Number for which we have to find the Open PRs
    6 There should not be any Stock in Transit MB5T
    7 There should not be any Plant availability Stock MB53
    8 There should not be any Reservation MB25
    9 Previuos Period Stock should be zero Use MM03 with Plant Stock & Storage Loc. View If Stock Exists follow the Procedure mentioned in next chapter to close
    10 Stock requirement should be zero MD04
    11 There should not be any open Delivery Use SE16 & Table LIPS Give the material Number for which we have to find the Open PRs
    12 There should not be any open Warehouse Transfer Request Use SE16 & Table LTBP Give the material Number for which we have to find the Open PRs
    13 There should not be any open Warehouse Transfer Request Use SE16 & Table LTAP Give the material Number for which we have to find the Open PRs
    14 The Batch Corresponding to the plant has to be set for deletion indicator MSC2N
    If previous period stocks exist, we can make a withdrawal posting as follows
    1. Post the same amount to current period stock (for example, using
    movement type 561) so that previous period stock and current period
    stock are identical.
    2. Make a withdrawal posting in the previous period for the stock
    together with posting date (for example, using movement type 562).
    If any of the above Stock Exists it has to be closed;If Any of the stock exists we cannot uncheck
    After closing all the open items;the related business documents viz Purchase Orders,Production Orders,Delivery,etc has to be Archived
    Archiving has certain criteria while doing Archiving Process-- Systematic Archival is the Key factor i.e relationship diagram has be met.
    SAP Note Number 533383 - Resetting batch management requirement
    Reward points if found useful.
    Regards,
    E.Vengata Raghavan

  • Error : Modification not possible- while creating source system in BI7

    Hi BI Guru's,
    We are using BI7 and source system ECC6 ,We are about to move to production, When creating the source system in BI PRD system we getting the Error Modification not possible.we created RFC connection, background user and remote connection works fine.
    Is there any body put some light on this issue
    thanks in advance,
    Regards,
    Mohan

    Mohan,
    Check if your logical systems are in place in SCC4 and also in the transport connection.
    Also check if you are connecting to the source system by IP Address or by logical name.
    Accordingly you would have to maintain the source system connections.
    Arun

  • Error message I need while creating PO

    Dear Experts.
    I need to set error message when we try to convert deleted purchase requisation into Purcahse order.
    Pls can any one help how to set.
    Thanks in advance,
    With Rgds,
    Vinod

    Try setting the message 06  050  Purchase requisition & item & already deleted to an "E" in the purchasing system messages in the SPRO path Materials Management -> Purchasing -> Environment Data -> Define Attributes of System Messages and then choose System messages.
    Hope this helps.

Maybe you are looking for