Transfer Routine required

Hi,
I am getting the Alpha Numeric (for example:150DD say)data for the field 0SALESEMPLY into the infosource 2LIS_11_VAHDR, but the data type for 0salesemply is NUMC in the info source.
Because of this data type(NUMC) the data for this filed is loading only the numeric value i.e.,150 only, but not as 150DD into the infocube.
In order to load load as alpha numeric value, i think i need to write Transfer Routine for the 0SALESEMPLY info object in the Transfer rules (in 2LIS_11_VAHDR), there by it can load alpha numeric values for this info object.
So please provide me the <b>Routine</b> which can transfer the alpha numeric data for the existing Data type(NUMC) for the info oblect in the infosource 2LIS_11_VAHDR.
Thanks & Regards,
Kishore

Hi Anil,
<b>I am loading the data from a Flat file where the data</b> , that contributes to the info object 0SALESEMPLY in the the info source 2lis_11_vahdr, <b>in the flat file for the respective field is Alpha Numeric values.</b>
But we have the 0SALESEMPLY (BW) info object with data type Numc which accepts only numeric values.
so it is loading only the numeric values(ex: 150 say) of that field but not the entire alpha numeric value(ex: 150AR, say).
so in this situation how can i proceed.
Please respond asap......
Regards,
Kishore

Similar Messages

  • Data transfer routine in copy control

    Hi Need to spli deliveries based on danger and non-danger goods.
    Could any one suggest me on this.
    I know that we have t-code VOFM.
    But i am unable to know how should i proceed in this.

    Hi,
    It seems that you have good knowledge of data transfer routines.
    I have a requirement to transfer LIKP-WADAT_IST into billing date in VF01 T-code to create invoice.I am passing this date into VBRK-FKDAT in data transfer routine.,but it is  not not getting copied.Plet let me know the correct way of doing it.
    My routine looks like this:
    DATA: BEGIN OF ZUK,
              MODUL(3) VALUE '001',
              VTWEG LIKE VBAK-VTWEG,
              SPART LIKE VBAK-SPART,
            END OF ZUK.
            break SHARMAM.
       IF VBRK IS NOT INITIAL.
      ZUK-SPART = VBAK-SPART.
      ZUK-VTWEG = VBAK-VTWEG.
      VBRK-ZUKRI = ZUK.
      VBRK-FKDAT = LIKP-WADAT.
      ENDIF.
    Thanks in advance,
    Meena

  • Need help with transfer routine.

    I am doing this enhancement in BW 3.5 version.
    There is an object in ODS - > ZPATHNM (Pathname)
    It gets data from ZPTDIR object.
    Now, 0MATERIAL infoobject has text data. For PATH type materials it has descriptions like pt/dat/fafg.2.0 , pt/dat/ovg.2c ... so on.
    The content after pt/dat/ for example fafq.2.0, ovg.2c is available in ODS object ZPATHNM (Pathname)
    Since I have to extract PATH material numbers. So I created another object ZPATHMAT and mapping it to ZPTDIR.
    I have to write a transfer routine when the 0MATERIAL text description had description beginning with pt/dat/ and the text after pt/dat/ is equal to data in ZPATHNM. i should get material number in ZPATHMAT.
    This is the transfer routine, I have written between ZPATHMAT  and ZPTDIR . This is working fine.
    Data : ZDIRNAM type String,
                ZCONT1 type string,
                ZCONT2 type string,
                ZMATERIAL(18) type C.
    ZDIRNAM = TRAN_STRUCTURE-ZPTDIR.
    IF ZDIRNAM is not Initial.
    Concatenate 'pt/dat/' ZDIRNAM into ZCONT1.
      Select single MATERIAL
        into ZMATERIAL from /BI0/TMATERIAL
    where TXTMD = ZCONT1.
    RESULT = ZMATERIAL.
      ENDIF.
    Now there is another requirement, where I have to create one more object, ZPATHDES. This object should get Material description for path type materials from 0PROD_HIER text table.
    This object, 0PROD_HIER is an attribute of 0MATERIAL.
    So the logic to get the material description into ZPATHDES, is when the material number in 0MATERIAL is equal to material number in  ZPATHMAT (generated from above routine), I should get description (TXTMD) from text table of 0PROD_HIER (/BI0/TPROD_HIER) into this ZPATHDES object.
    I able not to connect this logic in the code and it is throwing errors.
    I need help in coding.
    Thanks.

    Very hard to understand the logic in a thread. Can you please write your code, which is throwing errors? May be that will help us.
    Regards
    amandeep sharma

  • Period shift in Transfer of Requirements

    Dear SAP experts,
    I'm looking at the following challenge. I have a situation where there a number of Materials linked to the same Planning Material. I'm using Planning Strategy 60 (on both the Planning Material and the real Material).
    The production process has for most Finished Goods only one main production step. For a numer of Finished Goods there are also one or two post processing steps required.
    With only Main production step> When the customer orders for wk X the main production has to take place in wk X-1
    With post processing               > When the customer orders for wk X the main production has to take place in wk X-2
    I have created Planned Independent Requirements (PIRs) for the planning material (requirements type VSEV) representing the (sort of repetitive) production cycle of the planning material. So for example production in week X, X4, X8 etc.
    The first challenge I had was the ATP check (not via ATP logic, but against planning). For materials that require post processing I should not do an ATP check on wk X-1 but on wk X-2.  With help of this forum I found the user exits where I could change the Material Availabilty Date for the Materials with post processing before the ATP check etc. etc. So the ATP challenge is solved.
    However, when the ATP check is succesful the quantity gets confirmed, but the actual Material Availabilty Date is wk X-1. Based on this the transfer of requirements takes place. Now it could happen that the wrong PIR get's consumed or even worse I cannot save the order, because of availability issues.
    I realize I can solve this problem by splitting the Planning Material in two. However this would seriously increase the number of Planning Materials which would make the solution not practical anymore.
    Is there anyone out there who can give me a hint on how to proceed?
    Kind regards,
    Mark

    Dear Kumar,
    In my understanding Planning table is used for capacity check and capacity levelling and to modify the existing requirements.
    Planning Table and Capacity Planning
    You can also use the planning table with capacity planning. Here, planning is based on lead time scheduling. The basis for lead
    time scheduling is the routing. You can access the capacity planning table directly from the REM planning table. The capacity
    planning table provides you with support in dispatching and reallocating production quantities.
    Check this link,
    http://help.sap.com/saphelperp60_sp/helpdata/en/5f/1faba54aee11d189740000e8322d00/frameset.htm_
    Check and revert back.
    Regards
    Mangalraj.S

  • Transfer of Requirements for Return Orders

    Hi,
    Please I need  help on TOR management with Return Orders in SD.
    I've already red  all the threads realted to TOR and ATP but I couldn't find a solution. As we know TOR is dependent on the following data: reqts type, reqts class, checking group and schedule line category.
    The reqts type and class are determined in the strategy group (material master - MRP3).
    Now if I switch on Transfer of Requirements for Returns, at Schedule Line level and Reqts Class level, the result is that I can see requirements related to Returns in the availability check overview of Sales Orders (ATP count) but if I check in the requirements list (i.e. transaction MD04) these requirements related to Returns are not recorded. Why?
    And also another point please: requirements generated from Return Orders, into ATP count are considered as normal Sales Orders (negative sign, reducing ATP quantity, when it should be the contrary because a goods receipt is expected).
    Can you help me please on these 2 points (perhaps something related with Sales Document Category)?
    Thank you very much
    Kind Regards
    AP

    I practically did a sample order / returns order to see your requirements and these are my observations
    a)
    If you create a standard sales order, then the availability check registers a minus sign with stock required in Rec./reqd qty field.
    Once you save the sales order, this is not seen again as the total quantity is reduced by sales order quantity.
    It was indicating a minus sign when you created a returns order because you checked the Transfer of requirements and availability check indicators in schedule line category.
    It was simulating a requirement as you checked the indicators in schedule line category.
    If you create returns order with standard DN (i.e. Transfer of requirements and availability check indicators are not checked), then you would not see any requirement for stock i.e. you don't see any new entry in availability overview screen.
    b)
    You are not seeing returned quantities in MD04 because of Movement types. This has nothing to do with Transfer of requirements.
    Schedule line DN uses movement type 651.
    Using movement type 651, you post returns from a customer with returns delivery to blocked stock returns.
    The blocked stock returns are are neither valuated nor part of "unrestricted-use" stock.
    Hence you are not seeing the returned stock in your available stock.
    If you click the magnifying glass on total stock i.e. top line of your stock/requirements list (transaction MD04), you could see the returned quantity in 'Returns field'.
    If you want to post returns from a customer with returns delivery directly to the valuated stock, you could use the following movement types in schedule line category.
    653 Returns from customer to unrestricted-use stock
    655 Returns from customer to stock in quality inspection
    With these movement types, you could see returned quantities in stock/requirements list.

  • Info object transfer routine

    Hi,
    i had infoobject ZEBAY01 and need to write global transfer routine for this infoobject. Now the infoobject value is comming 0000999999 but the business wants the output value as 009999. They want to see output value as 6digit like (009999).can someone help me how to write code here
    ROGRAM CONVERSION_ROUTINE.
    Type pools used by conversion program
    TYPE-POOLS: RSD, RSARC, RSARR.
    TYPES: DE_ZEBAY01(000015) TYPE C.
    Conversion rule for InfoObject ZEBAY01
    Data type = CHAR
    ABAP type = C
    ABAP length = 000015
    FORM CONVERT_ZEBAY01
    USING RECORD_NO LIKE SY-TABIX
    SOURCE_SYSTEM TYPE RSA_LOGSYS
    IOBJ_NAME TYPE RSIOBJNM
    CHANGING RESULT TYPE DE_ZEBAY01 " InfoObject value
    RETURNCODE LIKE SY-SUBRC.
    $$ begin of routine - insert your code only below this line

    Hi Laxmi
    Use the below code.
    RESULT = RESULT+2(8).
      RESULT = RESULT(6).
      RETURNCODE = 0.
    First Result will take from 8 characters starting from first position. So you get rid of first two leading zeroes.
    Then take first 6 character from the result of above operation from the first character. You get rid off last 2 digits.
    Regards
    Anindya

  • Which is better transfer routine or update routine???

    HI ALL,
    I have read some documents, but I didnt get the real concept.
    Can any one explain in detail as to how do we decide where to write the code i.e a start routine or transfer routine or update routine...and which one is better  for a given scenario..
    with example?

    My scenario is like this:
    master data InfoObject for e.g. Z_MATERIAL1 with 10 fields as attributes. It has two Source Systems feeding it; SAP and a flat file from a system called Product Catalog (PCAT).
    The PCAT data is generally more reliable, hence, if a material XYZ comes from PCAT then PCAT is the owner of the material. SAP should not be able to update five critical fields of that material if PCAT owns the material.
    For e.g. the below values comes from PCAT and Master data is updated.
    PCAT
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC   BRU  10.00 USD  PC  Inh   To    EN   001
    When the data comes from SAP R/3, it should not update anything other than the last 4 fields.
    SAP
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC    BRU 20.00 USD  BOX  In   The    DE   003
    Finally the data in the Master Data Object should be as below.
    Material Group Type Price Curr Unit Prod Desc. Lang Class
    XYZ      ABC   BRU 10.00  USD  PC  In    The    DE   003
    where do i write the code...i have written this in start routine of transfer rules...i want to know the performance issues...

  • Transfer of requirements

    dear gurus,
                   can any body explain the transfer of requirements from salesorder to production..ie integration of sd and pp.
    in sales orders what are all the pp parameters ?
                      -guna

    Hi Guna,
                       It is through the strategy group that is defined in the MRP 3 view that controls the integration b/w the two:
    If for eg we take the strategy 20 that is classical make to order than  product is produced specifically for an individual sales order.This planning strategy is used when planning of the (parent) product is not required or not possible.Each product is specifically produced for an individual customer so that the finished product is rarely placed in stock.Similarly other strategy can be there for example strategy 82 when a sales order is created for the material, a production order is created automatically in the background. And as follows the other given by Mr.Bala.
    With Regards
    Tarun

  • Transfer of requirement

    Pl explain me the transfer of requirement???

    Dear Shridhar Jannu,
    Transfer of Requirements
    By means of the transfer of requirements, the MRP department is informed about the quantities and deadlines by which incoming orders should be delivered. The system checks the availability of the goods based on the requested delivery date of the customer and creates MRP records which contain all necessary information for passing on to materials planning. The transfer of requirements ensures that the goods are available in time for the delivery. Materials planning transfers the reported requirements and creates production orders or purchase requisitions from them, for example.
    The following sections on the transfer of requirements describe how to control the transfer of requirements.
    The transfer of requirements is basically dependent upon the following factors:
    requirements type
    requirement class
    check group
    schedule line category
    Note
    The transfer of requirements is controlled globally using the requirements class which is derived from the requirements type for all sales document types. For the sales document types, fine tuning is also possible at schedule line level. This fine tuning is described in the section "Defining the procedure for each schedule line category".
    Note that the requirements classes are also used in production so you should coordinate  any changes to the requirements classes with production. The requirements type and, eventually, requirements class are determined in the strategy group so all changes made there should also be coordinated with production.
    Requirements transferred to planning are further processed in the module MM. You must, therefore, coordinate the transfer of requirements with the module MM.
    Requirements
    For controlling transfer of requirements, you have to carry out the following steps:
    1. Each requirement type has to be allocated to one requirement class only.
    2. The transfer of requirements must be switched on at requirements class level, the sales documents at schedule line level.
    3. You must define a check group. It is possible to have this check group proposed for the initial creation of a material master record.
    4. Note that a plant must exist for transfer of requirements to be carried out at document item level.
    Note
    Requirements transferred to planning are further processed in the module MM. You must, therefore, coordinate the transfer of requirements with the module MM.
    Reward if usefull
    Regards,
    Srikanthraj

  • Syntax error during transport on valid transfer routines

    Dear All,
    We have some routines in a tranfer structure that are valid and working just fine in DEV.  But when we transport them to QA we get the following error message :-
    Start of the after-import method for object type R3TR ISTS (Activation Mode)                
    Transfer structure 6DB_V_BW_EPISODE_AD activated under the name 6DB_V_BW_EPISODE_AD         
    It is not necessary to copy dependent objects for transfer structure 6DB_V_BW_EPISODE_AD    
    Syntax error in transfer routine for InfoObject OPEN_DAT                                    
    Activating Transfer Rules 6DB_V_BW_EPISODE_AD ...                                           
    47 Transfer Rule(s) of the transfer structure 6DB_V_BW_EPISODE_AD removed from control table
    53 InfoObject(s) of the transfer structure 6DB_V_BW_EPISODE_AD removed from control table   
    Formulas have been saved                                                                    
    Syntax error in transfer routine for InfoObject OPEN_DAT
    If we remove all the routines the activation works just fine even though our routines are valid and working just fine in DEV.
    Can anyone explain this as this is becoming quite urgent now ?
    Thanks in advance.
    Craig

    Hi Oliver
    I work with Craig. In response to your question, what he means is that all objects independantly have been transported ok, apart from the transfer rules. If you look at the table RSTSRULES you will see a column called CONVROUT_L.
    In our Dev system this field contains the BW generated rule code. Eg.
    45GEGC5I66GA9Z5G4KFDDRIK4 against the Transfer structure. When the after import process runs, it uses the contents of this table together with the contents of the RSAABAP table which contains the code and creates the transfer rule program.
    In RSAABAP we have the following code for CODEID '45GEGC5I66GA9Z5G4KFDDRIK4'
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
    CHECK NOT &TS&-opened_date IS INITIAL.
    IF &TS&-opened_date < '19000101'.
    &RS& = '19900101'.
    ELSEIF &TS&-opened_date > '29990101'.
    &RS& = '19900101'.
    ELSE.
    &RS& = &TS&-opened_date.
    ENDIF.
    returncode <> 0 means skip this record
    &RE& = 0.
    abort <> 0 means skip whole data package !!!
    &AB& = 0.
    In our QA system the column is blank because of the wierd Syntax problem when generating the program, therefore the transfer rules dont get activated.
    As you can see there is no problem with the ABAP.
    Regards
    Mark

  • What is the order of execution of global transfer routine where multiple routines are involved?

    Hi,
    Suppose we have start routine, transformation routines and end routine defined between datasource and data target, and also we have a global transfer routine created on an infoobject.
    What is the order of execution of routines in this scenerio?
    Also if conversion routine like ALPHA is defined for an Infoobject, when does this come into flow.?
    Please enlighten me.
    Thanks,
    Akshara

    Hello Akshara ,
    The sequence of routines are as
    1. Start Routine
    2. Master Data Look Up or
    3. Field Level Routine
    4. End Rountine
    Apart from this , there is Expert routine, which is used in special cases, when there are not the sufficient functions to perform a transformation. It can be used as a interim solution , and it performs all the  functions of Start routine, end routine , field routine.
    Note : if you have created  transformation, and then created Expert routine, then system will delete all the existing transformations.
    Further to this, you can explore more, by debug the transformation as suggested by Vijay Kumar.
    Hope this helps !
    Regards
    YN

  • Errors in Transfer Routine for 0MATERIAL_ATTR

    I created a transfer routine on the 0Material_attr upload that needs to populate an attribute called Z_CPFX.
    Problem is, I need to look at the material number, material group, and the Material Description, and then populate the result based on what I find.
    I am new to using ABAP in these routines, so any help would be appreciated.  I will award points.
    The error I keep getting is E:Field "TRAN_STRUCTURE-MATNR" unknown.
    Could somebody take a look at my ABAP and advise what I'm doing wrong?
    Thank you.
    Ken
    $$ begin of routine - insert your code only below this line        -
    DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
      DATA:   X_DESCRIPTION TYPE TABLE OF /BI0/TMATERIAL.       " KC01
        select  *
              into CORRESPONDING FIELDS of Table X_DESCRIPTION
             from /BI0/TMATERIAL
            where tran_structure-matnr = /BI0/TMATERIAL-matnr.
      IF MATKL between 765 and 770.
        RESULT = 'MAPOO'.
      ELSEIF MATNR(1) = 'X'.
        RESULT = 'MAPOO'.
      ELSEIF MATNR(1) <> 'X'.
        AND (MATKL = '750'
              OR MATKL = '751'
              or MATKL = '755'
        RESULT = 'MAPWK'.
      ELSEIF
        (MATKL = '756'
        or MATKL = '760'
        or MATKL = '761'
        and X_DESCRIPTION-TXTMD co 'renew'.
        RESULT = 'MAPRK'.
      ELSEIF
      (MATKL = '756'
      or MATKL = '760'
      or MATKL = '761'
      and X_DESCRIPTION-TXTMD !co 'renew'.
        RESULT = 'MAPMM'.
      ELSE.
        RESULT = space.
      ENDIF.
    returncode <> 0 means skip this record
      RETURNCODE = 0.
    abort <> 0 means skip whole data package !!!
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.

    Hi Kenneth,
    /BI0/TMATERIAL is the text table for 0material. If you are trying to get all the data from text table, please correct your select statement as below (text table does not contain the attributes. you might need to chenge the selection table to its attribute tables):
    select *
    into CORRESPONDING FIELDS of Table X_DESCRIPTION
    from /BI0/TMATERIAL
    where tran_structure-matnr = /BI0/TMATERIAL-MATERIAL.
    I also see that some of your syntaxes are wrong:
    eg: IF MATKL between 765 and 770. ==>
    IF( ( MATKL > 765 ) and ( MATKL < 770 ) ).
    Please look into the syntaxes of other statements as well.

  • Transfer routine in InfoObject

    I have an InfoObject 0Batch which in some cases has a special character which it will not permit.  I only have the hexidecimal value for the character.  Does anyone know of any function that I can use when I am defining a transfer routine which will take hexidecimal inputs? Thanks

    Hi Niten,
    You can try function module <b>CHAR_HEX_CONVERSION</b> and compare your hexa decmial character.
    I havent tested these..but you can try..
    There is another function module
    <b>SF_HEXA_CHECK - Comparison of hexadecimal numbers .</b>
    Regards
    Manga

  • 0LOGSYS transfer routine error transporting DEV- QA

    Hello!
    I need to transport several business content infocubes and loading flow(migrated from 3x to in 7.0) from DEV to QA.
    In QA I've imported also infoobject 0LOGSYS and his transfer routine. But it appears iinactive. When I display the transfer routine from characteristic 0LOGSYS, is missing this part of code::
      IF RESULT IS INITIAL     and
         IOBJ_NAME = '0LOGSYS'.
    fill source system
        RESULT = SOURCE_SYSTEM.
    What can I do ?  In DEV, the code is ok. Can I modify it manually ? Other what must I do in DEV to repair it?
    Thanks a lot !

    I need to activate the object 0LOGSYS from Business Content again ? or manually with change and also change and save the routine?
    In STMS I have:
    Start of the after-import method RS_IOBJ AFTERIMPORT for object type IOBJ
    Syntax error Incorrect statement :Expression missing . in row 20 position 0
    Characteristic 0LOGSYS: Error when activating or checking the transfer routine
    This infoobject, 0LOGSYS is also attribute for others infoobjects and I have also errors like:
    Attribute 0LOGSYS from characteristic 0BUS_AREA is not actively available.
    I've imported also a data source 3x migrated to 7.0 with the transformation and an infocube, and I have error:
    Start of the after-import method RS_RSDS AFTERIIMPORT for object type RSDS
    Soource system DEV does not exist
    Start of the after-import method RS_TRFN_AFTER_IMPORT  fot object type TRFN
    No rule exists.
    Source RSDS mysource DEV does not exist
    AND SUMMARy:
    Object  IOBJ 0logsys imported with errors
    Thanks!

  • What will happen if we did not maintain in transfer of requirement

    hi'
    gurus in transfer of requirement if we did not maintained.  availability check like daily requirement or collective require what system will not do
    thanks in advance

    hi,
    the availability check field  is used to specify whether indivual or collective requirments has to be created for the sales orders and shipping process .
    it is one of the key factor for availability check for the sales orders ,if that is not maintained then availability check at the sales order level does not take place,
    the schedule lines are not confirmed.
    hope  it helps
    reward points
    sriram.

Maybe you are looking for

  • Print a string on a specific printer

    Hello everyone, I need some help. I have to print a string in LabView. Previously the method used was to set on the option "Automatically print front panel every time VI completes execution" in the Print Options of the VI Properties. Now, however, I

  • How can I print in black/white only a document that has colors in the original?

    How can I print in black/white only a document that has colors in its original. I don't need the print out to be in color, and I don't want to waste the color ink.

  • Error while activating Transfer Structure

    Hi Expert, we have upgraded BW3.1 to BI 7.0, we are getting error while activating transfer structure for 0mat_sales_attr and 0mat_sales_text. Error is Error while creating table 'EDISEGMENT' entry '/BIC/CIOD0MAT_SALES_TEXT' Message no. EA201 Diagnos

  • External hard drive and time capsule

    hi all - I have my new TC set up and my external HDD connected to it. The TC is working for backups and wireless. However, the external HDD is not showing up in the finder window. Any ideas on how I can get access to it?

  • HT1807 non 3 g iPad 2 in St Lucia how to connect wifi

    how does the iPad 2 work in Caribbean does non 3 g have to be operated in any particular way?