cancel
Showing results for 
Search instead for 
Did you mean: 

hai friends

Former Member
0 Kudos

hai help me out.

the scenario is :

in script there are 4windows for which the data is displayed for particular plant&

when the condition is that the plant name is (aaa) which is not specified in the script but it is in print program,when this condition is satisfired we have to make that in place of 4 windows i have to replace 1 window in the same place of that 4 windows.

for that how should i approach.

plz help me out does we need to write any code in print prog or just make changes in layout.

plzplz give solution.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi anshal,

Ur problem can b solved easily.

U've 4 windows & u dont require 3 windows except for a particular plant.

So in all the 3 windows,u just put a condition like:

If werks = '****'.

Here u write the code corresponding to this window.

Endif.

Dont write any more.

So one of the features of the windows is,if there is nothing to print in the window,the window doesnt get printed.

So in all the 3 windows,the condition doesnt get satisfied,so nothing is there for printing,so automatically those windows also disappear.

Try this one & let me know if there are any more issues....

But dont forget to reward points if this is useful....

Pavan.

Former Member
0 Kudos

thanks for it its very useful and has given me an approach.

u said

if werks'*****''

then keep some condition

werks will be given in print program directly

or is it passed to some variable and then passed.

sorry that iam asking such a simple question.

but scenario is that first the data is entred in module pool of standard transaction 'vf03'

then from that the print program is wriiten which is sent to layout.\

thanks for it and plzplz suggest me on this.

Former Member
0 Kudos

First check the filed that contains plant value ,

You can use directly in script. No need to declare any fields.

Regards,

Nageswar

Former Member
0 Kudos

Hi anshul,

No need to send the fields to layout explicitly..

U can directly use them,but use & there:

If &werks& = '****'.

........

........

Endif.

or else use the parameter name,if it is a selection parameter.

If &pa_werks& = '****'.

....

....

endif.

Reweard points if helpful...

Pavan.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi over lap a window on all the windows.

and in the window put the condtion

if plant eq 'aaa'.

put the code lines

endif.

for remaining windows.

if plant ne 'aaa'.

put the code lines

endif.

No need to modify print program

Reward points if useful

Regards,

Nageswar