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

Create transport order.

Former Member
0 Likes
1,206

Hi,

I'm trying to use FM <b>L_TO_CREATE_SINGLE</b>, but there is no way to provide the delivery number.

For creating the delivery I used <b>BAPI BAPI_OUTB_DELIVERY_CREATENOREF</b>.

Any suggestion?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,003

Check with : SHP_VL10_DELIVERY_CREATE_PARA

5 REPLIES 5
Read only

Former Member
0 Likes
1,003

Hi,

Look at the below function modules

FIPR_TRANSPORT_ORDER_CREATE
QMLR_CREATE_TRANSPORT_ORDER    " Create Transport Request from Quality Notification
WS_LM_TRANSFER_ORDER_CREATE

Regards

Sudheer

Read only

Former Member
0 Likes
1,004

Check with : SHP_VL10_DELIVERY_CREATE_PARA

Read only

Former Member
0 Likes
1,003

I have tried changing the FM, but I need a single OT created, and others tend to create several.

I have noticed, as well, that you can add the datum vbeln inside the table T_LTAK.

Does anyone know why this call doesn't work, please?

[In fact I've been trying to put the FM to work directly from SE37, but I haven't succeeded so far...]


 lt_ltak_vb-vbeln = pa_vbeln.
 append lt_ltak_vb.

  CALL FUNCTION 'L_TO_CREATE_SINGLE'
  EXPORTING
  i_lgnum = pa_lgnum
  i_bwlvs = '501'
  i_matnr = pa_matnr
  i_werks = pa_werks
  i_anfme = pa_qty
  i_altme = '10'
  i_wdatu = pa_wdatum 
  i_lgort = pa_lgort  
  i_letyp = pa_letyp  
  i_charg = pa_charg
  i_betyp = pa_betyp
  i_benum = pa_benum
  i_bestq = pa_bestq
  i_sobkz = pa_sobkz
  i_sonum = pa_sonum
  i_vfdat = pa_vfdat
  i_zeugn = pa_zeugn
  IMPORTING
  e_tanum = pa_tanum
  TABLES
  t_ltak = lt_ltak_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
  error_message = 34
  OTHERS = 35.

Thanks a lot.

Read only

Former Member
0 Likes
1,003

Finally I called the transaction. Thanks all the same.

I would like to know, anyway, whether passing <b>vbeln</b> to the FM, through the table, which seems to be the only way, results in the FM detecting the delivery. Just in case...

Regards.

Read only

Former Member
0 Likes
1,003

In case someone's interested: