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

Issue with L_TO_CREATE_MULTIPLE

Former Member
0 Likes
2,169

Hello All,

I am using the function module 'L_TO_CREATE_MULTIPLE' to craete transfer orders for both the inbound and the outbound process:-

I am facing two issues :-

1.) Transfer Order no is generated but all the required fields are not updated in all the tables like LTAP , LTAK, LTBK , LTBP.

2.) In the Out bound Process , there is a check in the F.M ' L_TO_CONFIRM' for movement type '000'. The structure LTAK does not have the values and check from table T333 fails.

' PERFORM T333_LESEN(SAPML03T) USING LTAK-LGNUM LTAK-BWLVS.'

LTAk has the values when it is inside the perform and no values are passed to perform parameters due to which error is returned.

Please suggest.

Thanks

Edited by: neha jindal on Jul 18, 2011 12:31 PM

Hello All,

I am using the function module 'L_TO_CREATE_MULTIPLE' to craete transfer orders for both the inbound and the outbound process:-

I am facing two issues :-

1.) Transfer Order no is generated but all the required fields are not updated in all the tables like LTAP , LTAK, LTBK , LTBP.

2.) In the Out bound Process , there is a check in the F.M ' L_TO_CONFIRM' for movement type '000'. The structure LTAK does not have the values and check from table T333 fails.

' PERFORM T333_LESEN(SAPML03T) USING LTAK-LGNUM LTAK-BWLVS.'

LTAk has the values when it is inside the perform and no values are passed to perform parameters due to which error is returned.

Please suggest.

Thanks

Edited by: neha jindal on Jul 18, 2011 12:31 PM

5 REPLIES 5
Read only

Former Member
0 Likes
1,308

Please suggest if there is some other function module to create the transfer orders from material documents and confirm them if the stock quantity is zero

Read only

0 Likes
1,308

Hi,

Try using L_TO_CREATE_SINGLE and L_TO_CONFIRM.

Thanks,

Venkatesh.

Read only

Former Member
0 Likes
1,308

The 2nd issue is resolved.

2.) In the Out bound Process , there is a check in the F.M ' L_TO_CONFIRM' for movement type '000'. The structure LTAK does not have the values and check from table T333 fails.

' PERFORM T333_LESEN(SAPML03T) USING LTAK-LGNUM LTAK-BWLVS.'

LTAk has the values when it is inside the perform and no values are passed to perform parameters due to which error is returned.

The error was due to some chanegs to copy of 'L_TO_CREATE_MULTIPLE' which I was using.

Please suggest something for the 1st issue :- 'Data in all the tables not getting updated on the creation of TO'.

Thanks

Read only

0 Likes
1,308

Hello All,

Does anybody has any idea why the all the fields of tables ltak, ltap, ltbk, ltbp are not updated through 'L_TO_CREATE_MULTIPLE'.

Thanks

Read only

0 Likes
1,308

Hi ,

I Found the answer may be its too late to update , but for the help of others i'm posting.

LTAK will update only these fields as mentioned below . If you pass as a table its clearing all the remaining fields .

*........Bewegen Lagereinheit..........................................

     CLEAR: LTAK, LTAK1.

     LTAK-LGNUM = LEIN-LGNUM.

     LTAK-BWLVS = T333-BWLVS.

     LTAK-TBPRI = T333-TBPRI.

     LTAK-BNAME = I_BNAME.

     LTAK-LZNUM = I_LZNUM.

     LTAK-PERNR = I_PERNR.

     LTAK-SOLEX = I_SOLEX.

     LTAK1-NIDRU = I_NIDRU.

     LTAK-BETYP = I_BETYP.

     LTAK-BENUM = I_BENUM.

     IF NOT I_DRUKZ IS INITIAL.

       T333-DRUKZ = I_DRUKZ.

     ENDIF.


Regards,

Amit