Bapi for migo transaction

i have created a bapi to upload data for MIGO transaction.. (GOODS RECEIPT-->PURCHASE ORDER)
i am getting the error " stock posting is not possible for this material "'.
when i create directly, it is posted.. while uploading through the program it shows the above error.
please suggest if anyone knows....
Thanks in advance,
Dhivya N.

*& Report  ZR_MIGO_UPLOAD
*& package name : zabap
*& transport request number : MIDK901443
*& program to upload goods movement
REPORT ZR_MIGO_UPLOAD.
***DATA DECLARATION***
type-POOLs:  icon.
TYPES: BEGIN OF TY_GR_PO,
        EBELN(10) TYPE c ,     "'PO NUMBEr
        EBELP(10) TYPE c,     "PO ITEM NUMBER
*       LGOBE TYPE LGOBE,     "STORAGE LOCATION DESCRIPTION
        LGORT(10) TYPE c,     "STORAGE LOCATION
        XFELD TYPE c,     "ITEM OK
        GERNR(10) TYPE c,     "SERIALNUMBER
        END OF TY_GR_PO.
DATA: TA_GR_PO TYPE TABLE OF TY_GR_PO,    "TABLE FOR GOODS RECEIPT PURCHASE ORDER
       WA_GR_PO TYPE TY_GR_PO.
DATA: BLDAT TYPE BLDAT,     "DOCUMENT DATE
        BUDAT TYPE BUDAT,     "POSTING DATE
        WEVER TYPE WEVER.     "VERSION FOR PRINTING GR SLIP
***BAPI DECLARATION***
DATA: BEGIN OF GM_HEAD OCCURS 0.                    "Material Document Header Data
         INCLUDE STRUCTURE BAPI2017_GM_HEAD_01.
DATA: END OF GM_HEAD.
DATA: BEGIN OF GM_CODE OCCURS 0.
         INCLUDE STRUCTURE BAPI2017_GM_CODE.          "Assign Code to Transaction for Goods Movement
DATA: END OF GM_CODE.
DATA: BEGIN OF GM_RET OCCURS 0.
         INCLUDE STRUCTURE BAPI2017_GM_HEAD_RET.       "Material Document Number/Material Document Year
DATA: END OF GM_RET.
DATA: BEGIN OF GM_ITEM OCCURS 0.
         INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.    "Material Document Items
DATA: END OF GM_ITEM.
DATA: BEGIN OF GM_SER OCCURS 0.
         INCLUDE STRUCTURE BAPI2017_GM_SERIALNUMBER.    "Serial Number
DATA: END OF GM_SER.
data: BEGIN OF ta_bapireturn OCCURS 0.
        INCLUDE STRUCTURE BAPIRET2.
data: END OF ta_bapireturn.
***declaration of excel file handling table***
FIELD-SYMBOLS: <fs> type any.    "field symbol for alsm_excel
DATA: TA_EXCEL TYPE TABLE OF ALSMEX_TABLINE,  "table to contain excel sheet values
       WA_EXCEL TYPE ALSMEX_TABLINE.
***declaration of other parameters***
data:       V_brow type i VALUE    2,    "BEGIN OF ROW
             V_bcol type i value   1,     "BEGIN OF COL
             V_erow type i value 65536,   "END OF ROW
             V_ecol type i value 256.     "END OF COLUMN
DATA:  V_sear type string,
        V_INDEX TYPE i,
        V_tabix type sy-tabix,     "current line.
        v_lines type i.          "total number of records
DATA: DATE TYPE DATS.
***SELECTION SCREEN***
***SELECTION SCREEN DESIGN***
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 3.
PARAMETERS: zCODE(2) TYPE C MATCHCODE OBJECT H_T158G,
             zrefdoc type REFDOC,
             version type WEVER.
SELECTION-SCREEN skip 5.
PARAMETERS: p_file type ibipparms-path.
SELECTION-SCREEN SKIP 3.
SELECTION-SCREEN END OF BLOCK b1.
***SELECTION SCREEN VALUE REQUEST***
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
   CALL FUNCTION 'F4_FILENAME'                                    "f4 help for file name
     EXPORTING
       PROGRAM_NAME  = SYST-CPROG
       DYNPRO_NUMBER = SYST-DYNNR
       FIELD_NAME    = 'P_FILE'
     IMPORTING
       FILE_NAME     = P_FILE.
***SELECTION SCREEN EVENT***
AT SELECTION-SCREEN.                                 "validation
   if p_file <> ''.
     V_sear = p_file.
     SEARCH V_sear for '.xls'.
     if sy-subrc <> 0.
       message 'please provide excel file. it is not valid' type 'E'.
     ENDIF.
   ENDIF.
INITIALIZATION.
*   DATE = '17.04.14'.
   GM_HEAD-PSTNG_DATE = SY-DATUM.
   GM_HEAD-DOC_DATE   = SY-DATUM.
   gm_head-pr_uname = sy-uname.
***START OF SELECTION***
START-OF-SELECTION.
   gm_head-REF_DOC_NO = zrefdoc.
   gm_head-VER_GR_GI_SLIP = version.
   GM_CODE-GM_CODE = zCODE.
   PERFORM EXCEL_UPLOAD.
   PERFORM EXCEL_CONVERSION.
   PERFORM NO_RECORDS.
END-OF-SELECTION.
   PERFORM BAPI_ASSIGNMENT.
   PERFORM BAPI_FM.
*&      Form  EXCEL_UPLOAD
*       text
*  -->  p1        text
*  <--  p2        text
FORM EXCEL_UPLOAD .
   CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
     EXPORTING
       FILENAME                = P_FILE
       I_BEGIN_COL             = V_BCOL
       I_BEGIN_ROW             = V_BROW
       I_END_COL               = V_ECOL
       I_END_ROW               = V_EROW
     TABLES
       INTERN                  = TA_EXCEL
     EXCEPTIONS
       INCONSISTENT_PARAMETERS = 1
       UPLOAD_OLE              = 2
       OTHERS                  = 3.
ENDFORM.                    " EXCEL_UPLOAD
*&      Form  EXCEL_CONVERSION
*       text
*  -->  p1        text
*  <--  p2        text
FORM EXCEL_CONVERSION .
   if ta_excel is NOT INITIAL.
     sort ta_excel by row col.
     clear wa_excel.
     clear wa_GR_PO.
     LOOP AT ta_excel INTO wa_excel.
       move wa_excel-col to v_index.
       ASSIGN COMPONENT v_index OF STRUCTURE wa_GR_PO to <fs>.
       if sy-subrc = 0.
         move wa_excel-value to <fs>.
       ENDIF.
       at END OF row.
         append wa_GR_PO to ta_GR_PO.
         clear wa_GR_PO.
       ENDAT.
     ENDLOOP.
   else.
     MESSAGE 'no data for conversion' type 'I'.
   ENDIF.
ENDFORM.                    " EXCEL_CONVERSION
*&      Form  NO_RECORDS
*       text
*  -->  p1        text
*  <--  p2        text
FORM NO_RECORDS .
   DESCRIBE TABLE ta_GR_PO LINES v_lines.
   if v_lines = 0.
     MESSAGE 'NO RECORDS TO UPLOAD' TYPE 'E'.
   ENDIF.
ENDFORM.                    " NO_RECORDS
*&      Form  BAPI_ASSIGNMENT
*       text
*  -->  p1        text
*  <--  p2        text
FORM BAPI_ASSIGNMENT .
   IF TA_GR_PO IS NOT INITIAL.
     LOOP AT TA_GR_PO INTO WA_GR_PO.
       gm_item-PO_NUMBER = wa_gr_po-ebeln.
       GM_ITEM-STGE_LOC = WA_GR_PO-LGORT.
       GM_ITEM-PO_ITEM = WA_GR_PO-EBELP.
       GM_ITEM-NO_MORE_GR = 'X'."WA_GR_PO-XFELD'.
*      GM_SER-SERIALNO = WA_GR_PO-GERNR.
       gm_item-NO_MORE_GR =  1.
       gm_item-ENTRY_QNT = 2.
       gm_item-MOVE_TYPE = 101.
*      gm_item-MVT_IND = 'B'.
       gm_item-plant = 'P001'.
       gm_item-move_stloc = 'FG01'.
*      GM_ITEM-SPEC_STOCK = 'K'.
       APPEND GM_ITEM.
       APPEND GM_SER.
     ENDLOOP.
    ELSE.
      MESSAGE 'DATA IS NOT UPLOADED' TYPE 'I'.
    ENDIF.
ENDFORM.                    " BAPI_ASSIGNMENT
*&      Form  BAPI_FM
*       text
*  -->  p1        text
*  <--  p2        text
FORM BAPI_FM .
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
   EXPORTING
     GOODSMVT_HEADER               = gm_head
     GOODSMVT_CODE                 = gm_code
*   TESTRUN                       = ' '
*   GOODSMVT_REF_EWM              =
  IMPORTING
    GOODSMVT_HEADRET              = gm_ret
*   MATERIALDOCUMENT              =
*   MATDOCUMENTYEAR               =
   TABLES
     GOODSMVT_ITEM                 = gm_item
    GOODSMVT_SERIALNUMBER         =  gm_ser
     RETURN                        = ta_bapireturn
*   GOODSMVT_SERV_PART_DATA       =
*   EXTENSIONIN                   =
if ta_bapireturn-type = 'S'.
     write:/ icon_green_light as icon,
             'success: Material document',gm_ret-mat_doc,  'is created for the GOODS RECEIPT- po number : ', wa_gr_po-ebeln,
           / 'reason:' , ta_bapireturn-message.
ELSEIF ta_bapireturn-type = 'E'.
     write:/ icon_red_light as icon,
             'error: Material document',gm_ret-mat_doc , 'is not created for the GOOD RECEIPT- po number : ', wa_gr_po-ebeln,
           / 'reason:' , ta_bapireturn-message.
ENDIF.
ENDFORM.                    " BAPI_FM

Similar Messages

  • BAPI for MIGO with respect to Outbound delivery or Stk trfer pur order

    please let me know is there any standard BAPI for MIGO transaction with respect to Outbound delivery or Stock transfer purchase order

    try these...
    BAPI_OUTB_DELIVERY_CONFIRM_DEC
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    BAPI_OUTB_DELIVERY_SPLIT_DEC

  • How to create an RFC for MIGO transaction?

    How to create an RFC for MIGO transaction?
    I want my RFC to accept all details as accepted in MIGO transaction.
    For the entered PO no, display the materials against it and allow user to enter the quantity for the same.
    Then the user should be able to post the PO by executing the RFC.
    Kindly revert asap.
    Thanx in advance,
    Bhakti

    Put good movement header data in structure header
      l_header-pstng_date = sy-datum.
      l_header-doc_date = sy-datum.
      l_header-ver_gr_gi_slip = space.
    Assign goods movement code
      l_wa_goodsmvt_code-gm_code = c_gm_code.
    Add material, plant, and other line item details in
    goods movement item table
      l_wa_goodsmvt_item-material = l_wa_selected-matnr.
      l_wa_goodsmvt_item-plant = l_wa_selected-werks.
      l_wa_goodsmvt_item-stge_loc = l_wa_selected-lgort.
      l_wa_goodsmvt_item-batch = l_wa_selected-charg.
      l_wa_goodsmvt_item-move_type = l_wa_selected-mov_type.
      l_wa_goodsmvt_item-entry_qnt = l_wa_selected-deviceid.
      l_wa_goodsmvt_item-entry_uom = l_wa_selected-meins.
      l_wa_goodsmvt_item-move_plant = l_wa_selected-zwerks.
      l_wa_goodsmvt_item-move_stloc = l_wa_selected-zsloc.
      l_wa_goodsmvt_item-move_batch = l_wa_selected-rec_batch.
      l_wa_goodsmvt_item-serialno_auto_numberassignment = space.
      APPEND l_wa_goodsmvt_item TO l_i_goodsmvt_item.
      CLEAR l_wa_goodsmvt_item.
      l_wa_serial_num-matdoc_itm = l_c_mat_doc_item.
      l_wa_serial_num-serialno = l_wa_selected-sernr.
      APPEND l_wa_serial_num TO l_i_serial_num.
      CLEAR l_wa_serial_num.
    To call BAPI BAPI_GOODSMVT_CREATE to transfer material of transfer
    type one step
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = l_header
          goodsmvt_code         = l_wa_goodsmvt_code
        IMPORTING
          goodsmvt_headret      = l_goodsmvt_headret
        TABLES
          goodsmvt_item         = l_i_goodsmvt_item
          goodsmvt_serialnumber = l_i_serial_num
          return                = l_i_return.
    cheers
    Aveek

  • Validation of profit center for MIGO transaction

    Hi!
    For MIGO transaction I want to restrict users of one profit center to post for another profit center.
    I have tried it with GGB0 , OB28 as well as OKC7 but i was unable to do it.
    please help me out with details.
    thanks
    Amit

    hi! Eli Klovski 
    Validation in GGB0 is set under financial accounting head and under line item.
    In the prerequisite of  GGB0 i have mentioned BSEG-KOSTL ='HO' where HO is the cost center.
    under check subheader I have mentioned SYST-UNAME = 'UDAY' where UDAY is the user name which is set for cost center HO and  the message is set as 'UDAY is set for HO'.
    message type is 'E'.
    thanks
    Amit

  • In Which Table  I Will get Reference Document for MIGO Transaction

    Hai Experts
    In Which Table  I Will get Reference Document for MIGO Transaction
    Regards
    Jagadish

    Hi,
    The 2 main tables for this MIGO Transaction are ,
    MKPF - Header table
    MSEG -  Item table
    Reference Document is XBLNR.
    Regards,
    Raj.

  • BAPI for FRFT_B Transaction

    Hi there,
    I would like to know the BAPIs that can be used for the transactions FRFT_B ("Fast Entry with Repetitive Codes - Bank to Bank Transfer").
    Does anybody know a BAPI for this transaction?
    Thank you,
    Janete

    hi,
    To know the BAPI's for a particular transaction generally we follow the following steps.
    1. Find out the package of the transaction.
    Start FRFT_B  go to system --> status.
    Double click on transaction
    Note Package name for that particular transaction.
    Open this package in SE80
    Open business engineering-->Business object types
    Find the BO which sounds the most appropriate
    But there are no Business Objects for FRFT_B transaction.
    There is another method to find BAPIs
    Start FRFT_B go to system-->status
    Double click transaction FRFT_B
    Double click on package
    Read the application component. (this is FI-BL-PT   Payment Transactions)
    Then open the transaction BAPI
    Financial Accounting-> Bank Accounting->Payment Request-> Start Payment
    By this you can find the BAPI for a transaction.
    Hope this would be helpful for you.
    Regards,
    Supriya.
    Edited by: Supriya.ch on Jan 30, 2012 2:34 PM

  • BADI FOR MIGO TRANSACTION

    HI EXPERTS,
    HOW CAN I ADD TWO SCREEN FIELDS FOR MIGO TRANSACTION?
    HOW CAN THE TWO SCREEN CAN VALIDATE DATA FROM PURCHASE ORDER NO ENTERED?
    CAN ANY ONE FIND A SOLUTION AND HELP ME THIS.

    Hi,
    You may create an implementation for the badi in SE19. Then the attributes will be available during runtime for the method, and you may use those to validate the data.
    The BADI MB_DOCUMENT_BADI and method MB_DOCUMENT_BEFORE_UPDATE also triggred during MIGO and the structures XMKPF, XMSEG contains the runtime values for the document.
    Regards,
    Renjith Michael.
    http://www.sourceveda.com/page4.htm

  • Exit or Badi for Migo transaction for given condition

    Hi,
    I need exit or Badi for MIGO transaction for the following condition ( When the goods receipt for the PO is initiated, prior to posting the accounting document).
    Please let me know
    Regards
    Ramesh

    Hi
    In rel 4.6C you can find these BADIs:
    - MB_DOCUMENT_BADI or MB_DOCUMENT_UPDATE
    and these exits: MBCF0002, MB_CF001
    Max

  • Update qty in delivery note through bapi for migo

    hi im using bapi for migo upload
    my requiremnt is to update QTY IN DELIVERY NOTE in migo.
    i got the folowing error if i dont pass the quantity.
    qty and/0r delivery indicator or final issue indicator missing
    if i pass the quantity field then it is changing quantity in unity of entity and qty in SKU i dnt want to change this field
    here is my code,
    gmcode-gm_code = '01'.
        ls_GOODSMVT_HEADER-pstng_date = tdate . "sy-datum.
        ls_GOODSMVT_HEADER-doc_date   = sy-datum.
        ls_GOODSMVT_HEADER-pr_uname   = sy-uname.
    loop at itab.
      ls_GOODSMVT_HEADER-REF_DOC_NO = itab-LFSNR.
      it_goodsmvt-move_type  = itab-BWART.
      it_goodsmvt-po_number  = itab-EBELN.
      it_goodsmvt-PO_ITEM  = '10'.
      it_goodsmvt-STGE_LOC  = itab-LGORT.
    it_goodsmvt-QUANTITY  = itab-LSMNG.
    it_goodsmvt-BASE_UOM = 'KG'.
    it_goodsmvt-material = 'RC1092'.
    it_goodsmvt-entry_qnt = itab-LSMNG.
    it_goodsmvt-ENTRY_UOM  = 'KG'.
      it_goodsmvt-mvt_ind = 'B'.
      it_goodsmvt-plant = 'G001'.
    it_goodsmvt-NO_MORE_GR = 'X'.
    append it_goodsmvt.
    clear it_goodsmvt.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        goodsmvt_header               = ls_GOODSMVT_HEADER
        goodsmvt_code                 = gmcode-gm_code
      TESTRUN                       = ' '
      GOODSMVT_REF_EWM              =
    IMPORTING
      GOODSMVT_HEADRET              =
       MATERIALDOCUMENT              =  lf_MATERIALDOCUMENT
       MATDOCUMENTYEAR               = lf_MATERIALDOCYEAR
      tables
        goodsmvt_item                 = it_goodsmvt
      GOODSMVT_SERIALNUMBER         =
        return                        = return
      GOODSMVT_SERV_PART_DATA       =
      EXTENSIONIN                   =
    if return-type ca 'EA'.
          rollback work.
          message id '26' type 'I' number '000'
          with return-message.
        else.
          call function 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
          wait up to 5 seconds.
        endif.
    select * fROM mseg
          INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
                             where mblnr = lf_MATERIALDOCUMENT and
                                       MJAHR = lf_MATERIALDOCYEAR.
      LOOP AT IT_MSEG INTO WA_MSEG.
        IF WA_MSEG-LSMNG IS INITIAL.
          wa_mseg-lsmng = ITab-LSMNG.
          UPDATE MSEG from wa_mseg.
          commit work.
          wait up to 5 seconds.
        ENDIF.
      ENDLOOP.
    ENDLOOP.

    It is been done by implementing one implicit enhancement in FM: MAP2I_B2017_GM_ITEM_TO_IMSEG
    I have added the below functionality at the end of the function module.
    Just i have maped the ERFMG i.e ent_qnt(Received quanity) with LSMNG i.e qty.in del note
    All best for others.
    $$-Start: (1)----
    $$
    ENHANCEMENT 1  Z_EV_IMP_GOODSMOVEMENT.    "active version
    Populate the delivery note quantity and UoM
    IF IMSEG-ERFMG IS NOT INITIAL.
      MOVE IMSEG-ERFMG TO IMSEG-LSMNG.
      MOVE IMSEG-ERFME TO IMSEG-LSMEH.
    ENDIF.
    ENDENHANCEMENT.
    Thanks,
    Mahesh.Gattu
    Edited by: Maheshkumar gattu on Dec 3, 2010 4:35 PM

  • FM / BAPI for FBR2 transaction.

    can anyone tell me
    FM / BAPI for FBR2 transaction.

    Dear:
                Please check
                BAPI_ACC_DOCUMENT_REV_CHECK
                Regards

  • Is there any BAPI for FBS1 Transaction

    Hi,
    Is there any BAPI for FBS1 transaction instead of using BDC.
    Regards,
    Aravind

    Hi Aravind ,
    I'm afraid that it's not possible to do it through BAPI ( because of he specificity of this txn ), you have to use either RFBIBL00 or your own BDC.
    Hope this helps,
    Erwan

  • Bapi for MIGO that can update freight supplier

    dear all
    we are presently using ALE_GOODSMVT_CREATE to create a migo document.
    the requirement now is to update the frieght supplier too.
    this present bapi is not able to update the supplier.
    does any one faced this problem before and if yes how did it got overcome ??
    regards

    check this link: It may not be exactly what you are looking for but will guide you:
    BAPI for MIGO
    cheers
    Aveek

  • Bapi for the transaction FBRA, FB08, FB01 anf FD02

    hi,
    can any one please help me with BAPI for the following transaction?
    FBRA - reset cleared items
    FB08 - reversal of the documents
    FB01 - post documents
    FD02 - change customer.
    regards kriti

    Hi
    Copy the below  program in se38 and execute the program and along with the transaction code you need to specify the program name to obtain the program name all you have to do is execute the t-code and go to system--> status and copy the program name from the screen and paste it in the above program.
    tables : tstc,
             tadir,
             modsapt,
             modact,
             trdir,
             tfdir,
             enlfdir,
             sxs_attrt ,
             tstct.
    data :
       jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode,
    p_pgmna like tstc-pgmna .
    data wa_tadir type tadir.
    start-of-selection.
      if not p_tcode is initial.
        select single * from tstc where tcode eq p_tcode.
      elseif not p_pgmna is initial.
        tstc-pgmna = p_pgmna.
      endif.
      if sy-subrc eq 0.
        select single * from tadir
        where pgmid = 'R3TR'
        and object = 'PROG'
        and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
        if sy-subrc ne 0.
          select single * from trdir
          where name = tstc-pgmna.
          if trdir-subc eq 'F'.
            select single * from tfdir
            where pname = tstc-pgmna.
            select single * from enlfdir
            where funcname = tfdir-funcname.
            select single * from tadir
            where pgmid = 'R3TR'
            and object = 'FUGR'
            and obj_name eq enlfdir-area.
            move : tadir-devclass to v_devclass.
          endif.
        endif.
        select * from tadir into table jtab
        where pgmid = 'R3TR'
        and object in ('SMOD', 'SXSD')
        and devclass = v_devclass.
        select single * from tstct
        where sprsl eq sy-langu
        and tcode eq p_tcode.
        format color col_positive intensified off.
        write:/(19) 'Transaction Code - ',
        20(20) p_tcode,
        45(50) tstct-ttext.
        skip.
        if not jtab[] is initial.
          write:/(105) sy-uline.
          format color col_heading intensified on.
          * sorting the internal table
       sort jtab by object.
          data : wf_txt(60) type c,
          wf_smod type i ,
          wf_badi type i ,
          wf_object2(30) type c.
          clear : wf_smod, wf_badi , wf_object2.
          * get the total smod.
          loop at jtab into wa_tadir.
            at first.
              format color col_heading intensified on.
              write:/1 sy-vline,
              2 'Enhancement/ Business Add-in',
              41 sy-vline ,
              42 'Description',
              105 sy-vline.
              write:/(105) sy-uline.
            endat.
            clear wf_txt.
            at new object.
              if wa_tadir-object = 'SMOD'.
                wf_object2 = 'Enhancement' .
              elseif wa_tadir-object = 'SXSD'.
                wf_object2 = ' Business Add-in'.
              endif.
              format color col_group intensified on.
              write:/1 sy-vline,
              2 wf_object2,
              105 sy-vline.
            endat.
            case wa_tadir-object.
              when 'SMOD'.
                wf_smod = wf_smod + 1.
                select single modtext into wf_txt
                from modsapt
                where sprsl = sy-langu
                and name = wa_tadir-obj_name.
                format color col_normal intensified off.
              when 'SXSD'.
                * for badis
             wf_badi = wf_badi + 1 .
                select single text into wf_txt
                from sxs_attrt
                where sprsl = sy-langu
                and exit_name = wa_tadir-obj_name.
                format color col_normal intensified on.
            endcase.
            write:/1 sy-vline,
            2 wa_tadir-obj_name hotspot on,
            41 sy-vline ,
            42 wf_txt,
            105 sy-vline.
            at end of object.
              write : /(105) sy-uline.
            endat.
          endloop.
          write:/(105) sy-uline.
          skip.
          format color col_total intensified on.
          write:/ 'No.of Exits:' , wf_smod.
          write:/ 'No.of BADis:' , wf_badi.
        else.
          format color col_negative intensified on.
          write:/(105) 'No userexits or BADis exist'.
        endif.
      else.
        format color col_negative intensified on.
        write:/(105) 'Transaction does not exist'.
      endif.
    at line-selection.
      data : wf_object type tadir-object.
      clear wf_object.
      get cursor field field1.
      check field1(8) eq 'WA_TADIR'.
      read table jtab with key obj_name = sy-lisel+1(20).
      move jtab-object to wf_object.
      case wf_object.
        when 'SMOD'.
          set parameter id 'MON' field sy-lisel+1(10).
          call transaction 'SMOD' and skip first screen.
        when 'SXSD'.
          set parameter id 'EXN' field sy-lisel+1(20).
          call transaction 'SE18' and skip first screen.
      endcase.
    Regards
    Pavan

  • Enhancement for Automatic GI  for MIGO transaction

    Hey Folks ,
    My requirement is as :
    I wanted to do automatic GI of the goods once their GR is done and dat data should also be updated to sap tables   .Now a days we are using MIGO transaction for GI and GR both ,I have found a BADI for MIGO also but i am unable how to procede since GR and GI are in single trancation code .
    We are also not using PP module so backflushing wont work here  .
    Automatic GI should trigger after saving the GR entries  .
    Regards
    Edited by: swapnil kamble on Jan 13, 2010 5:53 PM
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Jan 13, 2010 12:04 PM

    Hi Renjith,
    You can check the following link, Hope it helps you to some extent:
    Re: Implement unique serial number within a client
    And you can also try user exit EXIT_SAPLIPW1_001 for Automatic serial number assignment.

  • Need a BADI/ exit for MIGO transaction

    Hi,
    I need a BADI / exit for tha transaction MIGO. My requirement is before displaying the materials in the item tab, check whether the user has authorization for that material or not. If he has no authorization, give error message. This should be done for all types of documents.
    Please let me know if you need more information.
    thanks,
    Kishore

    hi,
    You can have the authorization for the inventory management via authorisation..
    Check the path: SPRO --> MM --> Purchasing --> Inv. management nad physical inventory --> Authorization management  --> Maintain roles and assign users....
    Regards
    Priyanka.P

Maybe you are looking for

  • How do you create an AcrobatXI zip file in windows 8.1?

    How do you create an AcrobatXI zip file in windows 8.1? from acrobat.com docs?  Sorry Not sure what community to ask this in this community?  The email provider I was using didn''t seem to want to accept it through Adobe Send the first time and since

  • Flash Builder 4 issue?

    Anyone else having this issue? Launching (57%) takes 20 seconds for FB4 to compile Clean FB4 install. Application Server Type PHP. No functions, no nothing, just 1 simple label. The magic number always seems to be 57% what is happening at 57%??? Then

  • Cannot re-install my copy of CS4

    cannot re-install my copy of CS4 from the adobe site.  It is registered, and i can see it under "My Products"  with the serial number, but it will not let me re-download the software.

  • How to embed an iframe

    I have an iframe i need to embed in my animation, but i can't figure out where to put the code for it. I have a rectangle that i want to hold the iframe, but am not sure how to go about this. any help would be much appreciated.

  • Docking station besides Bookendz

    Are there any other docking stations besides the BookEndz for the MacBook Pro 15" (Intel) with Firewire 800? Or did I miss it somewhere? I apologize in advance if this question has been asked before. Thanks!