04-25-2006 7:38 AM
hi all,
please rectify my qus
1, we all know that me21n is transaction for purchase order , and for that medruck is standard layout set when we copy medruck to zmedruck how will we attach zmedruck to me21n?
2, how to execute sap-script?
04-25-2006 7:43 AM
Hello Hazam,
Goto OLME->Message->Forms (layout set) for messages->Assign form to Purchase order. In this u can assign ur own ZMEDRUCK to output type NEU ad medium 1. The sapscript is executed when u save the PO. Check in messages for the PO. Further data tab should show dispatch time field if this is set to Send immediately then Print is generated when PO is saved.
04-25-2006 7:43 AM
Hello Hazam,
Goto OLME->Message->Forms (layout set) for messages->Assign form to Purchase order. In this u can assign ur own ZMEDRUCK to output type NEU ad medium 1. The sapscript is executed when u save the PO. Check in messages for the PO. Further data tab should show dispatch time field if this is set to Send immediately then Print is generated when PO is saved.
04-25-2006 7:46 AM
Hi hazam,
1. when we copy medruck to zmedruck how will we attach zmedruck to me21n?
The functional consultant
will do that in customization/configuration
and specify the Z name.
2.how to execute sap-script?
a for that we have to write one se38 program.
b. this program is called as driver program
c. in that we have to use 3 fm.
open_form
write_form
close_form
d. in that we specify the sapscript name.
regards,
amit m.
04-25-2006 7:46 AM
Hi Hazam,
Answer1) Go to Transaction 'NACE'. There Select your Application type and press the Output Types button. On the next screen select your output type and double click the processing routines link on the right hand side. Here under Processing 1 block you can enter your from details to get your form on transaction ME21n.
Answer2) your sap-script form will get called automatically when you try to save some PO in the transaction ME21n.
PLease reward points if the answer was helpful.
Regards,
Kunal
04-25-2006 7:46 AM
Hi,
Take a look at this thread for details. It will be a part of the customization.
Go to SPRO transaction.
SAP Customizing Implementation Guide --> Materials Management --> Purchasing --> Messages --> Forms (Layout Sets) for Messages --> Assign Form and Output Program for Purchase Order
Here you will be able to assign the Program name / Subroutine name (FORM Routine) and the SAP Script (FORM) Name.
The SAP Script will need a print program to be called from.
Regards,
Ravi
Note : Please close the thread if this solves the issue.
04-25-2006 7:54 AM
HI
1-
WHEN YOU R CONVERTING THE MEDRUCK TO ZMEDRUCK YOU CANT ATTACH THE ME21N TO Z MEDRUCK BECAUSE USING ME21N YOU R CREATING YOUR PURCHASE ORDER NOT YOU R ACCESSING THE MEDRUCK THROUGH THIS.
THE STANDARD PROGRAM FOR ME21N IS SAPLMEGUI.
2-EXECUTION OF SAP SCRIPT.
FOLLOW THIS PROCESS
1- OPEN THE SAPSCRIPT FORM
PUT /H IN COMMAND LINE
2- GO TO THE SE38
3- GIVE THE REPORT NAME
EXECUTE THE PROGRAM IN THE DEBUG MODE.
THANKS
MRUTYUN
04-25-2006 8:13 AM
Hi hazam,
This is the way to assign the modified form name to transaction,but this is not developer's duty,my suggession is please do not make any modifications.
1. Goto Tcode:NACE
2. select Purchase order(EF) row
3. press output types button in application tool bar
4. Select Purchase Order (ZNEU)
5. Double click the processing routines folder which has placed in left side of that screen.
6. Then you can able to see output parameters,from there you can select print output and you need to give the modified form name there in FORM column.
04-25-2006 8:30 AM
Hi Hazam,
1) To attach a Sap Script form to any transaction, we create a output type in which we give the Program name and the corresponding Sap Script name.
For your rquirement:
Go to transaction 'NACE'.
Select the Application type and press the Output Types button.
On the next screen, click on 'Change' button and than click on 'New Entries'. Mention the name for output type and fill necessary field.
Now, select the Output Type created and double click the 'Processing routines' link on the left side of screen.
Enter Medium(1), Program and Form name.
2) Executing Sap Script:
Go to transaction me22n and select the PO. Select menu option Goto -> messages.
Enter Output Type, Medium and Language.
Save the ransaction.
In transaction me23n, you will see the output type in the Menu option. Select that Output Type and it will fire a print for your PO.
Hope it helps.
Regards,
Neeraj Gupta