Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPScript for PO

Former Member
0 Likes
2,290

Hi,

<b>I have been assigning for modify MEDURCK ( Purchase order ) SAPScript form . whenour PO get created in me21 t.code, PO SAPScript form has to be executed in background and spool request needs to be sent and PO Form needs to be printer automatically.</b>give me solution for this.

thanks in advance,

Regards,

Kannan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,848

In NACE, select EF application, then click on 'Output Types' button. Once in there, select the output type and do a display. Once you are in display output type, go into change mode and select the tab "Default Values". Select "Send Immediately" from the drop down list for "Dispatch Time".

Hi,

<b>I have been assigning for modify MEDURCK ( Purchase order ) SAPScript form . whenour PO get created in me21 t.code, PO SAPScript form has to be executed in background and spool request needs to be sent and PO Form needs to be printer automatically.</b>give me solution for this.

thanks in advance,

Regards,

Kannan.

16 REPLIES 16
Read only

Former Member
0 Likes
1,848

I Think you have to go to ME9F to printer(or send to spool), or there are some configuration in spro that I don't Konw.

Alexandre Nogueira

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,848

You need to set up the output, in transaction SPRO.

Materials Management
       Purchasing
             Messages
                   Output Control
                          Message Types
                                 Define Message Types for PUrchase ORder

Here the standard is NEU, high light it and double click on Processing routines. Here is where you would do the configuration if you need to specify custom print programs and forms.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,848

Hi Kannan,

Follow the path suggested by Rich and while changing the message type (Since this should happen for each PO created), Create a new program routine which will call PO SAPscript form in background, output result to spool and print the PO to the printer.

Regards,

Rajasekhar

Read only

0 Likes
1,848

Hi All,

Thanks for your response. i been gone through the t.code NACE and then did all configuration given by you.

but nothing will print when i create PO in ME21. i hope you understand my question.

can you please help me to solve this problem.

Thanks,

Regards,

Kannan.

Read only

0 Likes
1,848

Are you trying to say that it is printing a blank paper?

Read only

Former Member
0 Likes
1,848

Goto transaction <b>NACE</b>

Select application <b>EF</b>

Press <b>Output Types</b>

Select output type <b>NEU</b>

On the left menu, double click <b>Processing Routines</b>

Now you will find all the predefined forms and print programs. You can change/edit the entries there!

Read only

Former Member
0 Likes
1,849

In NACE, select EF application, then click on 'Output Types' button. Once in there, select the output type and do a display. Once you are in display output type, go into change mode and select the tab "Default Values". Select "Send Immediately" from the drop down list for "Dispatch Time".

Read only

0 Likes
1,848

Hi All,

i tried but no result. kindly tell me what i need to do.

Thanks,

Regards,

Kannan.

Read only

0 Likes
1,848

This is all that needs to be done. Let us take a step back and revisit the original question. Is this a new output type or SAP standard output type that you are using? Did you change the processing module to your custom one or you are using the standard one?

After you create the PO, if you go into messages, what do you see?

Srinivas

Read only

0 Likes
1,848

Goto trasaction <b>MN05</b>

Enter <b>NEU</b> for output type. Press Enter

Select the option <b>Purchasing Output Determination Document Type</b>

Enter <b>NB</b> for the purchasing document type

<b>Execute</b> (F8)

Now, you have to enter the <i><b>Partner Function</b></i> (VN for VEndor), <i><b>Medium</b></i> (1 for Print Output), <i><b>Date/Time</b></i> (4 for Send Immediately) and <i><b>Language</b></i>.

After you enter these values select that line and double click it! Then in the next screen you need to enter the output device name and other required parameters.

Good luck!

Read only

0 Likes
1,848

I have the feeling everything has to happen automatically when the PO is created. Perhaps by using a user-exit which checks this and triggers the outpuy?

Read only

0 Likes
1,848

Hi Sam,

i have configured as per your reply. but when i create PO nothing will happen. please tell me i need to do other configuration other then this.

Goto trasaction MN05

Enter NEU for output type. Press Enter

Select the option Purchasing Output Determination Document Type

Enter NB for the purchasing document type

Execute (F8)

Now, you have to enter the Partner Function (VN for VEndor), Medium (1 for Print Output), Date/Time (4 for Send Immediately) and Language.

After you enter these values select that line and double click it! Then in the next screen you need to enter the output device name and other required parameters.

Thanks,

Regards,

Kannan.

Read only

0 Likes
1,848

After you create the PO, display your PO using ME23N. There, click on the button 'Messages'. Please let us know what you see there.

Regards,

Srinivas

Read only

0 Likes
1,848

Hi Srinivas,

I can't see any thing in message screen.

Thanks,

Regards,

Kannan.

Read only

0 Likes
1,848

Try to create a new output message for your PO using ME22N and let us know what you see.

(Btw....Are you using a custom output type (something like ZNEU) instead of standard SAP type NEU?)

Read only

0 Likes
1,848

Hi,

i am using standard SAP Output tyep NEU.

In ME22N i am unable to enter NEU. i see the status error message Output NEU is not defined. what i have to do to make avaliable NEU?

Thanks,

Regards,

Kannan.