Need A-B tables data
Hi experts,
I have 2 tables for example A & B, Could anyone give me solution how to achieve A-B Data in 4.1 version
Thanks
Madhu
I have 2 tables A & B in source
I want in the target as A-B data
The target should contain only records from A but not in B
Please let me know if you dont understand yet,I will give you example
Thanks
Madhu
Similar Messages
-
Help needed in Exporting tables data through SQL query
Hi All,
I need to write a shell script(ksh) to take some of the tables data backup.
The tables list is not static, and those are selecting through dynamic sql
query.
Can any body tell help me how to write the export command to export tables
which are selected dynamically through SQL query.
I tried like this
exp ------ tables = query \" select empno from emp where ename\= \'SSS\' \"
but its throws the following error
EXP-00035: QUERY parameter valid only for table mode exports
Thanks in advance,Hi,
You can dynamically generate parameter file for export utility using shell script. This export parameter file can contain any table list you want every time. Then simply run the command
$ exp parfile=myfile.txt -
Advanced table in advanced table- Need custom Detail table data.
hi,
I have a advanced table in table. Now for the inner detail table I have a Language column. For each row in master table I have correspoding 3 detail table records for 3 different languages. This languages are related to another master table called Language where there is a flag that indicates that this is a Installed language.
Now what I want to do is instead of showing the data from the master and detail table, I want to show the languages from the master language table ( say example French, Chinese, Spanish - for which I have corresponding records in detail table). If tomorrow, I have a new language that is installed ( i.e. the flag in the master Language table is set to Y), the automatically a new row should get added in the detail table with the new langauge . say e.g. if tomorrow German language is installed the detail table rows should have 4 rows ( including German to be displayed)
CAn this be achieved with the master - detail advanced table layout ?
Sorry if not clear, i can try to explain again :(Vishal
Please post your complete code so that we can diagnose it further.
While posting the code please enclose it between {noformat}{noformat}.
for e.g.
{noformat}{noformat}
select * from dual;
{noformat}{noformat}
looks likeselect * from dual;
Thanks
AJ -
Export & Import internal table data across the programs
Hi All,
I have two different reports,let say ZPRO1 & ZPRO2. I want to export internal table data of ZPRO1 to ZPRO2 and then I want to do some calculations in ZPRO2 with the imported internal table data(ZPRO1).
If I use 'SUBMIT' or CALL TRANSACTION syntax ZPRO1 is displaying..but I want to use only internal table data of ZPRO1.
Pls advise.
Pranitha.Hi,
Please follow the simple code and try to solve your issue.
Code in program1
types: begin of ty_itab,
matnr type matnr,
end of ty_itab.
data: it_itab type table of ty_itab,
wa_itab type ty_itab,
it_itab1 type table of ty_itab.
select matnr from mara into table it_itab.
export it_itab to shared buffer indx(st) id 'ABC'.
Code in program2
types: begin of ty_itab,
matnr type matnr,
end of ty_itab.
data: it_itab type table of ty_itab,
wa_itab type ty_itab.
import it_itab from shared buffer indx(st) id 'ABC'.
loop at it_itab into wa_itab.
write:/ wa_itab-matnr.
endloop.
Please delete shared buffer indx(st) id 'ABC', once we don't need the internal table data.
Regards
Dande -
Cmd for exp and importing all the table data's in a specified schema
i need to export table data without exporting the defenition how can i do this
Why do you have such a requirement?
Are you worried about import failures if the object already exists on the database? -
Exporting table data to Excel sheet:
Hi All
My requirement is need to export table data to Excel sheet: for this
I was done all, but I'm getting 500 Exception please contact u r system admin msg at run time, also Jxl/Workbook class not found msg but I downloaded Jxl.jar file and its showing in navigator>Lib>jxl.jar. There is no error signals in coding part.
Thanks
PolakaHi,
Copy your jxl.jar and open it with winzip. See if there is Workbook.class file inside it in the folder jxl.
Try to download jxl.jar from this link
http://www.java2s.com/Code/Jar/JKL/Downloadjxljar.htm
and add.
Best Wishes
Idhaya R -
Need table data to be captured in a field symbol.
Hi,
I need to capture the Table data of a program(SAPLSTXD) into a filed symbol which is called in different program i.e. BTE.
I have written code like below....but does not work.
Data: lines type table of tline,
c_prog type string value '(SAPLSTXD)lines[]'.
field-symbols: <fa> type any table.
assign (c_prog) to <fa>.
if <fa> is assigned.
lines[] = <fa>.
endif.
Please suggest if I am doing wrong. I am not getting data in <fa>. Error says that field symbol is not assigned.
Thanks in advance.Hi Faiyaz,
I noticed that 'IF_LONGTEXTS_MMGET_TYPES ' and 'IF_LONGTEXTS_MMGET_TEXT ' methods exist in another class 'CL_PO_HEADER_HANDLE_MM'.
Please check this link: [http://wiki.sdn.sap.com/wiki/display/ABAP/PurchaseOrderDataExtractionusingABAPClasses]
Also, check following includes as how above methods are being used.
L2012F27
Hope Clemens suggestion works out for you.
Good luck.
Regards,
Vivek -
Need help with importing data in partition table
Hi,
DB:8.1.7
OS: win 2003 server
I have a table which is 4.5GB in size. I created a new partition table,with local indexes. I exported the original table with all indexes,triggers and procedures.
After creating the empty partitioned table,i imported the dump file. The data isn't loaded. My questions are:
1) Will the indexes be overwritten?
2) Will the data go automatically in allocated partitions?
3) Do i need to export only table data ignoring indexes,triggers etc?
Best Regards,ateeqrahman wrote:
1) Will the indexes be overwritten?Not if they already exist with the same name, or with the same logical definition (ie. same columns are already indexed)
2) Will the data go automatically in allocated partitions?Yes
3) Do i need to export only table data ignoring indexes,triggers etc?Do you need the triggers? do you need indexes that you haven't created manually? What about grants? -
Table data needs to be displayed with horizontal and vertical lines
Hi,
I need to display the data of the table in the SAP script which is having both horiziontal and vertival lines.
the out put needs to looks as it in Excel...where there are multiple records with 5 fixed coulmns each seprated from one another by horizonalt and vertical lines..
Can you let me know how to proceed in SCRIPT ,,,, where the number of records might vary ..and also ..it might continue to second page..
Regards
Senthilwell it is possible but quite tricky.
All you got in SAP-SCRIPT to achieve this is the BOX-Statement.
The BOX statement works with variables for XPOS, YPOS, WIDTH and HEIGHT. what you need to do is:
- calculate those variables during runtime
- add box-statements with those variables.
to calculate those variables you need to count used lines and so on. i hope i showed you a way, rest is a lil brainwork then.
regards -
Need to reform sql data in a table
I have data in a table like this
Group measure value
group1 Total 20
group1 price 500
group1 balance 800 I need to make the data in a new table like this, please HELP, Doug
Group total price balance
group1 20 500 800Hi,
That's called a Pivot , and here's one way to do it in Oracle 8.1 and up:
SELECT grp -- GROUP is not a good column name
, SUM (CASE WHEN measure = 'Total' THEN value END) AS total
, SUM (CASE WHEN measure = 'price' THEN value END) AS price
, SUM (CASE WHEN measure = 'balance' THEN value END) AS balance
FROM a_table
GROUP BY grp
;Starting in Oracle 11, there's a cleaner way to get the same results.
Edited by: Frank Kulash on Jul 27, 2010 11:03 AM
Alex is right; if you search this site for "Pivot" or "Rows to Columns", you'll find plenty of matches.
Unfortunately, 95% of them will say "search this site for "Pivot" or "Rows to Columns".
Here are a couple that say more:
http://forums.oracle.com/forums/message.jspa?messageID=3227306
http://forums.oracle.com/forums/message.jspa?messageID=4448157
http://forums.oracle.com/forums/thread.jspa?messageID=3527823 -
Need to EBBEDED TWO TABLES data.
Hello guru's,
i have a table t1 with two coloumns room_name and date
room_name have data like
A
B
C
D etc.
i have another table with two columns room_a , room_b room_c room_d , date
room_ a have data like india , japan , usa etc
room_b have data like paki , london etc
and so on
i decoded the 1st table like select decode(room_name,'A','ROOM_A','B','ROOM_B'', ROOM_NAME) rooms from t1
so now i get rooms as room_a,room_b,room_z etc.
i need to get the data in 2nd table that is room_a = india in the 1st table .
somebody told me EBBEDED TWO TABLES will work , i have no idea what does that meant.
if anyone have idea please help me .
i use this query in oracle reports .
thanks for all help.Embedded -- sorry misspelling it means , to map a set into another set
1. desc calendar_file -------- table one .
cal_date , Court_room,reporter_name -------- column names .
01/02/2002 , A Abraham ---- data
01/02/2002 B Mathew
01/02/2002 C
01/03/2002 F
01/03/2002 301 etc.
2. desc court_reporter_file ------ table two
court_date, Room_A, Room_b, Room_c, Room_d,Room_e,Room_f,Room_301 ----columns
01/02/2002 Abc , erf, mathew , jeff, aron , judge etc -- data .
now i wanted is if on a perticular date like 01/02/2002 , B . then i need to get the room_b data from table court_reporter into reporter_name in calendar_file table.
i thought if i do decode the 1st table like
select decode(Court_room,'A','Room_A','B",Room_B) then the result will change as
01/02/2002 , Room_A Abraham.
01/02/2002 , Room_B Abraham etc.
i needed is get the value of room_a, room_b etc into reporter_name(1st table)
if court_room is A, B etc -- here is were EBBEDED works , have no idea how is that.
hopes i confused really good ,sorry. -
Need to save the data in mutiple tables
Dear Experts,
I need to insert the data ,which is accepted from the user at runtime using table control and also generate automatic number when clicked on the save button the data should be in the database as well.
I am new to module pool, your help is reqd. The user will be awarded ample points if answered correctly.
regards,
RachelHi Rachel,
For automatic number generation you need to create number range object using tcode SNRO and then use the foolowing logic.
*& Form GET_NEXT_NUMBER
text
--> p1 text
<-- p2 text
FORM get_next_number .
DATA: w_quant LIKE inri-quantity, "dummy
w_code LIKE inri-returncode. "returncode
To lock the number range object
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = 'ZNUM'
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
To raise the exception to the corresponding exception of
'NUMBER_RANGE_ENQUEUE'
IF sy-subrc NE 0.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc NE 0
To get the next number from the object
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = 'Z2'
object = 'ZNUM'
toyear = '2008'
IMPORTING
number = l_lbc_next
quantity = w_quant
returncode = w_code
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
IF sy-subrc <> 0.
CLEAR ok_code.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc <> 0
To unlock the number range object
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = 'ZNUM'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
IF sy-subrc NE 0.
CLEAR ok_code.
MESSAGE e368(00) WITH text-006."'Object is not found'
ENDIF. "IF sy-subrc NE 0
ENDFORM. " GET_NEXT_NUMBER
And for table control logic
see the below link.
Table control of Module Pool Program
Regards,
Raju -
Need a POP-UP which can display internal table data in ALV format
HI All,
I need to display INTERNAL TABLE values through a POP-UP. Only condition is that the window with the internal table data should be in ALV format and not in TEXT only format.
To clarify, I used FM 'POPUP_WITH_TABLE_DISPLAY_OK' and 'POPUP_WITH_TABLE_DISPLAY', but both display the data in TEXT format and there is no provision to put the FIELD names there. Everthing needs to be put into internal table and it displays it in text format.
So I want a FM where I can display internal tabel data in ALV format( same format that would appear if you creata search help for a filed and output window would have all the ALV features like SORT buttons etc.
Hope there is some FM to achieve this ALV format data thing.
Thanks in advance for all your help.
Regards
FX3check this
REPORT y_demo_alv_3.
TYPE-POOLS: slis.
DATA: BEGIN OF i_outtab OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA: w_chk TYPE c. "For multiple selection
DATA: END OF i_outtab.
* I_OUTTAB TYPE SFLIGHT OCCURS 0,
DATA: i_private TYPE slis_data_caller_exit,
i_selfield TYPE slis_selfield,
W_exit(1) TYPE c.
PARAMETERS: p_title TYPE sy-title.
START-OF-SELECTION.
SELECT * FROM sflight INTO TABLE i_outtab.
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = p_title
i_selection = 'X'
i_zebra = 'X'
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
i_checkbox_fieldname = 'W_CHK'
* I_LINEMARK_FIELDNAME =
* I_SCROLL_TO_SEL_LINE = 'X'
i_tabname = 'I_OUTTAB'
i_structure_name = 'SFLIGHT'
* IT_FIELDCAT =
* IT_EXCLUDING =
* I_CALLBACK_PROGRAM =
* I_CALLBACK_USER_COMMAND =
* IS_PRIVATE = I_PRIVATE
IMPORTING
es_selfield = i_selfield
e_exit = w_exit
TABLES
t_outtab = i_outtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE i000(0k) WITH sy-subrc.
ENDIF.
*****the internal table is modified with a cross sign for marking the
***rows selected
LOOP AT i_outtab WHERE w_chk = 'X'.
WRITE: / i_outtab-carrid, i_outtab-price.
ENDLOOP. -
I need to load the reference/check table data in to MDM Server - help
Hi,
I need to load the referece table/check table data from ECC50 into FTP server/Ports. I am intrested only in Material and vendor extraction. Is this is possible with MDMGX or I need to use old zreports to extract reference table data? Any help on this is appreciated.
Thanks,
Daniel.LAHi Daniel,
U have to use generic extratctor MDMGX to extract reference data(customizing data) from R/3.
Prerequisite:
MDMGX to be installed.
Procedure to use it.
A)Setup Execution.
1) Define Object type as per ur requirement (drop down list standard objects are provided like customer,vendor,products etc.).
2)Define Repository and ftp server name.
3)Upload ports and check table.
4)Maintain ports and check table.
B)Execute Generation and Extraction.
1)Generate XSD.
2) Starrt Execution.
For each check table u have to create a separate port in MDM Repository.
zreport is a older version ,it can be but neednot contain latest updates in check table .
Reward Points if helpful.
Regards,
Neethu Joy. -
PO ref i need Table Data from GR,IR & Account Document Numbers
Hi Fi/Co Family Please give me valuable suggestion ,
Through PO Number we will get GR Number in TC: ME23, how can I get from table data with reference PO to GR, IR and Accounting Document Numbers.
Regards,
Venkathi
if ur problem is to find the document number only, then go to tcode me23n and give ur PO number and click on PO history tab on item details.
hope it works.award if useful.
Maybe you are looking for
-
Error Message with FCE 1.0 when opening...
I can't open the program it goes and then displays an error message: Date/Time: 2007-07-29 00:05:52.032 -0500 OS Version: 10.4.10 (Build 8R2232) Report Version: 4 Command: Final Cut Express Path: /Applications/Final Cut Express.app/Contents/MacOS/Fin
-
Hi, I am trying to create a bootable USB stick for use in deploying an Embedded Windows 7 image. I have followed the instructions here: http://msdn.microsoft.com/en-us/library/ff795043(v=WinEmbedded.1001).aspx. That seems straight forward. But, I
-
Running totals help required. Total PartNumber when in Date Order / Group.
I am trying to create a shortages list of our order book for all our customers orders outstanding. I want a running total of the orders which works until I group the orders in date order, not PartNumber order. It needs to be in date order so the user
-
Avoiding sending same data to IDOC
Hi I require help in the following scenario , Blogs , Links or any development approach will be helpful I have a scenario where PI will receive incoming XML messages in message queues and wil have a lot of filelds and has to be posted into IDOCS. No
-
Y50 clicking sound from left speaker and muffled sound
Hello, I just bought the Y50 yesterday with the GTX 960M. Unfortunatly i noticed while playing that the left speaker started to do a clicking noise, in addition the sound became muffled. When i tilt the laptop the problem is resolved i.e. the clicing