Description of  FISTL field From MSEG

Hello,
From Where i can get the descriptionof Field MSEG- FISTL.
Thanks & Regards,
Jahnavee Trivedi

check FMFCTRT
You have to use mseg-belnr to get the financial management area and then pass both to table FMFCTRT
Pass belnr to mkpf and get FIKRS.

Similar Messages

  • Getting the 'Description' of a field from an Access DB

    Hi,
    How can we get rhe contents of the 'Description' of a field in an Access DB?

    For instance,
    DatabaseMetaData dbmd = con.getMetaData();
    ResultSet rs=dbmd.getColumns(null,null,"%","%");
    You should read JDK API about DatabaseMetaData.getColumns to know more about what in that rs object:)

  • FM to get short description of the fields in standard table.

    Hello all,
    How to get the short description of the corresponding field name in the standard table using the field name and table name??
    Thanks for your understanding..
    Kindly help me..anyone..please...

    Use view DD03VT.
    Use a select query to fetch the required description of the field from view DD03VT passing fields TABNAME, FIELDNAME, DDLANGUAGE in WHERE condition
    Using this you can get any text ShortFieldLabel, Medium Fld Labl, Long Fld Label of a field

  • Description of field from data element in table control

    hello people !!! I need help !!
    I’m using a table control in my module pool program. I create this table through wizard, taking the fields from an internal table. This internal table was defined like this:
    Table Control ; posting items
    DATA: t_postitems  TYPE stucture_fd OCCURS 0 WITH HEADER LINE.
    Where  <b>stucture_fd</b> is strucuture with the fields.
    The problem that I have is that the titles of the fields does not take their description from the data element.
    How I create this table control from the internal table and that takes the description from the data element? It is very important this, because this development will be used in different languages.
    From already I am thanking for any answer.
    Thank so much.
    Best regards, Esther.

    Gracias, es mas facil para mi en espanol.
    tables: tab_prb.
    types: begin of <b>ti</b>.
               include structure <b>tab_prb</b>.
    types: end of <b>ti</b>.
    data: <b>ti_b</b>kpf type table of ti,
             <b>wa_bkpf</b> type ti.
    Explicacion:
    tab_prb, es una tabla transparent que contiene la estructura <b>struct_fd</b> que tiene los campos mas un flag para la seleccion de fila (flag).
    Defini esta tabla transparente, para que los campos tomen su decripcion desde los elementos de datos.
    Si creo el TB directo de la tabla tab_prb, no me permite seleccionar el campo flag como campo de seleccion, cuya funcion es marcar linea simple.
    Si yo hago la definicion anterior en mi programa, cuando creo el TB, va todo bien, hasta <b>ti_bkpf</b> que seria mi tabla interna, pero cuando me pide el work area, le ingreso <b>wa_bkpf</b> me indica que no esta definido en mi programa o ne es una estrucutura.
    Espero haber aclarado un poco mi respuesta.
    Muchas gracias !!!
    Esther.-

  • Updating custom mseg fields from CO11N screen

    Hello all,
    When i save an order from co11n screen, it creates a record in mseg table.
    I created some custom fields in mseg table and i want to fill them during this co11n screen fills the mseg table, but i couldnt find the correct user exit or enhancement.
    Someone has done this before?

    Put some debug statement and check the root cause.
    http://oracleanil.blogspot.com/2009/04/favourite.html
    And if you are running page locally then use
    System.out.println("Test");Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Urgent Requirement : How to retrieve Description field from Info type 1002

    Hi,
    My requirement is to fetch description field from infotype 1002 which will be stored in text format.
    I think this will be stored in TTEXT table but am not able to fetch using that.
    Can anyone please help me out in this.
    Thanks in Advance,
    Sarika.

    Try out following tables
    T582ITOPERT               Infotype Operation Texts
    T582S                          Infotype Texts          
    T591S                          Subtype Texts           
    T777U                          Subtype Texts

  • Correct process for updating CRM Z fields from ERP Z field.

    I currently have an accounts block with a field (Region) which has a drop-down list box containing values, plus another field containing the description/name of the region. Based on other fields within this same block I need to replace the Region and its description with a single value which should be sourced from an ERP Z table, or joined Z tables if I include the description as well.
    I believe that I know how to change the attributes of the Region field using the AET, although I can't see anything which displays or allows me to displable the drop-down list of values, although I'm sure I've seen a video demonstrating the AET being used to create a list of lookup values.
    Anyway, what I need to do is to change the Region field, making it and its description field Read-only, remove the list of values option so there's no drop-down list box against the Region field, and also update this field from an ERP Z field. Can this all be done using either the AET or EEWB, or is there some code required to be manually entered, and if so, what transactions need to be used to do this?.
    Any help would be much appreciated.
    Jason

    MIcha,
    With regards to youe 9 steps that gave.
    I am looking at component BP_ADDR and view BP_ADDR/StandardAddress. However, there are no enhancements shown when I click on the [Enhance Component] button. So I assume that I need to create an enhancement in order to change the code. Does this enhancement create am implementation or does it create replacement code?. The reason for asking this is that the code shown against the View_controller->Content->Content_Nodes->STANDARDADDRESS->Attributes->STRUCT.REGION->GET_V_REGION method is as follows::
    METHOD GET_V_REGION.
      DATA:
        lv_fieldname            TYPE name_komp,
        lt_fieldname_additional TYPE crmt_attr_name_tab.
      lv_fieldname = 'COUNTRY'.                                 "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      lv_fieldname = 'COUNTRY_TEXT'.                            "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      lv_fieldname = 'REGION_TEXT'.                             "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      CALL METHOD cl_crm_uiu_bp_cust_get=>GET_VHELP_FOR_REGION_VATTR
        EXPORTING
          iv_index                = iv_index
          it_fieldname_additional = lt_fieldname_additional
        RECEIVING
          rv_valuehelp_descriptor = rv_valuehelp_descriptor
        EXCEPTIONS
          OTHERS                  = 0.
    ENDMETHOD.
    The above call gets the value helps and if I replace this code how can I also ensure that the value-help pull down icon does not appear next to the Region field, as all I'm attempting to do here is replace the code. In other words where do I update the screen to say that this field is no longer a value help field?. I wondered if this code actuallypoints the pull-down icon next to the Region field, although I suspect all it does is physically display the list of values and allows you to select one.
    So, I need to determine how I can create an enhancement. I've just been trying different things in the BSP_WD_CMPWB tranx but have not found out yet how this is achieved, although I think this is achieved via the creation of a new View set, but am not 100% sure.
    Jason

  • Perfomance Tuning to fetch data from mseg

    I am writing an RFC to fetch data of reason for rejection code from mseg table, my query is like this:
    Select lfbnr grund sgtxt bwart matnr into corresponding fields of itreason From mseg
    where mseg~mblnr IN zz_mblnr
    AND    mseg~mjahr IN zz_mjahr
    AND    mseg~zeile IN zz_zeile
    AND    mseg~insmk EQ 'X'
    AND    mseg~lfbnr EQ itab-mblnr
    AND    mseg~grund NE space.
    Please note that zz_mblnr, zz_mjahr and zz_zeile are defined as RANGES in the RFC and passed in the query as empty primary keys.
    The query works perfect in QAS system where as in PRD system it takes considerable amount of time to fetch data.
    I would like to increase the performance of this query.
    I have two solutions in my mind to do it but prefer if any one share thoughts on it too.
    One solution is to create secondary indecies on lfbnr and grund fields in mseg.
    The other solution is to get the reference document number from qamb table and then fetch the grund and sgtxt from mseg.
    I look forward to getting reply from you.
    Thanks in anticipation.
    Regards,

    Hi All,
    VPT - Volume Performance Testing team.
    Yes, I was also of the same opinion expressed by you. However, here is the reasoning given by them. Take an example like this:
    Field1     Field2     Field3     Field4     Field5
    Key Field     KeyField     KeyField          
    1001     9999     5555     ABCD     
    1001     9999     5556     ABCD     
    1001     9999     5557     ABCD     X
    1001     9999     5558     ABCD     
    1001     9999     5559     ABCD     
    1001     9999     5560     ABCD     
    1001     9999     5561     ABCD     X
    1001     9999     5562     ABCD     
    1001     9999     5563     ABCD     
    1001     9999     5564     ABCD     X
    1001     9999     5565     ABCD     
    1001     9999     5566     ABCD     
    1001     9999     5567     ABCD     
    If you have a query which says FIELD1 =1001 and FIELD2 = 9999 and FIELD5 NE 'X', you are spending more time reading more records with blank Field5 value. Instead if you ignore that in your query, your data retrieval is much faster.
    Agreed, it should taken on a case by case. In this case the field in question is a Non-Key field.
    Regards,
    Raj

  • I need HELP! I want to populate fields from a data connection...

    I am new to livecycle and am having problems making this work...
    I have an xml data table that is 5 columns wide and 1000 rows deep. (So too much data for list boxes)
    The data connection comes in looking like this:    - DataConnection
                                                                                   - (Ordered Group)
                                                                                        -Row
                                                                                              -(Ordered Group)
                                                                                                    Job
                                                                                                    Customer
                                                                                                    Part Number
                                                                                                    Rev
                                                                                                    Description
    When I pull Row into the form it makes a subform with the 5 fields as above.
    When I preview this it automatically pulls in the first record from the data source...I want to be able to fill in Job manually and have the other
    fields automatically pull in the appropriate information from the correct row in the data source. I have not been able to do this! Can anyone
    help me?
    Thank You,
    CLC

    Hello,
            I am sorry to say that, i felt hard in understanding the requirement. Can you please pass over the working copy to my email address [email protected], i try to get what you are looking for.
         Please find a sample that you can download from the link below, which demonstrates populating fields from a data connection. please take a look at it and i hope this will help you.
    https://acrobat.com/#d=5TstZ2VeptoSs6IAZ*81Yw
    thanks,
    Rajesh

  • Visibility description text form fields in Acrobat Pro

    Hi there,
    I'm making a lot of forms for a client of mine. The major part I'm doing from indesign CC, but a couple of specific alterations I have to do in Acrobat Pro. There is one thing I can't figure out, lets see if I can describe it correctly;
    One of the 'forms' is a certificate clients of my clients will get. In this certificatie is a graphic area in which the account manager, who makes the sell, has to type in the company name of the new client.
    So I made a text field for this, but here's the thing:
    I'd like to display the description of the field (which is 'Type in company name') visible in the field in acrobat.
    1 account manager opens form
    2 sees where to type the company name
    3 types
    4 the description will be invisible with printing
    It would be even better if the description tekst becomes invisible after typing, but maybe that's a bridge too far?
    Can anyone help me with this or maybe tip me on an alternative?
    Thank you!
    Regards, Liek

    This is for a text field that you create in Acrobat, whether the form is used offline or online. The script is a custom Format script, which you can place by bringing up the Properties dialog for the field, select the Format tab, set a format category of Custom, and you should see where you can enter the script. Change the string "Instructional text goes here" to the text you want to display when the field is blank.

  • [Performance Issue] Select from MSEG

    Hi experts,
    Need your help on how to improve the performance in the select from MSEG, it takes about 30 minutes to just finish the select. Thanks!
        SELECT mblnr
               mjahr
               zeile
               bwart
               matnr
               werks
               lgort
               charg
               shkzg
               menge
               ummat
               lgpla
          FROM mseg
          INTO CORRESPONDING FIELDS OF TABLE i_mseg2
           FOR ALL ENTRIES IN i_likp
          WHERE bwart IN ('601','602','653','654')
           AND matnr IN s_matnr
           AND werks IN s_werks
           AND lgort IN s_sloc
           AND lgpla EQ i_likp-vbeln.

    store all the vbeln to ranges.
    ranges:r_vbeln for i_likp-vbeln.
    r_vbeln-option = 'EQ'.
    r_vbeln-sign = 'I'.
    loop at i_likp.
    r_vbeln-low = i_likp-vbeln.
    append r_vbeln.
    endloop.
    sort r_vbeln ascending
    delete adjacent duplicates from r_vbeln.
    then modify the fetch as below.
    donot use a loop to fetch data from mseg.
    SELECT mblnr mjahr zeile bwart matnr werks lgort charg shkzg menge ummat lgpla
    FROM mseg client specified INTO CORRESPONDING FIELDS OF TABLE i_mseg2
    FOR ALL ENTRIES IN i_likp
    where mandt = sy-mandt
    and (bwart = '601' or bwart = '602' or bwart = '653' or bwart = '654' )
    AND matnr IN s_matnr
    AND werks IN s_werks
    AND lgort IN s_sloc
    AND lgpla in r_vbeln.
    there is another table where u can get this data...i,ll let u know shortly...
    try with this if useful
    reward points....

  • PROLEM IN RETRIVING MATNR FROM MSEG IN STOCK REPORT

    HI FRIENDS ,
    IAM DOING A REPORT IN WHICH I HAVE TO DISPLAY THOSE MATERIAL NUMBER WHICH HAS UNRESTRICTED STOCK AS OF TODAY
    AND ALSO THOSE WHICH HAVE TRANSACTION DONE IN LAST ONE YEAR THAT I THINK HAVE TO TAKE FRM MKPF AND MSEG ,
    I SELECTED MATNR FROM MARD AND ALSO GAVE THE LOGIC WHICH IS BELOW BUT GETTING PROBLEM TO HAVE THOSE MATNR WHICH ARE
    TRANSACTION DONE.
    NEED HELP CAN GIVE ME SUGGESTION
    SELECT mard~matnr
    mard~werks
    mard~lgort
    mard~labst
    mara~mtart
    FROM mard
    INNER JOIN mara ON
    maramatnr = mardmatnr
    INNER JOIN MAKT ON
    MAKTMATNR = MARDMATNR
    INTO TABLE imard
    WHERE mard~matnr IN s_matnr
    AND mara~mtart IN s_mtart.
    AND SPRAS = SY-LANGU.
    IF imard[] IS NOT INITIAL .
    SELECT makt~matnr
    makt~maktx
    FROM makt
    INTO TABLE imakt FOR ALL ENTRIES IN imard
    WHERE matnr = imard-matnr
    AND spras = sy-langu.
    ENDIF.
    SELECT mkpf~mblnr
    mkpf~budat
    FROM mkpf INTO TABLE imkpf .
    IF imkpf IS NOT INITIAL.
    SELECT mseg~mblnr
    mseg~matnr
    mseg~werks
    mseg~bwart
    mseg~menge
    mseg~shkzg
    FROM mseg INTO TABLE imseg FOR ALL ENTRIES IN imkpf
    WHERE mblnr = imkpf-mblnr.
    ENDIF.
    LOOP AT imard.
    CLEAR itab.
    IF imard-labst > 0.
    itab-matnr = imard-matnr.
    itab-werks = imard-werks.
    ELSE.
    CONTINUE.
    ENDIF.
    READ TABLE imakt WITH KEY matnr = imard-matnr.
    IF sy-subrc = 0.
    itab-maktx = imakt-maktx.
    ENDIF.
    APPEND itab.
    ENDLOOP.
    PLS REPLY ME .
    FARUKH

    hi Farukh,
    i see the field as DLINL as the date of Last Posted Count for Unrestricted-Use Stock .. which is found in table MARD .. I think in the initila select you can add an additional chec on that field .. if it falls in the last year..
    regards
    satesh

  • Updating custom fields to MSEG through MIGO

    Hi,
    I got a requirement to add a tab with custom fields in MIGO transaction, which I did using BADI MB_MIGO_BADI
    and requirement also says to extend table MSEG with custom fields and store the values in MSEG.
    I have gone through example implimentation and updated MSEG in similar way. IS it a good approach to extend MSEG table? I read one thread says we can't extend MSEG table with custom fields. is it true?
    Goods receipt will be done only through MIGO to restrict inconsistensies in material documents.
    One more question.
    How to restrict the additional custom screen to be displayed for particular action in MIGO?
    Thanks

    Hi,
    Yes you can do it, i did it with the same BADI method to update to custom fields in MSEG table through MIGO transaction.
    Here is the steps you need to follow :-
    1. Create a append structure or you can use the CI include to add fields in MSEG table. I did it though append structure only.
    2. Create a implementaion of MB_MIGO_BADI through SE18 or SE19 transaction.
    3. Inplement the interface IF_EX_MB_MIGO_BADI methods, the details of interface implementaions are described below:-
    Attribute
    GV_VEND_LOT     Instance Attribute     Public     Type     CHAR1     'X' : Purchase order Type NB (Standard PO) found                                                                               
    GIT_MSEG     Instance Attribute     Public     Type     TY_T_MSEG     Table MSEG                                                                               
    GV_BSART     Instance Attribute     Public     Type     ESART     Purchasing Document Type                                                                               
    GV_GRMODE     Instance Attribute     Public     Type     CHAR1     X: Document is of Type GR with PO and Y : Document with Mat.                                                                               
    GWA_MSEG     Instance Attribute     Public     Type     MSEG     Document Segment: Material                                                                               
    GC_CLASS_ID     Constant     Private     Type     MIGO_CLASS_ID     Class ID for MIGO Components (External Detail Screen)     'ZIMP_MB_MIGO_BADI'
    GV_LINE_ID     Instance Attribute     Private     Type     GOITEM-GLOBAL_COUNTER     LINE_ID of Line Displayed in Detail                                                                               
    GIT_LINE_ID     Instance Attribute     Private     Type     /KYK/TRG_NUMC6     Range Table: NUMC6                                                                               
    GWA_LINE_ID     Instance Attribute     Private     Type     /KYK/SRG_NUMC6     Range Structure: NUMC6                                                                               
    GC_X     Constant     Private     Type     CHAR1     'X' : Select     'X'
    GC_BSART     Constant     Private     Type     ESART     Purchasing Document Type     'NB' 
    IF_EX_MB_MIGO_BADI~INIT
    METHOD if_ex_mb_migo_badi~init.
      IF gv_grmode = gc_x.
    Regristration of BAdI-Implementation:
    Append class attribute GF_CLASS_ID (='ZIMP_MB_MIGO_BADI') to
    regristration table.
        APPEND gc_class_id TO ct_init.
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~PBO_DETAIL
    METHOD if_ex_mb_migo_badi~pbo_detail.
    Lines added to do display Vendor lot tab in the item level
    Only for Purchase order type NB (Standard PO)
    Local constants
      DATA : lc_cprog TYPE sycprog VALUE 'ZMMM_MIGO_VENDOR_COO',
             lc_dynnr TYPE sydynnr VALUE '0100'.
            lc_heading TYPE migo_badi_heading VALUE 'Vendor Lot Number'.
    Read Line item from buffer table
    if sy-subrc =0 then only display vendor lot tab
      READ TABLE git_line_id WITH KEY low = i_line_id
      BINARY SEARCH TRANSPORTING NO FIELDS.
      IF sy-subrc EQ 0 AND ( gv_grmode IS NOT INITIAL
        AND gv_vend_lot = gc_x ).
        e_cprog   = lc_cprog. " Program name
        e_dynnr   = lc_dynnr. " Screen number
        e_heading = text-001. " Tab Heading
        gv_line_id = i_line_id. " line Item
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~PAI_DETAIL
    METHOD if_ex_mb_migo_badi~pai_detail.
      IF gv_grmode IS NOT INITIAL AND gv_vend_lot = gc_x.
    'X':  The Method LINE_MODIFY Is Processed
        e_force_change = gc_x.
    Reset the Flag for next line item selection
        CLEAR gv_vend_lot.
      ENDIF.
    ENDMETHOD.
    IF_EX_MB_MIGO_BADI~LINE_MODIFY
    METHOD if_ex_mb_migo_badi~line_modify.
      IF cs_goitem-ebeln IS NOT INITIAL.
    Look for Purchase order number from EKKO and get the Order Type.
    If the Order type is NB (Standard PO) then set the flag GV_VEND_LOT.
        SELECT SINGLE bsart FROM ekko INTO gv_bsart
          WHERE ebeln = cs_goitem-ebeln.
        IF sy-subrc EQ 0 AND gv_bsart = gc_bsart.
          gv_vend_lot = gc_x.
          IF NOT i_line_id IS INITIAL.
            gwa_line_id-low = i_line_id.
          ENDIF.
          IF git_line_id IS NOT INITIAL.
            SORT git_line_id BY low.
          ENDIF.
          READ TABLE git_line_id WITH KEY
          low = i_line_id BINARY SEARCH
          TRANSPORTING NO FIELDS.
          IF sy-subrc <> 0 AND gwa_line_id IS NOT INITIAL.
            APPEND gwa_line_id TO git_line_id.
          ENDIF.
        ELSE.
          CLEAR gv_vend_lot.
        ENDIF.
        CLEAR : gv_bsart,
                gwa_line_id.
      ENDIF.
    *************Buffer MSEG table with custom fields **********************
    *Item is Adopted in Document
      IF NOT cs_goitem-take_it IS INITIAL.
        CLEAR gwa_mseg.
        MOVE-CORRESPONDING cs_goitem TO gwa_mseg.
        APPEND gwa_mseg TO git_mseg.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_mb_migo_badi~post_document.
    Delete duplicate line item if avail in GIT_MSEG table
      SORT git_mseg BY zeile.
      DELETE ADJACENT DUPLICATES FROM git_mseg COMPARING zeile.
    To access these valu in Ennhancement Spot ZENHIMPL_MM_MB_MIGO_BADI_MB
      EXPORT : git_mseg FROM git_mseg TO MEMORY ID 'GIT_MSEG',
               gv_grmode FROM gv_grmode TO MEMORY ID 'GV_GRMODE'.
    Refresh all class content
      CLEAR : gv_vend_lot,
              gv_bsart,
              gv_grmode,
              gwa_mseg,
              gv_line_id,
              gwa_line_id.
      REFRESH : git_mseg,
                git_line_id.
    ENDMETHOD.    
    METHOD if_ex_mb_migo_badi~mode_set.
    Local Constants
      DATA : lc_a01 TYPE goaction VALUE 'A01', " Goods Receipt
             lc_r01 TYPE refdoc VALUE 'R01',   " Purchase order
             lc_a04 TYPE goaction VALUE 'A04', " Display
             lc_r02 TYPE refdoc VALUE 'R02',   " Material Document
             lc_y   TYPE char1 VALUE 'Y'.      " Indicator for Display material document
    Set mode variable for Good Receipt with Purchase order
      IF i_action = lc_a01 AND i_refdoc = lc_r01.
        gv_grmode = gc_x.
      ELSEIF i_action = lc_a04 AND i_refdoc = lc_r02.
    Set mode variable for Good Receipt with Purchase order
        gv_grmode = lc_y.
      ELSE.
        CLEAR gv_grmode.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_mb_migo_badi~publish_material_item.
      IF ls_goitem-ebeln IS NOT INITIAL.
    Look for Purchase order number from EKKO and get the Order Type.
    If the Order type is NB (Standard PO) then set the flag GV_VEND_LOT.
    This method is used to material document display
        SELECT SINGLE bsart FROM ekko INTO gv_bsart
          WHERE ebeln = ls_goitem-ebeln.
        IF sy-subrc EQ 0 AND gv_bsart = gc_bsart.
          gv_vend_lot = gc_x.
          IF NOT ls_goitem-zeile IS INITIAL.
            gwa_line_id-low = ls_goitem-zeile.
          ENDIF.
          IF git_line_id IS NOT INITIAL.
            SORT git_line_id BY low.
          ENDIF.
          READ TABLE git_line_id WITH KEY
          low = ls_goitem-zeile BINARY SEARCH
          TRANSPORTING NO FIELDS.
          IF sy-subrc <> 0 AND gwa_line_id IS NOT INITIAL.
            APPEND gwa_line_id TO git_line_id.
          ENDIF.
        ELSE.
          CLEAR gv_vend_lot.
        ENDIF.
        CLEAR : gv_bsart,
                gwa_line_id.
      ENDIF.
    ENDMETHOD.
    METHOD modify_mseg.
      DATA : lwa_mseg TYPE mseg.
    Check if buffer MSEG table is not initial
    and mode is GR with PO then only update XMSEG from GIT_MSEG
      IMPORT : git_mseg TO git_mseg FROM MEMORY ID 'GIT_MSEG',
               gv_grmode TO gv_grmode FROM MEMORY ID 'GV_GRMODE'.
      IF git_mseg IS NOT INITIAL
         AND gv_grmode = gc_x.
        SORT git_mseg BY zeile.
        LOOP AT xy_mseg INTO lwa_mseg.
    Identify the record and update XMSEG
          CLEAR gwa_mseg.
          READ TABLE git_mseg
          INTO gwa_mseg
          WITH KEY zeile = lwa_mseg-zeile BINARY SEARCH.
          IF sy-subrc EQ 0.
            MODIFY xy_mseg FROM gwa_mseg
            TRANSPORTING zvendlot zcoo WHERE zeile = gwa_mseg-zeile.
          ENDIF.
          CLEAR lwa_mseg.
        ENDLOOP.
    Reset buffer table and mode
        REFRESH git_mseg.
        CLEAR gv_grmode.
      ENDIF.
    Free memory ids
      FREE MEMORY ID : 'GIT_MSEG',
                       'GV_GRMODE'.
    ENDMETHOD.
    4. Now go to the function module MB_POST_GOODS_MOVEMENT andcall the method modify_msegfrom the implemented class ZCL_IM__MB_MIGO_BADI.
    ENHANCEMENT 110  ZENHIMPL_MM_MB_MIGO_BADI_MB.    "active version
    Data declaration for badi method
      Data : lo_ZCL_IM__MB_MIGO_BADI TYPE REF TO ZCL_IM__MB_MIGO_BADI.
      CREATE OBJECT lo_ZCL_IM__MB_MIGO_BADI.
      if sy-subrc eq 0 and xmseg[] is NOT INITIAL.
        CALL METHOD lo_zcl_im__mb_migo_badi->modify_mseg
          CHANGING
            xy_mseg = xmseg[].
      endif.
    ENDENHANCEMENT.   
    Regards,
    Dhirendra Pandit

  • FM to read data from MSEG table

    Hi all,
    can any one provide me the Function Module to fetch data from MSEG table by giving inputs
    1) materail doc number (MBLNR)
    2) MJAHR Doc year.
    or is there any other method to fetch data with high performance.

    itabh is mkpf header table.
    if not itabh is initial.
    SELECT fielname(s)
    INTO TABLE ITAB FROM MSEG
    FOR ALL ENTRIES IN ITABH
    WHERE MBLNR EQ ITABH-MBLNR
    AND MJAHR EQ ITABH-MJAHR
    AND WERKS EQ PR_WERKS
    AND LGORT IN PR_LGORT
    AND BWART IN ('261','262')
    and AUFNR IN S_AUFNR
    endif.
    Avoid using select * try to mention the field name which are required.
    try to use all key fields.
    and before writing FOR ALL ENTRIES make sure the table ITABH is not empty.

  • No records when inputting new field from linked tables.

    I have linked two tables in a report.  If I use only fields from one table, no problem.  As soon as I add a field from the other table no records are pulled.  I am using the same filed "IncidentID" in both tables as a link.  If I attempt to pull the "IncidentID" from the second table no records are pulled.  There does not appear to be any key fields or indexes in either table if that helps.

    Here are the SQL queries.  The first string is without any fields from "WorkLog".  The second is after adding the field "WorkLog.Incident Number" to the form.
    SELECT "HPD_Help_Desk"."Incident Number", "HPD_Help_Desk"."Reported Date", "HPD_Help_Desk"."Direct Contact Site", "HPD_Help_Desk"."Assignee", "HPD_Help_Desk"."Status", "HPD_Help_Desk"."Last Modified Date", "HPD_Help_Desk"."Description", "HPD_Help_Desk"."Priority"
    FROM   "HPD:Help Desk" "HPD_Help_Desk"
    WHERE  "HPD_Help_Desk"."Status"='Pending' AND ("HPD_Help_Desk"."Assignee"='Debbie Kiolbasa' OR "HPD_Help_Desk"."Assignee"='John L King' OR "HPD_Help_Desk"."Assignee"='Ligaya Plumlee' OR "HPD_Help_Desk"."Assignee"='Ryan Keeler')
    ORDER BY "HPD_Help_Desk"."Assignee"
    SELECT "HPD_Help_Desk"."Incident Number", "HPD_Help_Desk"."Reported Date", "HPD_Help_Desk"."Direct Contact Site", "HPD_Help_Desk"."Assignee", "HPD_Help_Desk"."Status", "HPD_Help_Desk"."Last Modified Date", "HPD_Help_Desk"."Description", "HPD_Help_Desk"."Priority", "HPD_WorkLog"."Incident Number"
    FROM   "HPD:Help Desk" "HPD_Help_Desk" INNER JOIN "HPD:WorkLog" "HPD_WorkLog" ON ("HPD_Help_Desk"."Incident Number"="HPD_WorkLog"."Incident Number") AND ("HPD_Help_Desk"."InstanceId"="HPD_WorkLog"."InstanceId")
    WHERE  "HPD_Help_Desk"."Status"='Pending' AND ("HPD_Help_Desk"."Assignee"='Debbie Kiolbasa' OR "HPD_Help_Desk"."Assignee"='John L King' OR "HPD_Help_Desk"."Assignee"='Ligaya Plumlee' OR "HPD_Help_Desk"."Assignee"='Ryan Keeler')
    ORDER BY "HPD_Help_Desk"."Assignee"
    BTW - The "Left Outer Join" receives the errors noted in above post whereas the default "Inner Join" just comes back with empty records.
    Unable to use the third party tools due to restrictions on loading software.  Also we are unable to access the lower level database.
    Thanks

Maybe you are looking for

  • How to parse a HTML file using HTML parser in J2SE?

    I want to parse an HTML file using HTML parser. Can any body help me by providing a sample code to parse the HTML file? Thanks nad Cheers, Amaresh

  • Opening a PDF file without downloading first

    I have version 9.5.5 on my Apple desktop & my laptop. When I open a PDF document on my laptop, a window opens and asks if I want to save or open on screen. I like this feature, however on my desktop I do not get the choice, it goes to download only a

  • Errors with publishing, please help

    I have recently published my site to a folder and then used fetch to transfer it to a server. When the site is transferred there are several errors that appear which include, spacing issues and strange icons on the pages. The website is www.buffbus.c

  • Classpath and jar file

    Hy, I have written an application that uses the javax.comm package. My application contains many classes disposed in \classes directory. The main class is admin.class. If launch the application with a batch file (in Windows): echo off cls java -class

  • Capture webcam success! Now how to make it repeat itself??

    I have a code which captures my webcam and saves (and displays) a jpg image. However, I want to make it so my code captures my webcam once every second or so. Wait one second ---> Capture image -----> save (replace) over the previous image ------> do