Application Development and Automation 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: 
Read only

Reg BDC Upload prog

Former Member
0 Likes
803

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
Read only

Former Member
0 Likes
769

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.

Read only

0 Likes
769

Hi Lakshmi,

Yes on Application Server.....

Read only

Former Member
0 Likes
769

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

Read only

0 Likes
769

Hi Rob,

Thanks.

Can u give me some example codding with function??

Vishal

Read only

0 Likes
769

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

Read only

0 Likes
769

Hi Rob,

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

Visahl