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

Two layouts for single output type

Former Member
0 Likes
517

Hi All

I need to show two different layouts for a single output type.

output type is WE02

whenever the material is cancelled by 102 and 122 movement types,

I have to call a different layout which is used for ZA01.

i have copied the std program SAPM07DR and made it ZSAPM07DR

altered it this way

if mvmnt type = 122 or 102

call form1

else

call form2

endif

The problem is i have to hard code form1.

is there any other solution for this problem where i can pick the form name without hardcoding anywhere?

or is it possible to create a seperate output type for the same functionality?

the same form is used as layout for ZA01 output type.

Hi All

I need to show two different layouts for a single output type.

output type is WE02

whenever the material is cancelled by 102 and 122 movement types,

I have to call a different layout which is used for ZA01.

i have copied the std program SAPM07DR and made it ZSAPM07DR

altered it this way

if mvmnt type = 122 or 102

call form1

else

call form2

endif

The problem is i have to hard code form1.

is there any other solution for this problem where i can pick the form name without hardcoding anywhere?

or is it possible to create a seperate output type for the same functionality?

the same form is used as layout for ZA01 output type.

1 REPLY 1
Read only

rvinod1982
Contributor
0 Likes
450

Hi,

There are two options.

First is, use the same output type for all the movement types. Iin the smartform itself you can put conditions

based on movement type to call a particular window.

Other options is in SPRO->Materials Management->Inventory Management and Physical Inventory->Print Control

->Maintain Print Indicator for Goods Receipt Documents. Maintain different indicators for 102 and 122 (For ex. 2)

Then maintain the condition record for the output types WE02 and ZA01 accordingly.

Maintain output type WE02 for Trans./Event Type - WE, Print Version - 1 or 2 or 3 and Print Item as 1.

Maintain output type ZA01 for Trans./Event Type - WE, Print Version - 1 or 2 or 3 and Print Item as 2.