Skip to Content
0
Former Member
Aug 05, 2009 at 11:53 AM

7 character field to purchase order ,customer number

58 Views

please help

1)

data : kunnr1(7) type c.

data : kunnr like kna1-kunnr.

kunnr1 has only field length 7 and it is of type character.

kunnr is a sap field.

everytime i need to fill the data from the field kunnr1 to sap kunnr and pass to bdc .

suppose kunnr1 = 1930903 ie 7 characters .

and in sap shall i simply copy like this

kunnr = kunnr1. " will this work

or

concatnate '000' kunnr1 to kunnr.

or

any other one .

2)same with the purchase order number.

data : po(7) type c.

dat : bstdk type vbak-bstdk.

po = asdefgr

bsdtk = po

or

concatenate '' po to bsdtk.

if i assign value from po to bsdtk will at end command will work on bstdk?

example

loop at itab into workarea.

at last bsdtk." i need this to work so tell me how to assign the value from po to bsdtk

endloop.