L_TO_CREATE_TR-???
L_TO_CREATE_TR
i use this FM to create a to refrence a TR, in our dev client, it throw a message_error 'Storage type XX is not Allowed negative stock', so FM process failed, but on_front, using LT04 to create TO refrence the same TR, it is saved successfully. why?
could you know the reason for it?
thanks!
the variables u declared and passed in ur program should refer to the data declarations of the FM. This way it will work properly.
Similar Messages
-
Function module parameters for L_TO_CREATE_TR
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,
MainakHi 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 -
L_TO_CREATE_TR testrunresult differs from programresult
Girls,
I use L_TO_CREATE_TR to create a TO refering to a TransportRequest. Works fine, but the palletnumber that I store in IT_TRITE-NLENR does not show up where it should: in the resulting TO in the field NLENR (LT21, Tab Dest.data, field Dest.storage unit)
Ok, happens. But:
When I enter the exact same data in SE37 in the testrundata as is passed to the functionmodule in my program, the palletnumber is stored nicely in the new TO!!
Anybody for any tips how to solve this mystery?
Best regards,
Tim van SteenbergenHari, here you go:
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.
This is how IT_TRITE is filled with a testrun in SE37:
TBPO 1
ANFME 1,000
ALT KI
NLENR 79999688 "so, no leading zeros here in SE37
LET BPH
All others empty.
Hopefully helpfull,
Best regards,
Tim van Steenbergen -
L_TO_CREATE_TR Usage
Hello experts,
We are using the function module L_TO_CREATE_TR in a SAP R/3 4.6C. Then we fill the field T_LTAP_VB-NLENR with a destination SU, but the system genaretes a new internal SU in the TO.
We have external and internal range number for SU, but using transaction LT04 if you write manually the SU number the
system takes this external number.
Why the behavior is diferent between transaction and function module?
Source code:
i_ltak-lgnum = p_lgnum.
i_ltak-tbnum = p_tbnum.
i_ltak-tbpri = '1'.
i_ltak-bwlvs = c_bwlvs.
i_ltak-vbeln = p_vbeln.
i_ltak-lznum = p_lznum.
i_ltak-lgtor = p_lgtor.
APPEND i_ltak.
i_ltap-lgnum = p_lgnum.
i_ltap-vistm = p_vistm.
i_ltap-meins = p_meins.
i_ltap-letyp = p_letyp.
i_ltap-wempf = p_wempf.
i_ltap-nlenr = p_sscc.
i_ltap-ablad = p_ablad.
i_ltap-wdatu = sy-datlo.
i_ltap-vlqnr = '1'.
i_ltap-vfdat = p_fcp.
i_ltap-bestq = p_bestq.
i_ltap-nltyp = c_nltyp.
i_ltap-matnr = p_matnr.
i_ltap-werks = p_werks.
i_ltap-lgort = p_lgort.
i_ltap-charg = p_charg.
APPEND i_ltap.
CALL FUNCTION 'L_TO_CREATE_TR'
EXPORTING
i_lgnum = p_lgnum
i_tbnum = p_tbnum
TABLES
t_ltak = i_ltak
t_ltap_vb = i_ltap
t_wmgrp_msg = i_msg1
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
OTHERS = 14.
Thank you.Hi Joan,
your code looks like my except this parameter
FUNCTION L_TO_CREATE_TR.
""Globale Schnittstelle:
*" IMPORTING
*" VALUE(I_LGNUM) LIKE LTAK-LGNUM
*" VALUE(I_TBNUM) LIKE LTAK-TBNUM
*" VALUE(I_REFNR) LIKE LTAK-REFNR DEFAULT SPACE
*" VALUE(I_SQUIT) LIKE RL03T-SQUIT DEFAULT SPACE
*" VALUE(I_NIDRU) LIKE RL03A-NIDRU DEFAULT SPACE
*" VALUE(I_DRUKZ) LIKE T329F-DRUKZ DEFAULT SPACE
*" VALUE(I_LDEST) LIKE LTAP-LDEST DEFAULT SPACE
*" VALUE(I_TBELI) LIKE RL03T-TBELI DEFAULT SPACE
*" VALUE(I_NOSPL) LIKE RL03A-NOSPL DEFAULT SPACE
*" VALUE(I_UPDATE_TASK) LIKE RL03A-VERBU DEFAULT SPACE
*" VALUE(I_COMMIT_WORK) LIKE RL03B-COMIT DEFAULT 'X'
*" VALUE(I_BNAME) LIKE LTAK-BNAME DEFAULT SY-UNAME
*" VALUE(I_TEILK) LIKE T340D-TEILV DEFAULT SPACE
*" VALUE(I_SOLEX) LIKE LTAK-SOLEX DEFAULT 0
*" VALUE(I_PERNR) LIKE LTAK-PERNR DEFAULT 0
*" VALUE(I_RSNUM) LIKE LTAK-RSNUM DEFAULT SPACE
*" VALUE(I_LDEST_LANG) LIKE TSP03L-LNAME DEFAULT SPACE
*" VALUE(IT_TRITE) TYPE L03B_TRITE_T OPTIONAL
*" EXPORTING
*" VALUE(E_TANUM) LIKE LTAK-TANUM
*" VALUE(E_TEILK) LIKE T340D-TEILV
*" TABLES
*" T_LTAK STRUCTURE LTAK_VB OPTIONAL
*" T_LTAP_VB STRUCTURE LTAP_VB OPTIONAL
*" T_WMGRP_MSG STRUCTURE WMGRP_MSG OPTIONAL
*" EXCEPTIONS
*" FOREIGN_LOCK
*" QM_RELEVANT
*" TR_COMPLETED
*" XFELD_WRONG
*" LDEST_WRONG
*" DRUKZ_WRONG
*" TR_WRONG
*" SQUIT_FORBIDDEN
*" NO_TO_CREATED
*" UPDATE_WITHOUT_COMMIT
*" NO_AUTHORITY
*" PREALLOCATED_STOCK
*" PARTIAL_TRANSFER_REQ_FORBIDDEN
*" INPUT_ERROR
Perhaps the parameter came with a patch. I suggest you to browse the service marketplace for infos.
Regards,
Andreas -
L_TO_CREATE_TR not working
Hi ,
I have SU managed Storage Type and am using L_TO_CREATE_TR FM to create TO and i have external Storage unit number range. While running the FM i have passed all mandatory import parameters, but i get an error "Enter a Storage Unit" even though I have also passed Storage Unit number.
Have any one used this FM before for SU managed Storage type in Putaway scenario. can any one help me on this ,,, Thank You
Regards,
Samuelthe variables u declared and passed in ur program should refer to the data declarations of the FM. This way it will work properly.
-
Error with FM L_TO_CREATE_TR
Hi,
I'm trying to use the FM 'L_TO_CREATE_TR' and passing the below data to it
LGNUM
TBNUM
TBPOS
MENGE
LGTYP
VLENR
But I get the error 'Data for storage type search is not defined (E )'
Does anyone know why we get this error?
Points will be rewarded for immediate responses!!!
Thanks,
A PothuneediHi,
Check the value you are passing for LGTYP (storage type ) in the table T301 Check table for LGTYP field.
Use fm : ENQUEUE_ELLAGPE , DEQUEUE_ELLAGPE
before using that fm to lock and unlock.
CALL FUNCTION 'ENQUEUE_ELLAGPE'
XPORTING
mode_lagp = 'E'
mandt = sy-mandt
lgnum = v_lgnum
lgtyp = tbl_toitem-vltyp
lgpla = v_lgpla_lock
X_LGNUM = ' '
X_LGTYP = ' '
X_LGPLA = ' '
_SCOPE = '2'
_WAIT = ' '
_COLLECT = ' '
XCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
And also check combination of values possible
Regds
Sivaparvathi
Please reward points if helpful...
Edited by: Siva Parvathi on Jan 2, 2008 12:33 PM -
L_TO_CREATE_TR displays the error message instead of returning !!
Hi All,
The FM L_TO_CREATE_TR is displaying error message instead of returning error/raising exception, as a result the program terminates there, and we are not able to capture the error, and process other items in the loop.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
The above code in line 142 of Include - LL03BF1A, displays the message as Error, if message type is E. Whenever we try to change the SY-MSGTY to I in debug mode, the control again comes to the same point, with same ERROR message, infinitely!!
An example error message is 'Available quantity in bin is zero'.
Please provide a solution for the above issue.
Thanks,
PrabhakarHi All,
We have solved the issue, by adding an exception ERROR_MESSAGE before OTHERS, while calling the std. FM L_TO_CREATE_TR.
For the MESSAGE statement(for msg type E & A) without RAISING clause, the FM will be forced to raise the exception ERROR_MESSAGE. The details of the message can be read from the system parameters(SY).
Ref: http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
Thanks,
Prabhakar -
Issue with Storage Unit Type (LETYP) in L_TO_CREATE_TR
Hi Experts,
I need help in the function module "L_TO_CREATE_TR". using in Warehouse Management(WM) module.
In theis function module I am passing LETYP(Storage Unit Type) value in IT_TRITE parameter, but this is not considering my value instead of this it is considering the value which is coming based on Source Storage type.
Can any one aware of this issue ?
Please let me know.
Thanks & Regards,
ChanduHi,
Pass the Storage type details to NLTYP/ VLTYP. For destination storage details NLTYP and NLPLA. For Souce storage details VLTYP and VLPLA.
No need to pass to LETYP value.
" Pass these values
ls_trite-tbpos = "Transfer Requirement
ls_trite-nltyp = "Destination storage type
ls_trite-nlpla = "Destination storage bin
ls_trite-anfme = "Quantity
ls_trite-vltyp = "Source storage type
ls_trite-vlpla = "Source storage bin
ls_trite-altme = "Unit of measurement
APPEND ls_trite TO lt_trite.
CALL FUNCTION 'L_TO_CREATE_TR'
EXPORTING
i_lgnum = "Warehouse
i_tbnum = "Transfer Requirement
i_update_task = 'X'
i_commit_work = 'X'
it_trite = lt_trite
This will create a TO w.r.t TR
Regards,
Karuna -
Cannot Create TO with L_TO_CREATE_TR'
I want to create a Transfer order from TR with FM L_TO_CREATE_TR, but i am getting this message: Requested amount could not be supplied.
This is my code:_
MOVE: wa_ltbp-tbpos TO wa_trite-tbpos, " Posición de necesidad transporte
wa_ltbp-menga TO wa_trite-anfme,"Ctd.solicitada en unidad medida alternativa
wa_ltbp-altme TO wa_trite-altme, "Unidad medida alt. p.unidad medida almacén
wa_ltbp-lety1 TO wa_trite-letyp,
wa_ltbk-nltyp TO wa_trite-nltyp,
wa_ltbk-nlpla TO wa_trite-nlpla.
APPEND wa_trite TO lt_trite.
CALL FUNCTION 'L_TO_CREATE_TR'
EXPORTING
i_lgnum = it_folios-lgnum
i_tbnum = it_folios-tbnum
i_squit = 'X'
i_commit_work = 'X'
it_trite = lt_trite
TABLES
t_ltak = t_ltak
t_ltap_vb = t_ltap_vb.
Anybody haver idea about how to solve it?
Thanks!Hello,
In 4.6c This exporting parameter is not there. TO is created with the reference to TR using the mentioned funtional module,
If your error is 'requested amount could not be supplied' .
take the help of functional guys and make your quantity available in Bin.
Thanks and Regards,
Reddy. -
About the Function L_TO_CREATE_TR
Hello Experts.
I need to using FM "L_TO_CREATE_TR" to create TO with TR in my programming, it's work.
But the problem is I don't konw how to specify the Return Storage Bin.
In this function the import parameter 'IT_TRITE', Just have the Source Storage Bin and Destination Storage Bin.
So my question is how to specify the Return Storage Bin or Is there have any other parameter that i can specify
the Source Storage Bin as Return Storage Bin ?
Thanks so much.Hi Chip,
I think you have posted a question in the wrong forum.
You may want to try some other forums in SDN.
Thanks.
Peter -
Function L_TO_CREATE_TR
I am trying to call function L_TO_CREATE_TR and get it to create a TO. I enter all the data in the header import parameters, and fill in the record IT_TRITE and it successfully creates the TO. However, I cannot find where I fill in the ZEUGN (certificate) field in IT_TRITE. This is critical for our products.
Has anyone been able to call this and correctly populate the inputs to create a TO and get this field populated?
I have also tried using the tables T_LTAK and T_LTAP_VB - and populating ZEUGN in T_LTAP_VB, but I get an error message....
Data for storage type search is not defined (E
Message no. L3007
When I try using these same two tables along with the header input parameters and fill in the details in IT_TRITE - it posts. However, ZEUGN is still not getting filled in.
Does anyone know what I need to do to get this field populated? I am creating the TO after creating a material document for a GR against a purchase order.
thanks,
ChipHi Chip,
I think you have posted a question in the wrong forum.
You may want to try some other forums in SDN.
Thanks.
Peter -
Create Transfer Order w/Ref to Material Document using L_TO_CREATE_TR
In SAP I can use trans code LT06 to create a WM transfer order using the GR (material document) - number - no issue here,this works great. Now I'm trying to use a BAPI for the same process. I'm using function L_TO_CREATE_TR, but when I execute the function, I get an error that my TR does not exist. I read other threads that say that this is the function for LT06, but it doesn't seem to work for the proces I described above, I first have to create the transfer requirement using L_TR_CREATE, then execute L_TO_CREATE_TR in order for this work. I have filled in the import parameters correctly. When I run this through standard SAP transaction, I do not have to create TR first. Any ideas? I'm on a 4.6C system
Thanks in advance for your replies.
Kathy
Edited by: Kathleen Phillips on Dec 20, 2007 9:46 PM
Edited by: Kathleen Phillips on Jan 2, 2008 4:23 PMDear Kathleen,
I have this same question, have you had any luck resolving this issue? -
Help on L_TO_CREATE_TR
hi all,
i am facing major problem using this L_TO_CREATE_TR function module for creating Transfer order from transfer requirement.
i have created material transfer program. when user select multiple storage unit numbers from same storage bin for stock transfer transfer order creates with same storage unit number insted of 2 different number. why this is happening how does this L_TO_CREATE_TR function module works.
EX.
suppose user select 2 storage unit number from same bin like
storage unit. qty bin
stunit1 1 bin1
stunit2 2 bin1
when 2 TO's created it show same storage unit number in both TO.
why this is happening
please give me the solution for this.
is there any unternative Function Module. to do this
thanks in advance.
vinodthe variables u declared and passed in ur program should refer to the data declarations of the FM. This way it will work properly.
-
BAPI to create Transfer order(WMS) from Material document
Dears,
We have activited WMS and we have not found any BAPI to generate TO in WMS from Material document to post GR to a specific bin. Is there any BAPI available for particular operation?
Can anyone tell me about name of BAPI?
Regards,
FRTry with Function Module L_TO_CREATE_TR
also try
Use this function module to create TO (transaction LT01) L_TO_CREATE_SINGLE
CALL FUNCTION 'L_TO_CREATE_SINGLE'
EXPORTING
i_lgnum = ti_lqua-lgnum
i_bwlvs = l_bwlvs
i_matnr = zwwmugeori-matnr
i_werks = ti_lqua-werks
i_lgort = ti_lqua-lgort
i_bestq = l_bestq
i_letyp = l_letyp
i_anfme = l_anfme
i_altme = l_altme
i_vlpla = l_vlpla
i_vlenr = l_vlenr
i_nlpla = l_nlpla
i_nlenr = l_nlenr
i_commit_work = space
IMPORTING
e_tanum = l_tanum.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Feb 13, 2008 11:33 AM -
Error message while creating transfer order
Hi Experts,
My objective is to create a transfer order from a transfer requirement programatically.
I am trying to create a transfer order using FM L_TO_CREATE_TR programatically. Prior to this FM, I am calling FM L_TR_CREATE to create a transfer requirement. I am passing this transfer requirement to FM L_TO_CREATE_TR to create a transfer order.
But on execution of L_TO_CREATE_TR , I am getting an error message: THIS SCREEN IS ONLY ALLOWED FOR MANUAL TRANSFER ORDERS as a status message in the program.
Please tell how to solve this.
Thanks,
Sangeeta.Hi,
Check whether following link is helpful
http://sap.ittoolbox.com/groups/technical-functional/sap-log-wm/lt04-from-lb01-1239928
Regards,
Dhana
Maybe you are looking for
-
Using an external hard drive with a Mac and a PC?
I have an external hard drive that I've used with my Windows PC/ itunes / music that I've copied to the PC. Can I use the external hard drive that I use with my Windows PC on my Mac/ itunes / music I've downloaded to my Mac?
-
Hey, I am a new user of the Oracle database, as I want to export the database table and data from the existing Oracle 9i. What should I do? Let me describe it in detail. I already search some material and found a command for export the database. It i
-
Problems with delete overlapping requests from InfoCube in PC
Hi guys, Iu2019m using delete overlapping requests from InfoCube in Process Chains, but Iu2019m not being able to adjust it to my specific requirement. For example: I execute DTP to load InfoCube XPTO with Fiscal Year 2008 and 2009. After this I have
-
Logic 9.1.6 32bit crash when pressing play
Hey, I have recently switched back to 32bit mode as Peavey Revalver mkIII.V has only 32bit AUs and the 32bit AU bridge constantly crashed. Anyhow, whenever I press play in 32bit mode I get the spinning beach ball or a CTD. The plugins I use are: Peav
-
Hello, I am trying to implement a FPGA project that requires signal frequency precision levels of about 1 mHz. Due to the data types in the project, I seem to be having difficulty adjusting the frequencies of the Labview FPGA sine and square wave ge