Read Info from a structure
Hi all.
I'm currently trying to do a report that only wants to look at active production orders. The only place i can find this information is in the structure 'CAUFVD' field 'ASTTX'.
Can anyone suggest the best way to pull this info into my report.
Thanks
Hi,
You will get all the orders in the field AUFNR of the table which you populated.
From AUFNR you should get OBJNR using the database view CAUFV like this.
SELECT OBJNR FROM CAUFV
INTO TABLE T_OBJNR
FOR ALL ENTRIES IN T_AUFNR "Your internal table
WHERE AUFNR = T_AUFNR-AUFNR.
For that OBJNR pass all the values in a loop like this:-
LOOP AT T_OBJNR INTO WA_OBJNR.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
FLG_USER_STAT = 'X'
OBJNR = WA_OBJNR
ONLY_ACTIVE = 'X'
SPRAS = 'EN'
IMPORTING
LINE = CAUFVD-STTXT
USER_LINE = CAUFVD-ASTTX
EXCEPTIONS
OBJECT_NOT_FOUND = 1
OTHERS = 2.
ENDLOOP.
Regards,
sUBHASHINI
Similar Messages
-
How to read data from INVFO structure
Hi Guys,
Can anybody tell me how to get the Data from INVFO structure for field ZUONR as I have to assign it into from BSEG-ZUONR field. using FI Assignment technique. so can anybody tell me any table where INVOF-ZUONR are stored in FV60 transaction?
Thanks & Regards,
AshishHi Ashish,
I'm not clear with your query, however if you are looking for a table, where Assignment field for Park document is stored, you can use Table VBSEGK - Document Segment for Vendor Document Parking.
Just park one doucment with FV60, and than go to SE16N give table VBSEGK, and pass this doucment number and company code to table VSEGK, or your assignment vlue in ZUONR fied.
You will see your documents there.
VSEGK-ZUONR
Regards
Javed -
Reading info from a .log file
hey i have a bunch of files that im trying to read through the text for specific keywords in the file. the problem is for some reason i cant seem to parse through a file that has the extension of .log. so if i have a file of text.log, it wont read through it to find all the info. i was wondering if anyone could tell me what im doing wrong and how to correct it. here is the current code i have:
public class LogChecker {
* @param args
public static void main(String[] args) {
File directory = new File("C:\\MyDirectory\\");
String[] fileNameList = directory.list();
Scanner fileScanner, lineScanner;
String currentLine, currentWord;
try{
for(int i = 0; i<fileNameList.length; i++){
File currFile = new File("C:\\MyDIrectory\\"+(String)fileNameList);
fileScanner = new Scanner(currFile);
while(fileScanner.hasNext()){
System.out.println(currFile.getName());
currentLine = fileScanner.nextLine();
lineScanner = new Scanner(currentLine);
while(lineScanner.hasNext()){
currentWord = lineScanner.next();
if(currentWord.indexOf("ban")!=-1){
System.out.println("someone got banned "+currFile.getName());
}catch(Exception e){
System.err.println(e.getMessage());
//System.out.println(fileNameList.length);new File("C:\\MyDIrectory\\"+(String)fileNameList);
That should be giving you compile errors. Why not just get an array of Files from your directory? -
HI All,
I task to read the data from XML file and and assign to variable in batch script.Can any one help me how can I do this
SamarHere you go:
@echo off
for /F %%a in (d:\test.xml) do echo %%a | find /i "var=" && set var=%%a
It is extremely unlikely that this batch file will do what you want it to do but in the absence of any details in your post I was forced to use crystal ball gazing techniques. Seriously - if someone asked
you how to do the job, what would
you tell him? There is no room for guesswork in scripting! -
Error in read value from structure
hi gurus,
the structure does not contain any data.... so i have 2 problem related to it.
1. do i apply the select query nd write statement on structure rf05l. i apply it gives error that rf05l is not the table.....
2. so what is the use of include structure in report, why we used it nd what is the procedure to read data from structure.
types : BEGIN OF t_rf05l.
include structure rf05l.
types : END OF t_rf05l.
DATA : it_rf05l TYPE STANDARD TABLE OF t_rf05l WITH HEADER LINE,
wa_it_rf05l TYPE t_rf05l.
select * from rf05l into it_rf05l.
append it_rf05l.
write :......
reply me soon....
thanx
manish sharma.Hi
select * from rf05l into it_rf05l.
append it_rf05l.
write :......
Do this:
select * from rt05l
into corresponding fields of table it_r05l.
loop at it_ro5l into wa_it_rf05l.
write....
endloop.
include structure rf05l. mens you are including all the fields of that Database table into itab or your structure. its does not mean that rt05l can be used as ITAB.
Regards
Aditya -
How to read data from a CLUSTER STRUCTURE not cluster table.
Hi,
how to read data from a CLUSTER STRUCTURE not cluster table.
regards,
Usha.Hello,
A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
Regards,
Mansi. -
How to read data from structure RSTXT
Hi Everyone..
I have some problem with read data from structure RSTXT.
I am using transaction code vl02n -> for delivery select <b>Item</b> in item
overview tab -> Go to -> Item -> text.
I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?
If anyone knows about it plz reply me with example.
Thanks in Advance.Hi,
Use FM READ_TEXT
( Once on the text, plz display it in plain page mode :
then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )
Sample code :
DATA: BEGIN OF TTLINE OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF TTLINE.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = L_ID
LANGUAGE = L_LANGUE
NAME = L_BL
OBJECT = 'VBBK'
TABLES
LINES = TTLINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Regards,
Erwan -
How do I read text from specific rows and columns in a tree structure?
How do I read text from specific rows and columns in a tree structure? In a table you can specify the cell to read from but I have not been able to figure out how to do this with a tree structure.
You need to set two properties to activate the correct cell and then you can read it's string property.
The positioning properties are the "ActiveItemTag" and
"ActiveColNum" properties. With them you select the tree item by it's tag and the active column. The string can then be read from the "Cell String" property.
MTO -
Need help reading the info from GSpot...
I've got an uncompressed .mov file that someone exported from FCP (not sure which version) for me to put a new music bed on and upload to our website. I attempted to import it PrPro, but it failed to import and gave me an unknown codec error. I opened the file in GSpot and got the below screenshot, which I don't really know how to read properly. I also tried repackaging the file using MPEG Streamclip, but got a file with audio and no video... Help?
Thanks, Bill... here's the info from MediaInfo (I don't own QT Pro):
General
Complete name : F:\PCI\MLK\MLK Day 2012\Barber_MLKDay_sans_music.mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 3.31 GiB
Duration : 4mn 32s
Overall bit rate mode : Variable
Overall bit rate : 104 Mbps
Encoded date : UTC 2012-01-20 00:24:50
Tagged date : UTC 2012-01-27 16:13:10
Writing library : Apple QuickTime
©TSC : 2997
©TSZ : 100
Video
ID : 1
Format : Intermediate Codec
Codec ID : icod
Codec ID/Hint : Apple
Duration : 4mn 32s
Bit rate mode : Variable
Bit rate : 103 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Scan type : Interlaced
Scan order : Top Field First
Bits/(Pixel*Frame) : 1.655
Stream size : 3.26 GiB (99%)
Language : English
Encoded date : UTC 2012-01-20 00:24:50
Tagged date : UTC 2012-01-20 00:31:22
Color primaries : BT.709-2, SMPTE 274M, SMPTE 296M
Transfer characteristics : BT.709-2, SMPTE 170M, SMPTE 274M, SMPTE 293M, SMPTE 296M
Matrix coefficients : BT.709-2, SMPTE 274M, SMPTE 296M
Audio
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : sowt
Duration : 4mn 32s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 49.9 MiB (1%)
Language : English
Encoded date : UTC 2012-01-20 00:24:50
Tagged date : UTC 2012-01-20 00:31:22
Menu
ID : 3
Duration : 4mn 32s
Language : English
Encoded date : UTC 2012-01-20 00:31:22
Tagged date : UTC 2012-01-20 00:31:22 -
How to read data from versc flat structure
I get result table from FM in that table flat structure is included (i.e. VERSC) , so i have to read data from versc
so please guide me.
Thanks,
Regards.
Subodh G.hi,
can u be clear.
if possible . paste the code. it vil be very useful to understand.
Regards,
Sabari -
How to read data from the Deep structure.
Hi
How to get from the deep structure. Means i have one table in that having onother structure. i need to read data from that inner structure.
Regards
ReddyHi,
you can access in the way u use for the normal structure, u should only consider a deep structure is a table without headerline.
TABLES: BKPF, BSEG.
TYPES: TY_ITEM TYPE TABLE OF BSEG.
DATA: BEGIN OF W_DOCUMENT,
HEADER TYPE BKPF,
ITEM TYPE BSEG,
END OF W_DOCUMENT.
DATA: T_DOCUMENTS LIKE STANDARD TABLE OF W_DOCUMENT.
Insert the data:
SELECT * FROM BKPF WHERE ....
W_DOCUMENT-HEADER = BKPF.
SELECT * FROM BSEG INTO TABLE W_DOCUMENT-ITEM
WHERE BUKRS = BKPF-BUKRS
AND BELNR = BKPF-BELNR
AND GJAHR = BKPF-GJAHR.
APPEND W_DOCUMENT TO T_DOCUMENTS.
ENDSELECT.
Read the data:
LOOP AT T_DOCUMENTS INTO W_DOCMENT.
Header data
WRITE: / W_DOCUMENT-HEADER-BUKRS,
W_DOCUMENT-HEADER-BELNR,
W_DOCUMENT-HEADER-GJAHR.
Item data
LOOP AT W_DOCUMENT-ITEM INTO BSEG.
WRITE: / BSEG-BUZEI,
BSEG-WRBTR CURRENCY W_DOCUMENT-HEADER-WAERS.
ENDLOOP.
ENDLOOP.
Regards,
Padmam. -
How to read the info from the card?
I'm using the GemPC410 reader and i'm succesfull to get the atr # of the card. Now i'm trying to get all the info that is in the card. Can someone help me out on how I can read all the info from this card?
You need to establish a secure channel between reader/card using Global Platform.
Look at the Global Platform Specifications on how to Authenticate to the card using ExAuth. That is the command to establish the secure channel. If you have developer cards, everyone ( except Gemplus ) uses keyset 0xff , 40 41 42...4f. -
Read justification info from text layer.
How to read justification info from text layer?
myLayer.property("Source Text").value.justification;
return
6612 - Left, 6613 - Right, 6614 - Center in CS6
6814 - Right, 6813 - Left, 6815 - Center in CC
it is right for any computer and operating system?I would try to steer clear of using the numbers, only because they have changed in each version of After Effects and probably will continue to. You should compare the justification value against the ParagraphJustification options. Pg. 185 in the CS6 scripting guide has the list of choices:
TextDocument justification attribute
textDocument.justification Description
The paragraph justification for the text layer.
Type
A ParagraphJustification enumerated value; read-only. One of:
ParagraphJustification.LEFT_JUSTIFY
ParagraphJustification.RIGHT_JUSTIFY
ParagraphJustification.CENTER_JUSTIFY
ParagraphJustification.FULL_JUSTIFY_LASTLINE_LEFT
ParagraphJustification.FULL_JUSTIFY_LASTLINE_RIGHT
ParagraphJustification.FULL_JUSTIFY_LASTLINE_CENTER
ParagraphJustification.FULL_JUSTIFY_LASTLINE_FULL
Here is a simple test function that will alert the justification value when it's matched. You can change the alerts to return whatever code you want based on the justifaction value found.
/* SAMPLE FUNCTION THAT CHECKS FOR JUSTIFICATION VALUE */
var myLayer = app.project.item(1).layer(1);
textJustVal(myLayer);
function textJustVal(myLayer){
var val = myLayer.property("ADBE Text Properties").property("ADBE Text Document").value.justification;
if(val == ParagraphJustification.LEFT_JUSTIFY){
alert("Left");
}else if(val == ParagraphJustification.RIGHT_JUSTIFY){
alert("Right");
}else if(val == ParagraphJustification.CENTER_JUSTIFY){
alert("Justified");
}else if(val == ParagraphJustification.FULL_JUSTIFY_LASTLINE_LEFT){
alert("Lastline Left");
}else if(val == ParagraphJustification.FULL_JUSTIFY_LASTLINE_RIGHT){
alert("Lastline Right");
}else if(val == ParagraphJustification.FULL_JUSTIFY_LASTLINE_CENTER){
alert("Lastline Center");
}else if(val == ParagraphJustification.FULL_JUSTIFY_LASTLINE_FULL){
alert("Lastline Full");
}else{
alert("There must be an error."); -
Read data from MDM For Lookup and Flat table using MDM ABAP API
Hi,
I have requriment to read data from MDM from FLAT and Lookup table using MDM ABAP API. My design is like this ,
I have one ITEMS (Main table in MDM) and inside that i have one Lookup flat table ITEM_TYPE , my requriment is to read Item number and its related Item type.
From ABAP.
Please help if any body has any idea.
Regards,
ShyamHI Guys,
I found my solution by myself. Below is the solution , hope this will help others:-
Retrieve data from MDM using MDM ABAP API.
Step- 1. Create structure in SAP with the same name as that of MDM field code for MDM Main table.
Step-2. Create another structure in SAP having all lookup fields of MDM , fieldname in ECC must be same as that of MDM field
code.
Step-3.Create structure in SAP for individual lookup field(Single Field only) with the same name as MDM Field code.
Step-4.
DATA: IT_QUERY TYPE STANDARD TABLE OF MDM_QUERY, "MDM_QUERY_TABLE,
WA_QUERY TYPE MDM_QUERY,
WA_CDT_TEXT TYPE MDM_CDT_TEXT,
IT_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT_TABLE,
WA_RESULT_SET_KEY TYPE MDM_SEARCH_RESULT,
WA_STRING TYPE STRING.
DATA:<Internal table> TYPE STANDARD TABLE OF <SAP Str Having all LOOKup Fields>
DATA: :<Internal table>TYPE STANDARD TABLE OF <SAP Str one LOOKup field>,
<Workarea> LIKE LINE OF :<Internal table>.
*PASS LOGICAL OBJECT NAME.
V_LOG_OBJECT_NAME = 'Logical object name defined in Customization'.
Define logon language, country & region for server
WA_LANGUAGE-LANGUAGE = 'eng'.
WA_LANGUAGE-COUNTRY = 'US'.
WA_LANGUAGE-REGION = 'USA'.
TRY.
CREATE OBJECT LR_API
EXPORTING
IV_LOG_OBJECT_NAME = V_LOG_OBJECT_NAME.
ENDTRY.
CONNECT to repository. Apply particular logon language info
CALL METHOD LR_API->MO_ACCESSOR->CONNECT
EXPORTING
IS_REPOSITORY_LANGUAGE = WA_LANGUAGE.
*NOW PASS ITEM NO AND GET KEY FROM MDM.
CLEAR WA_QUERY.
WA_QUERY-PARAMETER_CODE = <MDM FIELD CODE>. "Field code
WA_QUERY-OPERATOR = 'EQ'. "Contains
WA_QUERY-DIMENSION_TYPE = 1. "Field search
WA_QUERY-CONSTRAINT_TYPE = 8. "Text search
WA_STRING = <Field Value>.
GET REFERENCE OF WA_STRING INTO WA_QUERY-VALUE_LOW.
APPEND WA_QUERY TO IT_QUERY.
CLEAR WA_QUERY.
*PASS ITEM NUMBER AND GET RELATED KEY FROM MDM.
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->QUERY
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_QUERY = IT_QUERY
IMPORTING
ET_RESULT_SET = IT_RESULT_SET_KEY.
CATCH CX_MDM_COMMUNICATION_FAILURE .
CATCH CX_MDM_KERNEL .
CATCH CX_MDM_NOT_SUPPORTED .
CATCH CX_MDM_USAGE_ERROR .
CATCH CX_MDM_PROVIDER .
CATCH CX_MDM_SERVER_RC_CODE .
ENDTRY.
Pass record id into keys.
LOOP AT IT_RESULT_SET_KEY INTO WA_RESULT_SET_KEY.
WA_KEYS = WA_RESULT_SET_KEY-RECORD_IDS.
ENDLOOP.
WA_RESULT_SET_DEFINITION-FIELD_NAME = <Look field name>.
APPEND WA_RESULT_SET_DEFINITION TO IT_RESULT_SET_DEFINITION.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_RESULT_SET_DEFINITION = IT_RESULT_SET_DEFINITION
IT_KEYS = WA_KEYS
IMPORTING
ET_RESULT_SET = IT_RESULT_SET.
LOOP AT IT_RESULT_SET INTO
WA_RESULT_SET.
*PASS KEYS INTO MAIN TABLE TO GET Structure for FALT or Look up Table
TRY.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Main Table>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE =<SAP Strct having all Look up fileds of MDM>
ENDTRY.
LOOP AT <SAP Strct having all Look up fileds of MDM> INTO <Work area>.
CLEAR WA_KEYS.
APPEND <Work area>-field name TO WA_KEYS.
CALL METHOD LR_API->MO_CORE_SERVICE->RETRIEVE_SIMPLE
EXPORTING
IV_OBJECT_TYPE_CODE = <MDM Lookup table name>
IT_KEYS = WA_KEYS
IMPORTING
ET_DDIC_STRUCTURE = <Single Structure in SAP For Lookup field>.
READ TABLE <Single Structure in SAP For Lookup field>. INTO <Work Area> INDEX 1.
Here you can get the value of realted lookup fields associated with main table data.
ENDLOOP.
ENDLOOP.
LR_API->MO_ACCESSOR->DISCONNECT( ).
Edited by: Shyam Babu Sah on Nov 24, 2009 4:52 AM -
I have to develop a program that gets some info from a website, my approach is to connect to the website using the URLConnection class end the URL class on the java.net package, and parse the html file until I get the info I want, but this approach has one drawback:
- if the structure of the website changes then I'll have to change my application as well.
Is there a cleaner way to implement this?
Thanx in advance for your help.
Nelo.A cleaner way would be to get in contact with the people who operate the website and ask them to provide the data you need as a web service. That way you have an agreed-upon format that will not change unilaterally and an easier parsing task (XML versus HTML). From what I read in the trade papers, everybody is falling over themselves in their haste to implement web services, so I'm sure you should have no problem doing this. </irony>
Maybe you are looking for
-
BI Publisher: variable in Header of rtf-template
Hi, Is there a way to display a field in a Header of RTF-document when the value source of the field is from XML data source ? In other word, could Header of RTF-document conclude variable ? Thank you
-
I have 4 devices (iPhone 3GS, iPhone 4s, iPad2, Mini iPad) on an iTunes whose computer hard drive is dead. How do I get my devices on a new iTunes on a different computer and not wipe out my contents?
-
SAP R/3 to JAVA Interfacing
Hi Dear all, My requirement is that to connect SAP R/3 System with JAVA system through RFC. And through that need to pass data from SAP to JAVA AND also JAVA to SAP. Please tell me what is role of ABAPer here. Means what settings I have to do f
-
Hello, I am looking for example which allow some of the IP's belongs to INSIDE which can allow to using PAT method to access Internet. With reference to URL http://www.cisco.com/c/en/us/td/docs/security/asa/asa90/configuration/guide/asa_90_cli_config
-
E26 253 Error while check in only while running FM
Dear Experts, I am trying to run Function module BAPI_DOCUMENT_CHECKIN2, which is returning with the error message E 26 253 Error while check in and storing: D:\ XXX (Path) \XXX (file name). I have entered the following required input. DOCUMENT DATA