cancel
Showing results for 
Search instead for 
Did you mean: 

i need FM to return to stock from delivery (lt0g)

0 Kudos
I used this FM but it is not working.....
i need the advice

   CALL FUNCTION 'L_TO_SET_SPECIAL'
      EXPORTING
        i_spezi        = 'B'
        i_vbeln        = fp_vbeln
     EXCEPTIONS
        call_forbidden = 1
        input_wrong    = 2
        others         = 3.

    if sy-subrc <> 0.
     CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
        EXPORTING
         i_lgnum       = 'DW1'
          i_bwlvs       = '999'
*         I_BETYP       = ' '
*         I_BENUM       = ' '
*         I_LZNUM       = ' '
          i_nidru       = rldru-proto
          i_drukz       = rldru-drukz
*         I_UPDATE_TASK = ' '
          i_commit_work = 'X'
*         I_BNAME       = SY-UNAME
*         I_KOMPL       = 'X'
*         I_SOLEX       = 0
*         I_PERNR       = 0
*         I_MINWM       = ' '
        IMPORTING
          e_tanum       = hlp_tanum
        TABLES
          t_ltap_creat  = ltap_creat[]
        EXCEPTIONS
          error_message = 99.
      if sy-subrc eq 0.
         MESSAGE 'done23333' TYPE 'S'.
       endif.
           call function 'DEQUEUE_ALL'.
           call function 'L_TO_RESET_SPECIAL'.

           call function 'DEQUEUE_EVVBLKE'
            exporting
              vbeln = fp_vbeln.
               COMMIT WORK.
           ENDIF.
Jeansy
Active Contributor
0 Kudos

Which error message is shown when you execute these function modules?

Jeansy
Active Contributor
0 Kudos

I assume that it could help if you set a break-point in report RLLT0G00 (related to T-Code LT0G). This report does exactly what you want to achieve.

This report is also using the mentioned function modules, maybe some parameters are not set correctly.

Accepted Solutions (0)

Answers (0)