Changing a Message type on Purchase Order

Hi guys,
How can I change a standard message type on Purchase Order ?
For example :
On Purchase Order, when a insert a new Contract item number, occurs the Error message below :
'Contract vendor 610065 differs from vendor 610195'
But, I neet to change this message type from 'Error' to 'Warning' in some cases.
How can I do this, please ? I'm learning OO now and I have some difficulty yet..
tks
Flavio

I found a Method  'PROCESS_ITEM' in a Badi 'ME_PROCESS_PO_CUST' that the piece of code bellow.  I tried to insert the code :
message e047(06) with '12345'.
but... the message 47 didn't change, and this message only was added to messages.
  define mmpur_message.
    gl_tabix = sy-tabix.
    gl_subrc = sy-subrc.
    message id &2 type &1 number &3 with &4 &5 &6 &7 into gl_dummy.
    call method cl_message_mm=>create
      exporting
        im_msgid = &2
        im_msgty = &1
        im_msgno = &3
        im_msgv1 = sy-msgv1
        im_msgv2 = sy-msgv2
        im_msgv3 = sy-msgv3
        im_msgv4 = sy-msgv4
      exceptions
        failure  = 01
        dialog   = 02.
    if sy-subrc = 1 or sy-subrc = 2.
      message id sy-msgid type sy-msgty number sy-msgno
              with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    sy-subrc = gl_subrc.
    sy-tabix = gl_tabix.
  end-of-definition.

Similar Messages

  • Define Message Types for Purchase Order.

    Hi,
    is it true that message type "NEU" doesn't require to fill
    the smartform field  in Processing Routines ?
    Yours truly

    If you are using the std form then you dont need smart form
    std form is SAP script adn smartform is diff form then SAP script

  • Reg.Output type for purchase order

    Dear Sir
    I followed your steps but not come to "List of allowed output"
    when I select the message for Purchase order(ME21N). There are listing NEU,SPO,MAHN  and AUFB.
    I just copy the NEU and all,I did not change anything.
    Maintain Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    Ex:
    EF---> TES
    Select “TES” and double click on “Mail title and texts” and go to
    EN- New Purchase Order Print Out,
    Select “TES” again and double click on “Processing routines,
    Select “TES” again and double click on “Partner Roles
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO(ME21N) and save it. Go to ME22N and print the PO by giving output type TES.
    Please help me sir
    Rajj

    Hi
    Go to NACE
    Select application as EF Purchase Order
    Define TES as out put type there
    Vishal...

  • Default output type in purchase order

    Dear All
    i have short  and easy question:
    how can i set one output type(like NEU) as default in purchase order as when create P.O output type automatically comes from customizing?
    best regards
    R.T

    Hi,
    If you have done all customizing setting & maintain condition record for message type in t.code : MN04. Now Just fine tune the output (message) type in following path:
    SPRO>MM>Purchasing>Message>Output control>Message tyoes> Define message type for Purchase Order-->Fine-Tuned Control: Purchase Order
    Now here select the check box corresponding to your output(message) type NEU to have print output for this message type is automatically displayed & save.
    Now try creating PO & u will have default message type.
    Regards,
    Biju K

  • Output Message Determination for Purchase Order

    Hi all !
    Can anybody please explain in brief, the procedure for Ouyput message determination for Purchase order. (including printer settings)
    I have tried it throgh the Standard Configuration guide. but i am not able to do.
    Please explain step by step including form attachment.
    Thanks in Advance !!!!

    Hi,
    Customization steps for Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Note1
    Now Check in SPAD (Printer settings) settings & try to check the printer configuration. Check Device attributes, Access methods etc. are maintained in Spool Administration (SPAD) for the selected printer (your local Printer, may be ur using HP01or any but in SAP std is LP01) but consult with your basis consultant regarding above.
    Check the following also:
    Spool generated using SP01 or SP02.
    Output device.
    Local printer settings.
    Paper Tray, Print Mode, Printer
    Note2:
    Check MN04 and NACE t.codes
    Regards,
    Biju K

  • Assign output type to purchase order

    Hi Friends,
    I have defined an output tyoe for my purchase orders. I want to assign this output type to my PO such that whenever I create a new PO I dont have to assign the output everytime to take printout.
    Can someone please help me how to achieve this.
    Regards,
    Wasim.

    Hi,
    As all customizing setting done for PO print out & then maintain condition record for message type in t.code : MN04 with PO document type combination with other details
    Now Just fine tune your output (message) type for Purchase Order  in following path:
    SPRO>MM>Purchasing>Message>Output control>Message tyoes> Define message type for Purchase Order-->Fine-Tuned Control: Purchase Order
    Now here select the check box corresponding to your output(message) type  to have print output for this message type is automatically displayed & save.
    Now try creating PO & you will have default message type in the PO
    Regards,
    Biju K

  • Suppress Output type in Purchase order 'message' tab

    Hi,
    Can any one suggest how to suppress the existing output type in purchase order ' selecting from list of output's from message tab'.
    We need in database and should not delete. can it be possible to hide from list in PO that user cannot select that output.
    Thank You,
    Bhanu.

    Bhanu,
    I got your requirement, but could you please let me know on what scenario you need this, because if you need the system to perform like this only when there is some specific fields in the PO, like for eg, P.organisation, or vendor, or Document type etc,,,,anything specific to this,.....then i think if  you create a table which will exactly show your target values, like grouping DOC+P.ORG+VN, or any other combination, and then assigning this to one access sequence which will in turn get assigned to the Output type which you want, then i think only that output type will pop up as the other one is not assigned to the access sequence or the combinations you set. Likewise you can suppress one Output type.
    Regards,
    Sankar

  • Problem in using output type for purchase order

    Hi experts,
         I am using output type for first time so may be i have done wrong configuration for po output type.The steps i have done are :-
    1) Going to  tcode NACE->Selected  the row u201CEF Purchase Orderu201D and clicked on u201CProcedures".
    2) In procedures there are 2 procedures for the application EF (Purchase Order). To proceed further, we would need to find out the procedure that is currently active.Gone to transaction SPRO. In this, navigate as Materials management -> Purchasing ->Messages -> Output control -> Message Determination Schemas ->Define Message Schema for Purchase Order
    3) Clicking on u201CAssign Schema to Purchase Orderu201D. So, the procedure RMBEF1 is active for EF (Purchase Order) . 
    4) Go back to transaction NACE. Select u2018EFu2019 and click on u201COutput typesu201D.
    5)  Let us use the output type u201CNEU name purchase orderu201D for this purpose. Double-click on NEU.
    6) Ensured  that the checkboxes u201CAccess to conditionsu201D and u201Cmultiple issuingu201D are checked and the access sequence is 0001(DocType/PurchOrg/Vendor).Only 0001 and 0002 is available in f4 help for this.
    7) Now clicked on u201CProcessing Routinesu201D on the left hand side. Ensured that there is an entry for Medium u2018Au2019 (Distribution ALE).
    8) After that going back to the main screen of NACE. Select EF (Purchase Order) and clicked on u201CCondition Recordsu201D.
    Select NEU and clicked on u201CCondition recordsu201D. The pop-up box appears that gives three radio button option :-
      1) Purchasing output determination :purchasing org / vendor for EDI
      2) Purchasing output determination :doc. type / purchasing org /vendor
      3) Purchasing output determination :document type
          but it is not having option only for purchasing organisation through which we can send idoc for changes or creation of PO in that particular pur.org now if i choose 2) i have to give doc type and purchasing org both bcoz they are mandatory fields and value for vendor.
    9)  Also i  have done the necessary ALE configuration (not covered in this document). In the partner profiles, use the message type u201CORDERSu201D and the IDOC type u201CORDERS05u201D.In the tab u201CMessage Controlu201D, used the process codes u201CME10u201D and u201CME11u201D for u201CPO Createu201D and u201CPO Changeu201D respectively.
    but the idoc is not generated many times when po is changed and when once it is generated it is giving error
    Please suggest solution.
    Thanks in advance
    nehavt

    In me22n in messages tab after looking into  processing log it is giving->No recipient found for message type ORDCHG in the
    ALE model ,next time giving error as no idoc items belonging to purchasing document found,when i changed message type to ORDCHG the  status is green in messages tab it is giving-> error occured while idoc xyz is sent and in WE02 status is red 02
    error passing data to port(could not find code page for receiving system)

  • How can we change the message type?

    Hello all
    We use SRM server 5.5 with classic scenario.
    When we create shopping cart, we implemented the Change Badi to assign the purchasing group from R/3 material master.
    We implemented the following logic.
    If material master in R/3 has no purch. Group, SRM also has no purch. Group. So SRM display the error message “You should select the purch. group” to determine the purchasing group in basic view.
    But, We have the standard error message, when we choose the material code – this material code has no purch. Group in R/3 – “No purchasing groups were found”.
    Message number is BBP_ATTR050.
    Because of this message, we can not progress the process to create shopping cart.
    Can we change the message type from Error to Warning Message?
    Or, Can we delete this message?
    Thank you,
    Best regards,
    SH

    Yes. You are right.
    When user choose the material code, there is no purch. group in 1st Step, but
    we want to choose the purch. group in 2nd Step on basic view.
    But we have the error message at 1st step. so we can not progress to 2nd Step.
    If we use dummy purch. group, user could make the human mistake.
    So our customer want to remove purch. group and choose the purchasing group by user.
    But i'm not sure if we remove this error message, we got solve this problem..
    Pls give me an idea..
    Message was edited by:
            So Hee Lee

  • Message Output for purchase order

    Dear SAP Expert,
    We have defined the message output type for purchase order document type XX with special function. We have maintained condition record for the same. It is working fine.
    Now we have defined another output type for another PO document type YYwith special function by copying earlier one.
    But message output is not genarated in case of YY document type.
    Please tell us what we have missed out.
    Thanks & Regards,
    Reva.

    Hi Reva,
    In ME22N for your PO, click on the Messages button. Then click on the blue information button - this should display the output determination analysis for the order, and will show you which output determination procedure was used, which output type and access sequence was processed and whether the system was able to find a matching record. At the lowest level of detail it will show you the keys that were used to read the condition records. All this information should help you to determine why a condition record could not be found for the purchase order.
    Regards,
    Monika

  • Custom Exchange Rate Type for Purchase Order

    Hi
    Our Financial Team doesn't want to change the Exchange Rates on a daily basis, but for place purchase orders with our overseas vendors we need the daily spot rate loaded in the system. 
    Is there way to configure a different exchange Rate type ?  and use this Exchange Rate Type for Purchase Order to use instead of Default type "M"?
    Thanks...

    Found a soluntion ...
    I have coded userexit EXIT_SAPLMEKO_001 component LMEKO001, to fill in Exchange Rate type in the Communication Structure "e_komk-kurst".
    Update Exchange Rate Type "ZCUS" under SPRO and updated exchanges in TCURR table for this type.  Then, everything else works like a charm.

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Error message while viewing Purchase order summary

    Hi all,
    we are in 11.5.10.2 , we are getting error message while viewing purchase order "Currency formatting cannot be performed without a currency code".
    is it beacuse of currency not popluated in Purchase order?
    Verified metalink note - 960504.1
    Thanks
    Kiran

    Hi Kiran,
    Verified metalink and other areas but could not get any appropriate solution.
    I tried to reproduce the issue in various available environments...but no luck!
    My guess would be the datafix/BUG that you have referred in the MOS note 960504.1
    Please check with your DBA for this patch in test instance.
    Thanks
    -Arif.

  • How to change material component for a Purchase Order?

    How to change material component for a Purchase Order?
    I need FM .
    PLEASE help

    Dear ,
    Create PO with item category L....There in Item detail you will get tab for material.
    There click in component Button, it will take you to the component screen there you can assign and deassign components.
    Hope this helps.
    Regards
    Utsav

Maybe you are looking for

  • Populating Drop-down List in Interactive Forms for Java

    Hi,all I need to populate a drop-down list in Interactive Form. I tried to do it by using Dynamic Properties of the drop-down list,but didn't give nothing.At the same time I have successfully populated a simple drop-down list(on webdynpro view),which

  • My iphone is linked to my ipad how do i change to a different iphone

    My ipad linked itself automatically to my personal iphone and is now answering calls and letting me see SMS messages which is great, but ..  this ipad I want to use for work and link to my work iphone. Any suggestions of how to do this?  I am using t

  • How to create web servise for Material Master catalog

    Hi Experts We would like to have a web servise foe the material master catalog. Please advise hoe we can implement this. Thanks, moshe

  • Using Application Module outside ADF Application context

    I am trying to run application module using a standalone java class. Trying to use Application Module outside ADF Application context. I have created a jar file on my standalone java class, and added my ADF application jar files to the classpath whil

  • Sudoku help needed

    Complete newcomer to java!! I want to create a sudoku java game using a gui. How do i go about this?? Whats the best way to start??