Application Development 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: 

bapi for create transfer requirement

Former Member
0 Kudos

hi!

i am looking for bapi to create transfer requirement?

thanks

regards

yifat

1 REPLY 1

Former Member
0 Kudos

Hi,

There is a function module for this:

FORM create_tr USING p_l_squit

CHANGING p_subrc

p_tanum.

*clear the variable which will store transfer order numner

CLEAR p_tanum.

CALL FUNCTION 'L_TO_CREATE_TR'

EXPORTING

i_lgnum = ltbk-lgnum

i_tbnum = ltbk-tbnum

i_squit = p_l_squit

i_tbeli = p_l_squit

i_bname = sy-uname

i_commit_work = c_x

IMPORTING

e_tanum = p_tanum

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

error_message = 99

OTHERS = 14.

  • Assign sy-subrc

p_subrc = sy-subrc.

ENDFORM.

regards

Aveek