Howto create sales text based on material number in VA01any Exit or badi

Hi All,
I have to create sales text for each material number entered in sales order which using VA01 tcode .
i know there is configuration settings in SPRO, but i want to do automatically while using VA01 tcode.
i need right Exit or Badi for this as soon as i save the sale order.
can i do this using Function Module CREATE_TEXT in that exit....any Suggestions.
Regards,
Sudhakar Reddy.A

Hi..
Please check the Availability in MV45AFZZ include of SAPMV45A program.
If you are able to access the Corresponding table data ..you can set the Text directly at that place.

Similar Messages

  • 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

  • New sales text ID in material master

    Hi,
    Before posting this query i have searched the forum but couldnt find any suitable answers for my query.
    Our requirement is we need to have 3 new sales text ids created for material master with the language "EN".Per sap Standard we have a text id "0001" in material master which can be maintained once per language.Our requirement is to have multiple text ids with one language. Is this possible with standard sap configurations? where we can define a new Sales text id for material master.
    Thanks & Regards,
    Srini

    Hi Srini
    Since there is already one text type , so the best choice is to create another 2 text types with say 'ZA' and ZB
    and use them.
    Try coping the Langauge EN and create another 2 as per your requirement say  A and B. As of my knowledge you can have only one text per language , please check it once again at your end.
    So you have to copy the EN and create another two.
    Thanks
    RB
    Edited by: RBhardwaj on Mar 7, 2012 5:56 PM

  • HOW TO FIND LAST DOCUMENT DATE BASED ON MATERIAL NUMBER

    Hi,
           I want to know how to find the last document details based on material number.
    Is there any Functional modulle or BAPI programe?
    i,e, I want know last goods receipt details (MIGO)  based on material number.
    Can u please anybody tell me.
    Thanks,
    S.Muthu.
    Edited by: Subramaniyan Marimuthu on Jan 2, 2008 9:07 AM

    Hello.
    Check the BAPI_GOODSMVT_GETITEMS
    -example--
    Get GRs after a specific date for a specific plant/ storage location and movement types
      wa_budats-sign = 'I'.
      wa_budats-option = 'GE'.
      wa_budats-low = '20071201'.
      APPEND wa_budats TO budats.
      wa_plants-sign = 'I'.
      wa_plants-option = 'EQ'.
      wa_plants-low = '1000'.
      APPEND wa_plants TO plants.
      wa_stlocs-sign = 'I'.
      wa_stlocs-option = 'EQ'.
      wa_stlocs-low = '0001'.
      APPEND wa_stlocs TO stlocs.
      wa_mvts-sign = 'I'.
      wa_mvts-option = 'EQ'.
      wa_mvts-low = '101'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '901'.
      APPEND wa_mvts TO mvts.
      wa_mvts-low = '123'.
      APPEND wa_mvts TO mvts.
      CALL FUNCTION 'BAPI_GOODSMVT_GETITEMS'
        TABLES
          plant_ra        = plants
          stge_loc_ra     = stlocs
          move_type_ra    = mvts
          pstng_date_ra   = budats
          goodsmvt_header = header
          goodsmvt_items  = item
          return          = return.
    Reward if helpful.
    Cheers,
    George

  • How to get ATINN value based on material number and Class Type ?

    I have below SELECT stmt code which gives the correct value of atwrt based on materil no and ATINN.
    However in quality system, it is failing because in quality system "atinn" value is not 0000000381. It is different.
    So how can I get ATINN(Internal characteristic) value based on material number and Class Type?
    -Obtain the batch characterstic value for the Material******************
      SELECT atwrt
        UP TO 1 ROWS
        INTO v_charvalue
        FROM ausp
       WHERE objek = mcha-matnr
         AND atinn = '0000000381'   " 'US80_FRENCH_ON_LABEL'
         AND klart = '001'.
    THANKS N ADVANCE.

    Hi SAm,
    use the Below function module to get the Atinn for Atwrt for thr Class and MAterial combination..
    CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
          EXPORTING
            classtype          = '023'       "Class type
            object             = w_object  "Material number with Leading zeros
            no_value_descript  = 'X'      "Default X
            objecttable        = 'MCH1'    "Table name Mara or MCH1 or MARC
          TABLES
            t_class            = t_class   "It return the Batch class available for the above combination
            t_objectdata       = t_char  "Return Batch characteristics(ATWRT) and their value ATINN in this table
          EXCEPTIONS
            no_classification  = 1
            no_classtypes      = 2
            invalid_class_type = 3
            OTHERS             = 4.
    Regards,
    Prabhudas

  • Need the TABLE where SALES TEXT of a material is stored

    I need the table where the sales text of a material is stored. This can be onbtained from MM03 --> SALES TEXT. Here we can pick it up from the language.I need the table where it is stored.

    Hi Gurpreet
    Please follow the below steps:
    1. Go to MM02.
    2. Select View: <b>Sales Text</b>
    3. When you are in the editor, use menupath: Goto->Header
    Here we can get the details of Text-ID, Text Name, Language, Text Object.
    Use these details for FM: READ_TEXT.
    We can retreive all text in the output of the FM.
    Hope this helps you.
    Kind Regards
    Eswar

  • Custom duty should be copied into the Sales order based on material

    Hi,
    Requirement is only Custom duty  Tax condition types to copied into the sales order based on material (for e.g A) .Suppose customer X is buying material Y then different tax condition types is to be applied but if the same customer  is buying material A then only Custom duty will be copied.
    But we can set in the customer Master whether the maerial is taxable or not.So where to do the right tax classification settings so that sysyem will automatically fetch the right  tax condition types if i enter one  material which is applicable for Custom Duty only
    We are using TAXINJ.
    Regards
    Jyoti

    Dear Jyoti
    As per your post, the material code is different for the same customer and hence you can differentiate the tax classification in material master.  That is for material X, if you maintain Tax classification 1 in Sales Org1 view, maintain 2 for the material Y.
    Now maintain different tax code for these tax classifications in VK11 / UTXJ.
    thanks
    G. Lakshmipathi

  • Creating a Text based Menu!

    Hey guys. I've been up for god knows how long trying to do this but i cant figure out how. I am trying to create a text based menu looking somewhat like this:
    Add Client (a)
    List Clients (b)
    Add Video (c)
    List Videos (d)
    Exit (q)
    I have the methods written for adding videos and clients to files, working on how to read them back (FileReader?), but the main question here is, how do i link those possible answers (a,b,c,d,q) to the methods i have written? P.S. the methods are not located in the same class as the code for the menu.
    Help will ensure a couple hours good sleep on my part and a passing grade in this course. Thanks in advance.

    InputStreamReader input = new InputStreamReader(System.in);
    BufferedReader br = new BufferedReader(input);
    String strInput = br.readLine();
    if (strInput.equals("a")) {
        //call responding method
    } else if (strInput.equals("b") {
        //call responding method
    } else if (strInput.equals("c") {
        //call responding method
    } else if (strInput.equals("d") {
        //call responding method
    } else if (strInput.equals("q") {
        //call responding method
    }

  • Creating sales order based on store numbers in IS retail

    Hi ,
         I want create a sales order based on the PO received from the customer in the IS Retail system. The purchase order will be sent in a EDI file.
    a single line item in the PO will have multiple store locations where we need to ship materials. for example.
    Let us take an example
    PO will have an item "Shampoo"  quantity  - 1000, this 1000 has to be shipped to diffrenet stores like 0001 - 100, 0002 - 100 , 003 - 200 etc. Based on this PO we need to create a sales order.
    Is there any way we can handle in SAP IS retail to create sales order & save the customer store number in the sales order for that item
    With Regards
    K.Varadharajan

    Hi Varadarajan,
    For one Sales Order only one Sold to Party and one Ship to Party are possible as they are header data.
    You can have individual Sales Order for each outlet and one delivery can be made for several Sales Order for single Ship to Party.
    Hope this clarifies you.
    Regards,
    ManiKumaar

  • Function Module for listing Equipments based on Material Number

    Hi,
       I need to display list of Equipments based on the given Material Number.
       This can be done by simple query statement as given below,
              SELECT equnr matnr sernr FROM equi
              INTO CORRESPONDING FIELDS OF TABLE <Int Table>
              WHERE matnr IN im_matnr.
        But, I need Function module to acheive this. Can anyone suggest me the Standard Function module which works as mentioned above?

    Hi Shirlatha,
    If you need to  only above code  value  then you can create own FM  and pass the MATNR only.
    In SAP BAPI_EQMT_DETAIL  one FM is there to get complete Equipment details but need to pass matnr and Equipment  number.
    Please try to use this FM or you can create Own FM.
    Regards,
    Prasenjit

  • Creating Sales Text By BAPI

    Hi
    I am uploading sales text by using bapi BAPI_MATERIAL_SAVEDATA ...
    when i am upload  the  long text it displays Material Created or extenden but it does appear in mm03 sales text...
    I have coded like this..
    {    LOOP AT IT_LT.
        BAPIMATHEAD-MATERIAL = IT_LT-MATNR.
        BAPIMATHEAD-SALES_VIEW = 'X'.
         Sales data
        BAPI_MVKE-SALES_ORG = IT_LT-VKORG.
        BAPI_MVKE-DISTR_CHAN = IT_LT-VTWEG.
        BAPI_MVKEX-SALES_ORG = IT_LT-VKORG.
        BAPI_MVKEX-DISTR_CHAN = IT_LT-VTWEG.
         LONG TXT
        IT_MLTX-APPLOBJECT =  'MKVE'.
        IT_MLTX-TEXT_NAME = IT_LT-MATNR.
        IT_MLTX-TEXT_ID  = '0001'.
        IT_MLTX-LANGU   = 'E'.
        IT_MLTX-LANGU_ISO  = 'EN'.
        IT_MLTX-FORMAT_COL = '*'.
        IT_MLTX-TEXT_LINE = IT_LT-LTEXT.
        APPEND IT_MLTX TO IT_MLTX.
        CLEAR IT_MLTX.
        CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
          EXPORTING
            HEADDATA                   = BAPIMATHEAD
       SALESDATA                  = BAPI_MVKE
       SALESDATAX                 = BAPI_MVKEX
    IMPORTING
       RETURN                     = IT_RETURN1
    TABLES
        MATERIALLONGTEXT           = IT_MLTX.
        READ TABLE IT_RETURN1 WITH KEY TYPE = 'S'.
        IF SY-SUBRC = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              WAIT   = SPACE
            IMPORTING
              RETURN = IT_RETURN1.
    ENDLOOP }
    Can any one

    Hi Nagaraj,
    I have use save_text Fm .
    When i am uploading the  long text i can see the long text in stxh ( through FM read_text in se37..)
    But can't see the long text in mm03 sales text...
    i have Coded like this
       LOOP AT IT_LT.
         TB_LINES-TDFORMAT = '*'.
         TB_LINES-TDLINE = IT_LT-LTEXT.
         APPEND TB_LINES.
         CLEAR TB_LINES.
         THEAD-TDOBJECT = 'MVKE'.
         CONCATENATE IT_LT-MATNR IT_LT-VKORG IT_LT-VTWEG INTO
         THEAD-TDNAME.
         THEAD-TDID = '0001'.
         THEAD-TDSPRAS = 'E'.
         CALL FUNCTION 'SAVE_TEXT'
           EXPORTING
             CLIENT                = SY-MANDT
             HEADER                = THEAD
             INSERT                =   'X'
           TABLES
             LINES                 = TB_LINES
          EXCEPTIONS
            ID                    = 1
            LANGUAGE              = 2
            NAME                  = 3
            OBJECT                = 4
            OTHERS                = 5
         IF SY-SUBRC = 0.
          COMMIT WORK AND WAIT.
        ENDIF.

  • 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

  • Howto create special level based measure

    Hi all
    I have a geography dimension :
    All
    -Region
    --coutry
    ---store
    I'm reporting the sales per year:
    I need to create a measure that able the user to display 'shareof sales' for every level in the hierarchy.
    In other words In need a logical column that allows the user to see :
    store sales /total of 'country sales '
    country sales /total of 'Region sales'
    Region sales/total of 'All sales'
    I created 3 level based measure with different levels for every one and calculate the 3 'shareof sales'.I had a correct result But the user wants to have only one logical column representing all the combinations and using different levels of the hierarchy as lowest level .
    Is it possible to create this kind of calculation?

    Thanks stijn
    Yes he wants "sales by store"/"total country sales" when a store is in the report and "sales by country"/"total region sales" when country is in the report, but he also wants to "sales by lowest level of detail" / "sales by lowest + 2 level of detail" when store is in the report and this using the same logical column.
    But how do you create a measure which is aggregated by the lowest +1 level of detail?
    No i didn't create this aggregation and I don't know if it's possible.so I don't realy have "sales by country"/"total region sales" when country is in the report.
    Do you know what I mean? So actually you want the BI Server to find out what the higher level in the hierarchy is. I'm not aware of a function which could do this.
    Actually as you said is their any way to make the server aware of this or every thing need to be decided in the repository before??
    Regards
    Edited by: aharrab_be on Jan 28, 2009 6:55 AM

  • How to find batch class based on material number

    Hi experts,
    Can any one say how to get Batch class number by giving material number as input
    regards
    subbu

    Hi ,
    check in MCH1 table.....
    or  try this way..
    By using this function module you can get the batch class related to material..
    * Retrieve Material Batch Classes
      CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
        EXPORTING
          classtype          = zc7b1_batch_class_type
          features           = 'X'
          language           = 'E'
          object             = w_object             "Pass material Number with leading zeros
          objecttable        = 'MCH1'              "Pass table MCH1
          initial_charact    = 'X'
        TABLES
          t_class            = t_lclass             " check here what are all the classes related to material
          t_objectdata       = t_objectdata
        EXCEPTIONS
          no_classification  = 1
          no_classtypes      = 2
          invalid_class_type = 3
          OTHERS             = 4.
    Prabhudas

  • Dynamic text based on page number

    Hi Everyone,
    I'm trying to place a dynamic text on an hrform. The form is displaying wage types and when there are more than 2 pages, the values on the first page need to be summerized into a variable with the text subtotal in front of it. When we are on the last page, the text total with the total of all the wagetypes needs to be displayed. I tried to use the sfsy-page and sfsy-formpages variables to know on which page i am but the strange thing is that when i use in in program lines and i use debugger to look into the variable i get this:
    First page:
    sfsy-page = 1
    sfsy-formpages = 1
    Second page:
    sfsy-page = 2
    sfsy-formpages = 2
    But when i place it into a text element to test i get 1 of 2 on page one and 2 of 2 on page two. How is this possible?
    Also i want to display a subtotal of the displayed wagetypes per page. Anyone an idea how i can do that?
    Thank you!
    Lars

    Hi,
    The reason you get 1-1 ,2-2 in debugging is because, the pages are added dynamically,depending on the length of your main window.Which doesnt get captured initially,but can be used in text element.
    As far as totalling on every page and at the last page is concerned ,try teh following link:
    link: [http://wiki.sdn.sap.com/wiki/display/ABAP/Togetsubtotalsoneachpagein+smartforms]

Maybe you are looking for