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
Similar Messages
-
HI ,
In Step Maintain Fixed Values, Translations, User-Defined Routines
I am creating Translation which maps Vendor Legacy value to SAP Value but in doing this i am facing problem.
I am facing problem in uploading theValues from the excel file
(Converted to a tab delimited fie).
E.g In My lookup file I have value s as follows
Legacy Vendor SAP Vendor
A101 100028
A102 100029
When I upload the file the records get duplicated in SAP.
OLD Value NEW Value
A100 100028
A100 100029
A101 100028
A101 100029
A102 100028
this is happening for few records after few records the values get mapped correctly.
Please let me know how I can correct the issue
Thanks
NishantSolved.
-
How to Validate the Fileds in LSMW - In step 6. Maintain Fixed Values, T
Hi
How to validate the fileds in the LSMW in the step
6 Maintain Fixed Values, Translations, User-Defined Routnes.
In this step how to i validate the fileds.
Please help.
Regards
GangiHi,
You can validate the fields in the LSMW in field mapping section .
For example you are loading the BOM using LSMW and you want to validate those material numbers which do not exist in the material master .
For this purpose write a select statement to check the materials existence like below :
select single matnr into v_matnr
from mara
where matnr = source-matnr .
if sy-subrc <> 0.
skip_record. " this statement will skip the record .
endif.
To get such statements to handle the records withing LSMW during data transfer .Go to the field mapping step , there in abap conversion routine step
go to ' INSERT' -> 'GLOBAL FUNCTIONS' -> ( then a pop will open offering various function options for your requirement. ) In fact SKIP_RECORD is also available there .
reward if it helps...
Regards,
Omkar. -
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 CAlso 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 !!! -
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. thanksIn 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. -
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
hariHi,
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,
JigarHi 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. -
DI_Inability to enter value in user defined field: Hour
I am using SAP Business One 2007 A PL15, and I seem to be experiencing the same issue described in these two support notes:
1086704 [DI_Inability to enter value in user defined field: Hour|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=0001086704]
1016731 [DI_Inability to enter value to Hour User Defined Field|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E¬e_numm=0001016731]
However, they are for SAP 2005 and say that the issue should be fixed.
Does anyone have any insight into whether these issues have been fixed in a more recent patch of SAP 2007?
Thank you in advance.
MikeDear Mike,
By check the Related Notes, the issue in SAP Note 1086704 is fixed on SAP Business One 2005 A SP01 Patch 32 and the issue in SAP Note 1016731 is fixed on SAP Business One 2005 A SP01 Patch 29.
If your issue is same as the Notes then it should be fixed in a more recent patch of SAP 2007.
Best Regards
Jane Jing
SAP Business One Forums team -
Can I translate user defined table into mulilanguages
Can I translate a particular field of my own data field into foreign languages in SAP B1?
Actually I want to print shipping label in different langauages. And I want that address and the details of the shipping label transleted in a text file in order to print from command prompt.
Pls help me . its urgent
Thanks in advanceIm not sure, if I understand you correct.
I understood that you want to transalte the description of user defined field - ok?
If yes, the only way is to move the UDF inside the form and based of selected language show correct description in label. -
Excluding a fixed value with variable defined
Hi
In Bex report , a variable is defined already.
Now the requirement is to exclude (FIXED VALUE) i.e batch with value #.
if using the restrict option of this charactersitic, i am not able to select both fixed value(which is to be excluded) and the variable (already defined) simultaneously.
Message is coming as variable is complex...so cannot select both FIXED VALUE and FIXED VALUE)
Please suggest a solution
Regards
DJ
Message was edited by:
Vidyut KichambareVidyut,
It seems to work fine for me - select the variable you want and also the fixed value you want to exclude and it should work fine.
select the variable and then go to the fixed values tab and select the value you want to exclude and select it and do an exclude on the same - ideally when you select a value using a variable - the # would get automatically excluded - not sure why you want to exclude # along with the variable.
Arun
Assign points if useful -
Retreve current form value in user define field
Hi,
I got a questions, please help.
I want to retrieve values in current form, like the quantity and discount in Sales order, into a user define field with formatted search, is it possible?
Many Thanks!
PaddyThis is the Syntax of FOrmatted Search Query. This syntax will work only with SBO.
$[$38.11.0]
38 Represents the Matrix(Table) in a Marketing Document
11 Represents the Quantity Field in the Matrix
0 Represents the Number Format.
Place your Cursor on the Matrix and Press CTL + SHFT + D, you'll find the Column information in the Left side of the Status Bar -
Wanting to copy DOM element child value into user defined object in PL/SQL.
We have a DOM object and can retrieve the object elements. We are wanting to take the elements and map them to user defined object attributes. We want to then place the element child (the text portion of <item>Foo</item> into the object attribute. Is there a package or utility that is available where we can simply pass the DOM and user defined objects and "magic happens here"?
We have a DOM object and can retrieve the object elements. We are wanting to take the elements and map them to user defined object attributes. We want to then place the element child (the text portion of <item>Foo</item> into the object attribute. Is there a package or utility that is available where we can simply pass the DOM and user defined objects and "magic happens here"?
-
LSMW user-defined routine error
Hi,
I have a problem with the routines in the LSMW. This is want I am doing:
1. created a project & subproject.
2. copied 4-5 objects from another project
3. copied all the user routines.
4. ran the objects fine.
After a few days I have copied a new object from the old project and used one of the routines. It gives out the message "HANDLE is not defined under DATA". As I know, this is an lsmw global variable so it should work. This variable can be found in one of the routines. I deleted all the routines and copied them again and it work.
Today I needed a new object, copied it, and it gives again this error; recopied the subroutines...still, error persist.
Please help,
Thank you very much in advanced
LE: Is there any way to adapt your conversion program, after you made modifications to the field mapping?
Message was edited by:
Daniel BALTAHello Chris,
I have already done that and I still get this error, but only for this object. I have never declared this data "handle", but here is how 2 conversion programs look like (same project/subproject):
The program that works:
Counters
data:
g_cnt_UPLOAD type i.
Counter ct_xxxxxxxxxx: number of transferred records
data:
ct_IBIPEQUI type i,
cs_IBIPEQUI type i.
Global data definitions and data declarations
__GLOBAL_DATA__
DATA: objnr LIKE equi-objnr.
DATA: handle TYPE balloghndl.
INCLUDE zpmxi_appl_log.
DATA: BEGIN OF wa_tplnr OCCURS 0 ,
tplnr(50),
END OF wa_tplnr.
parameters:
p_filept no-display,
p_trfcpt no-display,
p_packge(5) type n no-display.
Select-option for wildcard value in file names
And the program that doesn't work:
Counter ct_xxxxxxxxxx: number of transferred records
data:
ct_BIKSSK type i,
cs_BIKSSK type i,
ct_BIAUSP type i,
cs_BIAUSP type i.
parameters:
p_filept no-display,
p_trfcpt no-display,
p_packge(5) type n no-display.
Select-option for wildcard value in file names
How do you explain this? -
QE71 -F4 Values for user defined fields in inspection points
Hi,
I have used QAPP_CUST_IP_F4 function module to list F4 values in Inspection points and QAPP_CUST_IP_CHECK for validation of those user fields.
When configured for an inspection point, these modules are working fine when we use in QA32 and QE51n. But when we use QE71, the FM's does not getting called.
Is there any configuration needed to make them work in QE71?
Regards,
SriramSame kind of issue we have faced in one of my implementation ie when we used to do the RR through QA32 system allows us to show the F4 which is assigned for that inspection point. But same F4 help was not working during rr through QE71.
For this issue we haven't applied any note by debugging in QE71 fixing call function he done some changes in the assigned FM
after that its appered in QE71 100% it will flow in QE71 also without NOTE.
Check with abaper
Link: QE71 - verifiying user fields and providing lists of values -
Values for user defined charactericts COPA
Hi,
I have creatd some client specific characteristics in my configuration, How can i assign vallues to those characteristics?
Regards
AshishHi
Use Derivation rules for deriving Characteristic values. (KEDR). You can also manually input values vide KES1
Jayaram
Maybe you are looking for
-
How to access the global data in user exit.
Hi All, How to access the global data in user exit. the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program. this
-
Greetings, I'm reading the Style 9670 pamphlet from BlackBerry, and I noticed that the following links no longer work: http://www.blackBerry.com/style9670support http://www.blackBerry.com/style9670accessories I hate it when a company deletes web page
-
Significance of Quotation Deadline
Can anybody tell me the Significance of Quotation Dead line in RFQ?? As per SAP Help Date by which the vendor is to submit the quotation. If the Vendor Submitted late then where to maintain it?? How the System will restrict late submmission ??
-
List of services which can be monitor through scom
Hello Experts.., We have to list-out Services which cab be monitored through SCOM for windows server system. if there is any link and document on it ,Please provide us. if it's depend on MPs ,please provide services with MP List. Regards Richa KM
-
Selection tool in my CS4 doesn't work
The Selection tool in the tools panel (Flash CS4) is supposed to allow the user to select a portion of a bitmap image to convert to a symbol. All mine does is drag pieces of the image around, ie move stuff! If it's not a bitmap image,but a gif or