Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Reg BDC Upload prog

Former Member
0 Kudos

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.

6 REPLIES 6

Former Member
0 Kudos

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.

0 Kudos

Hi Lakshmi,

Yes on Application Server.....

Former Member
0 Kudos

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

0 Kudos

Hi Rob,

Thanks.

Can u give me some example codding with function??

Vishal

0 Kudos

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

0 Kudos

Hi Rob,

Thanks, now i change in my prog, and i will update u.

Visahl