Skip to Content
author's profile photo Former Member
Former Member

USER EXIT for PO Release

is there any user exit for PO Release for T-code ME28 or ME29N

abhishek suppal.

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2005 at 12:26 PM

    hi,

    copy RM06EF00 into custom program and implement your changes

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 22, 2005 at 12:34 PM

    Please tell us what you want to do if the user exit is found.

    Add a comment
    10|10000 characters needed characters exceeded

    • Basically this is the idea. Your functional person can configure a new output type for your purpose and assign it to the PO document that you will need this. This should be configured to be triggered upon release of the PO. You can use 'Requirements' for that purpose. The output type will be configured to work with your custom processing routine, no sapscript involved. In this routine, you will make some checks if necessary and if all satisfied, then you will prepare your message and send the email.

      The idea is to use the output determination as an user exit. I can give you exact transaction codes etc tomorrow when I go back to the office. Meanwhile you can check in SPRO>Materials Management>Purchasing.

      Somewhere here should be the configuration for the output.

      Srinivas

      Srinivas

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2005 at 03:18 AM

    The configuration transaction is NACE.

    ( Select EF and then output types ) .

    But to make it working there are a lot of steps.

    For you solution.

    Step 1

    First create a custom program ( Subroutine pool ).

    The code will look like -

    Tables NAST.

    form entry_neu using ent_retco ent_screen.

    ( here you will write code for mailing. PO Number

    will be available in NAST-OBJKY )

    ( Ent_retco is kind of sy-subrc . If there is an error in mail sending you should set this to '4' or at end of coding just write ent_retco = Sy-subrc. )

    End form

    Step 2

    Configure new output type using above program and subroutine-

    NACE _ ( APPLICATION area EF )

    Create Output Type ( Add program and routine in processing routines for medium print or email as it does not matter. Your custom program will prcess it as mail only . )

    Assign output type to Output Procedure .

    ( The output procedure may alreday be assigned to PO type )

    Create condition record for output type .

    ( the configuration involves a lot of steps. Once you create your program , just ask your functional people to setup output using the program and subroutine.)

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2005 at 03:43 AM

    Goto se38 , Create a new porgram ( Type - Subroutine pool ).

    Put this code

    <i><u>Tables NAST.

    form entry_neu using ent_retco ent_screen.

    End form</u></i>

    Between Form and endform you will write your code for sending mail . PO Number will be in NAST-OBJKY at runtime ( after Ouput is configured and at the time output is being processed for a PO ).

    You co declarae further data for selecting PO deatils and sending a mail using function SO_NEW_DOCUMENT_SEND_API1. I have only given the skeleton code and a starter point . You will have to develop code based on what info you need to send to Vendor . After this give tis program name <Z...> and subroutine name "ENTRY_NEU" ( you can use any name, this is just an example ). to your functional person to configure the output.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2005 at 05:04 AM

    See the Replies below -

    1)I have created a new procedure but how to connect procedure to the output type. As when I select Procedure and then select control it gives message: No entries found that match selection criterion"

    <u><< This is expected . You have to click new entries on the application tool bar to attach output type to procedure . Mind it the procudure has to be attached to the PO type. Why dont use an existing procedure if you have one. >> .</u>

    2) In the condition recors there are three options: Purchasing Output Determination: Document Type, Purchasing Output Determination: Doc.Type/Purch.Org/Vendor and Purchasing Output Determination: Purch. Org./Vendor for EDI. I hope I have to choose the first one.

    <u><< This depends on how you want to control your outputs . In our company we choose second one as we want to restrict output vendorwise . If you select 1st one output will be proposed based on PO type and no further restriction. >></u>

    3) In the condition records I have chosen partner function as VN and medium as -Special function". I hope it is correct.

    << <u>Medium you can choose 1 ( print ) or 7 ( Simple Mail )

    as the processing will be done in your Z program</u> .>>

    4) After creating a output type, as said by you, i was connecting it to the z-programe that i have made but I am unable to do so. As when i click "processing rountines it gives message - "No entries found that match select criterion" and it makes all fields uneditable.

    << <u>See point 1 above . Make sure you add for medium "1" and "7" both so that you have flexibility in creating condition records .</u> >>

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Sanjay,

      the problem that appears now for functional is as

      <b>After doing all the settings the error shown at the time of making a PO is :

      "This is an empty output. It is used to suppress the display of technical output that may have preceded this output.</b>

      Abhishek Suppal

  • author's profile photo Former Member
    Former Member
    Posted on Sep 25, 2005 at 03:43 PM

    I assume this error is coming only after you configured your output type.

    Can you give the full deatils fo how you configured and which medium you used in output type and condition record . Also what did you give in Date/Time in condition record .

    Try the following -

    Before Saving PO - goto Header -> Messages .

    Check if you can see the message you configured with yellow traffic light . Here Goto -> Determination Analysis from menu and see what happened with your message type .

    Alos give the number of error message you got . Was it at the time of saving PO??/

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      dear sanjay,

      The problem faced at functional side :

      Condition Type: ZMAL

      Message: 529

      Desrciption: No condition access - if desired, please set in Customizing

      What I have done:

      In NACE:

      Option output Types:

      I had created a ouytput type: ZMAL

      Medium as 7.

      I have attached programme & form routine to output type and partner function as VN.

      time option is left blank.

      Mail option is also left blank.

      Option condition records:

      I have created condition records for output type ZMAL in key combination - Purchasing output determination Doc Type/Purch org./vendor.

      In this I have chosen partner function as VN.

      thanx

      abhishek

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 08:04 AM

    Hi,

    The following user exits exist for Me28:

    Exit Name Description

    AMPL0001 User subscreen for additional data on AMPL

    LMEDR001 Enhancements to print program

    LMELA002 Adopt batch no. from shipping notification when posting a GR

    LMELA010 Inbound shipping notification: Transfer item data from IDOC

    LMEQR001 User exit for source determination

    LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt

    LWSUS001 Customer-Specific Source Determination in Retail

    M06B0001 Role determination for purchase requisition release

    M06B0002 Changes to comm. structure for purchase requisition release

    M06B0003 Number range and document number

    M06B0004 Number range and document number

    M06B0005 Changes to comm. structure for overall release of requisn.

    M06E0004 Changes to communication structure for release purch. doc.

    M06E0005 Role determination for release of purchasing documents

    ME590001 Grouping of requsitions for PO split in ME59

    MEETA001 Define schedule line type (backlog, immed. req., preview)

    MEFLD004 Determine earliest delivery date f. check w. GR (only PO)

    MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.

    MEQUERY1 Enhancement to Document Overview ME21N/ME51N

    MEVME001 WE default quantity calc. and over/ underdelivery tolerance

    MM06E001 User exits for EDI inbound and outbound purchasing documents

    MM06E003 Number range and document number

    MM06E004 Control import data screens in purchase order

    MM06E005 Customer fields in purchasing document

    MM06E007 Change document for requisitions upon conversion into PO

    MM06E008 Monitoring of contr. target value in case of release orders

    MM06E009 Relevant texts for "Texts exist" indicator

    MM06E010 Field selection for vendor address

    MM06E011 Activate PReq Block

    MMAL0001 ALE source list distribution: Outbound processing

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 12:59 PM

    Hi Abhisek ,

    Change it to medium "1" in output type as well as condition record. After that try create a PO and send me the exact error message i.e at the time of saving or any other time , I mean the sequence .

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.