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

document object AUSP DRAW

Former Member
0 Likes
2,413

Hİ,

In table 'AUSP! field i have field called 'OBJEK' which is a combination of the fields in table 'DRAW'. i have the fields of draw : dokar, doknr, dokvr, doktl but cannot convert it to the field of ausp

EX:

draw-dokar = C5P

draw-doknr = 61708-89010-01

draw-dokvr = AA

draw-doktl = 000

ausp-objek = C5P61708-89010-01 AA000

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,281

Hi ,

You can use the concatenate statemnet for this.

See the sample code below:

data: p_dokar like draw-dokar,

p_doknr like draw-doknr,

p_dokvr like draw-dokvr ,

p_doktl like draw-doktl ,

p_objek like ausp-objek.

p_dokar = 'C5P'.

p_doknr = '61708-89010-01'.

p_dokvr = 'AA'.

p_doktl = '000'.

concatenate: p_dokar p_doknr p_dokvr p_doktl into p_objek .

You can now assign this p_objeck to the feild you want in your table of type ausp-objek.

Regards,

Saurabh

3 REPLIES 3
Read only

Former Member
0 Likes
1,281

Hi,

You can declare a variable of type OBJNUM (W_objek) and then using CONCATENATE command, you can concatenate all the fields of DRAW table into this variable (concatenate without any separator).

Now, assign this variable to AUSP-objek field

AUSP-OBJEK = W_objek.

Regards,

Shyam

Read only

Former Member
0 Likes
1,281

thank you but there have to be seperator total character number is 33 and fields dokar and doknr are aligned to left while the other two fields dokvr and doktl aligned to right.

in the exaple

C5P61708-89010-01''11 spaces''AA000

ıN AN OTHER EXAMPLE

C5P61708-89010-0006 ''9 spaces'' AA000

C5P61708-89010-00064 ''8 spaces'' AA000

Read only

Former Member
0 Likes
1,282

Hi ,

You can use the concatenate statemnet for this.

See the sample code below:

data: p_dokar like draw-dokar,

p_doknr like draw-doknr,

p_dokvr like draw-dokvr ,

p_doktl like draw-doktl ,

p_objek like ausp-objek.

p_dokar = 'C5P'.

p_doknr = '61708-89010-01'.

p_dokvr = 'AA'.

p_doktl = '000'.

concatenate: p_dokar p_doknr p_dokvr p_doktl into p_objek .

You can now assign this p_objeck to the feild you want in your table of type ausp-objek.

Regards,

Saurabh