Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Transfer Order Creation (L_TO_CREATE_MULTIPLE)

Hi forum,

I'm creating a multiple item Transfer Order from a Purchase document using the function L_TO_CREATE_MULTIPLE. TO is created successfully but the problem is that the return table of the function( t_ltap_ret) is not getting filled (ie. the TO item data is not written).

Here's how I'm calling it:

CALL FUNCTION 'L_TO_CREATE_MULTIPLE'

EXPORTING

i_lgnum = wa_ltak-lgnum

i_bwlvs = wa_ltak-bwlvs

i_betyp = wa_ltak-betyp

i_benum = wa_ltak-benum

  • I_LZNUM = ' '

  • I_NIDRU = ' '

  • I_DRUKZ = ' '

  • I_NOSPL = ' '

  • I_UPDATE_TASK = ' '

i_commit_work = 'X'

  • I_BNAME = SY-UNAME

  • I_KOMPL = 'X'

  • I_SOLEX = 0

i_pernr = wa_ltak-pernr

  • I_MINWM = ' '

  • I_AUSFB = ' '

  • IMPORTING

  • e_tanum = e_tanum

TABLES

t_ltap_creat = t_ltap

t_ltak = t_ltak

t_ltap_vb = t_ltap_ret

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

matnr_missing = 34

werks_missing = 35

anfme_missing = 36

altme_missing = 37

lgort_wrong_or_missing = 38

communication_failure = 39

system_failure = 40

OTHERS = 41.

Thank you for your help.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question