6 Replies Latest reply: Nov 29, 2012 12:11 PM by Mukesh Shukla RSS

Function module parameters for L_TO_CREATE_TR

mainak bhattacharya
Currently Being Moderated

Hi All,

 

Can someone help me out in using the function module 'L_TO_CREATE_TR'.

What are the necessary import and export parameters along with the table parameters?

If i want to pass IT_TRITE (table) as export parameters, what are the requisite fields that should be populated inthat table structure?

Kindly help me out.

 

Regards,

Mainak

  • Re: Urgent help required: Function module parameters.....
    Prabhu Peram
    Currently Being Moderated

    first see the documentation .

     

    You use this parameter to define item specifications so that the system does not create transfer orders for all open quantities of the transfer requirement with the function module L_TO_CREATE_TR.

     

    The system only creates transfer orders from this table for the specifications in varying degrees of detail. You can specify the following data for the item numbers:

     

    Quantity

    Batch

    Specifications for the destination storage bin

    Specifications for the source storage bin

     

    Regards

    Prabhu

  • Re: Urgent help required: Function module parameters.....
    vijay kumar
    Currently Being Moderated

    Hi Manik,

     

         Go to -> Se37 and enter your FM Name and press Enter. Then Select the "Function Module Documentation". Here you can know about what are the import and Export parameters and their Data Types Also.

     

    Thanks.

  • Re: Urgent help required: Function module parameters.....
    Chinmay Kumar Ghosh
    Currently Being Moderated

    Hi Mainak,

     

    This is the ABAP and the FM-call:

    data LT_TRITE type L03B_TRITE_T.

    data WA_TRITE like line of LT_TRITE.

    data GV_STORED like VBAPF-QMENGE.

     

    clear: LT_TRITE, WA_TRITE, GV_STORED.

    refresh LT_TRITE.

     

    WA_TRITE-TBPOS = GT_LTBP-TBPOS.

    WA_TRITE-ANFME = GT_LTBP-MENGE.

    WA_TRITE-ALTME = GT_LTBP-MEINS.

    WA_TRITE-LETYP = GT_MARA-VHART(3). "3-character storageunittype

    concatenate '000000000000' LTAP-NLENR+10(8) into WA_TRITE-NLENR.

    "FM L_TO_CREATE_TR wants 20 characters

     

    if GV_DIR = 'N'.

    WA_TRITE-NLTYP = '120'.

    WA_TRITE-NLPLA = 'OVERDRACHT'.

     

    else.

    WA_TRITE-NLTYP = P_NLTYP.

    WA_TRITE-NLPLA = P_NLPLA.

     

    endif.

    append WA_TRITE to LT_TRITE.

     

    • TO aanleggen

    clear GT_LTAP_VB.

    refresh GT_LTAP_VB.

     

    call function 'L_TO_CREATE_TR'

    exporting

    I_LGNUM = GC_LGNUM_011 "LGNUM is '011' in my case

    I_TBNUM = GT_LTBP-TBNUM

    IT_TRITE = LT_TRITE

    • importing

    • e_tanum = gv_tanum

    tables

    T_LTAP_VB = GT_LTAP_VB

    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

    INPUT_ERROR = 14

    others = 15.

     

    if SY-SUBRC <> 0.

    commit work."See FM L_TO_CREATE_TR docu: commit work is needed

    perform MELDT_DE_FOUT using SY-MSGID SY-MSGTY SY-MSGNO

    SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    else.

     

    <b>plz reward points if helpful or if it solves ur query.</b>

     

     

    Thanks

    Chinmay

Actions