cancel
Showing results for 
Search instead for 
Did you mean: 

Calling an SAP Script through an existing SAP Script

Former Member
0 Kudos

Hi All,

I have a weard requirement. I have written an SAP Script which will be triggered from F110 transaction code.

The first page has to be printed on a pre-printed stationery where as second and subsequent pages are to be printed on a normal blank paper.

Hence first page is to be printed on one printer where as second and subsequent pages should be printed on a different printer.

Can somebody tell me how to get such logic ? Do not give me hyper links to browse through. Just tell me the logic, ill be able to come up with the code

Thanks in advance,

Mamata.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The printers should be configured with trays in SPAD. Refer the document SAPscript-traytest for assistance or refer the link https://www.sdn.sap.com/irj/sdn/forums.

In the SAPscript, choose the tray as per your requirement from the F4 help of the field Resource Name in Print attributes tab of PAGES.

Sougata
Active Contributor
0 Kudos

Hi,

Instead of trying to print subsequent pages on a different printer how about you design it to print the subsequent pages from a different tray of the same printer? So first page, which is the actual cheque, can print from tray 1 where you load the pre-printed cheque stationery and the subsequent pages can print from tray 2 of the same printer where you load normal blank A4 paper.

Cheers,

Sougata.

Former Member
0 Kudos

Hi Sougata,

Can you tell me how can i configure the subsequent pages to be printed from the second tray?

Are you sure all printers have 2 trays to hold the paper to be printed from?

Thanks in advance,

Mamata Swamy.

Sougata
Active Contributor
0 Kudos

Mamata,

I don't feel very proactive when I'm not rewarded for my good answers but to answer your questions - yes, I can try if I'm rewarded well enough and no, not all printers have multiple trays - why don't you first check with the accounts payable first if their cheque printer has more than one tray? usually they will have a designated cheque printer i.e. it's only used for printing cheques.

Cheers,

Sougata.

Former Member
0 Kudos

Hi Sougata,

My problem is not solved yet! You have not told me how to trigger first page to tray 1 and the subsequent pages to tray 2!

I reward points only for my solved problems, not for some suggestions or guesses which "might or might not work" !

Regards,

Mamata.

Sougata
Active Contributor
0 Kudos

Hi Mamata,

Its usually a rule of thumb that the <a href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement&">Rules of Engagement</a> should be read before posting to any public forum such as this - which clearly states under <b>Step 4</b> that <b>"6 & 2 points should also be given for helpful answers"</b>.

Your approach to solve this business problem was incorrect (and against SAP Best Practise) to begin with which I pointed out in my first reply and tried to suggest a better design to the solution but unfortunately it was not appreciated. I thought it was quite a helpful answer to start with which you could have appreciated by rewarding points; after all that's the only way of showing your appreciation here at SDN. You must remember that we all are busy professionals here and we are trying to help you for <u>your</u> problems, not ours!

To close this off, I would like to say that cheque printing is something I specialize in and have been doing for many years for several customers. I have recently also handled a similar requirement of printing involving different trays from the same printer. I will not further participate in this thread or any other thread/question posted by you in future and I'm sure your questions will not go unanswered as you'll find many esteemed and more knowledgeable contributors than myself to solve your ongoing problems.

All the best.

Cheers,

Sougata.

Former Member
0 Kudos

Hi Sougata,

You are right. There are many people in SDN who would help me with my problems. U can just refrain from answering my questions, thats ur choice.

There was no need to mention this thing explicitly in the reply!

My issue is now resolved.

Sincere Greetings,

Mamata Swamy.