How to look for a particular field in the segments of IDOC ?
Hi,
I am looking at a particular IDOC which I will use to do data trasfer from lgacy to R/3 using BAPI in LSMW. Now I know a field which is required to create a given business transaction when igrating data. But there are 100's of segments on the IDOC.
Is there a way I can see if the given field is present in any of the IDOC segment ? I don't want to dig though each and everys egment and find it out...
Regards,
Rajesh
Try using WE09..There you have the option of searching by the idoc data..CHeck in the bottom of the selection screen
Thanks,
Naren
Message was edited by: Narendran Muthukumaran
Similar Messages
-
Maintaing a default value for a particular field in the selection screen
Hi all,
How to maintain a default value for a particular field in the Selection Screen of a Standard report
Regards
Ajay>
ajay babu wrote:
> Hi all,
>
> How to maintain a default value for a particular field in the Selection Screen of a Standard report
>
> Regards
> Ajay
Create a variant for your standard program and assign this variant to the field 'Start with variant' while creating transaction code for the standard program in the transaction 'SE93'.
Regards
Rajesh. -
Code for reading particular fields from the file placed in application
hi,
code for reading particular fields from the file placed in application server in to the internal table.Hi,
Use the GUI_UPLOAD FM to upload the File into ur Internal Table.
DATA : FILE_TABLE TYPE FILE_TABLE OCCURS 0,
fwa TYPE FILE_TABLE,
FILENAME TYPE STRING,
RC TYPE I.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'Open File'
DEFAULT_EXTENSION =
DEFAULT_FILENAME =
FILE_FILTER =
INITIAL_DIRECTORY =
MULTISELECTION =
WITH_ENCODING =
CHANGING
FILE_TABLE = FILE_TABLE
RC = RC
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE FILE_TABLE INDEX 1 into fwa.
FILENAME = fwa-FILENAME.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = filename
FILETYPE = 'DAT'
IMPORTING
FILELENGTH =
TABLES
data_tab = itab
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
OTHERS = 6 .
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Balakumar.G
Reward Points if helpful. -
How to look for a particular phrase in a document???
Hey guys, I'm a little new at this thing... I need to figure out a way to make Java search through a document looking for instances of particular phrases, and replacing them with something else. For example, have it look for "A B C" and replace each such combination of words with "D E F". The search/replace needs to look for a few different phrases at once.
String.replaceAll is a fine answer, but you are creating Strings left, right & center, tis best to use a StringBuilder/Buffer.
private static void replaceAll( StringBuilder sb, String search, String replace ) {
int index = sb.indexOf( search, 0 );
while( index >= 0 ) {
sb.replace( index, index+search.length(), replace );
index = sb.indexOf( search, index );
} -
How to go to a particular field of the same page by clicking the radio button.
Hello All ,
I am working on a form which is designed by some one else . There is a Page - 8 . And there is a question at the first which is in another subform.
At the end there are several radio buttons . If some one is clicked as yes then the focus should be on Question which is present at the beginning of the form.
My code goes like this .
if(TopmostSubform.Sub_Form_Section.Page8.RadioButtonList[0].Q9_EnterAnotherProgramRegEntSt ate[0].this.rawValue ==true)
xfa.host.setFocus(' TopmostSubform.Sub_Form_Section.Page8.Table.Row[1].Cell[1].Q9_ProgramNm');
Form hierarchy for Q9 _ProgramNm is -- TopmostSubform.Sub_Form_Section.Page8.Table.Row[1].Cell[1].Q9_ProgramNm
Form hierarchy for radio button is -- TopmostSubform.Sub_Form_Section.Page8.RadioButtonList[0].Q9_EnterAnotherProgramRegEntStat e[0]
The event should be click event on JavaScript.
Please someone help !!!!Hi
In the second screen, for field empno, set the attribute Output only as X and set group1 for empname as 'INP'.
In PBO of second screen, write this code.
loop at screen.
case screen-group1.
when 'INP'.
if sy-ucomm = 'DISP' . "sy-ucomm value when you click display
screen-input = '0'.
modify screen.
endif.
endcase.
endloop.
regards
Navneet
Message was edited by:
Navneet Saraogi -
How to provide hyperlink for a particular field in ALV
Hi,
How to provide hyperlink for a particular field in alv report.
Regards,
Ramu.Yes you can do that. using the fieldcatalog there is an option for that. give HOT_SPOT = 'X'. for the column you want.
wa_field-hotspot = 'X'.
REPORT ztest_alv.
TYPE-POOLS:slis.
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
wa_field LIKE LINE OF it_fieldcat.
DATA: BEGIN OF it_likp OCCURS 0,
vbeln TYPE likp-vbeln,
END OF it_likp.
DATA: layout TYPE slis_layout_alv.
wa_field-fieldname = 'VBELN'.
wa_field-tabname = 'IT_LIKP'.
wa_field-hotspot = 'X'.
wa_field-outputlen = 10.
wa_field-no_zero = 'X'.
wa_field-seltext_l = 'Sales'.
APPEND wa_field TO it_fieldcat.
SELECT vbeln FROM likp
UP TO 10 ROWS
INTO TABLE it_likp.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = it_fieldcat
TABLES
t_outtab = it_likp
EXCEPTIONS
program_error = 1.
*& Form user_Command
* text
* -->UCOMM text
* -->SELFIELD text
FORM user_command USING ucomm TYPE sy-ucomm
selfield TYPE slis_selfield.
CASE ucomm.
WHEN '&IC1'.
SET PARAMETER ID 'VL' FIELD selfield-value.
CALL TRANSACTION 'VL02N' AND SKIP FIRST SCREEN.
ENDCASE.
ENDFORM. "user_Command -
How to look for the Table Name
Hi Friends,
Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
Thanks for the assistance.
RegardsHi Friend,
If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
Abap Dictionary > Fields > Table Fields.
Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
Regards,
Jigar -
How to look for spaces in an extract file in order to trigger a MOVE_IT rule
In studio I am defining a variable field on a section and I want to pull information from my extract file using a simple MOVE_IT rule.
I am trying to pull information from a record that has spaces in columns 10-14. How do I enter the information required in the DATA field to request this?
For example, if I was pulling the information from a record that had "XXXXX" in column 10-14 I know the DATA field would be 10,XXXXX
I cant seem to figure out how to look for spaces at a particular offset.
Thanks.Using XPath to locate the elements you are after is very easy.
Try something like this:
import java.io.File;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
public class BasicXMLReplaceWithDOM4J {
static String inputFile = "C:/student.xml";
static String outputFile = "C:/studentRenamed.xml";
public static void main(String[] args) throws Exception {
// Read xml and build a DOM document
Document doc = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().parse(new InputSource(inputFile));
// Use XPath to find all nodes where student is named 'Suresh'
XPath xpath = XPathFactory.newInstance().newXPath();
NodeList nodes = (NodeList)xpath
.evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
// Rename these nodes
for (int idx = 0; idx < nodes.getLength(); idx++) {
nodes.item(idx).setTextContent("Suresh-Renamed");
// Write the DOM document to the file
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
}- Roy -
How to look for kMAT material in Testing client?
Hi PP members:
How to look for KMAT material in Test client,
Note: I went to mm60 and entered material type: KMAT it did not populate any
materials
Is there any way where I can find the materials, If yes please let me know
thanks
SurenHi Saritha:
When I went to SE16, and entered MTART as KMAT it giving the following
It is replying me back "No table entries found for specified key"
Also want to bring to your kind attention I left MATNR field blank as I donot know
the VC materials
thanks -
How to look for business partner number in GTS
Hi Experts,
How to look for the business partner number in GTS when we have the Customer Id number in r/3?
Please let me know the path in GTS.
Edited by: Anurag87 on Dec 9, 2010 2:17 PMHello,
just simple in GTS in transaction BP find by "3 External number" (which is yours R/3 number).
Or in se16 table /SAPSLL/PNTBP type in field BPVSY you external number from R/3 system.
Cheers,
Gabriel. -
How to look for a keyword in SAP MaxDB Library 7.6
Hi,
how to look for a keyword in SAP MaxDB Library 7.6 ( http://maxdb.sap.com/doc/7_6/7e/c3fb0e72fcf84580f7ee9fcec672b7/frameset.htm)
Thank you.http://maxdb.sap.com/documentation/
=>
Section u201CDownloadu201D - HTMLHelp file < 7.8 or 7.7 version >
HTMLHelp file
.chm, full text search, print-optimized, 6.3 MB
< download it or open it >
< If downloaded, Then start on your server:
maxdb-chmdoc-en-78_740.chm >
and type a keyword in field u201CType in the keyword find:u201D and search.
Itu2019s working fine.
Regards, Natalia Khlopina -
How to refer to a particular field in Table Control.
Hi,
How can we refer to a particular field in a table control like 5th row 6th column. The actual requirement of mine is, i have a column with listbox. For each row i need to have different values for the list box. So i need to refer to that particular field in the column and assign the list values. Please kindly help.
Regards,
Vinay.hi,
TABLE CONTROL -
http://www.geekinterview.com/Interview-Questions/SAP-R-3
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa4735c111d1829f0000e829fbfe/content.htm
http://www.sapgenie.com/abap/example_code.htm
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
Eg of table Control:
http://members.aol.com/_ht_a/skarkada/sap/table_control/
table_control.htm
http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
Table control in BDC
http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/45/adee2396f711d1b46b0000e8a52bed/frameset.htm
Regards,
Laxmi -
Looking for a particular email
I have Mail backed up to TM as well as an external drive. I am looking for a particular email that has been backed up. I moved the particular mailbox from each of these drives to my desktop. They are .imapmbox files and would like to import these messages into Mail as a separate disposable folder.
On the desktop they are #.emix files which are not easy to search.
How to do this?
ThanksI'm not sure. I know you can import mail stored locally by opening Mail and selecting Import from the File menu. Select the Apple Mail option then follow directions. A file Open dialog will appear and you must navigate to the /Users/username/Library/Mail/ folder and select the Mailboxes folder. If your mail is there then you can select the mailbox and import it. However, this does not work for IMAP accounts. Make a copy of the .mbox file that should have your mail. Again select Import from Mail's File menu. Select the bottom option to import .mbox mail and follow directions.
Imported mail will appear in a separate sidebar header called Imported Mail. -
How to get the histoical data for newly added field in the cube?
Hi Experts,
I have small doubt on remodeling the infocube.
After adding the characteristic or keyfigure to a cube by using remodeling concept, how can I get the historical data for that particular field.
I have searched in SDN also but I didn't get proper information.
Please excuse me if I posted repeated question.
helpful answer will be awarded with poitns.
Thanks & regards,
Venkat.hi
depending on your customer need you could use the remodelling functionnality but sometimes you have no way to retrieve what you want so another option you should consider is the following:
Advantages
that will cost less effort and guarantee the result.
Drawbacks
data is redondant for a while
space (depending on the volume of historical data)
So here are the steps :
step 1Adjust your extraction process according to the fields you need to add to populate the cube.
step 2 Then create a dso next or even a cube, feed the dso with a full load with the enhanced extractor you adjusted with the new fields in step 1 only once in fact this should be one shot.
step 3 Copy the query to the previous built multi-provider on top of the new historical data from dso and the running live delta cube. Adjust the queries if necessary.
optionnal Then if you want to get rid of the dso or new cube for historical data you could empty the actual one push the data from the new data provider and that's all.
bye
Boujema -
Scan\Look for a particular character in a file
I would like to look for a particular character(@) in a file. The character might be in a word. When if find the character I want to read the actual whole word that contains that character.
What's the best way of going abt this?
Thx,
Kapapra.Read the file line by line using BufferedReader.
Tokenize each line on space.
Loop through the token strings.
For each token that contains the character that you are looking for (e.g. @) found using indexOf operator of the String class, print or save (or whatever you want to do with that token) that token.
Continue reading the file line by line till the end of the file.
Does this make sense? Look the java.io package API for the details on how to read the file and stuff.
If anyone has more effecient method to do this, please share.
Maybe you are looking for
-
How do I set up a user account on a Macbook Air
I am trying to help an elderly neighbor whose son gave her his Macbook Air to use but he is the Administrator and has been recently deployed overseas and she cannot contact him. How can I set her up with her own account on his computer without his Ad
-
Hi guys, I'm new in LabWindows. I have a simple project, which has to parse a .txt file. Only some data inside the txt-File is interesting (the middle part, segment # 1-3 -> see example). The upper and lower part differs in size and is not important.
-
I am using Windows Vista. When I am on one profile, I keep getting an error that says that "ITUNES HAS STOPPED WORKING". Then it reports a problem in windows and checks to see if a solution is available. Just for giggles and after alot of frustration
-
How to create 2 checkboxs in 2 different JTable cells within 1 buttonGroup?
Hi, I have a JTable with dynamic number of rows and 5 columns. What I mean by dynamic is that new rows can be added and existing rows can be deleted so the number of rows may change. As I said before there are 5 columns. The first 3 columns will alwa
-
Crashes when upgrading to FCS 5.1
I have been trying for a week to upgrade to Final Cut Studio 5.1 which I purchased for $700. I have been running FCP 3 for a while with no problems.I wiped my drives clean and tried to install the FCS, giving the key when prompted for the original FC