Replacing special characters while importing account master data (BPC75NW)
Hi All,
I am importing GL Account members with hierarchy. I was able to pull all the members, but the nodes has '/', and am unable to replace them with '_'.
I am using the below formula in my conversion file. I am able to replace the spaces but not the special character, please help me correct.
EXTERNAL INTERNAL
* js:%external%.toString().replace(/\s+/g,"")
- js: %external%.replace("/","_")
Thanks,
Sookshmaa
Edited by: sookshmaa on Aug 30, 2011 7:31 PM
Edited by: sookshmaa on Aug 30, 2011 7:32 PM
Hi Sookshma,
Slashes are always causing issues and do not work with a replace command. Instead you can use the split command.
Example:
js:%external%.toString().split('/').join('_')
You can also combine the javascript further if e.g. you wanted in addition to replace '-' with '_' you can use replace and combine the two statement:
js:%external%.toString().replace(/-/g,'_').split('/').join('')
Regards,
Lars
Similar Messages
-
Error while importing Item Master data through DTW
Hello Expert,
I trying to import item master data through DTW but it gives an error while importing as shown in attach file..
Please help me...
I am using SAP 9.0 Pl 6
Regards,
SandyHi Sandy,
Kindly follow the check list
1. Right Click DTW and run it as Administrator.
2. Is your DTW version is same as SAP B1.
3. Uninstall and re-install DTW.
4. If you are using 64-bit DTW, try to use 32-bit one.
5. Check the Template, is it of the same DTW version.
6. Remove all the unnecessary columns.
7. Last try different Template extension.. (e.g: CSV (Comma delimited), or Text (Tab delimited))
Hope you find this helpful......
Regards,
Syed Adnan -
Error while importing Item MAster Data using DTW
Hi,
when we are importing item master data using items template
it is giving error.
Error:":connected value 1 was not found "
can any one send the oitems template that is working fine wthout any error.
Thanks,
NeetuYou cannot import data prepration templates>>Testcase1_Test Data for Import function>Oitems directly.
You will have to do certain prerequisites like setting CommissionGroup, CommissionPercent, CommissionSum,CustomsGroupCode etc., in SAP before importing Items.
So I would like you to try out with minimum fields in the template and import. After understanding, you can import the required fields.
I suggest you to use the template from "C:\Program Files\SAP\Data Transfer Workbench\Templates\Templates\oItems" -
Bank problem while importing BP master data
Hi
im importing BP master data.before importing i've given 3 banks in the system.now in temp for
house bank and default bank i've given "-1".
error is [OCRD.BankCode]Application-defined or object-defined error65171
Please solve it.hello Friend,
first off all please try to import BP master data without the define bank in to template... is that upload or no...
once BP upload into the system.
then upload the bank with the BP Code and update the master data through DTW....
Regards,
Sham Vithal -
Error in DTW while importing Employee master
Hi,
While importing employee master data the following error is displaying
The field is too small to accept the dataoemployeesinfo. can anybody help wht this error stats.
Regards,
C.Rajesh
Edited by: Philip Eller on May 26, 2008 8:39 AMHi,
it means that the data you input into column or field dataoemployeesinfo are exceeding the maximum amount of characters allowed in the column. To know the maximum amount of character of the column , you could activate system information while you are in the emplyoee master data screen, you could see the field name and the field maximum size.
Another way is to use SDK help file.
Rgds, -
How to remove special characters while typing data in edit cell in datagrid in flex4
Hi Friends,
I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
Thanks,
Anderson.Removes any characters from
@myString that do not meet the
provided criteria.
CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
RETURNS varchar(500) AS
BEGIN
While @myString like '%[^' + @validChars + ']%'
Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
Return @myString
END
Go
Declare @testStr varchar(1000),
@i int
Set @i = 1
while @i < 255
Select
@TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
@i = @i + 1
Select @TestStr
Select dbo.GetCharacters(@TestStr,'a-z')
Select dbo.GetCharacters(@TestStr,'0-9')
Select dbo.GetCharacters(@TestStr,'0-9a-z')
Select dbo.GetCharacters(@TestStr,'02468bferlki')
perfect soluction -
Error importing vendor master data from ERP
Hi experts,
currently we are trying to import vendor master data from ERP to SAP Sourcing 9.
We exported the data in an XML file by using the transaction BBP_ES_MAST_DOWNLOAD.
We already imported all the dependencies like vendor account group, purchase org, regions etc. successfully.
However, every time we are trying to import the vendor data we receive the same result:
Data Import:
Trace.txt:
Do you have any hints why this happens?
Thanks in advance and best regards,
JohannesHello Johannes,
This looks to come from a custom script in your system.
Go to Setup > Script Definition and check all scripts defined on class "Supplier" (starting with those on context: Import Lifecycle Event).
Search for a script that starts with "throw doc.createApplicationException(test..."
Regards,
Bogdan -
How to replace special characters in string.
Hello,
I want to replace special characters such as , or ; with any other character or " ".I find out there is no such function is java for this.There is only replace() but it accepts only chars.If anybody know how to do this?.
Thanks,Hello,
I want to replace special characters such as , or ;
with any other character or " ".I find out there is no
such function is java for this.There is only replace()
but it accepts only chars.If anybody know how to do
this?.
Thanks,Can't you just do the following?
public class Test
public static void main(String[] args)
String testString = "Hi, there?";
System.out.println(testString.replace(',',' '));
} -
Runtime error while creating material master data
hello sir,
i am facing one prolem while creating MATERIAL MASTER DATA.
AFTER GIVING ALL REQUIRED INFORMATION WHEN I AM GOING TO SAVE THE DOCUMENT ITS SHOWING ABAP RUNTIME ERROR.
MESSAGE TYPE: - MDS_KEYMAP.
MESSAGE CLASS: 001.
PLEASE TELL ME WHAT TO DO?
REGARDS..SIR THANK YOU FOR YOUR REPLY.
I ALREADY DONE THAT DUMP ANALYSIS.
SO PLEASE KINDLY GIVE ME IN DETAILS ABOUT THAT SOLUTION... -
Error while uploading HR master data from inQuality server
Hi, Expert. While uploading of MAster data from Developement to Quality by BDC. When program starts for Tcode PA40, selecting Hiring Action, it is goining to the Action Screen. Here while taking the position from HR template, it gives error as Position is not in Table T428B. Payroll area on the date (Date of original hiring, of the person) it is taking DM as defalt in place of our created Area and terminating. When i am trying entering the data manually, it is giving same error for Position. I am not able to upload the data. Kindly help me by suggesting me the correct sequence and steps for uploading the data. Correct answer will be provided with STARSSSSSS **. Regds Punit.
Have all your configurations been transported to Quality?
Have you created the positions before initiating BDC for Hiring?
Check Feature ABKRS in Quality. Is this same as in Development?
Is your BDC running OK in Development?
Regards, -
Error While Uploading GL Master Data in LSMW
Hello Experts,
I am running into error while uploading GL master data in LSMW, I created recording through FS00, then I mapped the fields, it all went good till 13th step, but last step got stuck(Run Batch Input Session), when I am running batch input session, system is showing this message "Function Code cannot be selected"
Your help would be highly appreciated.
Regards
Muhammad Yousuf Ali
SAP FI ConsultantHi,
first can you pls check your Hierarchy mode setting in FS00 - before executing Batch input session -
Open FS00 - go to settings - and Do not display navigation tree select radio button and save it
then Now Run fresh LSMW - your issue will resolve
Mahesh -
Importing Bank Master Data in AP
Hi,
We have a requiremnet at client to import Bank Master data. As we don't have a standard interface to do that in AP,I would appreciate if anyone can let me know information on this.Any of you have done this before please share your experiences on this like flat file structure, mandatory fields ...etc
Thanks
Ravi> Hi Srdjan.
>
> Are you familiar with the MDM Import Manager?
>
> Best regards,
> Nir
Hi
I haven't tried the MDM Import manager..but I solved it with LSMW. I created a recording for one record entry, then I specified the rest of the data in a text file, and passed it to LSMW..It worked (almost) perfectly!
Thanks for the suggestion though, I'll give it a try some other time
Best regards,
S. -
GL account master data download
Hi Experts,
I want to download the GL account master data from Quality(testing) system and i want to upload the same into Development system via LSMW as the number of GL account master data is more. Can anybody tell me how can i download the gl account master data? so that my uploading work will be easy.
Thanks in advanceHi,
Go to path : Accounting -->Financial Accounting -->General Ledger -->Master Records -->G/L Accounts -->Collective Processing -->OB_GLACC11 - Chart of Accounts Data / OB_GLACC12 - Company Code Data / OB_GLACC13 - Descriptions click on OB_GLACC11 or OB_GLACC12
And enter give company code and Execute (F8) click on Select all records click on Print button and click on List > Save / send>File an select Spreadsheet and enter and save the excel sheet and upload through LSMW
Thanks,
Raviteja -
Is there a SAP standard way of dl/up G/L accounts master data?
I was asked to create a download program to get the G/L account master data from one server and create an upload program to automatically create the G/L accounts.
Download: Access SKAT, SKA1, SKB1 -> save to spreadsheet
Upload: Batch input or maybe read up on how to do it using LSMW.
Halfway in making my the program, it occured to me that maybe SAP has a standard way of doing this?
Tried to search for it. Found FS15/FS16.
Would these do it? How do they work?
*Both source and target systems are running SAP 4.7<b>NO!</b> fs15-16 is for two servers
1)fill field filename in fs15
example '<b>0001</b>'
2) transfer file per ftp
from /sapmnt/XXX/global/FBIS<b>0001</b>
to oth. server same directory and filename
with XXX = sy-sysid
3)and use the same file in fs16 <b>0001</b>
Message was edited by: Andreas Mann
Message was edited by: Andreas Mann -
LSMW for GL account Master data
Hi all,
I have to create one lsmw tool in GL ACCOUNT master data.
Please suggest me which method i should adopt.
direct input, BAPI , Recording OR IDOC.
IF bapi or recording, please tell me BAPI or transaction for GL account master data.
Reagrds,
RuchikaHi Ruchika,
BAPI_ACC_GL_POSTING_POST caters to your requirement.
Regards,
Younus
<b>Reward Helpful Answers:-)</b>
Maybe you are looking for
-
How to convert variables on program to shared variables?
Hi I want the controls and indicators of an already existing programs to be available on the Data Dashboard of a tablet/phone. What are the steps to follow if I want to convert them into shared variables so that I can send them to the dashboard. I ju
-
Modified date changes when just opening PM file
We use modified dates frequently at my business. We have lots of things that reoccur only once a year, and we'd like to keep the file dates listed as such in the folder views. All the sudden, however, Pagemaker files have started updating the modifie
-
How do i get flash player on my windows phone?
i have tried to download flash player on to my Nokia windows phone and followed the steps but i still cant get it and am not sure how to do it.
-
Unable to insert XML in CLOB (for Long Lived Processes)
I am trying to insert XML/XDP in a CLOB column of an Oracle Database. It seems to work in a short lived process. However, I get all sorts of errors when I convert it to long lived. Anyway one know why? I extract the XML/XDP using a process form submi
-
Very urgent : Regarding Transport Request
Hi, I have 2 development/correction's under a single Transport request, I need to delete the old correction, but when i try to delete is says cannot delete because it contains locked objects, Please help me to delete the correction, and I