How to add  basic data text into material master?

Hi anybody,
I want update only basic data text into material master. how to update basic data text ?
is it any bapi or functional module is there in abap?
anybody please tell me.
tks
s.muthu

Hi Subramanyan,
Check this function module:
         CREATE_TEXT
Check out this sample program:
REPORT ZMM_INSERT_LONGTEXT.*Internal table to hold long text...
DATA:
  BEGIN OF T_UPLOAD OCCURS 0,
    MATNR LIKE MARA-MATNR,             " Material number
    ID(2) TYPE C,                      " Identification
    LTEXT LIKE TLINE-TDLINE,           " Long text
  END OF T_UPLOAD,*Internal table to hold long text....
  T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE.DATA:
   W_GRUN LIKE THEAD-TDID ,            " To hold id
   W_OBJECT LIKE THEAD-TDOBJECT VALUE 'MATERIAL',
                                       " To hold object id
   LV_VALUE(70).                       " Value to hold material number
START-OF-SELECTION.* This perform is used to upload the file
  PERFORM UPLOAD_FILE.* This perform is used to place the text in MM02 transaction
  PERFORM PLACE_LONGTEXT.
*&      Form  create_text
This routine used to create text in MM02 transaction
Passed the parameter w_grun to P_C_GRUN
                and lv_value to P_LV_VALUE
FORM CREATE_TEXT  USING    P_C_GRUN
                           P_LV_VALUE.  DATA:
    L_ID LIKE THEAD-TDID,
    L_NAME(70).  MOVE : P_C_GRUN TO L_ID,
         P_LV_VALUE TO L_NAME.  CALL FUNCTION 'CREATE_TEXT'
       EXPORTING
         FID               = L_ID
         FLANGUAGE         = SY-LANGU
         FNAME             = L_NAME
         FOBJECT           = W_OBJECT
     SAVE_DIRECT       = 'X'
     FFORMAT           = '*'
       TABLES
         FLINES            = T_LINE
      EXCEPTIONS
        NO_INIT           = 1
        NO_SAVE           = 2
        OTHERS            = 3
  IF SY-SUBRC <> 0.
    CLEAR LV_VALUE.
  ELSE.
    DELETE T_LINE INDEX 1.
  ENDIF.ENDFORM.                    " create_text&----
*&      Form  upload_file
This routine is used to upload file
No interface parameters are passed
FORM UPLOAD_FILE .  CALL FUNCTION 'UPLOAD'
   EXPORTING
    CODEPAGE                      = ' '
    FILENAME                      = ' '
      FILETYPE                      = 'DAT'
    ITEM                          = ' '
    FILEMASK_MASK                 = ' '
    FILEMASK_TEXT                 = ' '
    FILETYPE_NO_CHANGE            = ' '
    FILEMASK_ALL                  = ' '
    FILETYPE_NO_SHOW              = ' '
    LINE_EXIT                     = ' '
    USER_FORM                     = ' '
    USER_PROG                     = ' '
    SILENT                        = 'S'
  IMPORTING
    FILESIZE                      =
    CANCEL                        =
    ACT_FILENAME                  =
    ACT_FILETYPE                  =
    TABLES
      DATA_TAB                      = T_UPLOAD
     EXCEPTIONS
       CONVERSION_ERROR              = 1
       INVALID_TABLE_WIDTH           = 2
       INVALID_TYPE                  = 3
       NO_BATCH                      = 4
       UNKNOWN_ERROR                 = 5
       GUI_REFUSE_FILETRANSFER       = 6
       OTHERS                        = 7
  IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.  SORT T_UPLOAD BY MATNR ID.
ENDFORM.                    " upload_file
*&      Form  place_longtext
This routine places the text in MM02 transaction
No interface parameters are passed
FORM PLACE_LONGTEXT .  LOOP AT T_UPLOAD.    T_LINE-TDFORMAT = 'ST'.
    T_LINE-TDLINE = T_UPLOAD-LTEXT.
    APPEND T_LINE.    IF T_UPLOAD-ID EQ 'BT'.
      MOVE T_UPLOAD-MATNR TO LV_VALUE.
      MOVE 'GRUN' TO W_GRUN.                   "Test ID for Basic data text
      PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
    ENDIF.    IF T_UPLOAD-ID EQ 'IT'.
      CLEAR W_GRUN.
      MOVE T_UPLOAD-MATNR TO LV_VALUE.
      MOVE 'PRUE' TO W_GRUN.                      "Test ID for Inspection text
      PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
    ENDIF.    IF T_UPLOAD-ID EQ 'IC'.
      CLEAR W_GRUN.
      MOVE : T_UPLOAD-MATNR TO LV_VALUE,
             'IVER' TO W_GRUN.                    
                                                  "Test ID for Internal comment
      PERFORM CREATE_TEXT USING W_GRUN LV_VALUE.
    ENDIF.
  ENDLOOP.ENDFORM.                    " place_longtext
Hope this helps you.
Regards,
Chandra Sekhar

Similar Messages

  • How to Update the Basic Data text in Material Master.

    Hi Abapers,
    I have more than 5000 materials for update basic Data text inside Material Master.
    how to update basic data text using abap programe? is there any bapi or normal program?.
    anybody give me sample of this.
    Thanks
    S.Muthu.
    IT Dept.

    Hi
    You can do by using the FM SAVE_TEXT.
    Just populate text into table i_tline.
    Local data declaration
      DATA: l_wa_thead  TYPE thead, " Header
            l_wa_tline  TYPE tline. " Work area for tline
    Populate header
      l_wa_thead-tdobject = c_obj_material.
      l_wa_thead-tdname   = wa_data-matnr.
      l_wa_thead-tdid     = c_id_best.
      l_wa_thead-tdspras  = sy-langu.
      l_wa_thead-tdluser  = sy-uname.
      l_wa_thead-tdfdate  = sy-datum.
      l_wa_thead-tdtxtlines = '1'.
    IF i_tline[] IS NOT INITIAL.
       l_wa_tline-tdformat = c_slash.
       APPEND l_wa_tline TO i_tline.
    ENDIF.
    Text shd start from next line
      l_wa_tline-tdformat = c_slash.
      CONCATENATE c_text wa_data-text
      INTO l_wa_tline-tdline SEPARATED BY space.
    Append the new text to the int table
      APPEND l_wa_tline TO i_tline and l_wa_thead
      C* Local data declaration
      DATA: l_wa_thead  TYPE thead, " Header
            l_wa_tline  TYPE tline. " Work area for tline
    Populate header
      l_wa_thead-tdobject = c_obj_material.
      l_wa_thead-tdname   = wa_data-matnr.
      l_wa_thead-tdid     = c_id_best.
      l_wa_thead-tdspras  = sy-langu.
      l_wa_thead-tdluser  = sy-uname.
      l_wa_thead-tdfdate  = sy-datum.
      l_wa_thead-tdtxtlines = '1'.
    IF i_tline[] IS NOT INITIAL.
       l_wa_tline-tdformat = c_slash.
       APPEND l_wa_tline TO i_tline.
    ENDIF.
    Text shd start from next line
      l_wa_tline-tdformat = c_slash.
      CONCATENATE c_text wa_data-text
      INTO l_wa_tline-tdline SEPARATED BY space.
    Append the new text to the int table
      APPEND l_wa_tline TO i_tline.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = l_wa_thead
          savemode_direct = c_check
        TABLES
          lines           = i_tline
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4
          OTHERS          = 5.
      IF sy-subrc = 0.
        COMMIT WORK.
    endif.

  • Uploading Basic Data Longtext into Material Master

    Hi Experts,
    While creating material master i need to upload Basic Data Long text into material master.
    For this iam using a BDC.How we can get this long text into sap systen and how we will update in material master.

    Hi,
    you can use the below function module instead of Save_text..
    BAPI_MATERIAL_SAVEDATA.
    in the above function module
        headdata-material = matnr.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            headdata             = headdata   "contains materail number
          IMPORTING
            return               = return
          TABLES
            MATERIALLONGTEXT = t_longtext   "pass long text here
            returnmessages       = returnmessages.
    Prabhudas

  • Which table do "Basic data text" of material master record in?

    Hi All:
            There is tab with name of "Basic Data text" in additional data of material master, my question is which table record this information?
    BR
    Kevin

    Hi Kevin,
    Please check this:
    Read the long text of material master
    Regards,
    Csaba

  • How to retrieve the basic data text in material master to SAPSCRIPT?

    Besides using the function module READ_TEXT in the calling program, what alternatives are there if I don't want to modify the program but make changes in the sapscript only?
    I've tried to use the include statement in the sapscript editor, but I don't know how to call the text object whose ID is GRUN, object is MATERIAL.
    Should I use the include statement or any other ways to do it?
    Thanks.

    Thanks for replying this message.
    But the problem is that the object is not found,
    as I tried to print &SAPSCRIPT-SUBRC& and 4 is resulted.
    I've tried:
    /:INCLUDE &MARA-MATNR& OBJECT MATERIAL ID GRUN LANGUAGE &SY-LANGU&
    and
    /:INCLUDE &ISEG-MATNR& OBJECT MATERIAL ID GRUN LANGUAGE &SY-LANGU&
    But nothing is displayed. Anything wrong?

  • How to add info record text into Schedule agreement

    Dear,
    how can I put the info record text into Schedule Agreement. normally it can contains the short text , but in my company, it needs  some more specific description.so we want to add info record text on it.
    via ME32L ? or ...
    thanks for your kind help
    Meng HM

    Hi,
    In the inforecord trasnaction code ME11,go to  info record text and double click on  'Info record note' -
    Now system will open word document & put whatever text you needed(more) & save.
    With Regards,
    Jaheer

  • Old material number - Field in Basic Data 1 View Material Master

    Hai Techies,
    We have a field called old material number - MARA-BISMT in material master basic data 1 view. Is that field is just for reference of old material or does it have any effects in the SAP MM when using the material for purchasing or in BOM or so on.
    Could any one please highlight me the consequences of using this field to refer a old material number for the new number created.
    Thanking you in advance.
    Regards,
    Kris.S

    Hello Kris,
    Number under which you have managed the material so far or still manage it,
    for example, in another system or in a card index.
    You can use the old material number to systematically search for material
    master records via matchcodes.
    Your understanding for the use of this field is correct.
    regards
    Ray

  • Upload Basic Data Text for Materials

    Hi,
    I'm trying to upload Basic Data Text for Materials using FM SAVE_TEXT. Everything works fine except long text. It is not accepting more than 132 charactors. What logic should I use so that it will append the remaining text for the same material on the other line?
    Please help !!!
    Thanks.

    If your text is longer than 132 characters, you have to wrap the text into multiple lines (FMs you should be using are FORMAT_TEXTLINES & RKD_WORD_WRAP).
    Search in SDN for details on these FMs.
    BR,
    Suhas
    PS: You can also explore uploading the material long texts using BAPI_MATERIAL_SAVEDATA. Uploading Basic Data Longtext into Material Master

  • How to find ObjectID for Basic Data Text?

    I need to figure out what the ObjectID for the basic data text is in CRM...but, have had limited success in figuring out what the object name is for it.
    Using transaction SE75 ---> Text Objects and IDs ---> Double click row with Object = PRODUCT
    This brings up a list that says ID = BASE
    So, if this is correct, would I declare the jsp code for the ISA to search in Basic Data Text like this?
              <tr>
                <td align="right" nowrap><isa:translate key="catalog.isa.description"></isa:translate>: </td>
                <td><input type="text" class="textInput" name="<%= catalog.getCatalog().getAttributeGuid(AttributeKeyConstants.PRODUCT.BASE) %>" size="15" style="width:150px"></td>
              </tr>

    You can use Transp. Table      TBD62 .
    enter Message Type                      CREMAS
    you will get the list of tables and the fields from which data is pulled based on the change pointers in Transp. Table      BDCP.

  • Purchase order Text and Basic data text needed from MM03 tcode

    Hi
    I need Purchase order text and Basic data text to be fetched by material number.
    Purchase order text and Basic data text are present in MM03 Tcode.
    Can anyone please guide me how to do it.
    Kind Regards
    Sajid

    hi
    Purchase order text
    GotoMM03 ->view purchase order text.
    In purchase order text screen, below you find one icon 'Editor'
    click on this icon. It will open another screen.
    In this screen -> click Goto Menu->Header.
    It will open the details about Purchase order text.
    TextName (Generally it is material name)
    Language
    Text ID : BEST
    Text Object: MATERIAL.
    Pass the above to READ_TEXT to get the text
    *Basic data text *
    Basic Data Text in MM03

  • Lsmw problem: for mm01 basic data text two language

    Dear,
    I want to realize, in mm01, under 'basic data text' tab, have English and French text.
    I use lsmw, direct input,object:0020, method:0000, program name:RMDATIND.
    The basic data text function should be done in structure BMMH7.
    Now, I add some codes for BMMH7 after entering 'Display Conversion Program'. But the codes will be covered when the rules changed.
    Could you please tell me how to do the same function in 'Maintain Field Mapping and Conversion Rules'?

    Look at the codes I added in conversion program:
    form convert_transaction.
      check so_tcntr.
      loop at ZMATERIAL.
        perform convert_0001.                                   " BGR00
        perform convert_0002.                                   " BMM00
        perform convert_0003.                                   " BMMH1
        perform convert_0004.                                   " BMMH2
        perform convert_0005.                                   " BMMH3
        perform convert_0006.                                   " BMMH4
        perform convert_0007.                                   " BMMH5
        perform convert_0008.                                   " BMMH6
        perform convert_0009.                                   " BMMH7
    * Add start by SAPGD003
        perform convert_0011.                                   " BMMH7
    * Add end by SAPGD003
        perform convert_0010.                                   " BMMH8
      ENDLOOP.
    * End of transaction
      transfer_transaction.
    endform.                    "convert_transaction
    form convert_0009.                                          " BMMH7
      check g_skip_transaction = no.
      g_skip_record = no.
      g_record = 'BMMH7'.
    * --- __BEGIN_OF_RECORD__
      BMMH7 = INIT_BMMH7.
    * --- BMMH7-STYPE
      BMMH7-STYPE = '8'.
    * --- BMMH7-TDID
      BMMH7-TDID = 'GRUN'.
    * --- BMMH7-TDSPRAS
    * Add start by SAPGD003
      BMMH7-TDSPRAS = 'F'.
    * Add end by SAPGD003
    * --- BMMH7-TDFORMAT
      BMMH7-TDFORMAT = '*'.
    * --- BMMH7-TDLINE
    * Add start by SAPGD003
      BMMH7-TDLINE = zmaterial-TEXTE_CMD_FR .
    * Add end by SAPGD003
    * --- BMMH7-TDSPRASISO
    * Add start by SAPGD003
      BMMH7-TDSPRASISO = 'FR'.
    * Add end by SAPGD003
    * --- __END_OF_RECORD__
      transfer_record.
      g_skip_record = no.
    endform.                    "convert_0009
    form convert_0011.                                          " BMMH7
      check g_skip_transaction = no.
      g_skip_record = no.
      g_record = 'BMMH7'.
    * --- __BEGIN_OF_RECORD__
      BMMH7 = INIT_BMMH7.
    * --- BMMH7-STYPE
      BMMH7-STYPE = '8'.
    * --- BMMH7-TDID
      BMMH7-TDID = 'GRUN'.
    * --- BMMH7-TDSPRAS
      BMMH7-TDSPRAS = 'E'.
    * --- BMMH7-TDFORMAT
      BMMH7-TDFORMAT = '*'.
    * --- BMMH7-TDLINE
      BMMH7-TDLINE = zmaterial-TEXTE_CMD_EN .
    * --- BMMH7-TDSPRASISO
      BMMH7-TDSPRASISO = 'EN'.
    * --- __END_OF_RECORD__
      transfer_record.
      g_skip_record = no.
    endform.                    "convert_0011

  • How to upload PO text of material master ?

    dear gurus,
    how to upload PO text in material master in mass , can i use LSMW or BDC ? if yes then how?
    I have done the recording but LSMW is not working for PO text.
    Upesh khairnar.

    Hi!
    try using Purchasing Inforecord for this. in here you maintain master data linkage for Material Master and Vendor Master. You will just have to input the Material Number, the Vendor Account, and the Purchasing Org. In here you can maintain the PO text defaulted per Material Number. After the maintenance of Inforecord, the PO text will be reflected on the PO document.
    Here is the ff Transaction Code:
    - ME11 (Create Inforecord)
    - ME12 (Change Inforecord)
    - ME13 (Display Inforecord)
    Hope this helps, Thank you.
    Mik

  • How to add TIMESTAMP data type in  Enterprise Architect...?

    Hi all
    There is no data type of timestamp in Enterprise Architech. There is only
    DATE type. I have ERD prepared from Enterprise Architech. How to modify
    DATE type to TIMESTAMP type.
    How to add TIMESTAMP data type in Enterprise Architect or in ERD ?
    Thanks in advance,
    Pal

    Have you asked this question of the vendor of Enterprise Architect? They may have a later version that supports the various TIMESTAMP data types. If your ERD tool doesn't support a data type, other than talking to the vendor or working around the problem (i.e. generate DDL to a text file and edit it before applying it to the database), you're probably out of luck.
    Justin

  • How to add more disk space into /   root file system

    Hi All,
    Linux  2.6.18-128
    can anyone please let us know how to add more disk space into "/" root file system.
    i have added new hard disk with space of 20GB, 
    [root@rac2 shm]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda1             965M  767M  149M  84% /
    /dev/hda7             1.9G  234M  1.6G  13% /var
    /dev/hda6             2.9G   69M  2.7G   3% /tmp
    /dev/hda3             7.6G  4.2G  3.0G  59% /usr
    /dev/hda2              18G   12G  4.8G  71% /u01
    LABLE=/               2.0G     0  2.0G   0% /dev/shm
    /dev/hdb2             8.9G  149M  8.3G   2% /vm
    [root@rac2 shm]#

    Dude! wrote:
    I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
    Simple stats.  Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
    2 disks buy you 2 tickets in The-Drive-Failure lottery.
    Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
    In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
    The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
    I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive.

  • System table for Additional Data - Basic data text (MM03)

    Hi
    How can I get the system table for stroring data in MM03 in "Additional Data" the "basic data text" ?
    Thanks in advance.

    Hi,
    CALL FUNCTION 'READ_TEXT'
             EXPORTING
                CLIENT                  = SY-MANDT
                ID                      = 'Z610'
                LANGUAGE                = SY-LANGU
                NAME                    = V_TDNAME
                OBJECT                  = 'VBBK'
                ARCHIVE_HANDLE          = 0
             IMPORTING
                HEADER                  = I_TEXT_HEAD
             TABLES
                LINES                   = I_TEXT_LINE
             EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
    Regards,
    Bharani

Maybe you are looking for