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

Prob with print Program in SapScript

Former Member
0 Likes
722

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
681

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.

7 REPLIES 7
Read only

Former Member
0 Likes
681

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

Read only

Former Member
0 Likes
682

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.

Read only

0 Likes
681

Hi Thomas,

Can you expalin clearly, I copied the program with Z*.

Thanks,

Ramesh

Read only

0 Likes
681

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.

Read only

0 Likes
681

Hi,

Depending on the document type i have to trigger different scripts, can u expalin with example code.

Thanks,

Ramesh

Read only

0 Likes
681

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.

Read only

0 Likes
681

Hi Norman,

Thanks,

I rewarded u with points