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

issue with the GR output using smartform

Former Member
0 Likes
1,563

Hi ,

I am doing output for a GR and the smartform name is determined dynamically in the driver prog based on TNAPR table, Now I printing it for a custom output type so my requirement is it should not be printing for movement types other than 101, please suggest how to do that .

That means it should kick off the form and place an prior condition on the form for checking movement type and if the movement type is not satisfied, exit from the form without printing .

Thanks,

RG

Hi ,

I am doing output for a GR and the smartform name is determined dynamically in the driver prog based on TNAPR table, Now I printing it for a custom output type so my requirement is it should not be printing for movement types other than 101, please suggest how to do that .

That means it should kick off the form and place an prior condition on the form for checking movement type and if the movement type is not satisfied, exit from the form without printing .

Thanks,

RG

4 REPLIES 4
Read only

former_member196331
Active Contributor
0 Likes
1,011

I hope in driver program you definately capture the Gr number. Check the movement type in GR number If any 101 movement type
write If Condition like

If No

lv_name = 'Smartform1'

else if lv_name = 'Smartform2'.

else if lv_name = 'Smartform3'.

elseif lv_name = 'Smartform4'.

endif.

Any problem.

Read only

0 Likes
1,011

Hi,

Thanks for your reply, is there any possibility that the smartform is triggered and based on a condition the form should not be executed and should exit with out printing any thing.

Thanks,

RG

Read only

0 Likes
1,011

The condition is If condition only.What i said in previous.

Data:V(10) type c,

check in grn if any 101 movement is there , then make it false else True.

if v eq 'true'.

open the smart form.

endif.

Read only

Former Member
0 Likes
1,011

Hi Ramya,

You can use exception options in smartfroms.

you can find it in Form interface --> Exception tabs.

Declare one exception in this tab. Then Goto Global Definitions --> Initialization tab. Write a small piece of code that,

if (movement type) ne '101'.

(Raise your custom exception ).

endif.

Regards,

Sivaraj Sadasivam.