Maintain sales text View through BAPI_MATERIAL_SAVEDATA

Hi,
in BAPI_MATERIAL_SAVEDATA, can we maintain the Sales Text view in mm02 through this BAPI.
Regards,
Masoom Ali

Hi,
Fill the data in BAPI structure "MATERIALLONGTEXT".
Pass following parameters in the structure
APPLOBJECT : MVKE
TEXT_NAME : {Material+SalesOrg+Dist Channel}
TEXT_ID : 0001
LANGU : sy-langu
FORMAT_COL : *
TEXT_LINE : "Sales text which is to be updated"
Regards
Vinod
Edited by: Vinod Kumar on Jul 23, 2010 4:49 PM

Similar Messages

  • Dump:Sales Text View in Material master for FERT items

    Dear Gurus,
    I am Creating Material MAster record for Fert Item,
    I am trying to maintain the Sales View of it but system is
    giving me dump ,
    I  am getting the following message
    "No text maintained; a blank text has been created in English
    automatically
    Message no. MM630
    Diagnosis
    For your convenience, a blank text has been created in the
    language English automatically.
    Procedure
    You can maintain this text. If you exit text maintenance
    without maintaining it, it will be deleted automatically.
    Name of runtime error
    "LOAD_PROGRAM_NOT_FOUND"
    Error analysis
    On account of a branch in the program
    (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
    or a transaction call, another ABAP/4 program
    is to be loaded, namely " ".
    However, program " " does not exist in the library.
    Possible reasons:
    a) Wrong program name specified in an external PERFORM or
        SUBMIT or, when defining a new transaction, a new
        dialog module or a new function module.
    b) Transport error
    what can be the possible reason
    Please guide me in this context
    regards
    shailesh

    Dear Shailesh
    If this is the problem , then please go through the solution
                                                                                    No text maintained; a blank text has been created in English automatically                                                                               
    Message no. MM 630                                                                               
    Diagnosis                                                                               
    For your convenience, a blank text has been created in the language     
         English automatically.                                                                               
    Procedure                                                                               
    You can maintain this text. If you exit text maintenance without        
         maintaining it, it will be deleted automatically.                                                                               
    This is a standard behivour . No need to worry . it is not an error.It comes because you have to maintain something in sales text view if the sales view is maintained in OMS2 settings.And since it is a finished material then it will come.
    It dosent allow you to go to the next view when you press  enter .
    you have to go to the next view using Mouse .
    Just click on the next view you have to create it will allow.
    then fill all the views and just save the material you will be able to save
    Regards
    Rahul Singh
    Edited by: Rahul Singh on Nov 19, 2008 8:11 AM

  • Mm02 - Sales text view update?

    Hi Friends,
    I am working on the material master change (i.e MM02 transaction) and I need to upload Material master u2013sales text view and purchase order text view and all other additional data views.
    I have updated one material in recording mode (i.e through SHDB transaction).
    I am unable to find the sales text field name. But I find BDC_SUBSCR in my recording.
    Pls find the below recording log.
    SAPLMGMM     4040     X                                                                               
    BDC_OKCODE               =BU
                BDC_SUBSCR               SAPLMGMM                                 2010TABFRA1
                BDC_SUBSCR               SAPLMGD1                                1004SUB1
                MAKT-MAKTX               test material desc XXX
                BDC_SUBSCR               SAPLMGD1                                2121SUB2
    Pls let me know how to update sales text view and po text view in MM02 transaction.
    Thanks in advance.
    Regards
    raghu

    You have to use FM SAVE_TEXT to upload sales text and purchase order test.
    You can't record a BDC for custom controls like text editor.
    MOVE V_MATNR TO tname-tdname.
    MOVE 'MARA' TO TNAME-TDOBJECT.
    MOVE 'SL1 TO TNAME-TDID.
    MOVE SY-LANGU TO TNAME-TDSPRAS.
    APPEND TNAME
    TXTLINES-TDFORMAT = '*'.
    TXTLINES-TDLINE = 'This is your purchase order text'.
    APPEND TXTLINES.
    CLEAR TXTLINES.
    CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    HEADER = TNAME
    INSERT = 'X'
    SAVEMODE_DIRECT = 'X'
    *OWNER_SPECIFIED = ' '
    *LOCAL_CAT = ' '
    IMPORTING
    *FUNCTION =
    NEWHEADER = TNAME
    TABLES
    LINES = TXTLINES
    EXCEPTIONS
    ID = 1
    LANGUAGE = 2
    NAME = 3
    OBJECT = 4
    OTHERS = 5
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • New Text in the Sales Text View in the Material Master

    Hi All,
    I want to create new text ID in the material master sales text tab
    Can you please help me in how to create the new text for material master sales text tab view.
    Regards
    Rajesh

    Well it may not be possible by standard SAP to create in Material.
    AN alternative might be to use a standard text type and then call it in your Text Determination Procedure.
    T-code "SO10" --> Give "Text Name  & Text ID & Language --> Click at "Create" --> On next screen --> Go to (Menu) --> change editor --> Write the text which you want
    Go to VOTXN , and maintain the required confirguation to get this standard Text copied to the material during order processing.
    Regards
    Sai
    Edited by: Sai on Apr 16, 2010 1:39 PM

  • Why can't change the long text in Sales text view of materail master data?

    It give me a information: Please read the intructions carefully before you install, connect or switch the pump on.
    my R/3's version is 4.7 of IDES.

    What exactly means "can't"; what happens when you try?
    What is your operating system?

  • Output and sales text maintainenance

    Hi Experts
    Please advise me on these chnage requests
    1. How to assign a sales dcounem type to a output type here the Docuemnt type Debit memo request
    a, How and where to assign  the default printer
    b.what changes need to assigned to a output procedure
    Please advise the whole process
    2. sales text has to printed in the quotaion output
    a. I know some changes have to be made in the Form ,besides this what all the functinal changes have tobe made
    b. Should we maintain the text in Material master sales text view , does this automatically take in  the Form print the Output
    c. what confirguration changes needs to be followed Pls advise
    3.For a consolidated invoice to  get we have the Spilt criteria in standard SAP , diffrent ship to Parties with the regionall code
    Pls advise me to get the consolidated Invoice
    Should we write a routine in the copying controls and write a new routine Please advise how to get consolidated invoices
    Thanks in advance for your patient replies

    Hi there,
    1. To assign a sales document type to a output type goto T-code V/43 and assign the necessary output procedure and output type.
    1. a)  Goto T-code NACE select your document type and goto condition record ( if already maintain it , then go in change mode) select the necessary combination of which you want or you maintain the record, filed out the necessary fields and click Tab : Communication" and in Output devices column provider your printer details * if you want immediately print do not forget to check the box "Print immediately".
    1. b)  Goto your output procedure and add your output type condition with necessary requirement field.
    2. a,b & c) Sales Text is printed from Material Master , if you maintain any text in Sales Text tab here, it will be printed on every sales document. For Qoutation also it will print from Material Master, but maintain proper copy control so that it can be populated in the preceding documents also. Ensure other necessary requirement to be maintain in Smart Forms. No other configuration required other then this.
    3. To get a consolidated invoice you need to have following creterias:
    i) Same Payer
    ii) Same Billing document type
    Also you can use the T-code VF21 for consolidating your invoices into one invoice list it is already there in Standard SAP
    Hope I met your requirement revert me back
    Regards
    Abdullah

  • Sales text based search for materails while VA01/VA02

    Hi Guys,
    I would like know if there are any possible ways to search materials using F4 option in VA01/VA02/VA03 based on Sales Text, maintained in Material master sales text view, Like how we search the materials based on Plant/Sales area/Discreption etc..
    I checked with my technical team, but the Sales text will not be saved in any table so tough to get it,
    Let me know if anybody having solution or ideas to share,
    Thanks in advance,
    Best Regards,
    Siddaram

    Hi,
    Perhaps it will be a silly idea, but you can create in MARA a field ZZ with an append. This field you can populate with the first line of LIKE (structure TLINE) from function module READ_TEXT (TLINE-TDLINE with a length of 172 char). Then with this field you can try to do a help search, but I have doubts about:
    1. Performance: the field is so long, without index, etc...
    2. You must build a policy about the first 172 char in these texts. I have doubts about the discipline of end-users about this issue.
    The ZZ-field you can populate with a periodic job.
    As I tell you, it's only an idea.
    I hope this helps you
    Regards,
    Eduardo

  • Sales text and config for a material

    Hi,
    I need to know on which table are the maintained Sales text, languages and configuration for a material are stored on R/3
    Thanks for any comments
    Kamran

    Hi vahed kamran,
    As said by Aparna, the text are stored in table STXH. we need to fetch them by using the fields
    TDOBJECT     Texts: Application Object
    TDNAME             Name
    TDID             Text ID
    TDSPRAS             Language Key
    we can use READ_TEXT Function module to get the text.
    For Example
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
           ID = '0001'
           LANGUAGE = 'E'
           NAME = XNAME
           OBJECT = 'VBBP'
      TABLES
           LINES = i_XTLINE
      EXCEPTIONS
          ID = 1
          LANGUAGE = 2
          NAME = 3
          NOT_FOUND = 4
         OBJECT = 5
        REFERENCE_CHECK = 6.
    Best regards,
    raam

  • Sales Text of material master using create_text

    Hi All,
    I need to update Sales Text field for existing materials in material master.
    (mm02->sales Text view>sales text)
    This text will be of 40-50 char length.
    Now if i use CREATE_TEXT with following paramters, no text is getting updated in the material master.
    Import Paramters:
    FID: 0001
    FLANGUAGE: EN
    FNAME: <material no><sales org><Dist channel>
    FOBJECT: MVKE
    SAVE-DIRECT : X
    FFORMAT: *
    Tables:
    FLINES: <Sales text>
    After execution of this FM, no error message is popped up.
    Is it the right way to update the sales Text or any changes need to be done in defining paramters in Function module?
    Kindly Guide me.....
    Regards
    Pavan

    MArtin,
    Can you inform me what all paramters to be passed in SAVE-TEXT module?
    Regards
    Pavan

  • MAKES MATERIAL SALES TEXT FIELD MANDATORY in MATERIAL MASTER RECORD

    Dear ALl,
    I want to make the Sales Text view mandatory, that is the user must enter a value in the sales text screen.
    Is there a way to do it, can you suggest any user exits or any thing to make it a mandatory.
    deepak

    Spro-Logistics GeneralMaterial masterField selection-- select the feild.. and make mandatory there.. you can see four opitions...
    other wise goto SHD0.. and do there..
    Reward if it helps
    Ramki

  • Material Master - Purchase order Text view as plant specific

    Is there any provision in standard SAP to make Material Master u2013 Purchase order Text view as plant specific.
    Example: Material Master u2013 Sales text view is sales org & Distribution channel specific and the sales text is unique of each of the sales org and distribution channel combination.
    i.e, if we change sales text for a sales org and distribution channel combination, it will not affect the sales text of another sales org and distribution channel combination.
    Similarly, can we make the Purchase order Text view as plant specific? How to achieve this?
    As of now, if we change the text for one plant, it will be affected to all other plants also.

    Hi Pankaj, thanks for the reply.
    The solution you have given is applicable if the info record PO text is used only in Purchase order?
    Moreover, we are not using plant specific info records.
    We want to use material master PO text for some other custom transactions.
    Please give your inputs.
    Thank you.

  • SALES TEXTS

    HI ALL
    CAN ANYBODY TELL ME THE IMPORTANCE OF SALES TEXTS VIEW IN MATERIAL MASTER.
    REGARD
    RAG

    Hi Tarun,
    A sales text is a text describing the material in more detail. This text is subsequently copied to sales documents (such as requests for quotations or sales orders) automatically, where you can change it if necessary.
    It is valid for a specific sales organization and distribution channel (that is, distribution chain).
    You can enter a sales text in the material master record in as many languages as you like, though only one text is allowed per language.
    REWARD POINTS IF HELPFUL
    Regards
    Sai

  • Uploading Sales Text Through BDC

    hi friends,
    i want to upload Material Sales Text Through BDC Program.
    Please let me know how to do this.
    regards,
    srinivas

    hi friends,
    i want to upload Material Sales Text Through BDC Program.
    Please let me know how to do this.
    regards,
    srinivas

  • Mm01 purchase text view

    Hello Friends,
    I want to upload material master through mm01 but while recording purchase text view is not getting recorded in bdc.
    Kindly suggest how to handle purchase text in such case.
    Rgds,
    Sunny

    You can use BAPI_MATERIAL_SAVEDATA for creating the PO text .
    Here is the sample code
    TABLES : MARC,MARA.
    TYPE-POOLS : TRUXS.
    DATA : BEGIN OF ITAB OCCURS 0,
           MATNR(18),
    *       MTART(4),
           TEXT(10000)," TYPE STRING,
           END OF ITAB.
    DATA : ITEMP TYPE TRUXS_T_TEXT_DATA.
    DATA : TEXT(132).
    data : HEADDATA             LIKE BAPIMATHEAD,
           PLANTDATA            LIKE BAPI_MARC,
           PLANTDATAX           LIKE BAPI_MARCX ,
           MATERIALLONGTEXT     LIKE BAPI_MLTX  OCCURS 0 WITH HEADER LINE.
    DATA: RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
          RETURN1 LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
          RETURNMESSAGES LIKE BAPI_MATRETURN2 OCCURS 0 WITH HEADER LINE.
    DATA : ITEXT(132) OCCURS 0 WITH HEADER LINE.
    DATA : LEN TYPE I,
           POS TYPE I,
           TIM TYPE I,
           LENGTH TYPE I,
           FILENAME TYPE STRING.
    DATA : TABIX LIKE SY-TABIX,
           LEN1  TYPE I,
           TOTAL TYPE I,
           TEXT1(132),
           LINES TYPE I.
    PARAMETERS : P_FNAME LIKE RLGRAP-FILENAME.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
    IMPORTING
       FILE_NAME           = P_FNAME.
    START-OF-SELECTION.
    *CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    *  EXPORTING
    **   I_FIELD_SEPERATOR          =
    **   I_LINE_HEADER              =
    *    I_TAB_RAW_DATA             = ITEMP
    *    I_FILENAME                 = P_FNAME
    *  TABLES
    *    I_TAB_CONVERTED_DATA       = ITAB
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
    *IF SY-SUBRC <> 0.
    ** MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    **         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    FILENAME = P_FNAME.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILENAME
    *   FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT         = ITAB-MATNR
         IMPORTING
           OUTPUT        =  ITAB-MATNR.
        SPLIT ITAB-TEXT AT SPACE INTO TABLE ITEXT.
         SELECT SINGLE MTART INTO MARA-MTART FROM MARA WHERE MATNR = ITAB-MATNR.
         HEADDATA-MATERIAL = ITAB-MATNR.
         HEADDATA-IND_SECTOR = 'M'.                              "IMM-MBRSH.
         HEADDATA-MATL_TYPE = MARA-MTART.
         HEADDATA-PURCHASE_VIEW  = 'X'.
      DESCRIBE TABLE ITEXT LINES LINES.
      LOOP AT ITEXT.
      TABIX = SY-TABIX + 1.
      CONCATENATE TEXT ITEXT INTO TEXT SEPARATED BY SPACE.
      LEN = STRLEN( TEXT ).
    *  IF LEN GT 100.
      IF TABIX LE LINES .
          READ TABLE ITEXT INDEX TABIX.
          LEN1 = STRLEN( ITEXT ).
          TOTAL = LEN1 + LEN.
          IF TOTAL GT 132.
              MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
              MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
              MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
              MATERIALLONGTEXT-LANGU  = SY-LANGU.
              MATERIALLONGTEXT-TEXT_LINE = TEXT.
              APPEND MATERIALLONGTEXT.
              CLEAR : MATERIALLONGTEXT,TEXT.
          ENDIF.
      ELSE.
              MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
              MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
              MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
              MATERIALLONGTEXT-LANGU  = SY-LANGU.
              MATERIALLONGTEXT-TEXT_LINE = TEXT.
              APPEND MATERIALLONGTEXT.
              CLEAR : MATERIALLONGTEXT,TEXT.
      ENDIF.
    *  ENDIF.
    *  AT LAST.
    *  IF LEN LE 100.
    *  MATERIALLONGTEXT-APPLOBJECT =  'MATERIAL'.
    *  MATERIALLONGTEXT-TEXT_NAME = ITAB-MATNR.
    *  MATERIALLONGTEXT-TEXT_ID  = 'BEST'.
    *  MATERIALLONGTEXT-LANGU  = SY-LANGU.
    *  MATERIALLONGTEXT-TEXT_LINE = TEXT.
    *  APPEND MATERIALLONGTEXT.
    *  CLEAR : MATERIALLONGTEXT,TEXT.
    *  ENDIF.
    *  ENDAT.
      ENDLOOP.
    *  AT END OF MATNR.
          CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
            EXPORTING
             HEADDATA                   = HEADDATA
           IMPORTING
             RETURN                     = RETURN
           TABLES
             MATERIALLONGTEXT           = MATERIALLONGTEXT
             RETURNMESSAGES             = RETURNMESSAGES.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             WAIT          = 'X'.
          move-corresponding return to return1.
          APPEND RETURN1.
          CLEAR RETURN1.
          CLEAR :HEADDATA ,
                 RETURNMESSAGES,
                 RETURNMESSAGES[],
                 MATERIALLONGTEXT,
                 MATERIALLONGTEXT[].
    *  ENDAT.
      CLEAR ITAB.
    ENDLOOP.
    LOOP AT RETURN1.
    WRITE :/ RETURN1-MESSAGE.
    ENDLOOP.
    Change the code as per your need and you can create that by create_text fm also but wont forget to use commit_text after using create_text

  • How to capture purchase order text view in mm01

    Hello All,
    Im doing recording for one material type in BDC but im not able to capture purchase order text view while creating material.
    Its not getting recorded only pls guide bcoz i have to enter purchase and sales text for new materials.
    Regards,
    Sunny

    Hi Sunny,
    I have a different sugesstion. Never use BDC if u have BAPI available for the same functionality.
    use this BAPI BAPI_MATERIAL_SAVEDATA for material creation. Even u can create the po texts here. Check the parameters MATERIALLONGTEXT and EXTENSIONIN. in FM documentation. It is pretty clear.
    Different long texts (basic data texts, purchase order texts, internal comments, sales texts, material memos) can be created for a material. This requires the fields APPLOBJECT, TEXT_NAME, TEXT_ID, and LANGU or LANGU_ISO in table parameter MATERIALLONGTEXT to contain entries. Depending on the content of field TEXT_ID, the field TEXT_NAME must have the following structure:
    The material number is transferred first. If it has fewer than 18 characters, the remaining characters must be filled with blanks. If it is a material memo (LTXT), the plant key must also be transferred from character 19 onwards; in the case of a sales text (0001), this must be the sales organization and distribution channel. The combinations allowed for the four different fields are indicated in the following table:
    APPLOBJECT TEXT_NAME  TEXT_ID    LANGU
    MATERIAL Matl no. (18 char.)  BEST, GRUN, or IVER  Language
    MDTXT Matl no. (18 char.)  LTXT    Language
    Plant
    MVKE Matl no. (18 char.)  0001    Language
    Sales organization and
    distribution channel
    Thanks,
    Vinod.

Maybe you are looking for

  • How to remove xmlns in node level

    Hi Experts! How to remove xmlns in node level in response xml file. I tried to use AF_Modules/XMLAnonymizerBean, but it did not work. Can you please help me out on this. I want to remvoe  xmlns tag in LEVICOM Eg: - <Addenda>    - <LEVICOM xmlns=""> T

  • I've used migration assistant - what's next?

    I've used migration assistant and it created a new user? How do I use those files in the initial account I created? Do I now share the folders? Is there an automatic way to transfer them to the actual account I want to use?

  • Mapping Swing datatypes and their identifier

    hi java_lander, yeah...this's goin to be a "little bit crazy" question. i got an editor having syntax colrizing feature. everything is goin fine but..to an extension of that, i want to map various JComponent classes with their identifiers... like whe

  • Reader 10.1.11 not in SCUP Catalog

    Importing the latest SCUP Catalogs into SCUP 2011 and APSB14-19 does not appear.  Acrobat\Reader 10.1.11 or 11.0.08. Open the XML in Cab and it does not appear to be present. Downloaded the Cab from two different Internet connections.

  • Interface between Mysql to SAP

    Hi all,     I have to develop an interface between SAP to Mysql. Please suggest your ideas. Requirement: There is a machine called Acelli with Mysql database. We have a custom transaction in SAP, where user will select a line in table cotrol and clic