on 05-04-2006 11:50 AM
Hi there,
does anybody know how to create a transfer order as processed in transaction LT01 via abap?
I search for a function module which can be provided by storage type, storage bin (source and target)...
regards,
Markus
L_TO_CREATE_SINGLE will be useful to you.
Sample Code for the usage:
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
I_LGNUM = LV_LGNUM
I_BWLVS = '101'
I_BETYP = ' '
I_BENUM = LV_BENUM
I_MATNR = X_DATA-MATNR
I_WERKS = X_DATA-WERKS
I_LGORT = X_DATA-LGORT
I_CHARG = ' '
I_BESTQ = ' '
I_SOBKZ = ' '
I_SONUM = ' '
I_LETYP = LV_LETYP
I_ANFME = X_DATA-RECV_QTY
I_ALTME = X_DATA-MEINS
I_WDATU = INIT_DATUM
I_VFDAT = INIT_DATUM
I_ZEUGN = ' '
I_LZNUM = ' '
I_SQUIT = ' '
I_NIDRU = ' '
I_DRUKZ = ' '
I_LDEST = 'PF37'
I_WEMPF = ' '
I_ABLAD = ' '
I_VLTYP = LV_VLTYP
I_VLBER = '001'
I_VLPLA = X_DATA-EBELN
I_VPPOS = ' '
I_VLENR = ' '
I_VLQNR = ' '
I_NLTYP = LV_NLTYP
I_NLBER = '001'
I_NLPLA = ' '
I_NPPOS = ' '
I_NLENR = LV_NLENR
I_NLQNR = ' '
I_RLTYP = ' '
I_RLBER = ' '
I_RLPLA = ' '
I_RLQNR = ' '
I_UPDATE_TASK = ' '
I_COMMIT_WORK = 'X'
I_BNAME = SY-UNAME
I_KOMPL = 'X'
I_SOLEX = 0
I_PERNR = 0
I_AUSFB = ' '
IMPORTING
E_TANUM = LV_TANUM
E_LTAP =
TABLES
T_LTAK =
T_LTAP_VB =
EXCEPTIONS
NO_TO_CREATED = 1
BWLVS_WRONG = 2
BETYP_WRONG = 3
BENUM_MISSING = 4
BETYP_MISSING = 5
FOREIGN_LOCK = 6
VLTYP_WRONG = 7
VLPLA_WRONG = 8
VLTYP_MISSING = 9
NLTYP_WRONG = 10
NLPLA_WRONG = 11
NLTYP_MISSING = 12
RLTYP_WRONG = 13
RLPLA_WRONG = 14
RLTYP_MISSING = 15
SQUIT_FORBIDDEN = 16
MANUAL_TO_FORBIDDEN = 17
LETYP_WRONG = 18
VLPLA_MISSING = 19
NLPLA_MISSING = 20
SOBKZ_WRONG = 21
SOBKZ_MISSING = 22
SONUM_MISSING = 23
BESTQ_WRONG = 24
LGBER_WRONG = 25
XFELD_WRONG = 26
DATE_WRONG = 27
DRUKZ_WRONG = 28
LDEST_WRONG = 29
UPDATE_WITHOUT_COMMIT = 30
NO_AUTHORITY = 31
MATERIAL_NOT_FOUND = 32
LENUM_WRONG = 33
ERROR_MESSAGE = 34
OTHERS = 35
.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check this FM <b>WS_LM_TRANSFER_ORDER_CREATE</b>
Regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out these
L03A
L_TO_BATCH_CREATE_INT
L_TO_CREATE_GET_INFO
L_TO_CREATE_INT
L_TO_CREATE_STOCK_LIST_INT
L_TO_SPLIT_ITEM_CREATE_INT
L03B Transfer order processing
L_TO_CREATE_2_STEP_PICKING
L_TO_CREATE_DN Create a transfer for delivery note
L_TO_CREATE_DN_MULTIPLE
L_TO_CREATE_MOVE_SU Create transfer order for moving storage units
L_TO_CREATE_MULTIPLE
L_TO_CREATE_POSTING_CHANGE Create transfer order for posting change
L_TO_CREATE_SINGLE Create a transfer order with one item
L_TO_CREATE_TR Create a transfer order for transfer requirement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.