01-07-2008 7:57 PM
Hi Experts,
I have one issue in my BDC program, this prog is upload Journal entry. my Journal entry file name is like "378040". its number. its a cost center. now client requirement is different they want in front of the file added four zeros(0000). so now my file name is 0000378040. so how can i added 0000 in front of the file????
Can u give me suggetion.
Vishal.
01-07-2008 8:10 PM
are you placing this file in app. server?
before opeing the file,
concatenate '0000'
profit_center(378040)
into gv_file .
condense gv_file.
now u file name has been changed to 0000378040.
01-07-2008 8:39 PM
01-07-2008 8:11 PM
Like this:
REPORT ztest MESSAGE-ID 00.
DATA: kostl TYPE csks-kostl VALUE '378040'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = kostl
IMPORTING
output = kostl.
Rob
01-07-2008 8:54 PM
Hi Rob,
Thanks.
Can u give me some example codding with function??
Vishal
01-07-2008 8:59 PM
I believe I did. What are you looking for? Is this what you need:
REPORT ztest MESSAGE-ID 00.
DATA: kostl TYPE csks-kostl VALUE '378040',
kostl_bdc(10).
WRITE: /001 'Input: ', kostl.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = kostl
IMPORTING
output = kostl_bdc.
WRITE: /001 'Output: ', kostl_bdc.
Rob
Edited by: Rob Burbank on Jan 7, 2008 4:05 PM
01-07-2008 9:12 PM
Hi Rob,
Thanks, now i change in my prog, and i will update u.
Visahl