05-07-2007 6:36 AM
Hi All,
Can someone help me out in using the function module 'L_TO_CREATE_TR'.
What are the necessary import and export parameters along with the table parameters?
If i want to pass IT_TRITE (table) as export parameters, what are the requisite fields that should be populated inthat table structure?
Kindly help me out.
Regards,
Mainak
05-07-2007 6:42 AM
Hi Manik,
Go to -> Se37 and enter your FM Name and press Enter. Then Select the "Function Module Documentation". Here you can know about what are the import and Export parameters and their Data Types Also.
Thanks.
05-07-2007 6:40 AM
first see the documentation .
You use this parameter to define item specifications so that the system does not create transfer orders for all open quantities of the transfer requirement with the function module L_TO_CREATE_TR.
The system only creates transfer orders from this table for the specifications in varying degrees of detail. You can specify the following data for the item numbers:
Quantity
Batch
Specifications for the destination storage bin
Specifications for the source storage bin
Regards
Prabhu
05-07-2007 6:42 AM
Hi Manik,
Go to -> Se37 and enter your FM Name and press Enter. Then Select the "Function Module Documentation". Here you can know about what are the import and Export parameters and their Data Types Also.
Thanks.
05-07-2007 6:42 AM
Hi Mainak,
This is the ABAP and the FM-call:
data LT_TRITE type L03B_TRITE_T.
data WA_TRITE like line of LT_TRITE.
data GV_STORED like VBAPF-QMENGE.
clear: LT_TRITE, WA_TRITE, GV_STORED.
refresh LT_TRITE.
WA_TRITE-TBPOS = GT_LTBP-TBPOS.
WA_TRITE-ANFME = GT_LTBP-MENGE.
WA_TRITE-ALTME = GT_LTBP-MEINS.
WA_TRITE-LETYP = GT_MARA-VHART(3). "3-character storageunittype
concatenate '000000000000' LTAP-NLENR+10(8) into WA_TRITE-NLENR.
"FM L_TO_CREATE_TR wants 20 characters
if GV_DIR = 'N'.
WA_TRITE-NLTYP = '120'.
WA_TRITE-NLPLA = 'OVERDRACHT'.
else.
WA_TRITE-NLTYP = P_NLTYP.
WA_TRITE-NLPLA = P_NLPLA.
endif.
append WA_TRITE to LT_TRITE.
TO aanleggen
clear GT_LTAP_VB.
refresh GT_LTAP_VB.
call function 'L_TO_CREATE_TR'
exporting
I_LGNUM = GC_LGNUM_011 "LGNUM is '011' in my case
I_TBNUM = GT_LTBP-TBNUM
IT_TRITE = LT_TRITE
importing
e_tanum = gv_tanum
tables
T_LTAP_VB = GT_LTAP_VB
exceptions
FOREIGN_LOCK = 1
QM_RELEVANT = 2
TR_COMPLETED = 3
XFELD_WRONG = 4
LDEST_WRONG = 5
DRUKZ_WRONG = 6
TR_WRONG = 7
SQUIT_FORBIDDEN = 8
NO_TO_CREATED = 9
UPDATE_WITHOUT_COMMIT = 10
NO_AUTHORITY = 11
PREALLOCATED_STOCK = 12
PARTIAL_TRANSFER_REQ_FORBIDDEN = 13
INPUT_ERROR = 14
others = 15.
if SY-SUBRC <> 0.
commit work."See FM L_TO_CREATE_TR docu: commit work is needed
perform MELDT_DE_FOUT using SY-MSGID SY-MSGTY SY-MSGNO
SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
else.
<b>plz reward points if helpful or if it solves ur query.</b>
Thanks
Chinmay
11-29-2012 10:05 AM
Hi Chinmay,
I am simulating BAPI L_TO_CREATE_SINGLE, i am geting following message
Exception VLTYP_WRONG
Message ID: L3 Message number: 323
Message:
Source storage type contradicts movement type
What could be the possible mistake I am making. If you need more information, the way I am simulating, let me know.
Thanks,
Mukesh
11-29-2012 10:50 AM
The combination of LTAK-BWART and LTAP-VLTYP should match with T333-BWART and T333-VLTYP should match, otherwise it will give you the error "Source storage type contradicts movement type".
Please check and let us know.
11-29-2012 11:11 AM
Thanks Ritwik,
I understood my mistake (in data entry), it is working now.
Regards,
Mukesh
11-20-2014 12:14 PM
Hi
I'm getting some different problem with this function module , I export same as chinmay kumar ghost
but i 'm getting error
L3 -646-
QM is active for item XXXXXX --XXXXX--. Item specifications are not possible.