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

Similar Messages

  • 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

  • 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.

  • 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

  • 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?

  • 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

  • To upload values into material master table

    Hi,
    Can anyone tell me how to upload the changed values in a screen to material master table?

    Hi,
    Actually my requirement is,there is an update screen.There are many fields in the update screen.When the user changes the value of a partiacular field and click on the checkbox beside it of which he wants to get uploaded into material master table,and click on the execute button,the values should get uploaded into material master table.
    Can we upload all the field values at a time into material master table?How can we do that?

  • Interactive ALV to report to get into Material Master Sales View

    Hi,
    I want to know way to get into Material master Sales view from an Interactive ALV report.
    In the output we have (custom report for Sales) the Sales Order item information. If the user double clicks on the material, it should directly goes to the Material Master Sales org 1 view. I can able to get to MM03 initial screen to display the list of views, but it would be better we can use the Plant, Sales Org and plant info from Sales Item to get into the material master Sales view.
    I checked that this functionality is there in the standard code. If you double click on the material in Purchase order display(ME23N) from the item level, it is directly getting into Material Master Purchasing view. Is there a way to achieve this.
    Your suggestions would be appreciated with points. Thanks!

    Hello,
    Yes, it's possible using the CALL TRANSACTION command with the addition AND SKIP FIRST SCREEN. The only thing that you need is to fill the fields from the first screen (SET PARAMETER command).
    DATA: carrid TYPE spfli-carrid,
          connid TYPE spfli-connid.
    SET PARAMETER ID: 'CAR' FIELD carrid,
                      'CON' FIELD connid.
    CALL TRANSACTION 'FLIGHT_TA' AND SKIP FIRST SCREEN.
    Regards.

  • Consumption data in the material master

    Dear All,
    Can anyone explain me about consumption data in the material master?
    1.     How the consumption datau2019s are automatically updated in the material master?
    2.     List of movement types, that creates consumption data in the material master
    Thanks in advance
    Regards,
    Krishna samy

    Krishna Samy wrote:
    Dear All,
    >
    >
    > Can anyone explain me about consumption data in the material master?
    >
    >
    > 1.     How the consumption datau2019s are automatically updated in the material master?
    >
    > 2.     List of movement types, that creates consumption data in the material master
    >
    >
    > Thanks in advance
    >
    >
    > Regards,
    >
    > Krishna samy
    Hi,
    When a PO is created (say for Cost Center(s)), and if the material has a Material Master record, after the goods are received the same goes directly into Consumption account and not in stock account since it is meant for direct consumption by Cost Center(s). (Ex`s. of consumables are Office supplies).
    Please go thru this document to understand how automatic postings works: [CLICK HERE|http://help.sap.com/saphelp_46c/helpdata/en/12/1a39516e36d1118b3f0060b03ca329/content.htm]
    Reetesh
    Edited by: Reetesh on Nov 27, 2011 7:47 PM

  • Automatic creation of  Warehouse No. data in the material master

    Hi all,
    I want the automatic creation of  Warehouse No. data in the material master record at the time of the first goods receipt is allowed.
    Similar to the way where we can do the same for Storage Location by clicking on Create SLoc. automatically in the plant parameters settings.
    can it be done..plz guide.
    Regards,
    Sandeep

    Hi Deepak ,
    Such facility is not available for Warehouse .
    Regards
    Ramesh Ch

  • Can anyone Explain about Data conversion for Material master In SAP MM

    Can anyone Explain about Data conversion for Material master, Vendor  In SAP MM
    Thanks

    Hi,
    Refer following link;
    [Data Migration Methodology|http://christian.bergeron.voila.net/DC_Guide/Data_Migration_Methodology_for_SAP_V01a.doc]

  • Label Data View in Material Master

    Dear Team,
    Despite of performing all below standerd steps, i am not able to view Label Data view in Material Master.
    pls guide
    steps performed.
    1. Check whether the screen sequence SP exists in Customizing for the Material Master under Define Structure of Data Screens for Each Screen Sequence.
    2. Check whether screen 92 has been assigned to screen sequence SP and has the screen type 1 (main screen).
    3. Check under Subscreens whether the subscreens were assigned to screen 92 of the screen sequence SP.
    4. In the Assign Screen Sequences to User/ Material Type/Transaction/Industry Sector IMG activity, set up the users who are allowed to edit the screen sequence and when it appears.
    also I have SAP_ALL Authorization.
    Regards,
    Amol Joshi

    Hello Amol,
    For IMG activity: Define Structure of Data Screens for Each Screen Sequence, for screen sequence 21, with logical screen 92, in subscreen, please see below settings:
    Program: SAPLMGD1 , screen no. is 1002
    Program: SAPLCBGL_LD00 , screen no. is 8020
    Program: SAPLCBGL_LD01, screen no. is 1010
    Regards,
    Niraj

  • Error in Excise Data subscreen in Material Master:Foreign Trade-Import Data

    SAP Net Weaver ECC6.0
    I have added the 'Excise data' subscreen in Material master 'Foreign trade IMport' and 'Foreign Trade Export' tab. But facing the following problem. please help.
    There are two buttons called 'More' and 'PreVals' in that subscreen. If I click either of them, it gives an error message as below
    "Record 21 MORE does not exist in table T133E
    Message no. M3748"
    and
    "Record 21 J1PR does not exist in table T133E
    Message no. M3748"
    Kindly help what to do

    OK
    Lets starts from first step.
    Go to OMT3B
    1.  Copy 21 and make it 91
    2. Then from left hand side select Data screens no 15 copy it and make it 91 - Z1
    3. Then again go to left hand side   Subscreens and copy 6 and make it 91 - 71 - z and assign screen no 2205 and add prograne as SAPLJ1I_MATERIAL_MASTER
    save it
    Then go to OMBt3E and copy 01 -* HERS * 12 and mahe it 01 -* ROHor FERT * 91 and save it and then check and revert back
    regards

  • Load Material Data in the Material Master

    Hi All,
      We have the Material Ledger Active at the Material Level. We are using ECC 6.0 with the highest enhancement pack.
       The requirement is to load the Moving average prices for the Company code currency and Group Currency as a part of
       Material Master Data Migration.
       I am using a the business object BUS1001006's SAVEDATA method (Basic type MATMAS_BAPI03) in a LSMW to achieve
       this.
       This IDOC does not provide me the structure or fields to load the Material Ledger Data. I tried passing the price to the
      MBEW-VERPR however the price is not updated.
       One workaround is to use MR21 however that would be a seperate program which we want to avoid.
       Has anyone done this before. Will greatly appreciate any help/suggestions.
       Thank you for your time.
    Regards,
    Vamsee

    Yes, I am loading from the text file.
    My Zmaterial is defined as InfoObject with text data language dependent.
    Now I want to load this master data through flat file.
    I created FlatFile under source System and then created a DataSource. Under Extraction tab I selected the physical location of my flat file with csv separator and all. Then under proposal I saw preview of my data. Later under Fields tab, For Language I selected 0HTLANG
    For Materialid I selected Zmaterial (defined by me)
    But now there is one more field remaining MAterial Description, across that field what Template InfoObject should I put? Thats my confusion.
    After this I can click on Preview and then load that data in PSA thru infopackage. then later into InfoObject.
    Please inform.
    thnx

Maybe you are looking for

  • Runtime error while using SAP Enterprise Connector in a J2EE Web Servlet

    Hello, I'm facing problems while trying to do a RFC call out of a Servlet. I'm using Development Components (DCs) and my project setup is as follows: Firstly I've created a DC of type J2EE/Web Module. This DC implements an absolutly simple servlet wh

  • I need a central hard drive for both MAC and PC to read and write files interactively. Would the time capsule work?

    I've just purchased a new mac and realised that I can not write directly to my external harddrive that I use with my PC. I need a drive that both my Mac and PC can work with. Could someone tell me what the best solution for this is?? Many thanks in a

  • IPod cycles hard reset after Texas Hold'em install

    I'll send the message to Apple and call as well tomorrow, but thought I would throw this out there to see if anyone has advice - and also as a cautionary note. I downloaded Texas Hold'em tonight to install onto my 5G Video iPod. I'm running iTunes 7.

  • Use Alchemy as Standard AS3 Compiler

    Anyone know of a way to do this? Is there a way to pass an actionscript class to Alchemy and have it compile a swf? Or, pass ABC to Alchemy and have it output a swf? I ask because, then we'd essentially have a new actionscript compiler that can perfo

  • Can't read PSE7 Tutorial PDF files

    When I open PSE7, there is a link on the left for Tutorials. When I select one of the PDF tutorials, it will not open. I get a message: A sufficient version (8.1 or later) of Adobe Reader is detected, but the the version of Adobe Reader that is setup