Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Regarding Function Module Parameters

Former Member
0 Likes
853

Hi,

I am using Function module L_TO_CREATE_SINGLE for that i need to know what are the require parameters to create Transfer Order .

For movement Type 101 .

Here iam passing parameters are

WareHouse number,

Movement Type

material

Plant

storage Location

Require Quantity

Unit of measure

Source storage bin

Source storage type

Destination Storage Bin

Destination storage type

Storage Unit

Requirement type

Requirement Number

is there any other parameters i need to pass could you please help me out .

I want to know what are the other parameters i have to pass to create Transfer Order .

Thanks in advance,

murali krishna.

2 REPLIES 2
Read only

Former Member
0 Likes
622

Hi

reward if usefull

<u><b>L_TO_CREATE_SINGLE</b></u>-Create a transfer order with one item

Functionality

With this function module, you can create a transfer order with an item. Via the parameters you can control the structure. For more information, refer to the detailed documentation for the individual parameters. The paramters that have been passed on are first submitted to a plausibility check. Then the actual transfer order is created.

If the function module is called up several times within a program, a COMMIT WORK should be placed between the calls and the blocks set up should be removed.

For the most part, this function module behaves in the same way as the transaction used to create a transfer order without a reference when you press the pushbutton "Single item". If the documentation for the individual parameters is not sufficient, you can call up the F1 documentation for the fields in this transaction.

<b>Parameters</b>

I_LGNUM

I_BWLVS

I_BETYP

I_BENUM

I_MATNR

I_WERKS

I_LGORT

I_CHARG

I_BESTQ

I_SOBKZ

I_SONUM

I_LETYP

I_ANFME

I_ALTME

I_WDATU

I_VFDAT

I_ZEUGN

I_LZNUM

I_SQUIT

I_NIDRU

I_DRUKZ

I_LDEST

I_WEMPF

I_ABLAD

I_VLTYP

I_VLBER

I_VLPLA

I_VPPOS

I_VLENR

I_VLQNR

I_NLTYP

I_NLBER

I_NLPLA

I_NPPOS

I_NLENR

I_NLQNR

I_RLTYP

I_RLBER

I_RLPLA

I_RLQNR

I_UPDATE_TASK

I_COMMIT_WORK

I_BNAME

I_KOMPL

I_SOLEX

I_PERNR

I_AUSFB

E_TANUM

E_LTAP

T_LTAK

T_LTAP_VB

<b>Exceptions</b>

NO_TO_CREATED

BWLVS_WRONG

BETYP_WRONG

BENUM_MISSING

BETYP_MISSING

FOREIGN_LOCK

VLTYP_WRONG

VLPLA_WRONG

VLTYP_MISSING

NLTYP_WRONG

NLPLA_WRONG

NLTYP_MISSING

RLTYP_WRONG

RLPLA_WRONG

RLTYP_MISSING

SQUIT_FORBIDDEN

MANUAL_TO_FORBIDDEN

LETYP_WRONG

VLPLA_MISSING

NLPLA_MISSING

SOBKZ_WRONG

SOBKZ_MISSING

SONUM_MISSING

BESTQ_WRONG

LGBER_WRONG

XFELD_WRONG

DATE_WRONG

DRUKZ_WRONG

LDEST_WRONG

UPDATE_WITHOUT_COMMIT

NO_AUTHORITY

MATERIAL_NOT_FOUND

LENUM_WRONG

Function Group

L03B

<b></b>

Read only

Former Member
0 Likes
622

Hi,

You can eliminate the informative messages of certain functions, adding parameter ERROR_MESSAGE



Example: 
CALL FUNCTION “L_TO_CREATE_SINGLE” 
EXPORTING 
I_LGNUM = MLGN-LGNUM 
I_BWLVS = “103” 
I_BETYP = “F” 
I_BENUM = H_AUFNR+2 (10) 
I_MATNR = MLGN-MATNR 
I_WERKS = “BV01” 
I_LGORT = AFPO-LGORT 
I_CHARG = AFPO-CHARG 
* I_BESTQ = ““
* I_SOBKZ =”” 
*I_SONUM = ““
I_LETYP = MLGN-LETY1 
I_ANFME = ZTOTAL
I_ALTME = MARA-MEINS
*I_WDATU = INIT_DATUM 
* I_VFDAT = INIT_DATUM
* I_ZEUGN =”” 
I_LZNUM = H_AUFNR 
* I_SQUIT = ““
* I_NIDRU =”” 
* I_DRUKZ = ““
* I_LDEST =”” 
* I_WEMPF = ““
* I_ABLAD =”” 
I_VLTYP = “901” 
* I_VLBER = ““
I_VLPLA = AFPO-AUFNR+2 (10) 
I_VPPOS =”” 
* I_VLENR = ““
* I_VLQNR =”” 
* I_NLTYP = ““
* I_NLBER =”” 
* I_NLPLA = ““
* I_NPPOS =”” 
I_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 = H_TANUM 
E_LTAP = I_LTAP 
* TABLES 
T_LTAK = I_LTAK 
T_LTAP_VB = I_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 
OTHERS = 34 
ERROR_MESSAGE = 35.

Regards

Sudheer