How to reterive the required output
i want to extract data from two different tables and to create a single table.
first table is gc1
idx suburb_form
1 ALBANY
2 PERTH
3 ALBANY CBD
4 PERTH CBD
SECOND TABLE IS CITIES
ALBANY
PERTH
I WANT TO CREATE A TABLE WHICH SHOULD CONTAIN ALL RECORDS FROM THE GC1 TABLE
I HAVE WRITTEN QUERY LIKE THIS BUT IT DOES NOT WORK.
CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A
WHERE exists(select NULL from POI.SH_POI_SMALL_CITIES C where upper(trim(A.SUBURB_FORM))=C.CITY OR RTRIM(A.SUBURB_FORM,' CBD')) =C.CITY)
PLEASE CAN ANYBODY HELP ME IN ORDER TO GET THE REQUIRED OUTPUT.
tHANKS
CONTAIN ALL RECORDS FROM THE GC1 TABLEIn these case, wouldnt just selecting GC1 be sufficient?
CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A
Similar Messages
-
How to send the report output to the application server in a excel file
Hello,
how to send the report output to the application server in a excel file.
and the report runs in background.
Thanks in advance.
SundeepDear Sundeep.
I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
D A T A D E C L A R A T I O N *
TYPES: BEGIN OF TY_EXCEL,
CELL_01(80) TYPE C,
CELL_02(80) TYPE C,
CELL_03(80) TYPE C,
CELL_04(80) TYPE C,
CELL_05(80) TYPE C,
CELL_06(80) TYPE C,
CELL_07(80) TYPE C,
CELL_08(80) TYPE C,
CELL_09(80) TYPE C,
CELL_10(80) TYPE C,
END OF TY_EXCEL.
DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
WA_EXCEL TYPE TY_EXCEL..
E V E N T : S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Here you populate the Internal Table.
Display - Top of the Page.
PERFORM DISPLAY_TOP_OF_PAGE.
E V E N T : E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
SET PF-STATUS 'GUI_STATUS'.
E V E N T : A T U S E R - C O M M AN D *
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXPORT'.
Exporting the report data to Excel.
PERFORM EXPORT_TO_EXCEL.
ENDCASE.
*& Form DISPLAY_TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM DISPLAY_TOP_OF_PAGE .
SKIP.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'O R I C A'
CENTERED COLOR 1,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
CENTERED COLOR 4 INTENSIFIED OFF,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE.
E X C E L O P E R A T I O N
CLEAR: IT_EXCEL[],
WA_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
WA_EXCEL-cell_02 = ' XYZ Ltd. '.
APPEND WA_EXCEL TO IT_EXCEL.
CLEAR: WA_EXCEL.
WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
APPEND WA_EXCEL TO IT_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
ENDFORM. " DISPLAY_TOP_OF_PAGE
*& Form APPEND_BLANK_LINE
text
-->P_1 text
FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
DO P_LINE TIMES.
CLEAR: WA_EXCEL.
APPEND WA_EXCEL TO IT_EXCEL.
enddo.
ENDFORM.
*& Form EXPORT_TO_EXCEL
text
--> p1 text
<-- p2 text
FORM EXPORT_TO_EXCEL .
DATA: L_FILE_NAME(60) TYPE C.
Create a file name
CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
'.' SY-DATUM+0(4) INTO L_FILE_NAME.
Pass the internal table (it_excel which is already populated )
to the function module for excel download.
CALL FUNCTION 'WS_EXCEL'
exporting
filename = L_FILE_NAME
tables
data = IT_EXCEL
exceptions
unknown_error = 1
others = 2.
if sy-subrc <> 0.
message e001(ymm) with 'Error in exporting to Excel.'.
endif.
ENDFORM. " EXPORT_TO_EXCEL
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
Regards,
Abir
Don't forget to award Points * -
Problem of configuration the requirement output control ?
Hi ,
i am now in a very urgent situation that is the system does not create the message type after executing the transaction VL31N.
In detail :
I have used the transaction NACE to configure the "Requirements output control" and i have created 3 message type (Z1 , Z2, Z3) ( type V6 : handling unit) and i have coded for each of them to check the requirements for creating the messsage type ( the message type will be created if the sy=subrc = 0 after the forms are executed.
FORM KOBEV_Z1.
Check condition from the structure komkbv6
if cond Ok
sy-subrc = 0.
endif.
ENDFORM KOBEV_Z1.
FORM KOBEV_Z2.
Check condition from the structure komkbv6
if cond Ok
sy-subrc = 0.
endif.
ENDFORM KOBEV_Z2.
FORM KOBEV_Z3.
Check condition from the structure komkbv6
if cond Ok
sy-subrc = 0.
endif.
ENDFORM KOBEV_Z3.
But in fact , even if i have put the sy-subrc = 0 for each of them or for all , the message type was not created as i need .
Result :
if the message type is created automatically after executing the KOBEV or KOBEV , a printing program will be called to print the SAPscript form , but till now , i can not do that , to print the form i have to created the message type by hand ..
Is the something wrong in the system ? How can i configure them to run well ?
Please help me .
PS : I will reward immediately and i am waiting
Thank you very muchHi,
If you are supposed to bring across characteristic values to your target, then you will not be able to jump from the result line. The configuration expects that the values of the characteristic marked as being used in the jump are filled with unique values. When you use the result line as a source for your jump, the values in the result line will most likely be based on the sum of multiple characteristic values.
Hth,
-Jacob -
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02
hi
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02.
i want to display this field in my report. what is the fieldname and in which table it is ?Hi Jyothsna,
There are 2 dates when you say Requested Delivery Date
1. Header level in VBAK-VDATU is the field
2. At item level it is in the schedule line. VBEP-EDATU.
The relationship between item (VBAP ) and schedule line ( VBEP )is 1 to many. But there will be mutiple schedule lines only if you are using the scheduling functionality. Also note to check for confirmed quantity (VBEP-BMENG) to be greater than 0 and use that schedule lines EDATU date as Requested delivery date.
regards,
Advait Gode. -
How to send the spool output to the specific user during ALE distribution
Hi All
In ALE internal order Configuration done by BAPI Method SAVEREPLICA Business object BUS2075whenever user changed the internal order which is moved to the destination system because of change data setting in data element fields.
I want to know how to send the spool output of the changed internal order to the specific user during ALE distribution.
Please help me to reslove the above issue
Thanks & Regards
KRISHGUNASolved by myself
-
How to get the Query output to Excel
Hi ,
Can you tell me how to get the Query output to excel with out using any third party tool?
Can you tell me how to write the code in Webservice and call it..
Please explain it Elaboartly..
Thanks in Advance!!!
Miniwhats your source system?
you can use Live office, or query as a webservice if you are getting data from universe
if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
good luck -
How to put the alv output into the spool request?
Hi guys,
How to put the alv output into the spool request?
Thanks!Hi
Sending an ALV List screen output to SPOOL
Convert ALV list to PDF and send mails to respective persons
Regards
Pavan -
How to display the Form output in multiple languages ? ------ Urgent
How to display the Form output in multiple languages ? -
UrgentHi,
Do u mean the Form output in 2-3 languages ...like form output will be having english russian etc...
for the above case , what u have to do ...
first have to get the transalations for all the fields
say for example : if the english word is PO Number , then u have to get the transalation text for PO Number :
after this , what u have to is ,,, Log on to SAP with russian language , then in the form o/p u have to paste that russian test ( translation text ) ...
do like this for all the components in the form .
Reward Points if it is Useful.
Thanks,
Manjunath MS -
How to keep the filtered output in a page after user navigates back?
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the searchHi,
user13091824 wrote:
How to keep the filtered output in a page after user navigates back to all records from another page.
Currently it clears the search---While returing from page AM Return status should be True in pageContext.setForwardURL.:::
pageContext.setForwardURL("OA.jsp?page=/XXX/oracle/apps/po/msg/webui/SearchPG",
"SUPP_SEARCH",
OAWebBeanConstants.GUESS_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
OAWebBeanConstants.IGNORE_MESSAGES);
---After setting AM Status to true u can able to c the values.
Regards
Meher Irk -
How to extract the xcontrol output
I created one xcontrol for pressure sensors . I am able to display the output correctly but i could not able to use the output for other inputs .
how to extract the xcontrol output
for clear understanding please see the attached vi testing .
Attachments:
testing.vi 9 KB
Pressure sensors.zip 96 KB
testing.vi 9 KBI always measure velocity in furlongs per fortnight
Units are very powerful, and like any great magic, can result in serious unintended circumstances.
I've tried them a couple of times and decided they were more difficult to use than the value provided. Maybe it's better now, but I'm still on LV 8.6
http://forums.ni.com/t5/LabVIEW/Why-do-very-few-programmers-use-LabVIEW-unit-labels/td-p/1119746
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
How to see the changed output for purchase order
Hi..
I have zmedruck. i need to increse item text lengh. i done this in editor. how to see the changed output now...I increased the length of text to be displayed. I checked the print preview in me23n. i cant see the increased length. Guide me where i am wrong.
Edited by: Meena 303 on May 1, 2008 6:24 PMHi
In ME22N go to message -
> select old message -
>click change OutPut button -
> Save
then see print priview through ME9F or ME22N it sself.
regards
Sachin -
How to configure the requirements for output control ?
Hi ,
I have some problems in configuring the requirements for output control like following :
My aim is to make a condition check when i create an inbound delivery ( VL31N) or MIGO ...., as default in the requirement check for output , a message type will be created automatically if the it satisfies the condition in the KOBEV .....KOBEV( each sub routine was defined with a message type ( V6 ) ( if sy-subrc = 0) . And then a printing program will be triggered to print the SAPscripts form in the table "tnapr" but even if i have put sy-subrc in ( KOBEV...KOBEV ) always = 0 the printing was not executed , and in this case i do not understand the reason why , If you please to help me this .
Thanks ,Hi,
it seems that the requirement you made is not the reason why it's not printed. If you set sy-subrc to 0, this code should have no effect.
Cheers,
Stefan. -
How to download the ALV output with colors into the excel sheet
Hi,
I'm having an ALV Grid report output where each and every row has some colors in it. When i download it to an excel sheet whatever the colors that comes on the output of the report the same should come in the excel sheet. When i download the output to an excel sheet using List --> Export -->Local file . If i open the excel files no colors are coming in the excel sheet.
can anyone tell how to get the colors in the excel sheet also. thanks...
Regards,
Rose.Hi Camila,
Use the OLE concept.
Check the below threads:
Colors in Excel Sheet
colors in alv
Regards,
Soumya. -
Performance Issue-;How to restrict the total output of the report.
Hi Experts
I need your advise to resolve one performance issue in my BI Publisher report.
My report query is extracting more than 80000 records at once. To load these records into the report template it is taking all most 14 to 15 hours. Unfortunately i cannot change my logic to put some more filter to restrict the query output, as this is the requirement from the client.
Is there any way i can restrict my report so that it will extract the first 1000 record and on the event of pressing next it will extract the next 1000 record and so on from the point when it left in last time.
Kindly let me know if you have any solution for this.
Thanks in advance.
Regards
SrikantHi experts...
Any update on this... -
How to transfer the requirement from one plant to many plants(STO)
hai gurus,
My scenario is as follows:
1) Plant "A" is Receiving plant.
2) Plant "B" ,Plant "C", Plant "D" is three production plant.
3) All the above 4 plant under same company code 1000.
4) Now plant "A" gets the requirements and pass on to all the three production plants, which
is based on forecast.
5) How the requirement to be passed on from plant "A" to all the three production plants namely B/C/D
under sap
6) After production of fert under 3 production plants the final products is transferred to the plant "A"
ware houses which is situated near by plants of B/C/D.
7) Only one fert material( Fert 1) is common for all three plants produced based on the capacity at all three plants.
8) Remaining fert material is plant specific, that is for Example Fert 2,3,4 produced only in plant" B"
Fert 5,6,7 produced in plant "C" and Fert 8,9,10 produced only in plant "D".
How to map into sap
waiting for the positive reply
Regards,
sekar chandHi again,
For more details on stock transfer from alternative plant in MRP, see also the attached link:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/f4/7d2d5a44af11d182b40000e829fbfe/content.htm
Regarding FERT1, you can place sales order, but it will not trigger requirements in the manufacturing plant. Also, because all plants are in the same CC it is not a good idea.
If you are willing to do some manual/external work in determining how much of FERT1 will each manufacturing plant produce, then you can just manually create STOs accordingly. These STOs will generate MRP requirements in the manufacturing plants.
Regards,
Mario
Maybe you are looking for
-
Hey, Has anyone found a way to add further restrictions to users logged in to the Admin Console based on membership to a Group? Restricting them to specific Menu Items is taken care of, but I'd like to be able to prevent them from editing anything in
-
Hi , Wht r the steps for debugging of sap-scripts, and the wht r the steps (configuration steps ) i need to follow for making changes to an existing script.script is trigred by TC : VA03. Many thxs vind.
-
[help] I can't play this music online!
I cannot play the music here, http://www.arkiva.com/links.php?rel=26c - 9c53a2e1bc When I click the red play bottun, nothing happens. I've tried this in firefox and arora. Both fail. It played happily when I switched to winxp and by using IE8 (I don'
-
Attachment not correctly downloaded
Hi i have an attachment by email and the same file also on usb that wont open i get the following error code. adobe not able to open, not supported or damaged sent as an email attachment and wasnt correctly decoded, i really need to be able to open o
-
Photoshop Elements 10 - is there way to set tile to vertical as default?
Have managed to create a AutoHotkey script for keyboard shortcut to tile via Window/Image/Tile but on first use defaults to horizontal. Once changed via Arrange 2up it remembers. Is there a registry hack or a tip or trick? I do side by side all the t