‎2008 Jan 23 7:12 AM
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
‎2008 Jan 23 7:27 AM
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
‎2008 Jan 23 7:16 AM
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
‎2008 Jan 23 7:22 AM
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
‎2008 Jan 23 7:27 AM
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