on 09-14-2007 9:40 PM
Hi, experts
I need a big help, I'm having a problem with data values, I have a field wich contain a transaction code, on transfer rule I have
IF temp_comm_estr-/BIC/ZCTTRANSA = SPACE.
RESULT = temp_comm_estr-/BIC/ZCTTRANSA.
ELSE.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = temp_comm_estr-/BIC/ZCTTRANSA
IMPORTING
OUTPUT = RESULT.
ENDIF.
But when value is equal to space and we simulate the update value is blank, if I put a value 9999 it's showed. How can I do if value is blank, show value equal 0?
Regards
Tokio
Hello Tokio
IF temp_comm_estr-/BIC/ZCTTRANSA = SPACE.
RESULT = 0.
Thanks
Tripple k
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi....What happen if the transaction have non numeric Characters ? like SE38 , NUMC dont support letters.
Regards..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...questions...Do you want to store 0 when is space? ...what exactly data type are you using for this field?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if the datatype is numc, it is absolutely enough to just say
if .... = space.
result = 0.
else.
????
endif.
The else need to be specified a bit more, because as oscar already mentioned, numc does not take characters, it only takes numbers. Addtionally, there is no need to do the alpha conversion. That is done by the system automatically, but assigning characters to it will do nothing.
regards
Siggi
PS: may be you need to change the data type to char.
Message was edited by:
Siegfried Szameitat
Hi...
Try this...
IF temp_comm_estr-/BIC/ZCTTRANSA = SPACE.
RESULT = '0'.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
may be you should change your coding as follows:
IF temp_comm_estr-/BIC/ZCTTRANSA = SPACE.
RESULT = 0.
ELSE.
result = temp_comm_estr-/bic/zcttransa.
endif.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = result
IMPORTING
OUTPUT = RESULT.
regards
Siggi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.