2007 Oct 25 11:44 PM
hi folks ..
how can i write logic for below requirement
CONCATENATE 'KS' p_kokrs record-bdc00 INTO g_objnr.
if record-bdc00 contain only numbers and letters ex: 81A650 is sholdnot do anything
if record-bdc00 contain only number ex: 370940 inthis case i need to add 4 zeros before the number i.e 000030940
please explain
2007 Oct 25 11:54 PM
The only thing needed in this case is your field p_kokrs record-bdc00 should be of type NUMC (N)
Regards,
Atish
The only thing needed in this case is your field p_kokrs record-bdc00 should be of type NUMC (N)
Regards,
Atish
2007 Oct 25 11:53 PM
Hi Neeru,
In this case use below FM.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = p_kokrs record-bdc00
IMPORTING
OUTPUT = p_kokrs record-bdc00
.
Regards,
Atish
2007 Oct 25 11:54 PM
The only thing needed in this case is your field p_kokrs record-bdc00 should be of type NUMC (N)
Regards,
Atish
2007 Oct 25 11:56 PM
Hi atish
thanks for your reply
but before calling the FM how can i check that filed contatains only numbers or combination of numbers and characters?
2007 Oct 26 12:00 AM
Hi neeru,
Sorry missed to add that.
IF p_kokrs record-bdc00 CA sy-abcde.
Do not Call FM
ELSE.
--CALL FM
ENDIF.
Regards,
Atish
2007 Oct 26 12:19 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |