FM for Material number conversion from R/3 to APO in R/3

Hi,
   Can anybody tell me conversion exit (function module) for Material number conversion from R/3 to APO in R/3 system. I mean i have 18 digit R/3 material number which i have to convert to 40 digit APO material number in R/3 system.
Please suggest to win full points.
Thaniks in Advance,
Chandan Dubey

Dear Chandan,
Conversion Exits:
CONVERSION_EXIT_MATN1_INPUT ....... If you are storing Material With Zeros
Then concatenate it with 22 zeros. i.e. '0000000000000000000000000000'.
For example:
data : v_matnr type matnr,            "R/3 Material
       v_apo_matnr(40) type c,        "APO Material with 40 length
       v_zeros(22) type c. value '0000000000000000000000000000'.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       EXPORTING  INPUT          = v_matnr
       IMPORTING  OUTPUT         = v_matnr.
concatenate e_mantr v_zeros into
            v_apo_matnr.
Regards,
Naveen.

Similar Messages

  • "Settings for material number conversion not found" occurs when ...

    After I run an initial load data into the InfoCube 0PUR_C01, I want to check the InfoCube Content by the following path:
    RSA1 -> pick up the InfoCube 0PUR_C01, right click it and select Manage -> Get to Content tab -> Click InfoCube Content button -> Deselect all selection, only tick the 1st column checkbox next to 0Material, then hit enter, get a small window titled as "Cancel" with a red STOP msg sysing "Settings for material number conversion not found" with an "Exit" button and a question mark button, click Exit button leads to SAP Easy Access screen, if clicking the question mark button, another window pops up with the msg showed above, click Technical Information button causes the original window short dump and the short dump msg shows below in between two dashed lines:
    Runtime Errors         RPERF_ILLEGAL_STATEMENT
    Date and Time          11/28/2005 14:43:13
    ShrtText
        Statement "CALL SCREEN" is not allowed in this form.
    What happened?
        Error in ABAP application program.
        The current ABAP program "SAPLSHL2" had to be terminated because on
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    Error analysis
        There is probably an error in the program
        "SAPLSHL2".
        The program was probably called in a conversion exit
        or in a field exit. These are implemented by
        function modules called CONVERSION_EXIT_xxxxx_INPUT/OUTPUT or
        USER_EXIT_xxxxx_INPUT.
        Conversion exits are triggered during screen field transports or
        WRITE statements, field exits during field transports from the
        screen to the ABAP/4 program.
        In this connection, the following ABAP/4 statements are not allowed:
        -  CALL SCREEN
        -  CALL DIALOG
        -  CALL TRANSACTION
        -  SUBMIT
        -  MESSAGE W... and MESSAGE I...
        -  COMMIT WORK, ROLLBACK WORK
        -  COMMUNICATION RECEIVE
        -  STOP
        -  REJECT
        -  EXIT FROM STEP-LOOP
        Moreover, conversion exits for output conversion
        (implemented by function modules called
        CONVERSION_EXIT_xxxxx_OUTPUT) do not allow
        -  MESSAGE E...
        to be used.
    Trigger Location of Runtime Error
    Program                                 SAPLSHL2
    Include                                 LSHL2F19
    Row                                     3
    Module type                             (FORM)
    Module Name                             TECHNISCHE_INFO5
    rce Code Extract
    e  SourceCde
    1 ***INCLUDE LSHL2F19 .
    2 form technische_info5.
    >>   call screen 1900 starting at 5  8.
    4 endform.
    5
    6 &----
    7 *&      Form  SHRINK_VALUES
    8 &----
    9 *       text                                                           *
    10 ----
    11 *  -->  p1        text
    12 *  <--  p2        text
    13 ----
    14 form shrink_values.
    15
    16   loop at dynpselect.
    17     clear checktable.
    18     if dynpvaluetab-lowvalue ne space and dynpvaluetab-lowvalue na '*'.
    19       move 'EQ' to checktable-op.
    20       move dynpvaluetab-lowvalue to checktable-low_value.
    21       append checktable.
    22     endif.
    What could cause the problem by selecting only 0Material when checking the InfoCube 0PUR_C01 content?  What does that mean by this STOP msg "Settings for material number conversion not found"?
    Thanks

    Hi Kevin,
    Set the length of 0MATERIAL and change conversion to alpha:
    Re: Error Installing 0MATERIAL from Business Content
    Best regards,
    Eugene

  • Settings for material number conversion not found

    "Settings for material number conversion not found"
    This is the error that came out. I was everytime i try to access the activated business content 0material, the system comes up with this error. Please help me with this! Thank you!
    -Peter

    Hi Peter,
    try oss note 555675, it tells you to use transaction OMSL.
    regards
    Siggi
    Message was edited by: Siegfried Szameitat

  • Serialization not possible for material number (SHPCON IDOC error )

    Hello,
       Can any one shed some light on following inbound PGI IDOC (SHPCON) Error from 3PL.
    "Serialization not possible for material number XYZ"
    Message no. IO205
    Diagnosis
      The serial number profile of the material does not allow serialization for the operation you have chosen.
    Procedure
    Maintain the serial number profile.
    Additional info
    1) Serial number profile is maintained in the material master
    2) Serial number populated in the idoc E1EDL11 is not used in any delivery or assigned  and it is valid serial number  and has equipment master record
    3) If i use the same serial number from the IDOC and post PGI manually via VL02N , I am able to post the PGI without any problems and I don;t get the above error
    4) IDOC has all the info required , Delivery number,Valid material # , qty,UOM and Line item number of the delivery .
    Thanks in advance for your help
    GJ

    Dear Jalwadi
    I got exact same problem. How did you solve it?

  • Same material number Ciffing from different ECC system

    Hello Gurus,
           I have APO system connected with two ECC system.
    If there is a material with the same name in both the system how does the APO system finds the respective system.
    Even if I assign BSG for the logical systems, to which system will the transaction data will be transferred after planning?
    Thanks,
    Siva.

    Although I do not have real-time experience working in this kind of scenario from what I understand there will be two product-codes based on the BSG.
    Eg. HAMMER@BSG1 will be the Product code for material HAMMER coming from your first ECC system which is mapped to BSG1 and HAMMER@BSG2 will be the product code for material HAMMER comping from the other second ECC system that is mapped to BSG2.
    Transaction data will then flow back from APO to respective ECC system based on the BSG mapping. Note in the Distribution Definition you maintain the connected ECC logical system name as well.
    Hope this helps.
    Thanks,
    Somnath

  • Template for material number

    My requirement is I want the material number starting with `AAA` followed by internal number
    How to do using template..
    Thanx

    Hi ,
    We have an standard SAP -User exist used for material number assignments based on business needs.
    Go to Transaction code SMOD - Enhancement MGA00002 is used to hard code the material number ( Internal / External assignments)
       Important
       Retail customers must use customer enhancement MGW00002.
       You use this customer enhancement to influence the assignment of material numbers. You can intervene in the program at the following points:
       Internal number assignment (function module exit exit_saplmg02_001) Functional Module EXIT_SAPLMG02_001
       This function module is called if internal number assignment is allowed and if the user has not specified a number when creating a material master record.
       External number assignment (function module exit exit_saplmg02_002) Functional Module EXIT_SAPLMG02_002
       This function module is called if the user has specified a number When creating a material master record. However, if external number assignment is not allowed, the (changed) number is subsequently discarded.
    Please discuss with ABAP developer in order to fulfilled your business requirements.
    With Regards,
    Thiru

  • About the effect for batch level conversion from material to plant level

    Dears,
    Now  we use batch management at material level in our system, now we want to change to batch level from material level to plant level, what effects or risks it will bring during the process of conversion?
    Thanks a lot
    Zhongkai

    Hi
    check the following SAP help link it is very helpful:
    http://help.sap.com/saphelp_40b/helpdata/es/d2/1d4b6e5733d1118b3f0060b03ca329/content.htm
    at the link you can find the following
    Specify batch level and activate status management
    In this IMG activity, you specify the following:
    the level at which batch numbers are unique
    whether batch status management is active in the client
    the plants in which batch status management is active
    the initial status of new batches
    Batch level
    Batch numbers can be unique at the following levels:
    at plant level
    at material level
    at client level for a material
    If you choose plant level, the batch number is unique in conjunction with the respective material and the plant. If you choose material level, the batch number is unique together with the material. At client level, the batch number is unique in the whole client.
    To change the batch level, you have to start a conversion program. This program first checks whether conversion is possible and outputs an error log containing all batch numbers that occur more than once at the new level. Now you need to manually transfer these batch records to numbers within Inventory Management using a transfer posting 'material to material'.
    If you change the level from plant level to a higher level, it is possible that batches with the same batch numbers in different plants are actually identical. In this case, all you have to do is remove stocks (including previous period stocks) so that all batches with the same batch numbers, except one, can be reorganized.
    When you convert from plant level to material level, the material is then to be handled in batches in all plants in which it is defined.
    Standard settings
    In the standard R/3 System, batches are unique at plant level.
    Activities
    To change the batch level, proceed as follows:
          1. Choose the level at which you want your batches to be unique.
          2. Save the new settings and choose Back.
          3. Select function Batch level -> Conversion.
          4. If necessary, carry out the conversion in test mode first.
    Further notes
    Note that you cannot reset conversion from plant level to a higher level in the standard.
    If you create a client by copying an existing client, initially, there are no settings in the target client at batch level. The system makes the settings in the target client only when you have carried out an activity (maintaining master data or posting a goods movement, for example).
    SETTINGS BEFORE/AFTER CLIENT COPY:
    Source client Target client
    Client level Material level
    Material level Material level
    Plant level Plant level
    Batch status management
    Batch status management is an additional function provided by the standard R/3 System.
    Standard settings
    Batch status management is not active in the standard R/3 system.
    Activities
    To activate batch status management, proceed as follows:
          1. Choose Batch status management active.
          2. Save the new setting and choose Back.
          3. Choose Batch status management -> conversion.
          4. If necessary, carry out the conversion in test mode first.
    Further notes
    Batch status management is linked to the batch level. At material and at plant level, the status management settings are valid within the client, that is for all plants. However, if you have defined batches to be unique at plant level, you have to select the plants in which status management is to be active using function Plants with status management.
    If you activate status management, all existing batches are assigned status 'unrestricted'. If you deactivate status management, the systems transfers all restricted batches to unrestricted stock within conversion. Restricted stock only exists if status management is active.
    If you create a client by copying an existing client, status management is automatically activated if batches exist in the target client, independent of the settings in the source client. If no batches exist in the target client, it is not activated. In this case, you have to activate or deactivate status management manually, if required.
    Plants with batch status management
    Activities
    To select the plants in which status management is to be active, proceed as follows:
          1. Set characteristic Batch status management for those plants in which batch status management is to be active.
          2. Save your settings and choose function Back.
          3. Choose function Batch status management -> conversion
          4. If necessary, carry out the conversion in test mode first.
    Initial status of a new batch
    Using this function, you can specify for each material type which initial status new batches are to be assigned. However, if you use a quality management system, this specifies the status of the batches.
    Hope it will help
    Best Regards

  • Imessage sends messages from email despite selecting phone number for "start new conversations from"

    On both my phone and my computer I have selected to start new conversations from my phone number, but just now I continued a conversation from my macbook and it sent it from my email address instead of my phone number! All the other answers I found for this question were outdated, I couldn't find "Caller ID" in settings for iOS 8 or Yosemite.

    If this is a continuing conversation, I don't believe the device looks at it as a new conversation, which is what that setting is for, from what I understand. If there is a checkmark by the phone number on all devices, then it should start there, but if the conversation was originally started from the email, I believe it will continue until you start a new conversation.

  • Search help for material number in table control

    Hi
    I have a table which i have generated using table control wizard.
    I have used an interal table while creating the table control through wizard.
    In this internal table i have field matnr.Now my requirement is to have a search help for this field.
    I want a default search help for material as you get one instandard transactions.
    In my other i have ip/op field i.e matnr and i have used the field directly from ztable,it has got the search help but since i am using the internal table i am notting getting a search help .
    can anyone tell how to assign a search help to my table control material field

    hi deepthi,
    chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
    * Screen flow logic........
    PROCESS BEFORE OUTPUT.
    *MODULE PBO_MODULE.
    PROCESS AFTER INPUT.
    *MODULE PAI_MODULE.
    PROCESS ON VALUE-REQUEST. "F4
      FIELD EKPO-EBELP MODULE help_ekpo.
    * populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
    *&      Module  help_responsibility  INPUT
    *       text
    MODULE help_ekpo INPUT.
    **Transport values to table dynpro/screen table control
      DATA: l_stepl LIKE  sy-stepl,
            l_indx  LIKE  sy-stepl.
      DATA: dynpfields        LIKE dynpread OCCURS 5 WITH HEADER LINE.
    * Adjust for scroling within table control
      CALL FUNCTION 'DYNP_GET_STEPL'
        IMPORTING
          povstepl        = l_stepl
        EXCEPTIONS
          stepl_not_found = 0
          OTHERS          = 0.
      l_indx = tc_ekpotable-top_line + l_stepl - 1.
              "tc_ekpotable should already have been declared
      REFRESH dynpfields.
      CLEAR   dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELN'.
      dynpfields-fieldvalue = '00010'   "wa_ekpo-ebeln.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      dynpfields-fieldname  = 'EKPO-EBELP'.
      dynpfields-fieldvalue = '00020'   "wa_ekpo-ebelp.
      dynpfields-stepl      = l_stepl.
      APPEND dynpfields.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname     = 'SAPLZZ_EKKO'    "Program name
          dynumb     = '0100'           "Screen number
        TABLES
          dynpfields = dynpfields
        EXCEPTIONS
          OTHERS     = 0.
    ENDMODULE.                 " help_ekpo  INPUT
    rgds
    Anver
    <b><i>if hlped kindly mark points</i></b>

  • What is required userexit or badi or enhacement for material number ??

    HI Sir,
    Issue,
    In MM01  TCODE
    when we are entering the material number   it should be the  12digit  otherwise it has to give the error message.
    so plz help what is the exact exit and the code .
    thanks and regards
    syed

    Hi,
        Check these BADI's
    WRF_DISCONT_PARAMS_I                    BAdI: Parameters in Fashion Discontinuation
    WRF_DISCONT_FACT_E                      BAdI: Follow-Up Actions in Discontinuation
    WRF_DISCONT_CHECKS_I                    BAdI: Scope of Check in Material Reorganization
    MG_MASS_NEWSEG                          User-Specific Fields & Segments in Mass Maintenance
    MATGRP_SKU_UPD                          BAdI for Article Hierarchy Connection
    CDT_CHECK_MATERIAL                      Checks for Existence of a Material in a CDT
    BADI_MM_MATNR                           Modification-Free Archiving Enhancement of MM_MATNR
    BADI_MATNR_CHECK_PVS                    Check Material for Use in iPPE
    BADI_MATERIAL_REF                       Addition of customer-defined default data for material
    BADI_MATERIAL_OD                        Integration of New Objects in Material or Article Master
    BADI_MATERIAL_CHECK                     Enhanced Checks for Material Master Tables
    BADI_GTIN_VARIANT                       User Exit for Customer-Specific GTIN Variant Check
    BADI_EAN_SYSTEMATIC                     BAdI for Internal Control of EAN Logic
    Regards,
    Srini.

  • Query for classfication for material number

    Hi,
    I would like to create a query that links the material number (MARA) with its assigned classes (in classification in material master) and characteristics for each class. So I want to be able to key in a material number and receive the class and all charateristics and values for that.
    Do you know which tables I should join?
    Thanks,
    Ola

    For query you use table AUSP only where Object field is your mateiral number and this will return the value of Char
    if you need class also than link the KLAH table
    MARA you don't need here and wont link

  • User Exit or BADI for Blocking process orders from R/3 to APO?

    Dear Experts,
    I am looking for a user exit or badi to block the process orders from R/3 to APO. As per standard it is not transferring orders which are clsd(closed status). Means that it is not updating live cache but its reading from R3.
    We are facing some problems in cif queues which are not correctly maintained in R3 side. We dont want to touch those orders bcoz its very old data which is not required for planning.
    There will be huge data which needs to be deleted while transferring through cif.
    Please give any user exit (outbound intial transfer) from R/3.
    Or any sugg. I apprecite your inputs...
    Thanks
    Cris

    Hi Cris,
    You can use user exit APOCF004 - Inbound Processing: Production Order/Planned Order in APO to prevent orders coming to APO by deleting orders which are not intended to goto APO from internal tables IT_ORD and IT_OUT.
    Hope this helps.
    Best Regards,
    Ramesh M

  • Change log for material number range

    Hi All,
    can you guys please tell me how to find the change log for changes done in material type number ranges that is the thru tcode MMNR although its a customization change but as its for number ranges so there is no transport request involved so it is not possilble to see the import of transport request

    in transaction MMNR
    from menu GOTO > change log
    or in transaction SNUM
    from menu  GOTO > change log

  • Need suggestions for Sales Order ATP for Material STO in from other Plant

    Our client does not want to stock inventory at either the DC or the Manufacturing Plant.  They receive a Sales Order at the DC and the ATP check is set up to check Stock at the DC (likely none); inbound Stock Transport Orders (likely none) and then resort to the Replenishment Lead time.
    The Replenishment Lead time for externally procured materials (F) with Special Procurement key (STO it in from the manufacturing plant) is the Planned Delivery Time in the Material Master.  The problem is the Planned Delivery time is just the 5 days it takes to get the stock from the manufacturing plant to the DC.  If the Manufacturing plant has no inventory (which is very likely since we don't maintain PIRs to stock it prior) we will promise the customer delivery in 5 days which is much too soon.
    We cannot inflate the Planned Delivery time to be the 5 days of transit plus the 30 days of total procurement and manufacturing time at the manufacturing plant because then the MRP signal will tell the manufacturing plant to buy and make much too soon.
    They don't want to ship goods directly from the manufacturing plant; they must be shipped from the DC.
    I realize that this is not a good business process but is there a solution for this?
    Edited by: AnnHustis on Jan 21, 2012 6:26 PM
    Edited by: AnnHustis on Jan 21, 2012 6:35 PM

    Ann,
    This is a common practice, and I don't think that the business process is unreasonable.
    1.  Remove the special procurement key from the RWHS Material Master
    2.  Change Material Master in the RWHS to X procurement.
    3.  Set your RWHS Material Master 'Total Replenishment Lead time'
    Next step assumes that the company codes are the same between RWHS and Manufacturing Plant.
    4.  Create Purchase Info Record for the RWHS material, that points to the vendor of the Manufacturing plant
    5.  Create quota arrangement in which 100 percent of the quota comes from the Manufacturing Plant Purchase Info Record, and is MRP relevant
    6.  Insert a step after the RWHS MRP run where the Planned orders are immediately converted to Purchase requisitions.
    Business process:
    a.  Sales order is entered.  ATP checks RWHS stock and excess inbound.
    b.  If inadequate supply, then ATP confirms to Total Replenishment Lead time (and not planned delivery time).
    c.  MRP runs; creates a planned order for the shortage.
    d.  New step in MRP job converts the Planned order to a Purchase req.  Purchase req is sourced via the quota arrangement
    e.  Purchase Req requirement (Manufacturing plant) is offset by the Planned delivery time to accommodate transit duration.
    f.  Purchase req demand now places a requirement on the Manufacturing plant, with dates and quantities that will support the Sales order in the RWHS.
    g.  Convert the Purchase Req to a STO once the stock appears in the Manufacturing Plant.
    Best Regards,
    DB49

  • Getting delivery date for material number i PO...

    Hi,
    I am Smartform associated with PO in ME22N:
    Now I need to get the delivery date associated with Differnet Grid items in a material.
    So if I go to some material and then if I click on Delivery schedule:
    I see columns for delivery date, sat. del da, Grid value, etc...
    But I want to know the table or function module we need to use to get Delivery date associated with
    prticular Grid item of a material in PO.
    Please help me out.
    Thanks.
    Regards,
    Ramesh.

    Hi ,
    Check out for BAPI_PO_GETDETAIL.
    In this BAPI,
    fill parameters : PURCHASEORDER with PO number
                      ITEMS with 'X'
                      SCHEDULES with 'X'
    Then in tables PO_ITEMS you will get Item details and
    in table <b>PO_ITEM_SCHEDULES</b> you will get required details like delivery date
    Hope this helps.
    Regards,
    Akshay Bhagwat

Maybe you are looking for

  • Image sequence for contact sheets in Bridge CS4

    I have been used to Contact Sheet in Photoshop but am now trying the Output option in Bridge. How can I change the order the photos appear on the sheet? Most are landscape format but a few are portrait and I would like to have the portrait format ima

  • AU not counting toward AAoA Equifax FICO score!!

    I recently pulled my Equifax FICO score and report. The Equifax FICO score usually indicates the oldest account that was opened and average age of accounts. I have a AAoA calculator which when populated with all the accounts on my credit report produ

  • Regarding adding custom fields in IE02 Transaction

    Hi Experts, In IE02 Transaction (Change Equipment ) in Additional Vehicle Info tab , I need to add additional field . Please tel me any screen exists do this or any custom screen exists ? for example for MM01 by copying the Standard Function Group MG

  • Question Aperture as a Browser for Viewing  Photo Library

    Hello, I am been using Nikon's ViewNX as a browser for viewing photos mainly for workflow. It is real buggy with Snow Leopard OS 10.6.2 ..... freezing and all. Use Photoshop for adjusting photos. Question: Is Aperture worthwhile to use for Browsing P

  • Video not playing in Premiere Elements 9

    I have Premiere Elements 9 and can't get the video clips to play. It is just black but can hear the audio fine. When I click on the preview window the video pauses and I get a still image of that point in time. If I preview from the clip section it i