cancel
Showing results for 
Search instead for 
Did you mean: 

Call a different form depending on Document type of Purchase Order

Former Member
0 Kudos

Hello people,

I'm new in SAPScript world and I have a very basic question:

In SPRO configuration I have (transtacion NACE):

Output Type NEU

Application EF

Print output

Program: YSKMM_FRO08P

Form routine: ENTRY_NEU

Form: YSMM_PEDIDO

So, I understand all the purchase orders will be printed using Program YSKMM_FRO08P and Form YSMM_PEDIDO.

We have one kind of Purchasing Document Type (BSART), that must have a complete diferent SAPScript and program. How can I achieve this?

Thanks a lot!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Well, there are different ways of achieving this.

Solution 1:

You can create a new output type which will be triggered and call a same driver program and the new smart form. I am sure you can customize as to what Purchasing document type will trigger which output type. Get in touch with someone in the function team to get this configured.

Solution 2:

No Customizing, let the configuration be the same, but in the driver program change the value of "TNAPR-FONAM" immediately after the form entry_neu to the new form name based on the Purchasing document type.

Former Member
0 Kudos

Hello Ramesh,

in this case, the sapscript related to that Purchase Order type has a different program too.

In Solution 2, I have to set the program name too? The current execution will start this program?

Thanks!

Answers (0)