09-09-2008 10:40 AM
in my script i have some fields which will be dispalyed based on, if there are values in it only.
Other wise they should not be dispalyed on the screen.
/ <I0>Status ,,<I0><I0><H2>&CAUFVD-
/ <I0>Equipment ,,<I0><I0><H2>&RIWO1-EQUNR(Z)&</></></></> ,,<H0>
= &RIWO1-EQTXT&</>
/ <I0>Assembly </> ,,<H2>&RIWO1-BAUTL(Z)&</> ,,<H0>&RIWO1-BAUTX&</>
eg. here in one report i want to display status and equipment in other status and assembly in third it can be status equipment and assembly.. depending if there are values in these fields , they should be displayed other wise they should not be.
Please help !!
09-09-2008 10:43 AM
use command function if to check for values
/: IF &MARD-LGPBE& NE ''
I2 magazijnlokatie,,: &MARD-LGPBE&
/: ENDIF
kind regards
arthur de smidt
Edited by: A. de Smidt on Sep 9, 2008 11:43 AM
09-09-2008 10:43 AM
use command function if to check for values
/: IF &MARD-LGPBE& NE ''
I2 magazijnlokatie,,: &MARD-LGPBE&
/: ENDIF
kind regards
arthur de smidt
Edited by: A. de Smidt on Sep 9, 2008 11:43 AM
09-09-2008 10:44 AM
hi,
you have to code like this in the SAPScript (this is example for Equipment):
/: IF &RIWO1-EQUNR& NE space.
/ ... Equipment ... &RIWO1-EQUNR(Z)& ...
/: ENDIF.
hope this helps
ec
09-09-2008 10:44 AM
Hi,
Do like this -
&'Connid:' w_connid&.
If we &'.....', value& ie if we enclose the value to be written with in & and & then if this value is empty then it will not be printed.
Regards
Lekha
09-09-2008 10:44 AM
Check if field is initial or not.
if field ne space.
"->display field
endif.
Regards,
Aparna Gaikwad