How to create a program to eliminate invalid characters...?
I have a navigational attribute - ZnOORDIT where i am getting frequent invalid characters
can any one tell me how to code to eliminate invalid chars and correct it with the help of routine.
Hi,
For this you would need to create a routine.
please go through this article.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50db4398-2dea-2b10-1fab-e3195bb311dc&overridelayout=true
You can also use Function Module 'SCP_REPLACE_STRANGE_CHARS' to Replace the Invalid/Special Character with space.
Regards,
Rk.
Similar Messages
-
HELP! PDF objects - How to create a program line object?
Hi Experts,
I would like to know how to create a Program lines object (icon cog wheels). I need to create additional coding inside the context tab but when I try to right click on a folder --> create -->graphic,address,text,alternative...single record... No
program lines can be created.
Hope someone could help me.
Thanks,
JeffThere are two ways of doing it, depending on what you want to accomplish. Both require that you edit the file ~/.bashrc (I assume you use bash)
1) If the application places all the executable files in a given directory (let's say /opt/Application/bin/), you can access all those executables directly by simply telling your shell where to look (in the same way the shell automatically looks for executable files in eg. /usr/bin). In ~/.bashrc, you would have to add a line that looks like this:
PATH="$PATH:/opt/Application/bin"
2) If you just want to make a traditional "shortcut" that executes a given command, this can be done with alias. Add this command to your ~/.bashrc:
alias shortcut="some command"
In this case, typing shortcut into a terminal will be interpreted just like if you had typed some command instead.
In order to try out these changes, either restart your terminal or run this command:
source ~/.bashrc
[EDIT]
I was obviously beaten to it
Last edited by Peanut (2009-05-26 23:12:47) -
How to create a program that will accept a series of strings of 0 and 1 onl
how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.
Isn't one thread enough for your homework?
http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155 -
How to create a program that accepts 5 digits from the user between 0 and 9
how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..
You can use a scanner to get user input from the command line.
import java.util.*;
public class Test {
private List<Integer> list;
private Scanner in;
public static void main (String... args) {
new Test ();
public Test () {
list = new LinkedList<Integer> ();
in = new Scanner (System.in);
for (int i = 0; i < 5; i ++) {
System.out.format ("Please enter a number (%d more): ", (5 - i));
list.add (in.nextInt ());
Collections.sort(list, new Comparator<Integer> () {
public int compare (Integer i1, Integer i2) {
return i2 - i1;
System.out.println (list);
} -
How to Create another program instance in iphone from a COPY previous proj
Say I've created one program by starting Xcode afresh.
Now I want to create another program using the previous program as a base, I copy and paste the project folder and rename it, unfortunately, when I run the program, it replaces the previous program in my iPhone.
How do I tell xcode it's a new program ?
Message was edited by: Bracer-JThank you
-
How to created Freely Programmed F4 help in Select Options
hi,all
I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
Thanks and Best RegardsHi Haung,
You need to use FREE_HELP not the component name.
Modify you code as below:
LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
wd_this->M_HANDLER_V->add_selection_field(
i_id = 'ZCYPHDATE'
it_result = LT_RANGE_TABLE_V
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
i_value_help_id = 'FREE_HELP'
i_no_intervals = abap_false ).
Hope this helps you.
Regards,
Rama -
How to create SAPScript program? step-by-step process?
Hi everybody
Can anybody please provide some information on how to create SAP Script program?
Please provide step-by-step process if possible as examples given in abap certification program
thanksHi
here is the sample program for SAP SCRIPTS
*& Report ZHMR_POANNEX *
MODULE Materials Management
Objective :Calling program for ANNEXURE FOR P.O
text ................................................
text ................................................
text ................................................
REPORT ZHMR_POANNEX .
TABLES :EKKO,STXH.
PARAMETERS
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE text-001.
PARAMETERS : P_EBELN LIKE EKKO-EBELN.
SELECTION-SCREEN END OF BLOCK BLK.
DATA DECLARATION
DATA : V_LIFNR LIKE EKKO-LIFNR,
V_AEDAT LIKE EKKO-AEDAT,
V_NAME LIKE LFA1-NAME1,
V_ADRNR LIKE LFA1-ADRNR,
V_BSTYP LIKE EKKO-BSTYP.
DATA : BEGIN OF IT_ADRC OCCURS 0,
NAME1 LIKE ADRC-NAME1,
STREET LIKE ADRC-STREET,
CITY1 LIKE ADRC-CITY1,
POST_CODE1 LIKE ADRC-POST_CODE1,
COUNTRY LIKE ADRC-COUNTRY,
END OF IT_ADRC.
DATA : IT_TEXT LIKE TLINE OCCURS 0 WITH HEADER LINE,
IT_NOTE LIKE TLINE OCCURS 0 WITH HEADER LINE,
IT_DEL LIKE TLINE OCCURS 0 WITH HEADER LINE,
IT_SHIP LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA : V_ID LIKE THEAD-TDID ,
V_LAN LIKE THEAD-TDSPRAS,
V_NAME1 LIKE THEAD-TDNAME ,
V_OBJ LIKE THEAD-TDOBJECT VALUE 'EKKO',
N1 TYPE I,N2 TYPE I,N3 TYPE I ,N4 TYPE I.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_EBELN
IMPORTING
OUTPUT = P_EBELN.
TO GET VENDOR NAME ,,PO DATE
SELECT SINGLE
LIFNR
AEDAT
BSTYP
FROM EKKO
INTO (V_LIFNR, V_AEDAT,V_BSTYP)
WHERE EBELN EQ P_EBELN.
IF SY-SUBRC EQ 0.
SELECT SINGLE NAME1 ADRNR
FROM LFA1
INTO (V_NAME,V_ADRNR)
WHERE LIFNR EQ V_LIFNR.
IF SY-SUBRC EQ 0.
SELECT NAME1
STREET
CITY1
POST_CODE1
COUNTRY
FROM ADRC
INTO CORRESPONDING FIELDS OF TABLE IT_ADRC
WHERE ADDRNUMBER EQ V_ADRNR.
IF SY-SUBRC NE 0.
ENDIF.
ENDIF.
ENDIF.
*TO GET HEADER TEXT
IF V_BSTYP = 'L'.
V_ID = 'L01'.
ELSEIF V_BSTYP = 'F'.
V_ID = 'F01'.
ENDIF.
V_NAME1 = P_EBELN.
SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
TDNAME EQ V_NAME1 AND
TDID EQ V_ID .
IF SY-SUBRC EQ 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = V_ID
LANGUAGE = SY-LANGU
NAME = V_NAME1
OBJECT = V_OBJ
TABLES
LINES = IT_TEXT.
ENDIF.
*TO GET HEADER NOTE
IF V_BSTYP = 'L'.
V_ID = 'L02'.
ELSEIF V_BSTYP = 'F'.
V_ID = 'F02'.
ENDIF.
SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
TDNAME EQ V_NAME1 AND
TDID EQ V_ID .
IF SY-SUBRC EQ 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = V_ID
LANGUAGE = SY-LANGU
NAME = V_NAME1
OBJECT = V_OBJ
TABLES
LINES = IT_NOTE.
ENDIF.
*TO GET TERMS OF DELIVERY
IF V_BSTYP = 'L'.
V_ID = 'L05'.
ELSEIF V_BSTYP = 'F'.
V_ID = 'F05'.
ENDIF.
SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
TDNAME EQ V_NAME1 AND
TDID EQ V_ID .
IF SY-SUBRC EQ 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = V_ID
LANGUAGE = SY-LANGU
NAME = V_NAME1
OBJECT = V_OBJ
TABLES
LINES = IT_DEL.
ENDIF.
*TO GET SHIPPING INSTRUCTIONS
IF V_BSTYP = 'L'.
V_ID = 'L06'.
ELSEIF V_BSTYP = 'F'.
V_ID = 'F06'.
ENDIF.
SELECT SINGLE TDID INTO V_ID FROM STXH WHERE TDOBJECT EQ V_OBJ AND
TDNAME EQ V_NAME1 AND
TDID EQ V_ID .
IF SY-SUBRC EQ 0.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = V_ID
LANGUAGE = SY-LANGU
NAME = V_NAME1
OBJECT = V_OBJ
TABLES
LINES = IT_SHIP.
ENDIF.
OPEN FORM
DESCRIBE TABLE IT_TEXT LINES N1.
DESCRIBE TABLE IT_NOTE LINES N2.
DESCRIBE TABLE IT_DEL LINES N3.
DESCRIBE TABLE IT_SHIP LINES N4.
IF NOT ( N1 = 0 AND N2 = 0 AND N3 = 0 AND N4 = 0 ).
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZHML001_POANNEX'
LANGUAGE = SY-LANGU.
else.
message 'For This P.O no annexure is maintained.' type 'I'.
endif.
WRITE FORM
LOOP AT IT_ADRC.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEADER'
WINDOW = 'HEADER'.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOTTER'
WINDOW = 'FOTTER'.
IF NOT IT_TEXT[] IS INITIAL.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEXT1'
WINDOW = 'MAIN'.
LOOP AT IT_TEXT.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'TEXT'
WINDOW = 'MAIN'.
ENDLOOP.
ENDIF.
IF NOT IT_NOTE[] IS INITIAL.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'NOTE1'
WINDOW = 'MAIN'.
LOOP AT IT_NOTE.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'NOTE'
WINDOW = 'MAIN'.
ENDLOOP.
ENDIF.
IF NOT IT_DEL[] IS INITIAL.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DEL1'
WINDOW = 'MAIN'.
LOOP AT IT_DEL.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'DEL'
WINDOW = 'MAIN'.
ENDLOOP.
ENDIF.
IF NOT IT_SHIP[] IS INITIAL.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'SHIP1'
WINDOW = 'MAIN'.
LOOP AT IT_SHIP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'SHIP'
WINDOW = 'MAIN'.
ENDLOOP.
ENDIF.
CLOSE FORM
CALL FUNCTION 'CLOSE_FORM'.
Reward if it is helpful.
Regards,
Sangeetha.A -
How to create one program from few programs
Hi.
I have for example 5 programs and I would like to create one program in which i could switch between this 5 programs. One of these should be running all the time and the others should start when i will switch to them. I need solution or something like that.
Thanks.You can do a search on "dynamically called" sub vi's.
See the tiny example below of how to call it. You can actually call multiple VI's and they will run in parallel, although you have to be careful when doing this.
You would have to wire False to "Wait till done"
You can stop/close the VI using property node. If you wired False to "Auto Dispose Ref", then make sure you do close ALL references before exiting your program.
Message Edited by Ray.R on 04-27-2010 08:19 AM
Attachments:
callByReference.png 16 KB -
How to create a program in alv.
Hi Experts,
I am new to Alv programming. I am learning alv programming myself.I dont know anything about that. so can u please guide me how to create an alv program. give some documents to learn about alv.i ve searched it but i could not find any subsequent documents or materials here. please help me to learn.
My some doubts are below.
1.why are we using Type pools?
2.How many type pools are there?
3. give some links to learn alv.
Thanks in advance.
Urs
Goreddem.HI,
There are basically two types of ALV reports are there
list and grid.
List mode is good old list processing with standard functionalities,
and grid mode is using a new OCX object displaying grids.
For list check this
http://www.scribd.com/doc/7345300/basic-ALV-1-Step-by-Step
For Grid checkout this might be helpful.
http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
http://help.sap.com/saphelp_sm32/helpdata/en/8d/e994374c9cd355e10000009b38f8cf/content.htm
Regards and Best wishes. -
How to create a program in J2EE using eclipse
Hello
I am planning to start with J2EE. i have downloaded glassfish v3, maven, derby and JUnit and eclipse. But i am not getting how to start with it.
please guide me.i am following apress publication's Antonio Goncalves. How to write a program , how to deploy with glassfish then.
really confused..
thanking in advanceabhinav291988 wrote:
Hello
I am planning to start with J2EE. i have downloaded glassfish v3, maven, derby and JUnit and eclipse. But i am not getting how to start with it.
please guide me.i am following apress publication's Antonio Goncalves. How to write a program , how to deploy with glassfish then.
really confused..
thanking in advanceIn terms of learning how to use Eclipse [http://eclipsetutorial.sourceforge.net/]
In terms of learning how to use Java EE [http://java.sun.com/javaee/5/docs/tutorial/doc/]
In terms of how to write a program [http://java.sun.com/docs/books/tutorial/]
If you have a specific question to ask, then please repost. My suggestion would be to take the Eclipse tutorial to familiarize yourself, and then follow along in your book. If the book is too advanced, buy one aimed more at beginners. Online tutorials should also help you out.
- Saish -
How to create executable programs
How can I create an executable program using J2SDK 1.2.2?
Thank youThere are some programs that can do what you are looking for but most of them just include the JRE in the project and make a small wrapper .exe that calls it.
I agree with MarcinSc - you should make your friends install the JRE even for their own good. -
How to create a program which can be installed as NT service?
I wrote a server program using LW/CVI 5.5. I want to install it on NT/2000
OS and running as NT/2000 services. I know SRVANY.EXE can do this, but I
want to one step do this using INSTSRV.EXE or using install utility to modify
registry keys.
Thanks.Hi
Thanks for your fast replies.. I have created a new material and was able to create inventory thru MB1C. But I was not able to generate a goods delivery(VL01N) and billing document(VF01) for the sales order.
Error: No schedule lines due for delivery up to the selected date
Message no. VL248
Diagnosis
There are no schedule lines due for the given order item up to the date chosen.
System Response
The system does not create a delivery item for this order item.
Procedure
Check whether the order item to be delivered contains confirmed schedule lines.
If this is the case, set the selection date further into the future if you still want to create a delivery for this item.
Please suggest,
Tanks,
Suma
Edited by: Suma B on Sep 23, 2008 3:55 PM -
How to create a program to schedule a job
Hi Friends,
I want to create a report that will run another program(program2) in background. What I need to do is, when I enter the transaction code of this program(report), it will automatically run the program2 in background. I tried using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE. But when I checked in SM36, the job is just scheduled. I still need to release for the program to run.I should not be doing that anymore. The second program should automatically run when I enter the transaction code.
Please help.
Thanks,
zryxelHi,
Check this example..
DATA: p_jobcnt LIKE tbtcjob-jobcount,
l_release(1) TYPE c.
<b>* Open the job</b>
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = 'ZMY_OBJ'
IMPORTING
jobcount = p_jobcnt
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
<b>* Submit the job.</b>
SUBMIT ztest_program VIA JOB 'ZMY_OBJ' NUMBER p_jobcnt
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
WITH destination = 'LOCL'
WITH immediately = space
WITH keep_in_spool = 'X' AND RETURN.
<b>* Close the job.</b>
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = p_jobcnt
jobname = 'ZMY_OBJ'
<b>strtimmed = 'X'</b>
prdmins = 15
IMPORTING
job_was_released = l_release.
Thanks,
Naren -
How to: Create a Program with the rs232 Device -Magcard Reader Writer
Hi Guys!.
Im New in using VB.net 2010 express
and it is my first time to do a project with a device needed to incorporate with it.
I have a device Magnetic Card Reader writer and a i want to create a connection and UI
that interacts with the device alone without using the default application and process.start command.
the main problem i want to be solve is to perform the connection and commands on a single form by allowing the user to read and write the data on a single form.
what i want to do is to create a main form that executes the commands needed to activate the event or allows the user to use the device w/o using the software. with the use of text box and button, while the read executes automatically if the card is swipe
to it end fill out the focus textbox given.
i have here a document that discuss commands for the device and i think it is needed to successfully connect all the process from device to the system
can you help me to do this project? tnx.. :)Hi,
Welcome to MSDN.
I am afraid that this is not the proper forum for this issue, since each Magnetic Card Reader writer has its API for developers.
You could consider getting supports by connecting with the publisher of that Magnetic Card Reader writer which should have the sample about using its API.
In addition, I did a research, you could refer to
Build a .NET Class for Serial Device Communications with P/Invoke to get how to communicate with that serial device.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to create a program to find files then display results to be clickable?
Hello,
I am trying to find files based on extension name. It searches through all child folders from the parent folder to find files.
This program example, Dupe File Finder shows "Name, Path, and Size" as results. This looks like a JTable without gridlines?
http://www.softpicks.net/screenshots/Dupe-File-Finder.gif
Files from the results will be opened differently when double clicked based on their extensions (.java, .jar. .bat. .vow). EX, .java extension opens in Firefox that displays clear text.
Jtable Component:
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
All I can find is JTable class. I do not think JTable has the best tools to do this. What's your advice related to this program?
Once I finish this program, I intend to make it find duplicate contents in excel files through the parent folder. Then it displays the list of duplicate files. Importing excel files in the mysql database might get the job done, but I still need to create a graphical user interface.
Any help would be appreciated.This looks like a JTable without gridlines?right.
All I can find is JTable class. I do not think JTable has the best tools to do this. What's your advice related to this program?JTable has all the facilities which you can think of e.g. the first column in the shown table has a checkbox, this is also possible using JTable, you can set different CellRenderers and CellEditors to customize the table (carry on reading the tutorial, you will find it all there). I would suggest go ahead with JTable.
Thanks!
Maybe you are looking for
-
Error while executing the service - The service method not defined error
Hi, I am using Oracle UCM Content server 11g. I have created a custom service using component wizard. I have provided class name and method correct in the service declarations. The method should return manipulated Revision Label value. I am executing
-
V1 631 - You cannot enter new delivery costs
Recently we upgraded from 4.6C to ERP 2005 ECC 6.0.Since the upgrade, we have noticed an issue in ME22N. Once you perform invoice verification on a purchasing document, you can not add any new conditions or change any existing conditions. You get mes
-
Delete All Log for HR Personnel
Dear experts, I need to delete a batch of personnels in HR module. I can do it with program RPUDELPN. However, I find that after deleting the personnel with RPUDELPN, the Log for this personnel can still be found with program RPUAUD00 (Logged Changes
-
Dear experts, We need to conver uncleared checks from legacy to SAP system. Can someon please explain what would correct approach? So I need to post a payment document type zp which should also have check number? What are the tables I should map this
-
Increse the size of font in abap spool data
Hello all, I searched on SDN but could not find the proper answer for the same.I have developed a program which generates a spool (ALV report) and from spool it downloads data in PDF format.it is working fine.but when i see that PDF f