‎2006 Jul 21 5:48 PM
Hi Guys,
I need to change the print program for Medruck, I have to code like if document type changes the script has to chane, Can anyone let me know what sould i do.
Thanks,
Ramesh
‎2006 Jul 21 6:00 PM
1) Copy the Standard print program and entry form <b>SAPFM06P, FM06PE02 to a Z*</b> .
2) In the ENTRY form Check the value of <b>T166K-BSART</b>
Based on that value you can assign the form name value to <b>tnapr-fonam</b>, or call your own Function module for printing the your custom Script form.
rgds,
TM.
‎2006 Jul 21 5:54 PM
Hello Ramesh,
Create all different script for different document type and then in the calling program call the script for associate document type.
Thanks,
Amit
‎2006 Jul 21 6:00 PM
1) Copy the Standard print program and entry form <b>SAPFM06P, FM06PE02 to a Z*</b> .
2) In the ENTRY form Check the value of <b>T166K-BSART</b>
Based on that value you can assign the form name value to <b>tnapr-fonam</b>, or call your own Function module for printing the your custom Script form.
rgds,
TM.
‎2006 Jul 21 6:14 PM
Hi Thomas,
Can you expalin clearly, I copied the program with Z*.
Thanks,
Ramesh
‎2006 Jul 21 6:20 PM
Can you explain a little more about what you want to do?
MEDRUCK has change management that can be controlled with configuration. If certain fields on the document change, you can trigger new output that shows the changes.
Not exactly sure of your requirements.
‎2006 Jul 21 6:24 PM
Hi,
Depending on the document type i have to trigger different scripts, can u expalin with example code.
Thanks,
Ramesh
‎2006 Jul 21 6:36 PM
I think this is all configuration.
You can create multiple new output/message types (ZNEU, etc).
Put all the new types in the message determination schema.
Configure each new type to point to a specific print program and SAPscript.
Create an output master record so the specific output is created by document type.
Document Type is already part of the standard condition table for purchasing.
‎2006 Jul 21 7:36 PM