Material Master Extract with some fields in legacy shorter then SAP

Hi ,
     I need to Extract Material master data and send to Material Management System(MMS), i am able to fetch the data into internal table with fields of MMS structure. My problem is SAP has 18 characters for MATNR field and MMS has only 6 characters, like wise some fields are shorter length in MMS then in SAP. How can i truncate all the values of the corresponding fields in my output internal table so that i can download the file to MMS system.
Regards
Krishna

There won't be any sort of one step transformation that you can do.
You will have to loop through the records in your internal table and for each record:
- Map your fields accross to a structure defined with the lenghts as you need them for the external system.  Do any truncating or transformation that you require.
- Append the new record to a second internal table
You will then use this second internal table to extract and send.
~Ian

Similar Messages

  • Material master change with ECN mandatory?

    Dear All:
               How can I make the field of ECN number mandotary in case of  material master changing?  Thx.
    BR
    Kevin Dai

    Hi,
    For making Material Master change  with ECN mandatory you need to activate ECM.
    For more details of ECM, pls go through the following link :
    [Engineering Change Management|http://help.sap.com/erp2005_ehp_03/helpdata/EN/64/a49a382ba4e80fe10000009b38f8cf/frameset.htm]
    Hope this helps.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Nov 14, 2008 8:29 AM

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • Material master Upload with LSMW

    Hi
    When I make Material master Upload with LSMW, I could not find any entry in planning file.
    Please explain.

    Mayuresh,
    Not all LSMW transactions properly update Planning file.
    You can run transaction MDAB to set up planning file in Background
    You can run transaction MDRE to detect and correct Planning file inconsistancies in Background.
    It is probably a good idea to run these jobs periodically, say, weekly, in most production environments.
    Regards,
    DB49

  • REMINDER FIELD IN MATERIAL MASTER LINK WITH PO

    Sir,
    In Purchasing Views there is Purchase view in which we put reminder 1,2,3
    How is this linked with po and how are alerts been send
    regards
    ameY

    the reminder days are entered in purchasing value key.
    purchasing value key is entered to a material master.
    From material master the values default to a new info record
    from Info record the reminder days flow into the next POs .
    If you want remind a vendor, then you do this with ME91F

  • Customer Master Idoc gets some fields as garbage with English Lang

    Hi 
       We are using SAP 4.6C MDMP system. This is not unicode. We are sending customer idoc. The customers are created in Japanese and English language.
    When we login in Japanese language and send IDOC then the content looks fine.
    When we login with English language and send IDOC then we get some garbage character.This is because the customer was created in Japanese language and the IDOC is being sent with English language code page.
    I am thinking of copying  the RBDMIDOC program and include a logic which will check if the customer is Japanese and logon language is Japanese only then send the idoc.Similarly if customer is not japanese and logonlanguage is not japanese then send the idoc.
    Has any one faced issue with IDOC and the data being maintained in different language.
    Please share your thoughts.
    *point will be rewarderd
    Thanks
    prashanta

    Hi Anuj,
    This is a configuration change that can be done via tcode NACE.
    The Idocs will be automatically triggered and sent.
    Ask your functional consultant for further details.
    Regards,
    Jovito.

  • Material Master: Update the Z fields using BAPI

    Hi to all,
    My requirement is simple. But I do not have much knowledge on BAPI. I have got some information that we can extend th BAPI and update the Z fields in material master. I have added the z fields in MARA. So when I call the bapi z fields has to get update.
    Which BAPI can i use? I have got one BAPI - BAPI_MATERIAL_SAVEDATA.   plz suggest me to do it.
    1. how do i enhance the BAPI or extend th BAPI.
    2. Is ther any approch to do it.
    thnks
    Yerukala Setty

    Hi,
    Append the z fields to BAPI_TE_MARA and BAPI_TE_MARAX structures using append structures.
    Populate two structures for the fields in BAPI_TE_MARA and BAPI_TE_MARAX.
    To BAPI_MATERIAL_SAVEDATA, under EXTENSIONIN parameters, pass structure name as BAPI_TE_MARA and Value Part1, 2, 3, 4 with the filled structure info.
    Similarly append X structure as well.
    Regards,
    Ganga

  • Create Material Master Record with Text

    Hi, I am looking to create material Master Data via ABAP.  I currently have some code that creates the Master Data Characteristic value I want, but I need the text as well.  Can someone tell me what I need to do to add the text for the Master Data Characteristic value?
    Here's what I have using CL_RSDMD_UPDATE_MASTER_DATA=>UPDATE_ATTRIBUTES_STATIC
    TYPE-POOLS: RS, RSSM.
      DATA: T_ZFREETEXT   LIKE STANDARD TABLE OF ZFREETEXT.
      DATA: T_INFO        TYPE RSSM_S_MINFO.
      DATA: RETURN_STATUS TYPE RSARR_T_IDOCSTATE.
      DATA: RETURN_SUBRC  LIKE SY-SUBRC.
      DATA: MSG TYPE RS_T_MSG.
      DATA: L_R_ACTIVATE_MASTER_DATA TYPE REF TO CL_RSDMD_ACTIVATE_MASTER_DATA.
      INSERT ZFREETEXT INTO TABLE T_ZFREETEXT.
      CALL METHOD CL_RSDMD_UPDATE_MASTER_DATA=>UPDATE_ATTRIBUTES_STATIC
        EXPORTING
          I_IOBJNM        = '0MATERIAL'     " Technical name of InfoObject
          I_CHAVL_ENQUEUE = RS_C_FALSE
          I_T_DATA        = T_ZFREETEXT
          I_S_MINFO       = T_INFO
          I_MONITORING    = RS_C_FALSE
        CHANGING
          C_T_IDOCSTATE   = RETURN_STATUS.
      IF SY-SUBRC <> 0.
        RETURN_SUBRC = 'Error happened'.
      ELSE.
        RETURN_MSG = 'Process Completed Successfully'.
        CREATE OBJECT L_R_ACTIVATE_MASTER_DATA
          EXPORTING
            I_IOBJNM            = '0MATERIAL'
            I_P_Q_HAVE_TO_EXIST = RS_C_FALSE.
        IF SY-SUBRC = 0.
          L_R_ACTIVATE_MASTER_DATA->ACTIVATE(
          IMPORTING
          E_SUBRC = RETURN_SUBRC
          CHANGING
          C_T_MSG = MSG ).
        ENDIF.
      ENDIF.

    Dear Kenneth,
    do you need to add master data during load of transaction data in planning scenario? If yes, you can do this with a planning function of type exit in the INIT function module.
    I think you've to use the table ETO_CHAS (table for char. combinations) and all kind of char. combinations has to be transfered.
    data:
    l_s_chas type /1SEM/_YS_CHAS_"YOURCLIENT"YOURPLANNINGAREA",
    l_r_co_area type range of /bi0/oico_area,
    l_s_costcenter type /bi0/pcostcenter.
    field-symbols:
    <f_coar> type /bi0/oico_area,
    <f_cctr> type /bi0/oicostcenter.
    select * from /bi0/pcostcenter into l_s_costcenter
                 where co_area IN l_r_co_area
                 and objvers = 'A'.
    <f_coar> = l_s_costcenter-co_area.
    <f_cctr> = l_s_costcenter-costcenter.
    INSERT l_s_chas INTO TABLE eto_chas.
    endselect.
    Regards, Clemens

  • Create Material Master Data with BAPI

    Hi,
    I don't know using of BAPI. I want using BAPI_MATERIAL_SAVEDATA bapi for creating material master data for Basic Data1, Basic Data2, Purchasing and MRP views. Does anybody can help me ?
    Thank you
    Good night

    Hi,
    Please refer to the documentation below:
    BAPI_MATERIAL_SAVEDATA
    Short Text
    Create and Change Article Master Data
    Functionality
    You use this method to create new material master data or to change existing material master data. The data on a material can be transferred for each call.
    When creating material master data, you must transfer the material number, the material type, and the industry sector to the method. You must also enter a material description and its language.
    When changing material master data, you need enter only the material number.
    In the header data, you must select at least one view for which data is to be created. Depending on the view selected, you must maintain other required parameters. If you do not enter values for all of the required parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first be supplied with data by the calling program. An indicator must also be set for each of these fields so that the data is written to the database by the method. This requires the calling program to supply the corresponding field with the indicator in a checkbox table (for example, CLIENTDATAX). Checkbox tables exist for tables that do not contain any language-dependent texts (MAKT, MLTX), International Article Numbers (MEAN), or tax classifications (MLAN). Several data records for a material can be created in these tables.
    If a structure contains fields for units of measurement (such as structure CLIENTDATA, field BASE_UOM), language indicators (such as structure MATERIALDESCRIPTION, field LANGU), or country indicators (such as structure TAXCLASSIFICATIONS, field DEPCOUNTRY), there is always a field of the same name with the ending _ISO. This makes it possible to transfer either the internally used SAP code or a standardized ISO code for the units of measurement, language indicators, or country indicators. ISO codes are converted to an SAP code internally for further processing. The ISO code is used only if the SAP code is not transferred. If you use ISO codes, there must be a unique assignment of the ISO code to the SAP code in the following activities in Customizing for Global Parameters:
    Check Units of Measurement
    Define Countries
    If you want to maintain long texts (basic data texts, internal comments, purchase order texts, material memos, or sales texts) or customer-defined fields for a material, some special conditions have to be observed. They are described in the documentation for parameters MATERIALLONGTEXT and EXTENSIONIN.
    Parameters
    HEADDATA
    CLIENTDATA
    CLIENTDATAX
    PLANTDATA
    PLANTDATAX
    FORECASTPARAMETERS
    FORECASTPARAMETERSX
    PLANNINGDATA
    PLANNINGDATAX
    STORAGELOCATIONDATA
    STORAGELOCATIONDATAX
    VALUATIONDATA
    VALUATIONDATAX
    WAREHOUSENUMBERDATA
    WAREHOUSENUMBERDATAX
    SALESDATA
    SALESDATAX
    STORAGETYPEDATA
    STORAGETYPEDATAX
    FLAG_ONLINE
    FLAG_CAD_CALL
    NO_DEQUEUE
    NO_ROLLBACK_WORK
    RETURN
    MATERIALDESCRIPTION
    UNITSOFMEASURE
    UNITSOFMEASUREX
    INTERNATIONALARTNOS
    MATERIALLONGTEXT
    TAXCLASSIFICATIONS
    RETURNMESSAGES
    PRTDATA
    PRTDATAX
    EXTENSIONIN
    EXTENSIONINX
    Exceptions
    Function Group
    1001UEB
    Thanks,
    Sandeep.

  • Control Material Master Views with IDOC load

    Hello all,
    I am wondering how best to control which views are available during IDoc processing for Material Master. 
    For example I just want the Basic Data 1 and Basic Data 2 tabs, I am only populating the relevant data and placing a value of u201CKu201D in the Maintenance Status fields.  This seems to work and avoids the warnings I seem to encounter when I neglect to add values for the Maintenance Status fields. 
    The warning I get at times tell me the IDoc is attempting to extend all available views, then it makes them available once I view my Material with MM03, however because there is no data in them I canu2019t go into the tabs.  That is fine because I can go to the Basic data tabs, but I was disappointed to see the other tabs enabled, but inaccessible.
    With Direct Input I used to be able to simply indicate which views I want.  Now it seems I must request the maintenance views that then translate to actual views.
    Please help.
    Thanks

    Yes I have experience in that area, and I fill the PSTAT as well. But you can also run a program (is in IMG > Logistic Gerneral > material master) to regenerate PSTAT after you have loaded all materials.
    I use IDOC loading method for SAP system mergers. Sent Material master in legacy system using ALE as IDOC collection to a file, then use this file as source for LSMW, and as IDOC to IDOC mapping is just 1:1 I use use this methd in this case.
    When loading from Excel file, I started using BAPI import method a few rollout waves back (but not because there is something difficult with IDOC, just to get used to this method).

  • MM - Material master data - move standard field to another view

    Hi everyone,
    ÉCC 6.0 - release 7.0.
    I've been adding many custom fields in Material master data MM01/02/03. Now I got a problem because we have to use a standard field in another view.
    The field MARA-HERKL is set up to 'SV'(attribute V_130F-PSTAT):
    Warehouse management = S
    Sales = V
    I want to add 'K - Basic data' in this field's attribute at OSMR Tcode , but this attribute is disactivated. I can not change this value.
    I've check this note 306966 that mention: You cannot create new entries and delete entries in client 000. This client contains only the entries delivered by SAP which are used for distinguishing customer-specific fields and SAP standard during the maintenance of the other clients.
    Is there any problem whether I delete this field and afterwards create it with the new values?
    I'm not in client 000. So, I want to just make sure I will do a legal change.
    thank you in advance,
    Alexandre

    None tips, Closed.

  • Material Master change with MRP profile

    Has anyone tried to change material master MRP view by assigning new MRP profile?
    I do not understand why the field value is not updating if the MRP profile field is defined as default but if it is define as fixed value, it is updating in MM02-assign new MRP profile.
    thanks

    Thanks Vijay,
    I've tried to change material master MRP1 view with MM02-Edit-MRP Profile.  If I assign a new profile where values are set to fixed value, it is updating the fields and only another MRP profile update will allow change to that field.
    It is not updating the fields if you assign a new MRP profile where values in the MRP profile are set to default. I'm thinking it should still update the field value and at the same that field can still be change in manual MM02 transaction.
    Regards,

  • Material master upload with Parallel currency

    Hi,
    I have done a good research on this forum to solve my issue. Could not find any and hence starting a new post. Hope to find a solution. Helpful answers will be rewarded.
    Our company is using Parallel Currency (Hard Currency).
    Whenever a material is created, the Hard currency is calculated automatically in Accounting 1 view
    My query is:
    While uploading the material master using RMDATIND, is there any way we can overwrite the Hard currency? I could not find any suitable fields to fill this value.
    Alternatively i am thinking of using BDC on MM02 to change the Price unit and BDC on MR21 to change the standard price of the hard currency. Which seems very cumbersome.
    Any good solution will be appreciated.
    thanks in advance.

    hi thr...
    i tried searching ur query and founf this material
    www.ficoexpertonline.com/search.cfm?session=&q=variances&fco=yes&page=2
    letsc if it helps...
    do reward and get bak if need any other help...

  • Material Master possible to have field assigned to 2 field sel. groups?

    Hello
    Division (MARA-SPART) is currently in field selection group 15 along with 5 other fields.  This group is assigned as mandatory for my material types. 
    I have two new material types and I want to make several fields mandatory, including Division from group 15.  However, I don't want the other 5 fields from group 15 to be mandatory for the new material types. 
    Can a field be in two field selection groups?
    How can I set this up if not?

    hello,
    move mara-spart in another field selec. group (i.e. 299 if it's free).
    now in f.s.g 15 you have the other 5 fields mandatory...
    check the field ref. of your material type (OMT3E) and set it as optional in OSMR
    Regards,
    Mauro

  • Transfer of material master data with Classification view

    Dear Experts
    I want to transfer material master data between R/3 using ALE. We are able to send master data using BD10 without classification view.
    Please let me know in detail the configuration, steps invloved in sending materail master along with classification view.
    Regards
    Samal

    HAI FRIENDS,
    CHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI
    ->CREATE CHARACTERISTIC USING TCODE CT04
    ->CREATE CLASS USING TCODE CL01 .
    -> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW
    PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL
    DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,
    OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,
    CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,
    CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,
    ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
    ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
    ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
    RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
    OBJECTKEY = P_MATNR.
    OBJECTTABLE = 'MARA'.
    CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)
    CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    OBJECTKEY = OBJECTKEY
    OBJECTTABLE = OBJECTTABLE
    CLASSNUM = CLASSNUM
    CLASSTYPE = CLASSTYPE
    STATUS = '1'
    STANDARDCLASS =
    CHANGENUMBER =
    KEYDATE = SY-DATUM
    NO_DEFAULT_VALUES = ' '
    IMPORTING
    CLASSIF_STATUS =
    TABLES
    ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW
    ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW
    ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW
    RETURN = RETURN
    LOOP AT RETURN.
    WRITE: / RETURN-TYPE ,RETURN-MESSAGE.
    ENDLOOP.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT =
    IMPORTING
    RETURN =
    BY VENKATESWARAREDDY D
         MYTEC SOFT LTD

Maybe you are looking for