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

Smartform problem

Former Member
0 Likes
769

Hi,

Ive the smart form for workshop invoice

ive got a condition if the Mtart = 'yser', they dont want print MTANR.

else mtart = 'zrsa'

they need mtanr and description.

endif

so ive taken one global field like data: GV_MTART type mtart

GC_YSER type mtart Defualt "Yser"

Before Materail printing ive put the Altranative condtion..in the condtion level ive put the GC_YSER NE 'YSER'.

Here my problem is while printing the form, If the condition is filed then Third column one which is Description will comes to sencond column one which is MATNR.

how to over come the prob?

REgards

chandu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
737

Print the field in both the cases.

If condition is satisfied, print the global variable with data.

else

add a code line to clear global data.

Still print it. Blank data should come to the text element.

Edited by: Pranu Pranu on May 13, 2010 10:06 AM

7 REPLIES 7
Read only

Former Member
0 Likes
738

Print the field in both the cases.

If condition is satisfied, print the global variable with data.

else

add a code line to clear global data.

Still print it. Blank data should come to the text element.

Edited by: Pranu Pranu on May 13, 2010 10:06 AM

Read only

0 Likes
737

Ive added the Text for false part.. still its not working

Read only

0 Likes
737

Hi,

thank you for reply..

If you see the ALTRANATIVE COMMAND.. in the condtion level Ive put the gv_mtart NE GC_YSER

in the TRUE level

&GS_IT_GEN-MATERIAL&

FALSE level

TEXT which is blank line.

Its not working

Read only

0 Likes
737

Hi,

thank you for reply..

If you see the ALTRANATIVE COMMAND.. in the condtion level Ive put the gv_mtart NE GC_YSER

in the TRUE level

&GS_IT_GEN-MATERIAL&

FALSE level

TEXT which is blank line.

Its not working

Read only

Former Member
0 Likes
737

Hello Chandu,

Hope, you are printing both the field material number (matnr) & description (maktx) in the same column.

Could you please try with different columns?

Regards,

Selva K.

Read only

0 Likes
737

No,

Iam not printing same column..its sure..

thank you for reply. i think, something wrong in altranative command

Read only

0 Likes
737

No,

Iam not printing same column..its sure..

thank you for reply. i think, something wrong in altranative command