How to write new userexit to assign customer material info record to a cust

Hi Guru's,
how to write new userexit to assign a customer material info record to a customer hierarchy
please provide step by step process that would be helpfull to me..
thansk in advance and will give full points..
Srinivas...

Hi,
Can u please give me the clarification whether u want to create new exit or u want to enhance the existing one?

Similar Messages

  • Customer material info records are not  getting displayed in Sales order

    Hi ,
    We are upgrading our client sap system  from ECC 5.0 to ECC 6.0 .We are now in the testing phase .An  issue came up  regarding customer material info records .
    When we are creating a sales order using VA01, after entering Material number and order quantity for an item  if we press the ordering party tab(before saving the sales order) the customer material info records (value in cutomer material number) are gettting displayed.But if we save the sales order we are not able to  see the customer material info records.
    kindly guide me in this issue .
    Thanks in advance .
    Nikhil

    hi nikhil,
                check the tick box in vov8 "read info record",and when you create sales order(va01),dont enter the material number enter the "customer material number" and see whether you are getting the material number.
    and also go to (va02) and check whether you are getting the CMIR details.
    pls explain me the problem in detail for my better understanding
    regards
    senya

  • Material Description in SO from Customer-Material Info Record

    Hi,
    Currently whenever user is entering the customer material number in SO item, system is bringing the SAP internal material corresponding to that.  But the material description is coming from the material master only.
    I want the material description in the SO item to be populated from Customer-Material Info Record whenever user entered the Customer material number.
    Any possibilities for the same by standard configuration without going for any enhancements.
    Thanks in advance,
    Mallik

    Hello
    Go to T code VD52 choose that customer and material combination and click on to its details blue lens on application tool bar
    In the screen which is coming ,enter your description in the CUSTOMER DESCRIPTION tab the second one and save
    Now create a sales order and see
    Your requirement will be fulfilled
    If  a material is pen description is ball pen in material master and for customer A you have defined it as Pen 1 and description as Super ball pen in VD51
    Now in sales order the description will appear as  Super ball pen
    Hope you have checked the field info record in VOV8
    I have tried this tested this and getting it
    Regards
    Raja
    Edited by: ramanathan raja on Dec 2, 2008 10:43 PM

  • Outbound delivery without reference and customer-material info record

    We use outbound deliveries without reference (L0). Several customers want their own material number printed on the delivery notes.
    So we considered using customer material info records. Unfortunately, the customer material number is not copied from the customer material info record into the outbound delivery position.
    Do any customizing settings exist that we might have overlooked? Or is this behavior a "feature"? Any hint would be highly appreciated.
    Best regards,
    Gerald

    Hi Gerald,
    have you ever figured a solution for this issue?
    I'm now facing the same issue and could need some support. I found some documentation for the USEREXIT_CUST_MATERIAL_READ, but I don't know whether that could be used as a solution.
    Please let me know or if anybody else knows something, please feel free to chip in your knowledge!
    Thx & regards,
    Bobby

  • What is the Table name of Customer Material Info Record.

    Hi Gurus,
    Plz tell me the Table name foe Customer Materiakl Info Recoed which can be reached thru T Code- VD52. Also guide me how to find. I was trying with F1 and further Technical Specifications in it, but unable to get the table name, as i need table name to give for ABAP Specifications.
    Plz help.

    Dear Amit,
    Table Name is KNMT.
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh
    P.S. you can send me a mail at my mail id [email protected] for any specific details

  • Track changes in customer material info (VD52) and create custom IDocs

    Dear experts,
    we want to track changes, which are made in VD52 (Customer matertial info record) and create custom IDocs (Z-format) based on these changes. What is the best way to do this?
    Best regards,
    David

    Hi,
    There are a dedicated BTEs (Business Tranaction Event) for this purpose (transaction FIBF).
    - created customer material infos OUTBOUND_CALL_00504001_E
    - changed customer material infos OUTBOUND_CALL_00504002_E
    - deleted customer material infos OUTBOUND_CALL_00504003_E
    You can assign your own FM to the BTE and send custom IDoc whenever there is a new/updated/deletd customer-material info record.
    Regards,
    Marcin

  • Regarding Customer Material information record

    hi gurus,
    Is there any possibility trigger the customer description in billing by Customer Material Info Record
    regards
    raj

    Dear Friend,
    Customer Material-Info record can only pass Customers Material Description to the Billing & other Outputs.
    Customer Description is picked from Customer Master record (KNA1) & you will have to maintained required Customer Description in XD01 only.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • What  is CUSTOMER MATERIAL INFORMATION RECORD ?

    Dear SAP Gurus
    What  is CUSTOMER MATERIAL INFORMATION RECORD ?
    Regards
    SA

    SA
    The Information relating to a material that applies only to a specific customer  is called as CUSTOMER MATERIAL INFORMATION.This is a description of your material by the customer and you record this customer specific information in the customer material info record.
    Regards
    VIVEK

  • How to write new line to a File?

    How to write new line to a file?
    I have a string to be written to a file. the string contains "\n" in it. But why it is not showing the new line in the file.
    I have tryed FileWriter class and FileOutputStream class, but none of them works?
    any suggestion please...

    Probably using PrintStream::println() is a portable way.
    import java.io.FileOutputStream;
    import java.io.PrintStream;
    public class NewLine {
        public static void main(String[] args) {
         try {
             PrintStream ps = new PrintStream(new FileOutputStream("foo.txt"));
             ps.write("string".getBytes());
             ps.println();
             ps.close();
         } catch (java.io.IOException e) {
             e.printStackTrace();
    }Regards,

  • Create Customer-Master Info record (VD51).

    Hi All,
    Have a requirement in which I need to create a customer-Master Info record (VD51). Want a suggestion, what is the best way to create a customer-Master Info record via program.
    Is there a BAPI or a FM which create a customer-Master Info record?
    Thanks in advance.
    Kind Regards,
    Abhi...

    Hi,
    here below a sample code for doing that
    REPORT Z_knmt.
    tables : knmt.
    data : begin of it_data occurs 0,
    kunnr like knmt-kunnr,
    vkorg like knmt-vkorg,
    vtweg like knmt-vtweg,
    matnr like knmt-matnr,
    kdmat like knmt-kdmat,
    end of it_data.
    data : begin of st_data,
    kunnr like knmt-kunnr,
    vkorg like knmt-vkorg,
    vtweg like knmt-vtweg,
    matnr like knmt-matnr,
    kdmat like knmt-kdmat,
    end of st_data.
    parameters p_file like RFPDO1-FEBAUSZF.
    selection-screen skip.
    parameters : p_group(12) default 'BATCH_VD51' obligatory.
    data w_lines type i.
    data : w_kunnr(10) type n.
    include Z_IN_BATCH_INPUT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_FILE.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
           EXPORTING
                MASK      = ',,.txt'
                STATIC    = 'X'
           CHANGING
                FILE_NAME = p_file.
    start-of-selection.
      CALL FUNCTION 'UPLOAD'
           EXPORTING
                FILENAME                = p_file
                FILETYPE                = 'DAT'
           TABLES
                DATA_TAB                = it_data
           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 it_data.
      loop at it_data.
        w_kunnr = it_data-kunnr.
        it_data-kunnr = w_kunnr.
        select single * from knmt where vkorg = it_data-vkorg
                                    and vtweg = it_data-vtweg
                                    and kunnr = it_data-kunnr
                                    and matnr = it_data-matnr.
        if sy-subrc = 0.
          delete it_data.
        endif.
      endloop.
      describe table it_data lines w_lines.
      if w_lines is initial.
        stop.
      endif.
      perform open_group using p_group.
      loop at it_data.
        st_data = it_data.
        condense st_data-kdmat no-gaps.
        at new vtweg.
          perform dynpro USING : 'X' 'SAPMV10A' '0100' ,
                                 ' ' 'BDC_OKCODE' '/00' ,
                                 ' ' 'MV10A-KUNNR' st_data-kunnr,
                                 ' ' 'MV10A-VKORG' st_data-vkorg,
                                 ' ' 'MV10A-VTWEG' st_data-vtweg.
          perform dynpro USING : 'X' 'SAPMV10A' '0200' ,
                                 ' ' 'BDC_OKCODE' '/00' ,
                                 ' ' 'MV10A-MATNR(01)' st_data-matnr,
                                 ' ' 'MV10A-KDMAT(01)' st_data-kdmat.
          perform dynpro USING : 'X' 'SAPMV10A' '0200' ,
                                 ' ' 'BDC_CURSOR' 'MV10A-MATNR(01)',
                                 ' ' 'BDC_OKCODE' '/00' .
          continue.
        endat.
        perform dynpro USING : 'X' 'SAPMV10A' '0200' ,
                               ' ' 'BDC_OKCODE' '/00' ,
                               ' ' 'MV10A-MATNR(02)' st_data-matnr,
                               ' ' 'MV10A-KDMAT(02)' st_data-kdmat.
        perform dynpro USING : 'X' 'SAPMV10A' '0200' ,
                               ' ' 'BDC_CURSOR' 'MV10A-MATNR(01)',
                               ' ' 'BDC_OKCODE' '/00' .
        at end of vtweg.
          perform dynpro USING : 'X' 'SAPMV10A' '0200' ,
                                 ' ' 'BDC_OKCODE' '=SICH'.
          perFORM insert USING 'VD51'.
        endat.
      endloop.
      perform close_group.
    end-of-selection.
    ***INCLUDE Z_IN_BATCH_INPUT .
    DATA : ti_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    *&      Form  OPEN_GROUP                                               *
    *& group -> Folder name                                                *
    FORM open_group USING group.
      FREE ti_bdcdata.
      CLEAR ti_bdcdata.
      CALL FUNCTION 'BDC_OPEN_GROUP'
           EXPORTING
                client              = sy-mandt
                group               = group
                keep                = ' '
                user                = sy-uname
           EXCEPTIONS
                client_invalid      = 1
                destination_invalid = 2
                group_invalid       = 3
                group_is_locked     = 4
                holddate_invalid    = 5
                internal_error      = 6
                queue_error         = 7
                running             = 8
                system_lock_error   = 9
                user_invalid        = 10
                OTHERS              = 11.
    ENDFORM.
          FORM close_group                                              *
    FORM close_group.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
    EXCEPTIONS
      NOT_OPEN          = 1
      QUEUE_ERROR       = 2
      OTHERS            = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.
    *&      Form  DYNPRO                                                   *
    *& dynbegin -> Parameters for screen begin ( 'X' ) or not ( ' ' )      *
    *& name     -> Field or Screen name to treat                           *
    *& value    -> Field value or screen number                            *
    FORM dynpro USING  dynbegin name value.
      CLEAR ti_bdcdata.
      ti_bdcdata-dynbegin = dynbegin.
      CASE dynbegin.
        WHEN 'X'.
          ti_bdcdata-program = name.
          ti_bdcdata-dynpro = value.
        WHEN OTHERS.
          ti_bdcdata-fnam = name.
          ti_bdcdata-fval = value.
      ENDCASE.
      APPEND ti_bdcdata.
      CLEAR ti_bdcdata.
    ENDFORM.                               " DYNPRO
    *&      Form  INSERT                                                   *
    *& t_code : transaction code                                           *
    FORM insert USING t_code.
      CALL FUNCTION 'BDC_INSERT'
           EXPORTING
                tcode            = t_code
           TABLES
                dynprotab        = ti_bdcdata
           EXCEPTIONS
                internal_error   = 1
                not_open         = 2
                queue_error      = 3
                tcode_invalid    = 4
                printing_invalid = 5
                posting_invalid  = 6
                OTHERS           = 7.
      CHECK sy-subrc EQ 0.
      FREE ti_bdcdata.
      CLEAR ti_bdcdata.
    ENDFORM.                               " INSERT

  • LSMW Method for VD51 Customer-Material Info master data conversion

    Hi,
    I am using LSMW for VD51 Customer-Material Info master data creation but can't able to find any standard BAPI, IDOC or Direct input program.
    Can anybody tell me any standard way to do it or only the recording method possible for this.
    Thanks
    Dhirendra

    Hi,
    I have done this once and used recording method in LSMW. Do the recording from LSMW itself.
    Thanks,
    Jyothi

  • Customer material Information Record

    Dear All,
    Can any one tell me the table name of Customer material Information Record?
    Regards,
    Jay

    Hi Jay
    It is Taken fron structure MV10A and the field is KDMAT
    regards
    Aditya

  • Customer material information record is not appearing in SO

    Hi,
    I have maintained the customer material information record in VD51, after maintaing also it is still not appearing in so. Plz mention the possible reasons why it is not appearing in the so.
    Thanks and Regards
    P Santhosh Kumar.

    Hi,
    Check if in T.Code VOV8 you have selected the "Read Info Record" check box for your sales order type.
    This should help. Let me know if it is still not resolved

  • Customer Material infor Record Urgent

    Hi
    Is there any standard method or idoc or BAPI available to use
    in LSMW to post Customer Material Infor record tcode VD51.
    Regards'
    Pocha

    what you described is not subject to customer material inforecord.
    Your scenario can be met with material determination. This can be maintained in VB11.
    When you enter material number 536 in sales order, SAP automatically finds 235. where your inventory is managed.
    But if 536 is your customers material number, then you can maintain this as info in the customer material inforecord, and it will print in your sales order. But you then will never enter 536 in the sales order, you will always enter 235 in the sales order. You can just use the F4 search help to search for your 235 by specifying 536 in the matchcode (material to customer)

  • How to write new line on resource file.

    Hello Everyone,
    Can you please help me add new row on resource file, here is the code i have used to read my resource file.
    I have no idea on how to add new line... Please help 
    private void btnBrowse1_Click(object sender, EventArgs e)
    BrowseFile();
    //versionIncrement();
    if (txtInputfile.Text.Length > 0)
    PathSelection = txtInputfile.Text;
    oDataSet = new DataSet();
    //now am reading the files fro the path that is selected
    XmlReadMode omode = oDataSet.ReadXml(PathSelection);
    for (int i = 0; i < oDataSet.Tables[2].Rows.Count; i++)
    string comment = oDataSet.Tables["data"].Rows[i][2].ToString();
    //the elements array contain all the columns filled
    string[] elements = comment.Split('-'); //when it reaches the comma, it will jump to the next line
    string font = elements[0]; //Font
    string datestamp = elements[1]; //DateStamp
    string commentVal = elements[2]; //Comment
    string[] row = new string[] { oDataSet.Tables["data"].Rows[i][0].ToString(), oDataSet.Tables["data"].Rows[i][1].ToString(), font, datestamp = DateTime.Now.ToString(), commentVal };
    Gridview_Input.Rows.Add(row);

    Hello
    Sitholimela,
    >> Can you please help me add new row on resource file, here is the code i have used to read my resource file.
    From your description, it seems that your resource file is a XML format file, if so, you could also have a try to use
    LINQ To XML which is easy to operate the XML file to add new row to your resource file, and here is an example to show how to add a new element/row to the specific tree:
    Linq to XML Add element to specific sub tree
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Making a photo into 3D, photo turns low quality, can that be fixed?

    I have a photo in Illustrator CS3 that i am extruding and beveling into 3D. When i do this, the photo turns low quality. Can i make this back to high quality?

  • In Windows 7, FF 3.6.8. takes ages to open first webpage

    Just installed FF 3.6.8 (dutch) in W7. After starting FF, it takes ages to load the homepage. For a whil this goes on for any new site to be loaded, then after about 3 mins. all seems OK. What is going on here?

  • JnlpDownloadServlet broken(proof)

    Hello, I have the DownloadServlet working (via DownloadService) for TimeStamp. However, it does not seem to work with Version-IDs. I note the exact spot of the problem is in DownloadService.loadResource(url, "1.0", dsl); Because the apache logs state

  • How to dowload a file to a cd?

    How do I download a file to a cd?

  • Got Postgres Driver to work with JSC

    Ok so I've noticed that there have been a few of us Postgres people trying to use JSC with our favourite Database. I am posting the fix here because i can't get access to the Postgresql websites(very odd). if you check out the postgres jdbc code from