cancel
Showing results for 
Search instead for 
Did you mean: 

USER EXIT for PO Release

Former Member
0 Kudos

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

abhishek suppal.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

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

Former Member
0 Kudos

Dear Sanjay,

thanx for ur efforts there are more problems at the functional end as told by our functional guy, sanjay can we talk on phone, if possible then can u send me ur mobile no. and ur email id at <b>abhiaries@yahoo.com</b> so that things can be cleared out.

abhishek suppal

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

dear sanjay

our functional guy is doing some changes i will let u know if he confirms the same.

abhishek

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

dear sanjay,

let me try this then i will tell u..

abhi

Former Member
0 Kudos

Hi Abhishek,

Here are the steps involved. Create the program and subroutine as Sanjay explained. Then you need to configure the output type as follows.

Tcode NACE. Select Application 'EF' and click on 'Output Types'. Switch to 'Change' mode and click on 'New Entries'. Give a Z name to the output type and give a description. In the 'General Data' tab, ask your function consultant to give you the values. In the 'Default Values', is the most important setting. <b> Select 'Special Function' for 'Transmission Medium'</b>. By selecting this, you will take control of how and if the mail should be sent.

Follow the other steps such as adding it to the procedure and creating condition records etc. Your functional consultant can help you there.

Please reward useful answers and close the thread when resolved.

Srinivas

Former Member
0 Kudos

Dear Srinivas,

The following are the points that came from our functional guy, can u see these and help him out.

There is some problem in performing the statement

Follow the other steps such as adding it to the procedure and creating condition records etc.

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"

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.

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

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.

thanx

abhishek suppal

Former Member
0 Kudos

dear sri and sanjay can u help me out we r stuck to this problem not able to solve..

abhi

Former Member
0 Kudos

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.

Former Member
0 Kudos

dear sanjay,

i am not able to understand ur first step. can tell me whether i have to make some z pgm.

abhi

Former Member
0 Kudos

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

Former Member
0 Kudos

dear Sri

i want to send cutomized email to the vendor. on the release of the PO.

abhi

Former Member
0 Kudos

I cannot say for sure now as I am away from the system, but I think this is possible.

Have an output type defined for the PO that gets triggered when the PO is released. Set the medium as email and you can write your own processing function to take care of the content.

Even workflow may be helpful.

I don't think you need an user exit for this purpose.

Srinivas

Former Member
0 Kudos

dear sri,

can u tell me in detail.

abhishek suppal

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

copy RM06EF00 into custom program and implement your changes

sasi