2007 Apr 17 12:35 PM
Hi all,
Actully in my development system i am having the data of PO number like '1234test stk'
But actually my requiremnt is if that number is numeric means i have to display that value other wise if that is a character or numeric character i dont want to display that value in my output.that field should be empty.if it is numeric value means i have to display that total numeric value i have to display in my output.How to check that numeric and character value.pls if u know the solution PLs write code for me.pls this is urgent requiremnet for me.
Regards,
lokesh goud.
You can check if PO CN '0123456789'. dont display else. display. endif.
Sandeep
Reward if helpful
2007 Apr 17 12:36 PM
hI..
DATA:
W_NUMC(10) TYPE N.
<b>IF W_PO CA '0123456789'.
W_NUMC = W_PO.
WRITE : W_NUMC.
ENDIF.</b>
This prints the PO value if it contains any numeric value..
if u want to print when PO only contains numerals..
use CO instead of CA in above code..
2007 Apr 17 12:36 PM
2007 Apr 17 12:37 PM
check this
if PO<b> CS</b> '0123456789' then
display the result
u can see abapdocu to know more abt CS
2007 Apr 17 12:37 PM
use this
if V_VALUE CO '0123456789'.
do the total
endif
Message was edited by:
Chandrasekhar Jagarlamudi
2007 Apr 17 12:38 PM
You can check if PO CN '0123456789'. dont display else. display. endif.
Sandeep
Reward if helpful
2007 Apr 17 12:40 PM
hi,
use string comparison operator 'CO'.
if PO_NUMBER CO '0123456789'.
Display in the output
else
Don't display in the output
endif.
2007 Apr 17 12:41 PM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |