Display mode for Material Description in MM02 for Partucular User/UsrGroup

Dear friends,
I required to set: Display mode for Material Description in MM02. (Configured thruu2019 Maintain field selection to data screen)
For Particular User / User group, it should be Change mode. How to achive this. Please advice.
Thanks and regards,
RAMAN

Hi,
I don't think you can realize it, because in SAP system there are 6 influncing factors:
Material Type
Plant
Industry sector
Transaction
Procurement indicator
SAP Delivery
Field selection is controlled by field references. You can assign field references to the influencing factors material type, plant, and industry sector in Customizing. SAP maintains the assignment of the field reference to the transaction codes, to the procurement types, and for the SAP delivery. You cannot change this assignment of these field references in Customizing.
So from my point of view, you can't use the factors of material type, plant and industry sector to distinguish different users' authorization.
Good day
Tao

Similar Messages

  • Screen Display Language of Material Descriptions in PO vs Output Documents

    Greetings Experts,
    We have the requirement to display material descriptions in purchase order screens as well as other screens in language dictated by user setting and not the business partner preference. Currently, when we log on as user with English language setting and create purchase order for vendor with a Korean language setting, the material description in the screen is displayed in Korean. So it appears that system ignores the UI preference and displays the material description in the vendor's language/comunication preference. We see this same behavior in other SAP transactions as well. Is there a way for display language for material description to be dictated by user logon preference while retaining ability to output documents that are required in vendor's preferred language?

    Hi
    The material description will come from the material master record, so whic language you are entering in the material master it automatically pick to the purchasing documents.
    If you need material description in different language you can do this in material master itself goto additional data and maintain there.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • Incorrect Language picked for Material Description

    Hello,
    While creating an order from VA01, under the line items, we are entering a material which has a description maintained in two languages - Chinese and English. We choose the F4 help to get the list of languages. We are selecting English and clicking on ok. But the text appears in Chinese on the VA01 screen although we have selected English.
    What could the problem be? We want the text to appear in English when we choose the English description.
    Thanks and Regards,
    Reena

    Hi Reena,
    Please check this and update
    The system determines the language of the material description in VA01
    in three steps (FV45PF0M_MAAPV_SELECT):
      DA_SPRAS = KUAGV-SPRAS.            <= comm. language of sold-to
      IF DA_SPRAS = SPACE.
        DA_SPRAS = TVKO_SADR-SPRAS.      <= language of sales organization
      ENDIF.
      IF DA_SPRAS = SPACE.
        DA_SPRAS = SY-LANGU.             <= logon language
      ENDIF.
    So , you first take the sold-to party language and if a description
    of the material exists in this language, you get the material
    description in that language.
    If no material description is maintained for the sold-to party lang.
    the system will use the language of the sales organisation.
    If no sales organisation language is maintained, the system will
    lastly use the login language.
    Regards,
    Ramana

  • Infoset for material description

    Plese tel me any infoset for material short description ??
    Regards
    Nikhil

    Hi
    Use MAKT for material description
    Join this infoset MATNR field with the other infoset MATNR field and use it in the query
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Change material description in MM02

    Hi,
    System is allowing to change the material description in MM02 from any views.
    Requirement is once the material code save, system should allow to change the description of product to user who have authorisation for Basic data 1 and 2 not other views.
    Like I am giving Accounting view authorisation to one person, he should not able to change the product description.
    Is it possibel and how?
    Thanks,
    Samir Bhatt

    Hi,
    Description is part of MARA table. If you give full authorization for General data fields to the persons that maintain basic 1 & 2 and does not give this authorization to the persons that are not allowed to change the description, you will achieve what you want. This will allow the financial people to see the general data fields but they will not be able to change them.
    Regards,
    MdZ

  • Upload material description in mm02

    i want to upload material description in mm02 using bdc but i dont know how to upload it. Moderator Message: This is not a training forum and we cant help you there
    my text file is like
    2000251 AF A12345
    2000251 AR B12345
    2000251 BG C12345
    2000252 AF F12345
    2000252 AR G12345
    2000252 AF H12345
    in same material number there r more then one text then how can i upload .
                                  'SKTEXT-MAKTX(02)'.
    clear  COUNTER.
    counter  = 1.
    LOOP AT IT_TAB INTO WA_TAB WHERE MATNR = WA_ITAB-MATNR.
    counter = counter  + 1.
         CONCATENATE 'MAKT-SPRAS(0' COUNTER ')' INTO V_CHAR. "(02)
          PERFORM BDC_FIELD       USING V_CHAR
                                        WA_TAB-SPRAS.
          CLEAR V_CHAR.
         CONCATENATE 'MAKT-MAKTX(0' COUNTER ')' INTO V_CHAR. "(02)
         perform bdc_field       using V_CHAR
                                  WA_TAB-MAKTX.
    *perform bdc_field       using 'SKTEXT-SPRAS(02)'
                                 'AF'.
    *perform bdc_field       using 'SKTEXT-SPRAS(03)'
                                 'BG'.
    *perform bdc_field       using 'SKTEXT-SPRAS(04)'
                                 'CS'.
    *perform bdc_field       using 'SKTEXT-MAKTX(02)'
                                 'avani'.
    *perform bdc_field       using 'SKTEXT-MAKTX(03)'
                                 'avani1'.
    *perform bdc_field       using 'SKTEXT-MAKTX(04)'
                                 'avani2'.
    clear wa_tab.
    ENDLOOP.
    Edited by: kishan P on Nov 13, 2010 2:32 PM

    in mm02 Basic Data -> additional data -> material description and language
    i want to upload language and material description

  • Printing Material Description in Arabic for Smartform

    Hi All,
    I have created a custom smartform for printing the PO, Sales Invoice.
    The material description is maintained from RTL-Arabic language in Material Master(MM02) - محبس بليه بلاكورين 75م.
    I need to print the above material description alone within the Item window in arabic language as displayed above but it is getting reversed when I see the print preview of PO and Sales Invoice.
    Initially, I got to know from some SDN forum replies that we need to enable Arabic Font in our workstation(PC) so that it can be solved and then some suggested that Arabic font should be installed in SAP system.(Tried both the options, but could not resolve issue).
    Even we tried in SE63 to translate the text but we couldnot.
    SE63->Translation->ABAP Objects->Other Long texts->FS(Forms & Styles)->SSF->Smartform Name->Source/Target Lang->Edit. Window with the english version opens at the top and at the bottom, there is an editable window for translation.
    But I could not further proceed as I didnt know how to do translation for the text elements.
    Correct me if I am wrong in these steps.
    Could anyone suggest me a solution to resolve this issue and explain the steps to do the translation in SE63.
    Earliest reponse will be appreciated.
    Rgds,
    JK

    Jay,
    Yes we tried using the STRING_REVERSE FM. But the thing is the description contain some numerals in between the text, so it get reversed if we use the FM. So it wont suit our purpose.
    Is there any printer configuration to be done to resolve this issue? Or any other settings within the smartform?
    We have to display the text as maintained in Material Master, the variable get populated correctly while debugging but it get reversed when we look at the print preview.
    Rgds,
    JK

  • Routine for Material Description in language DE instead of EN in report o/p

    Hi all,
    We need to display material description/text in terms of DE language insted of EN at o/p the report.
    It's a masterdata(0material) info object.There are many fields at report level,Only for this perticular field text only they want in DE language,remaining all in EN only.
    How can we do langualge translations in BI.How can we achive this?
    If any body implimented with routines plz share the information.
    Regards,
    VS.

    Hi Varun ,
    Please follow these steps :
    go to RSA1-> Translation ->infoobject ->select object ->Create a piece list for Translation ->Create a Object List Go to transaction LXE_MASTER. In the evaluations tab, choose Object List->in the object List dialog box, choose create option ->Assign the Piece List->Generate the Object List.->
    Schedule the background job which will generate the object list
    Once the job for generating the object list is finished, please go to se63 ->Check your Default settings ->select Source Language and Target Language ->
    Access your personal work list ->Enter target Language texts for BI objects in the Worklist ->Run the program RSO_AFTER_TRANSLATION ->Verify the translation in the respective object maintenance screen.
    Regards,
    Jaya

  • API_MATERIAL_SAVEDATA  for  Material Description ?

    dear Friends:
    How to modify function API_MATERIAL_SAVEDATA  Material Description?

    Hi
    hope this coding will help you look especially at
    IT_MAKT-LANGU = IT_DATA-SPRAS.
    IT_MAKT-MATL_DESC = IT_DATA-MAKTX.*
        APPEND IT_MAKT.
    REPORT ZKAR_MATMAS_BAPI.
    * TABLES
    * FLAGS *
    DATA: F_STOP. " Flag used to stop processing
    * DATA DECLARATIONS *
    DATA : V_EMPTY TYPE I, " No. of empty records
    V_TOTAL TYPE I. " Total no. of records.
    * STRUCTURES & INTERNAL TABLES
    *BAPI structures
    DATA: BAPI_HEAD LIKE BAPIMATHEAD, " Header Segment with Control Information
    BAPI_MAKT LIKE BAPI_MAKT, " Material Description
    BAPI_MARA1 LIKE BAPI_MARA, " Client Data
    BAPI_MARAX LIKE BAPI_MARAX, " Checkbox Structure for BAPI_MARA
    BAPI_MARC1 LIKE BAPI_MARC, " Plant View
    BAPI_MARCX LIKE BAPI_MARCX, " Checkbox Structure for BAPI_MARC
    BAPI_MBEW1 LIKE BAPI_MBEW, " Accounting View
    BAPI_MBEWX LIKE BAPI_MBEWX, " Checkbox Structure for BAPI_MBEW
    BAPI_RETURN LIKE BAPIRET2. " Return Parameter
    *--- Internal table to hold excel file data
    DATA: IT_INTERN TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE.
    *--- Internal table to hold Matetrial descriptions
    DATA: BEGIN OF IT_MAKT OCCURS 100.
            INCLUDE STRUCTURE BAPI_MAKT.
    DATA: END OF IT_MAKT.
    *--- Internal to hold the records in the text file
    DATA : BEGIN OF IT_DATA OCCURS 100,
                WERKS(4), " Plant
                MTART(4), " Material type
                MATNR(18), " Material number
                MATKL(9) , " Material group
                MBRSH(1), " Industry sector
                MEINS(3), " Base unit of measure
                GEWEI(3), " Weight Unit
                SPART(2), " Division
                EKGRP(3), " Purchasing group
                VPRSV(1), " Price control indicator
                STPRS(12), " Standard price
                PEINH(3), " Price unit
                SPRAS(2), " Language key
                MAKTX(40), " Material description
                END OF IT_DATA.
    * SELECTION SCREEN. *
    SELECTION-SCREEN BEGIN OF BLOCK SCR1 WITH FRAME TITLE TEXT-111.
    PARAMETER : P_FILE TYPE RLGRAP-FILENAME OBLIGATORY DEFAULT " Input File
    'C:\Material_master.XLS'.
    PARAMETER : P_MAX(4) OBLIGATORY DEFAULT '100'. " no.of recs in a session
    PARAMETERS: P_HEADER TYPE I DEFAULT 0. " Header Lines
    PARAMETERS: P_BEGCOL TYPE I DEFAULT 1 NO-DISPLAY,
    P_BEGROW TYPE I DEFAULT 1 NO-DISPLAY,
    P_ENDCOL TYPE I DEFAULT 100 NO-DISPLAY,
    P_ENDROW TYPE I DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK SCR1.
    * AT SELECTION-SCREEN *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    *--- Validating file
      PERFORM VALIDATE_FILE USING P_FILE.
    * START-OF-SELECTION
    START-OF-SELECTION.
    *--- Perform to convert the Excel data into an internal table
      PERFORM CONVERT_XLS_ITAB.
      IF NOT IT_DATA[] IS INITIAL.
    *--- Perform to delete Header lines
        PERFORM DELETE_HEADER_EMPTY_RECS.
      ENDIF.
    * END OF SELECTION. *
    END-OF-SELECTION.
    *--- Perform to upload Material Master data
      PERFORM UPLOAD_MATMAS.
    * Form : validate_input_file
    * Description : To provide F4 help for file if read from PC
    FORM VALIDATE_FILE USING F_FILE TYPE RLGRAP-FILENAME.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = F_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        MESSAGE S010(ZLKPL_MSGCLASS). " 'Error in getting filename'.
      ENDIF.
    ENDFORM. " validate_input_file
    *& Form CONVER_XLS_ITAB
    * text
    FORM CONVERT_XLS_ITAB.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = P_FILE
          I_BEGIN_COL = P_BEGCOL
          I_BEGIN_ROW = P_BEGROW
          I_END_COL   = P_ENDCOL
          I_END_ROW   = P_ENDROW
        TABLES
          INTERN      = IT_INTERN.
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *--- Perform to move the data into an internal data
      PERFORM MOVE_DATA.
    ENDFORM. " CONVERT_XLS_ITAB
    *& Form MOVE_DATA
    * text
    FORM MOVE_DATA.
      DATA : LV_INDEX TYPE I.
      FIELD-SYMBOLS <FS>.
    *--- Sorting the internal table
      SORT IT_INTERN BY ROW COL.
      CLEAR IT_INTERN.
      LOOP AT IT_INTERN.
        MOVE IT_INTERN-COL TO LV_INDEX.
    *--- Assigning the each record to an internal table row
        ASSIGN COMPONENT LV_INDEX OF STRUCTURE IT_DATA TO <FS>.
    *--- Asigning the field value to a field symbol
        MOVE IT_INTERN-VALUE TO <FS>.
        AT END OF ROW.
          APPEND IT_DATA.
          CLEAR IT_DATA.
        ENDAT.
      ENDLOOP.
    ENDFORM. " MOVE_DATA
    *& Form DELETE_HEADER_EMPTY_RECS
    * To delete the Header and empty records
    FORM DELETE_HEADER_EMPTY_RECS.
      DATA: LV_TABIX LIKE SY-TABIX.
      IF NOT P_HEADER IS INITIAL.
        LOOP AT IT_DATA.
          IF P_HEADER > 0 AND NOT IT_DATA IS INITIAL.
            DELETE IT_DATA FROM 1 TO P_HEADER.
    * P_HEADER = 0.
            EXIT.
          ENDIF.
        ENDLOOP.
      ENDIF.
      CLEAR IT_DATA.
    *--- To delete the empty lines from internal table
      LOOP AT IT_DATA.
        LV_TABIX = SY-TABIX.
        IF IT_DATA IS INITIAL.
          V_EMPTY = V_EMPTY + 1.
          DELETE IT_DATA INDEX LV_TABIX..
        ENDIF.
      ENDLOOP.
      CLEAR IT_DATA.
    *--- Total no of recs in file
      DESCRIBE TABLE IT_DATA LINES V_TOTAL.
      IF V_TOTAL = 0.
        MESSAGE I013(ZLKPL_MSGCLASS). " No records in the file
        F_STOP = 'X'.
        STOP.
      ENDIF.
    ENDFORM. " DELETE_HEADER_EMPTY_RECS
    *& Form UPLOAD_MATMAS
    * to upload Material Master data
    FORM UPLOAD_MATMAS .
      LOOP AT IT_DATA.
    * Header
        UNPACK IT_DATA-MATNR TO IT_DATA-MATNR.
        BAPI_HEAD-MATERIAL = IT_DATA-MATNR.
        BAPI_HEAD-IND_SECTOR = IT_DATA-MBRSH.
        BAPI_HEAD-MATL_TYPE = IT_DATA-MTART.
        BAPI_HEAD-BASIC_VIEW = 'X'.
        BAPI_HEAD-PURCHASE_VIEW = 'X'.
        BAPI_HEAD-ACCOUNT_VIEW = 'X'.
    * Material Description
        REFRESH IT_MAKT.
        IT_MAKT-LANGU = IT_DATA-SPRAS.
        IT_MAKT-MATL_DESC = IT_DATA-MAKTX.
        APPEND IT_MAKT.
    * Client Data - Basic
        BAPI_MARA1-MATL_GROUP = IT_DATA-MATKL.
        BAPI_MARA1-BASE_UOM = IT_DATA-MEINS.
        BAPI_MARA1-UNIT_OF_WT = IT_DATA-GEWEI.
        BAPI_MARA1-DIVISION = IT_DATA-SPART.
        BAPI_MARAX-MATL_GROUP = 'X'.
        BAPI_MARAX-BASE_UOM = 'X'.
        BAPI_MARAX-UNIT_OF_WT = 'X'.
        BAPI_MARAX-DIVISION = 'X'.
    * Plant - Purchasing
        BAPI_MARC1-PLANT = IT_DATA-WERKS.
        BAPI_MARC1-PUR_GROUP = IT_DATA-EKGRP.
        BAPI_MARCX-PLANT = IT_DATA-WERKS.
        BAPI_MARCX-PUR_GROUP = 'X'.
    * Accounting
        BAPI_MBEW1-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEW1-PRICE_CTRL = IT_DATA-VPRSV.
        BAPI_MBEW1-STD_PRICE = IT_DATA-STPRS.
        BAPI_MBEW1-PRICE_UNIT = IT_DATA-PEINH.
        BAPI_MBEWX-VAL_AREA = IT_DATA-WERKS.
        BAPI_MBEWX-PRICE_CTRL = 'X'.
        BAPI_MBEWX-STD_PRICE = 'X'.
        BAPI_MBEWX-PRICE_UNIT = 'X'.
    *--- BAPI to create material
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
        EXPORTING
        HEADDATA = BAPI_HEAD
        CLIENTDATA = BAPI_MARA1
        CLIENTDATAX = BAPI_MARAX
        PLANTDATA = BAPI_MARC1
        PLANTDATAX = BAPI_MARCX
    * FORECASTPARAMETERS =
    * FORECASTPARAMETERSX =
    * PLANNINGDATA =
    * PLANNINGDATAX =
    * STORAGELOCATIONDATA =
    * STORAGELOCATIONDATAX =
    * VALUATIONDATA = BAPI_MBEW1
    * VALUATIONDATAX = BAPI_MBEWX
    * WAREHOUSENUMBERDATA =
    * WAREHOUSENUMBERDATAX =
    * SALESDATA = BAPI_MVKE1
    * SALESDATAX = BAPI_MVKEX
    * STORAGETYPEDATA =
    * STORAGETYPEDATAX =
        IMPORTING
        RETURN = BAPI_RETURN
        TABLES
        MATERIALDESCRIPTION = IT_MAKT
    * UNITSOFMEASURE =
    * UNITSOFMEASUREX =
    * INTERNATIONALARTNOS =
    * MATERIALLONGTEXT =
    * TAXCLASSIFICATIONS =
    * RETURNMESSAGES =
    * PRTDATA =
    * PRTDATAX =
    * EXTENSIONIN =
    * EXTENSIONINX =
        IF BAPI_RETURN-TYPE = 'E'.
          WRITE:/ 'Error:' ,BAPI_RETURN-MESSAGE ,'for material:' ,IT_DATA-MATNR.
        ELSEIF BAPI_RETURN-TYPE = 'S'.
          WRITE: 'Successfully created material' ,IT_DATA-MATNR.
        ENDIF.
      ENDLOOP.
    ENDFORM. " UPLOAD_MATMAS
    * 1 children | View in hierarchy
    Regards,
    V.Balaji
    Reward if usefull

  • Customize iw13 for Material Descriptions for one time buys

    Hello,
    I'd like to make a customer report zpmiw13 using iw13.  I'd like it to do everything the same as iw13 except I'd like it to get the material description for the one time buys to show up on the report. 
    I'm pretty sure this has been done before so I was hoping someone has a code sample I could look at to do this.
    Somewhere in the code I need to do a select statement to find the Material Description in EKPO(?) when the Material Number field is blank (one time buy = no material master record).
    Any help?
    Thanks,
    Matt

    In this case we are going to use iw12 to show the data.
    Thanks,
    Matt

  • I have a late 2010 MB Air (mini display port) and a new 2013 iMac (thunderbolt) which I would love to use as an external display. I suspect that target display mode won't work.Any ideas for how to achieve this?

    According to the TDM support page, this isn't possible. I tried it with a Mnidisplay port to minidisplay port cable without success. Its a shame that thunderbolt doesn't appear to be backwards compable as I could have achieved this with an older iMac.
    Cheers

    You are correct....it will not work. Please carefully read Apple's Target Display Mode: Frequently Asked Questions (FAQ)

  • Block material description in MM02|

    Hi,
    Is there any settings to block users permissions for modify material master description in MM02?
    Thanks
    Jorge G

    Hi,
       Transaction variant will be a good option for you. Go to SHD0 transaction and create a new transaction variant for MM02. Maintain the material description field as "output only" and save the variant.
        Please note that you have to maintain the variant with material description as output only for all the material master views.
       You can assign the variant to all required users, who doesnt want to change the material description, then create a variant group and assign accordingly.
    Refer the doc: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a070bfbb-d34a-2d10-b092-ecbe0b0d4a4c?quicklink=index&…
    Regards,
    AKPT

  • Table for Material Quantity and Value for particular month and year

    Hi All
    My requirement is that for a particular month and year I want to know the stock quantity and stock value for a particular material for a given plant.From which SAP table can I get this data as I want to fetch data for my Y report?
    Regards
    Satish Kumar

    Hi,
    You can use MB5B table as suggested earlier.also you can use:
    MBEW-VMKUM --> stock for previous month period
    MBEW-VJKUM --> stock for previous year period
    PLease view these links which migh tbe helpful to you:
    http://help.sap.com/saphelp_47x200/helpdata/en/39/55fee3bc6111d4b3960050dadf0791/content.htm
    TableStock
    Thanks
    Nisha

  • BDC - MM02 _long text  for material PO upload

    Hi experts,
    I want to upload Long text for material PO in MM02 (Purchase  order text view)
    throuh BDC upload.  I have successfully done recording for this transaction. But in the recording it show no  table field for that particular long text.
    Pls help me to do this issue.
    Thanks.

    Hi
    See the sample program for this and modify as per your requirement.
    REPORT zmm_longtext
           NO STANDARD PAGE HEADING
           LINE-SIZE 255.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab1 OCCURS 0,
            matnr    LIKE mara-matnr,    " Material
            text1    LIKE tline-tdline,  " Long Text
          END OF itab1.
    Internal Table for Upload of Long Texts Data
    DATA: BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,    " Material
            text  LIKE tline-tdline,  " Long Text
          END OF itab.
    To create Long Text lines for CREATE_TEXT function module
    DATA:BEGIN OF dt_lines OCCURS 0.
            INCLUDE STRUCTURE tline.   " Long Text
    DATA:END OF dt_lines.
    Variable declarations for CREATE_TEXT function module
    DATA : dl_name TYPE thead-tdname,   " Object Name
           dl_lan TYPE thead-tdspras,   " Language
           gv_matnr TYPE matnr.
    Constants
    CONSTANTS:
    Object ID for Long Text of Material Basic Data 1
      c_best     TYPE thead-tdid VALUE 'GRUN',
      c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
    Parameters
    PARAMETERS p_file LIKE rlgrap-filename.
    At selection-screen on Value Request for file Name
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    Get the F4 Values for the File
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
        IMPORTING
          file_name     = p_file.
    Start Of Selection
    START-OF-SELECTION.
    *To Upload Flat file
      CALL FUNCTION 'UPLOAD'
        EXPORTING
          filename                = p_file
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          conversion_error        = 1
          invalid_table_width     = 2
          invalid_type            = 3
          no_batch                = 4
          unknown_error           = 5
          gui_refuse_filetransfer = 6
          OTHERS                  = 7.
      SORT itab1 BY matnr.
      LOOP AT itab1.
        CLEAR gv_matnr.
        SELECT SINGLE matnr INTO gv_matnr
           FROM mara WHERE bismt = itab1-matnr.
            IF itab1-text1 NE ' '.
          itab-matnr = gv_matnr.
          itab-text  = itab1-text1.
          APPEND itab.
        ENDIF.
        CLEAR itab.
      ENDLOOP.
      DELETE itab WHERE matnr EQ ' '.
    Upload the Texts
      SORT itab BY matnr.
      LOOP AT itab.
        dt_lines-tdformat = 'ST'.
        dt_lines-tdline = itab-text.
        APPEND dt_lines.
        dl_lan = sy-langu.
        dl_name = itab-matnr.
    Call the Function Module to Create Text
        CALL FUNCTION 'CREATE_TEXT'
          EXPORTING
            fid         = c_best
            flanguage   = dl_lan
            fname       = dl_name
            fobject     = c_material
            save_direct = 'X'
            fformat     = '*'
          TABLES
            flines      = dt_lines
          EXCEPTIONS
            no_init     = 1
            no_save     = 2
            OTHERS      = 3.
        IF sy-subrc <> 0.
          WRITE:/ 'Long Text Creation failed for Material'(001),
                 itab-matnr.
        ELSE.
          WRITE:/ 'Long Text Created Successfully for Material'(002),
                 itab-matnr.
        ENDIF.
        AT END OF matnr.
          REFRESH dt_lines.
        ENDAT.
      ENDLOOP.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

Maybe you are looking for

  • Planned Independent Requirement Not getting displayed in MD04

    Hi,    I am assigning material to nwa and doing advance procurement by using procurement type PIR. Reservation is getting created after release of activity but the same is not getting displayed in MD04. The items of the reservation are getting displa

  • Create batch for 531 movement in transaction COR6N

    Hi, I am using COR6n to record process order confirmations. As part of the usual 261 and 101 movements, I want to record a 531 (goods receipt of a bi-product). This is to record bi-product coming off the production line that can be used in other manu

  • Read only schema issues

    Hello everyone I have created a read only schema on oracle Apps and have granted select privileges to all synonyms and views and execute privileges to packages. The read only schema is unable to access some synonyms and views below is the example: co

  • How can I activate Boot Camp Assistant?

    How can I activate Boot Camp?  I want to install an educational library that is on a CD.  People that have PC's can use the CD.  I have a mac mini and I want to open the CD to read/review.  I have the Snow Leopard model.

  • Terms and condiditions for Spain exclude the use outside El Salvador

    The terms and conditons page for El Salvador and that for Spain seems to be the same. The problem is that for Spain it forbides the use outside El Salvador!: «El Servicio iTunes está disponible para usted sólo en EL Salvador. Usted acepta no utilizar