LSMW Fixed, Translations and User defined routines??????

Hi Experts,
  I have another questions here.. I can see the step called Maintain Fixed values, Translation and User defined routines in LSM Workbench, why is it used, when its used and where???
If its possible can someone give me examples for this particular step...
Well, I wanted to award some points to experts like RICH, CHRISTIAN AND ZHENGLIU, but my screen is not showing the points radio button.  But I will award, as soon as possible.
Thanks and waiting for your replies.
Regards,
  -Ken C

Also check http://help.sap.com/saphelp_erp2005/helpdata/en/7a/5e3d38faba11d1b40f006094b944c8/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/7a/5e3d38faba11d1b40f006094b944c8/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/7a/5e3d38faba11d1b40f006094b944c8/frameset.htm
Hope you'll find your answers..
Cheers !!!

Similar Messages

  • LSMW  - Maintain Fixed Values, Translations, User-Defined Routines

    Hi all,
    I know a little about LSMW.I can perform all the steps and I have uploaded from flatfile to standard tables for transaction XK01. I just want to know what we can perform in sixth step.If I want to write a user defined routine how can I do that ? Can anyone explain me with a simple example and detailed description.
    Regards,
    Vijay.

    hi, you means the 'Maintain fixed values, translations, user-defined routines'.
    You can definite some fixed values and translations rule in this step.
    And go back to the 'Maintain field mapping and conversion rules' steps.
    You can utility these pre-defined in the data mapping.
    E.G.
    You defined a fixed valued name 'BUKRS'
    Through click the button in the application bar in step 5,
    you can use a FV_BUKRS in data mapping.
    FV_BUKRS is the name of the fixed value name in data mapping.
    thanks

  • LSMW User define routine translation

    hi gurus,
    I'm trying to load assets using LSMW. Everything is working fine except a minor issue. I'm trying to upload the vendors' for assets by using translation. There are some valid vendor codes which I've maintained in translation table. However there are some invalid vendor codes from legacy system (the asset is very old and the company doesn't deal with the vendor no more). For these invalid codes I want to assign a constant value but since I've not maintained the translation for these codes, LSMW issues an error during conversion. How can I create a user defined routine to assign the invalid vendor codes that I haven't maintained in the table to a constant value. thanks

    In the step u201CMaintain Field Mapping and Conversion Rulesu201D declare global variables in the
    u201CGlobal Data Definitions and Declarationsu201D section after you select all the checkboxes in the Popup window u201CDetermine Layoutu201D from the menu path u201CExtras / Layoutu201D. 
    Here is a example of the global data declaration :
    __GLOBAL_DATA__
    DATA: cTmp(250) TYPE C, iTmp TYPE I.
    TYPES: BEGIN OF stBase.
      TYPES : MESSAGE(250) TYPE C,MESSAGET
              INCLUDE TYPE ZCAFSMMUPLDFMT.
      TYPES : EWFIELDS(2000) TYPE C.
    TYPES: END OF stBase.
    Then, at the bottom of the u201CDisplay Field Mapping and Conversion Rulesu201D  screen you can enter your User ABAP Routine within the u201CForm Routine (ABAP routines)u201D node.  Below is a example of a routine :
    FORM urOutputE1MARCM CHANGING pOut.
      pOut = 0.
      CLEAR waTmpE1MARCM.  FREE itTmpE1MARCM.
      MOVE-CORRESPONDING E1MARCM TO waTmpE1MARCM.
      APPEND waTmpE1MARCM TO itTmpE1MARCM.
      iTmp = 0.
      iTmp = STRLEN( waTmpE1MARCM ).
      IF iTmp > 0.
        REPLACE ALL OCCURRENCES OF REGEX '/' IN TABLE itTmpE1MARCM WITH '
        iTmp = 0. CLEAR waTmpE1MARCM.
        MOVE-CORRESPONDING itTmpE1MARCM TO waTmpE1MARCM.
        LOOP AT itTmpE1MARCM INTO waTmpE1MARCM. ENDLOOP.
        iTmp = STRLEN( waTmpE1MARCM ).
        IF iTmp > 0.
          pOut = 1.
        ELSE.
          pOut = 0.
        ENDIF.
      ENDIF.
    ENDFORM.
    You can then call the routine within your mapping.  I used the example a in the u201C__END_OF_RECORD__u201D node of a IDoc Segment to control whether or not the Segment is to be outputted or not.
    PERFORM urOutputE1MARCM CHANGING iTmp.
    IF iTmp > 0.
       transfer_record.
    ENDIF.
    I hope this helps some.

  • User defined routines in lsmw

    hi all,
    Can anyone explain the significance of user defined routines in lswm. In which scenario we use user defined routines. Can anyone explain userdefined routines with an example.
    thanxs
    hari

    Hi,
         Go to the transaction code LSMW. Create a new object. In the "Maintain object attributes" part, you define what standard object routine that you want to use. Here are a few from 46c
    0001   Long texts         
    0010   GL a/c master record
    0020   Material master    
    0030   Material BOM       
    0035   LIFO Layer         
    0040   Vendor master      
    0050   Customer master    
    0060   Purchasing info rec.
    0070   Condition record   
    0080   Purchase requisition
    0085   Purchase Order     
    0090   Sales documents    
    0100   Financial documents
    0105   LockBox            
    0110   Goods movement     
    0120   Manual reservation 
    0130   Classification     
    0140   Class              
    0150   Characteristic     
    0160   Fixed assets       
    0170   Routing            
    0180   Planned indep.reqmts
    0190   Doc. purch. info re
    0210   Storage bin (WM)  
    0220   Warehouse stock (WM
    0240   Inspection plans(QM
    0250   Bank data         
    0260   Work center       
    0300   Rental unit       
    0310   Lease-Out         
    0320   Business entity   
    0330   Property          
    0400   Equipment          
    0410   Message (IH)       
    0420   Confirmation (IH)  
    0425   Measuring point    
    0430   Measuring document 
    0440   Functional location
    0450   Object link        
    0460   Maintenance plan   
    0470   Equipment task list
    0480   FnctnlLoc.TaskList 
    0490   Gen.task list      
    0555   HR master data     
    0600   PostCode,Loc.,St.,..
    0602   PostCode,Loc.,St.,..
    0610   Cities             
    0612   Locations          
    0620   Postal codes       
    0622   Postal codes       
    0630   Districts          
    0632   Districts          
    0640   Streets            
    0642   Streets            
    0650   P.O. boxes         
    0652   P.O. boxes         
    0777   Personnel Planning 
    0800   Do not use!        
    Each object has several methods under it, some for Batch input, or direct input, or some for Create, Change, Delete. It really depends on the object.
    refer the link:
    Lsmw
    <b>Reward points</b>
    Regards
    Message was edited by:
            skk

  • About user defined routine in lsmw

    Hi,
    When we create user defined routine in lsmw.
    it ask for input parameter and out put parameter.
    after that it will create one  subroutine.
    But how to map input parameter  of sub routine with source field.
    thanks,
    Jigar

    Hi Jigar,
    when you have selected a project and a subproject your first screen
    will be the personal menu of the LSMW. You will find here a step-by-step-wizard
    which you have to execute in sequence. If a step is executed the cursor is automatically positioned on the next step.
    Choose 'Maintain field mapping and conversion rules'.
    If the mapping is displayed set the cursor on the field you want to edit.
    Press the button 'Rule' on the button bar above the mapping.
    You will get a Popup where you can select 'User-defined routine (reusable)' (that is the last radio button).
    Regards,
    Ralf
    > But how to map input parameter  of sub routine with
    > source field.

  • Value mapping, interface mapping, standard funtions and user defined functi

    I like have more information abt live scenario's use of value mapping, interface mapping, standard funtions and user defined functions.
    How to create user defined funtions and how to use it in XI?
    thanks in advance
    shiva

    Hi,
    Interface mappings register your mapping program for an interface pair in the Integration Repository. If you require a mapping at runtime, it is sufficient to select the interface mapping for the interface pair at configuration time .The Integration Server uses the interface mapping to identify associated mapping programs for request messages, response messages, fault messages, or all three.
    Features
    Executing Multiple Mapping Programs for One DirectionBy using an interface mapping you can execute multiple mapping programs consecutively for the transformation of a request or response message. In such cases, an interface mapping comprises multiple steps for which the following applies:
    &#9679;     The steps are executed in the sequence specified (from top to bottom). The result of the mapping program from the previous step is forwarded to the mapping program of the subsequent step.
    &#9679;     Each step can reference a mapping program that executes a 1:1, 1:n, n:1, or an m:n transformation. In the case of multi-mappings (1:n, n:1, or m:n), the previous step must create the same number of messages that the subsequent step expects.
    &#9679;     Multi-mappings use one envelope to put all messages in one structure. If one of the steps references a multi-mapping program, all subsequent steps must use the same envelope.
    The mapping for a request message comprises two message mapping programs: one 1:1 transformation and one 1:n transformation. Since the latter message mapping uses the multi-mapping envelope for both the target message and the source message, the message mapping for the 1:1 transformation must also create a transformation result with a multi-mapping envelope.
    You do not strictly need to divide up one direction of the whole mapping into different steps. However, this enables all the message formats in one system landscape to be mapped to a central message format, for example. This results in less mapping programs being required because you no longer need to be able to map all the different message formats to each other
    Activities
           1.      Create a message mapping on the design maintenance screen of the Integration Builder (see also: Creating an Object).
    You can also create multiple interface mappings for the same interface pair.
           2.      Enter the source and target interfaces that require a mapping of the request message, the response message, the fault message, or all three, in the table of the same name. The following restrictions apply:
    &#9675;     If you want to use the interface mapping in a transformation step in an integration process, you must only specify abstract message interfaces. Furthermore, all objects (integration process, interface mapping, and all objects that reference the interface mapping) must be in the same software component version. If you want to reference objects from underlying software component versions, you must access the objects from the Basis Objects branch (in the navigation tree or using an input help).
    &#9675;     If you want to map multiple messages to each other by using a multi-mapping, you can only specify asynchronous interfaces (for further restrictions, see: Multi-Mappings). If any message interfaces are missing, you can also create them by using the function Create New Object ().
    If the interface cannot be imported or cannot be created in the Integration Repository (in the case of an external adapter, for example), you must enter the interface names manually. However, it is not possible to check the technical name in this case.
           3.      To import the properties of the interfaces, choose Read Interfaces. The table in the lower area displays tab pages for the request message, response message, and if available, for the fault message, for each mode of the interfaces (either synchronous or asynchronous).
           4.      To develop an external mapping program, export the XSD schema of the respective request or response message as a zip file after you have imported the interfaces. The zip file can contain multiple schema files that reference each other, for example in a multi-mapping. In this case, the schema with the global message element has the name MainSchema.
           5.      To reference a mapping program for the respective message, you have the following options:
    &#9675;     Select an existing mapping program from the Integration Repository by using the input help (). If this is a message mapping, the default setting of the input help only displays those message mappings that are found using the source and target message in the Integration Repository (in multi-mappings, the first source and target messages are used as the search criteria). However, you can also display any number of message mappings, for example, because you are constructing a mapping from several mapping programs with intermediate instances which have no message types.
    &#9675;     You can create message mappings directly from the interface mapping. To do this, select the mapping type Message Mapping in the Type column. Position the cursor in the Name column and choose the function Create New Message Mapping () in the Mapping Program frame. The Integration Builder copies the specifications of the messages and their occurrence directly from the interface mapping.
    An interface mapping can only reference mapping programs that belong to the same or an underlying software component version of the interface mapping. This ensures that the mapping program can be shipped together with the interface mapping (see: Software Logistics).
           6.      If it is not a mapping for a fault message, you can execute multiple mapping programs in succession for request and response messages:
    &#9675;     To insert an additional line for a mapping program, choose .
    &#9675;     To delete the registration for a mapping program, choose .
    At runtime, the mapping programs are executed from top to bottom.
           7.      Save the interface mapping.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • "Nested and User Defined Exceptions" in Java...Theory and Code Required...?

    Can anyone provide theoretical information with example code for "Nested Exceptions" and "User Defined Exceptions"..? Or it would be equally good, if someone can provide links for further reading on the said topic.

    User Defined Exceptions are the same as exceptions in the JDK, but are defined by a "User"
    I suggest you look at the JDK for examples.
    A Nested Exception is an Exception with a different exception set as the cause.
    This pages covers more than you need to know with examples. [http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html]

  • Field to distinguish standard users and user defined users

    Hi,   
       I want to distinguish the standard users and user defined users for getting one report to filter what are all the standard users in sap like sap*.....I dont know how to split the standard users and users created by us.is there any way to distinguish both the users
                                               Thanks in advance

    >
    J@Y wrote:
    > In table USR04, MODBE is the Last changed by check if its your Zbatch, or any of your basis guyz initials on it. if not its standard created by SAP.
    Nice try - but on my system SAP* has a MODBE of one of our basis people.

  • Problem with ALV and user defined selection screen. please help!

    Hi Experts,
           I have program which has a user defined selection screen 9001. On executing the selection screen i call a ALV using resuse_alv_grid function module.
    What problem I am facing is that when I press back button from ALV page it goes to the se38 editor instead of selection screen.
    How to resolve this?
    Thanks
    Gopal

    Hi,
    This might be due to LEAVE TO TRANSACTION statement. You might be running the program from SE38. Try to run the program using Z-TCode assigned to it.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was edited by: Bharat Reddy V

  • Tabbed navigation,Theme change and User define templates problem

    Hi,
    ·     I have created an application in which I have defined many page,page regions,buttons,forms templates myself.
    ·     The end user has now requested for a tabbed look and feel for the same and that too in a different theme (color red)
    ·     However, inclusion of tabs to the application plus a change in the theme color (to red) in this case causes all user defined templates to behave erratically.
    ·     I guess these templates will have to be redefined in this new theme. I tried to copy some of these today but got weird results.
    Without all these templates in place the look and feel of the application will not be as usual.
    ·     Also,I had posted a thread on the APEX forums concerning tabs and have received information that each page in the application has to be manually added to the tab set in a situation such as this.This will really increase the time taken to achieve the desired application navigation.
    I would appreciate some good advice as how to get this appliction navigation running smoothly in a tabbed format in the least possible time.
    Thanks and Regards,
    Priya Jetley

    Hello,
    I would have a look at the Lists in Shared Components which allow you to create Tabs as well.
    They are a bit more flexible.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • Query SQL with variables Parameters and user defined tables

    Hi  everyone
    I got a problem about Query SQL
    [dbo].[@CSOURCE]  is a user defined table
    select * from [dbo].[@CSOURCE]
    you can get the result in following
    code    name
    T01      newspaper
    T02      TV
    T03      radio
    T04      friends
    when I execute the following SQL   Statements ,I get an error
    SELECT T0.CardCode , 0.CardName ,T1.Name ,T2.SONumber
    FROM OCRD T0    LEFT JOIN [dbo].[@CSOURCE]  T1 ON T0.U_CSOURCE = T1.Code
                                 LEFT JOIN (SELECT  T0.CardCode ,COUNT(T0.DocNum)SONumber
                                 FROM ODLN T0  INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
                                WHERE T1.GroupCode =111
                                AND   (T0.DocDate >=[%0] or [%0]='')
                                AND   (T0.DocDate <=[%1] or [%1]='')   
                                GROUP BY T0.CardCode) T2 ON T0.CardCode=T2.CardCode
    WHERE T0.GroupCode =111
    and  T0.CardType ='C
    Is there anyone can correct it for me
    thank you very much
    Edited by: Li Mishan on Jul 17, 2008 9:36 AM
    Edited by: Li Mishan on Jul 17, 2008 9:40 AM

    I am sorry .It is just a mistake of my typewriting.
    The following is the whole SQL
    dbo.@CSOURCE is a user table.It's content is
    code  name
    T01    newspaper
    T02    TV
    T03    radio
    T04    friends
    declare @m int
    declare @FromDate DateTime
    declare @ToDate DateTime
    set @m=(SELECT count(*)  FROM ORDR T0 WHERE T0.DocDate >=[%0] and  T0.DocDate <=[%1])
    set  @FromDate=[%0]
    set  @ToDate=[%1]
    /*****************If I do not connect user tavble dbo.@CSOURCE ,I will succed *****************************************************/
    SELECT T0.CardCode ,T0.CardName ,T2.SONumber,T1.Name
    FROM OCRD T0  LEFT JOIN [dbo].[@CSOURCE] T1 ON T0.U_CSOURCE = T1.Code
                               LEFT JOIN (
                                                SELECT T0.CardCode ,COUNT(T0.DocNum)SONumber                                            FROM ODLN T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
                                                WHERE T1.GroupCode =111
                                                AND (T0.DocDate >=@FromDate or @FromDate='')
                                                AND (T0.DocDate <=@ToDate  or  @ToDate ='')                                                                               
    GROUP BY T0.CardCode
                                            ) T2 ON T0.CardCode=T2.CardCode
    WHERE T0.GroupCode =111
    and T0.CardType ='C'
    when I excute the SQL, It return a error , whith says the column name '%0'  is invalid.
    If I delete "set @m=(SELECT count(*)  FROM ORDR T0 WHERE T0.DocDate >=[%0] and  T0.DocDate <=[%1])"
    and rewrite "set  @FromDate='2008.05.01' set  @ToDate='2008.07.01' "
    It Shows the following results
       CardCode     CardName     SONumber     name
    1      000070        Deng. Jiahua   1                newspaper
    2      000293        LU .Weijuan    1                radio
    3      000313         Xie .Jifang       3               TV
    Edited by: Li Mishan on Jul 18, 2008 4:42 AM
    Edited by: Li Mishan on Jul 18, 2008 4:43 AM
    Edited by: Li Mishan on Jul 18, 2008 5:43 AM

  • User Defined field and User defined values.

    Curently testing this in the demo database before rolling it out to a customer.
    I added a user defined field to my item master data base called Lengthcm of type Amount.
    I have created a query:
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN $[oitm.blength1] * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN $[oitm.blength1] * 2.54 * 12
                      ELSE 0 END
    Length unit 5 is inches and length unit 6 is feet.
    In Item Maintenance then I create a user defined value for the lengthcm field linked to the query and set to auto-update when the blength1 field changes.
    This works perfectly for 1 inch through 9 inches (1" through 9") and fills in the centimeter value. When I put in a value in feet (1', 2'), it does nothing and if I put in any value of 10" or greater gives an error message:
    [Microsoft][SQL Server Native Client 10.0][SQL Server] Arithmetic overflow error
    converting nvarchar to data type numeric. 'Received Alerts' (OAIB).
    Checking database structure back end, blen1unit is of type small int, blength1 is numeric of size 19, 6 and so is my lengthcm field.
    Edited by: Danielle Ostach on Mar 18, 2011 8:18 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:19 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:20 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM
    Edited by: Danielle Ostach on Mar 18, 2011 8:21 PM

    Hi Danielle ,
    Try this...
    SELECT u_lengthcm = CASE
                      WHEN $[oitm.blen1unit] = 5 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54
                      WHEN $[oitm.blen1unit] = 6 THEN (cast(($[oitm.blen1unit]) as decimal(19,6)))  * 2.54 * 12
                      ELSE 0 END
    Regards,
    Sachin

  • PROMPT(SELECTINPUT, ...) and user defined dimensions

    Hi,
    I created a custom package that should enable the user to select members of  the TIME, Account and Category dimensions and also members of some user defined dimension called "Costcent". After that, a scriptlogic file should be called.
    I tried:
    1)
    PROMPT(SELECTINPUT, ... %TIME_DIM%%ACCOUNT_DIM%%CATEGORY_DIM%"Costcenter")
    which doesn't work, bc. compiler doesnt seem to like %var%"fixedexpression"
    2)
    PROMPT(SELECTINPUT, ... "Costcenter")
    PROMPT(SELECTINPUT, ... %TIME_DIM%%ACCOUNT_DIM%%CATEGORY_DIM%)
    running the package only allows to select a costcenter, 2nd prompt ignored?
    3) similar, the other way round.
    Any ideas?
    Moreover, I need to be able to access the selection of the Costcenter members in the script logic. For the std. dimensions, there is %TIME_SET%, %CATEGORY_SET% etc.I am using successfully, but how to define or access the set (or list) for the selected members of user-def. "CostCent" dimension ?
    Thanks for your help!

    Clear Bug: Using the DataManager to modify the .dtsx file sometimes modifies the prompt lines in an unpredictable way... So the file that is safed doesn't get the content it is intended to get... - Guess "this should never happen", but it is...

  • XmlBeans and user defined interface...Does it work within WLW?

    I'm attempting to build an xmlbean with a user defined interface that our xmlbean ( derived from our xsd) will implement.
    <br><br>
    I have tried this using the samples from the Apache Xmlbean project ( v1.0.4 ) and the BEA version; both have worked.
    <br><br>
    I was wondering if anyone has attempted this and managed to achieve success using this via the WLW build process.
    <br><br>
    I have removed the reference to the our xmlbean within the handler and used the com.bea.xml.XmlBean reference. This worked with both apache and BEA tests. This also reduces the need for a circular build process ( ugly at best! )
    <br><br>
    I get the following error message:
    <br><br>
    <b>
    ERROR: localInfo.xsdconfig:35: Interface 'com.extension.weatherExtension' not found.
    ERROR: localInfo.xsdconfig:35: Interface 'com.extension.weatherExtensionHandler' not found.
    </b>
    <br><br>
    It woud seem that i am missing the java classes fromthe classpath....however i echo out the classpath during the build and my compiled jar is there.
    <br><br>
    Any thoughts?
    <br><br>
    Thanks

    Andy,
    Let me see if I can help.
    Groups A and B and assigned to group C. That means members of group A are also members of group C. Members of group B are also members of group C.
    However members of group C are only members of group C. So any roles you assign to group A apply only to group A. Likewise with B, roles assigned to group B apply only to group B.
    Now, assign a role to group C and members of groups A, B, and C have that role. So assign general roles to group C and more specific ones to groups A and B.
       C-role 1
    A    B-role 2
    Carl is assigned to group C so he has role 1.
    Brenda is assigned to group B so she has roles 1 and 2.
    Does this help?
    -Michael
    Message was edited by: Michael Shea

  • Limited Logistics users and User Defined Fields - UDF

    The SAP "Overview of SAP Business One License User Types" shows, in the last section under General, that only Professional users have any access at all to User-defined fields and tables.
    This seems counterintuitive as these fields are usually set up for others to see and to use.
    What is the real scoop on this?
    Thank you,
    Sal

    Hi Sal,
    It only means Professional User License has unlimited usages of UDF & UDT including managing and defining them.
    To read the values and use them are available to all license types.
    Thanks,
    Gordon

Maybe you are looking for

  • Significance of ESB Systems and Groups

    Hi, Other than organizing things better what are the true functionalities of ESB Systems and Groups? Having services in seperate systems/groups enables me to deploy them on seperate ESB Instances? Are there any performance benefits by limiting number

  • Opening PDF docs using ipad3

    using an ipad3. need to know how to open PDF docs to view at websites. thanks

  • Imac has restarted with default settings?

    i  was  downloading flash player update  and did ,  then was asked to  restart firefox  which i did  then  the desktop  lost  all  icons  and  screen  looked like it did  when i  took it  out of the box  2 years ago,   all  music  is lost and recent

  • Won't Connect to Internet Via Browser

    I have tried all I know.  My iMac won't connect to the internet via browsers.  AirPort Utilities says it's a good connetion.  Network Diagnostics says it is working properly.  So why are all

  • What's going to be done.

    I purchased the z2 through vodafone. It had a faulty front camera, so I got the experia z3 And sent the z2 back to get repaired. Apparently sony didn't fix it and just replaced it with a brand new one(awesome) I pick up new handset,get home.charge it