Pre condition functions export
I have another question.
I have tried to export pre conditions but have not succeed yet in exporting the Pre Condition functions.
The jcs_describe.describe doesn't work with the following types 'PRE_CONDITION', 'PRECONDITION', 'FUNCTION', etc.
Since it is possible to export the object on the RWE, with right-click / export, we guess that it is somehow possible with PL SQL functions.
Can someone give me some clues about that ?
Thanks again for your help,
Regards,
Yi Jiang
Hi,
Preconditions are not described like chains, scripts etc. They are regular functions in the database, which can be described using standard database functions.
As an example (in the Redwood Shell):
set serveroutput on
spool [youroutputfile].sql
declare
c clob;
begin
c:= dbms_metadata.get_ddl ( 'FUNCTION', '[functionname]', '[functionowner]' );
dbms_output.put_line ( c );
end;
spool off
set serveroutput off
This will give you the definition of your precondition function in a file (of course you need to replace the texts between \[\] with proper values applying to your environment.
You can put this in a single script, let's call it desc_function.sql and pass the owner and functionname as parameters. From the Redwood Shell, the call would look like this:
@desc_function [owner] [functionname]
The file desc_function.sql would contain the following text:
set serveroutput on
spool &1._&2..sql
declare
c clob;
begin
c:= dbms_metadata.get_ddl ( 'FUNCTION', '&2', '&1' );
dbms_output.put_line ( c );
end;
spool off
set serveroutput off
Hope this helps you out.
Kind regards,
Anton Goselink
Similar Messages
-
Best practice for Logical OR pre-condition evaluation
Greetings,
I'm finding TS doesn't have basic features for decision making (imp) for execution. Any recommendations are welcomed and appreciated. Please see below scenario.
I'd like to execute setup steps (custom step types) for a signal generator based upon the user selected "Test".
To keep it simple for the signal generator let's say we have the following steps:
Set Freq | Set PWR lvl | Set Modulation Type | Set Modulation ON/OFF | Set RF Power ON/OFF
For User Selected Tests let's say we have Test A(0) | Test B(1) | Test C(2) (Test A & C requires Modulation, B does not)
Here's my issue:
I can't get SET Freq | SET PWR lvl | Set RF Power ON/OFF to execute a pre-condition setup for evaluating Logical OR's. (i.e. locals.TestSelected ==0||1||2)
Same for Set Modulation Type | Set Modulation ON/OFF (i.e locals.TestSelected ==0||2)
Thanks in advance for any guidance provided.
Chazzzmd78
Solved!
Go to Solution.Just want to clarify, there seems to be a misunderstanding about the difference between bitwise OR (i.e. the | operator) and logical OR (i.e. the || operator). Bitwise OR results in the combination of all of the bits which represent an integer stored as binary, while logical OR (i.e. what you really want in this case) results in a True, non-zero, value (usually 1) if either operand is non-zero.
Also, the == operator has a higher precedence than either the bitwise OR or logical OR operators.
So what this means:
locals.TestSelected ==0||1||2
is to give a result of True (i.e. 1) if either locals.TestSelected ==0, 1 is non-zero, or 2 is non-zero. Since 1 and 2 are always non-zero that expression will actually always result in a True value.
Similarly, although the following will likely give you the behavior you want:
(locals.TestSelected == 0) | (locals.TestSelected == 1) | (locals.TestSelected == 3)
That's not really doing what you are probably thinking it does. It's actually getting the value True (i.e. 1) for each of the sub-expressions in parethesis and then bitwise OR'ing them together. Since the result for the == operand is always either 0 or 1, this ends up giving the same result as logical OR (i.e. the || operator), but what you really want in this case is logical OR and for other expressions using bitwise OR when you mean logical OR might give you incorrect results. So, you should really be using something like the following:
Locals.TestSelected == 0 || locals.TestSelected == 1 || locals.TestSelected == 3
The parenthesis don't really matter in this case (so can be left out, but also doesn't hurt anything so you can leave them in if you prefer) because the == operator has a higher precedence than the || operator so all of the == operations will be done first.
Hope this helps clarify things,
-Doug -
Quick Functions, export to Excel and variable screen pop up do not function
We have put the following in place in our environment.
http://help.sap.com/saphelp_nw70/helpdata/en/45/2f76471ca96d7be10000000a114a6b/content.htm
Integrating into an SAP NetWeaver 2004 Portal (SAP EP 6.0).
The creation of the iview using the SAP BW Report iview template using version SAP NetWeaver BI (7.0) is successfull and the report is generated correctly. The problem occurs when we try to use the Quick Function - Export to Excel. At this point nothing happens. Another example is when we access the context menu and try to access the variable screen there are no popups. When the report is executed on our SAP EP 7.01 system the same reports functions properly. I am operating with all authorization so I believe this is not the issue. Any assistance will be greatly appreciated.
Regards,
BrianHello,
Please check SAP Note No. 1591929 for the solution.
If this does not help then verify your portal set-up is correct with the supportdesk tool as per note 937697.
Regards,
Michael -
Pre Requisites to export dashboard into PDF format
Dear Xcelsiuis Experts,
Am unable to export the dashboard either into PDF format. Please let me know are there any pre requisites to export the same into PDF format.
Regards
Narendra ReddyHi,
Do you have Adobe Acrobat on your system ? i have version 6.0 Installed on my System and i can Export it and it is working fine in pdf format. I have tried with Word, PowerPoint and other available format too all are working fine here.
You can do this by Following Steps Bellow
1.
--> Open DashBoard you want to Export into PDF or any other Format like Flash (SWF), HTML, PowerPoint or Word.
--> Go to Menu --> File --> Export --> from here you can select the Format you want.
2.
--> You can also select these option from Toolbar if you don't have at the Screen Please Follow steps.
--> Go to Menu --> View --> Toolbar --> and Select "Export"
--> it will show you up the Toolbar from here you can also Export.
Hope will solve out your problem,
Kind Regards,
Faisal -
Cond. types 0K05 and 0K04 have the same condition function in pric. proc.
Hello Friends,
I am getting the error in pricing procedure as follows:
Cond. types 0K05 and 0K04 have the same condition function in pric. proc. 0CRM01
Message no. CRM_LEASING_GEN203
Why this error is coming ? Could any one please help me with this.
Regards,
VenkatHi Venkat,
This errors seems to be very rare. I cam e accross one similar issue which has been saved by implementing note 1524217.
Can you please check if it matches with your release and if yes implement it.
Best regards
Christophe -
How to set pre conditions to set the run mode to skip or normal?
Could you please let me know how can I set a precondition based on a local variable so when the variable is 1 I can skip a test or when it is zero I programatically set the run mode to normal.
ThanksI have a case where I use the Pre-Condition to skip some steps (subsequence call) for a specific test) if that test has run successfully already.
This is handled in a 'SequenceFilePostStep", thus the "RunState.Caller....".
The Precondition is set to 'False' so it won't run.
'Set the Precondition on the next step to "False 'Remove" (The remove is to indicate that it will be removed later so it's not saved in the sequence file.)
Locals.sPreviousPrecondition1 =RunState.Caller.Sequence.Main[RunState.Caller.RunState.NextStepIndex].Precondition,
RunState.Caller.Sequence.Main[RunState.Caller.RunState.NextStepIndex].Precondition ="False 'Remove"& Locals.sPreviousPrecondition1
The "False 'Remove" needs to be removed later, or it will be saved in the file and remain. This is accomplished later with:
'Need to copy the contents to a Local variable, manipulate it to remove the "False 'Remove" string then re-assign back into the Precondtion
Locals.sPreviousPrecondition1 = RunState.Caller.Sequence.Main[RunState.Caller.RunState.PreviousStepIndex].Precondition,
Locals.sPreviousPrecondition1 = SearchAndReplace(Locals.sPreviousPrecondition1,"False 'Remove","",0),
RunState.Caller.Sequence.Main[RunState.Caller.RunState.PreviousStepIndex].Precondition =Locals.sPreviousPrecondition1
Mike -
Add a Collection automatically on a pre-condition
Hi Experts ,
In projects form , Collection (savings) has to be added automatically on a pre-condition of the year . If year is equals 2010 , collection savingsneed to get added with ut using add button . I'm trying to use Create() method .. It's not working .. Can any one guide me on this
thanks in Advance,
Deepikaresolved
-
I need to know the pre-upgrade functional steps in SCM modules. Can you refer a document or SOP
Attiq wrote:
Thank you hussain i have the same document already but it does not have detailed FUNCTIONAL steps for Financials, SCM and projectsIt is covered in the same doc under "Preparing for the Upgrade" section.
Thanks,
Hussein -
Restoring pre-lion functionality to iCal
I've put up with the changes to iCal ever since I installed Lion, but seriously! It seems to me that much of what was useful (or rather, made it tolerable) about iCal has been lost. Please tell me if I am missing something:
Adding events: iCal now defaults to an all-day event and when I de-select all day, it defaults to 10:00 am - 6 pm, which I then have to change every. single. time. There is no preference setting to change this as far as I can tell.
Calendar month sidebar: I typically look at my calendar in the month view. It used to be that there was a side bar that showed small views of the preceding and following month. Now gone. There is no preference setting to change this view as far as I can tell.
Event times do not show: Even though I have selected "show event times" in preferences, event times do not show in month view. They did pre-Lion.
I keep thinking I must just be missing some way to restore this basic functionality. I scour Prefences after each update to see if things have changed but am disappointed.
Is there a better calendar that will sync with my iPad/iPhone??iCal in Lion is as you describe and does not include the small calendar.
You might like to consider BusyCal. This is sort of 'iCal Pro': it works with Lion, it includes the small calendar and left sidebar. ToDos can repeat and dated ToDos can be displayed on the day in the calendar. Images can be added to entries, and the font can be customised for any entry. It will sync to iCloud or you can sync with other machines on your own local network independently of any server.
There is a free trial available from the website: you can buy it from the website or slightly cheaper from the Mac App Store.
(I have no connection with this company.) -
Timeout when using ALV build-in functionality: exporting to Excel
Hello,
I have the following problem within one of my web dynpro abap applications:
I need to be able to display data in a table that preferably should be via alv component.
Then I shall also be able to download the displayed data via Excel.
So I have embedded the ALV component I added to the component within a view and activated the export to excel button.
Downloading small amount of data does no lead to any problem, but when trying to process a larger amount of data (in this case 22500 entries), I get a timeout.
Does anybody have any idea if it is possible to increase performance here without reducing the amount of data to be downloaded?
thanks a lot ion advance!
AnaHello,
coming back to the UI element download.
I managed to get the data being saved to the desktop, but unfortunately, the data remains being displayed as in chines letters.
Anybody got an idea, what parameters I might have set wrong? Or if I have to do an additional encoding before generating the XString?
Here is the supply method code and the parameters I have set in the UI element:
The Supply method
method GEN_EXCEL_DOWNLOAD_DATA .
data: wa_cmx_line type zksb_cmxshowline.
data: lt_excel type zksb_cmx_excel_download_t.
data: wa_excel type zksb_cmx_excel_download.
data: l_guid type guid_32.
data: l_url type string.
* read context-------------------------------------------------------------------------------------
data lo_nd_z_ksb_get_prcm type ref to if_wd_context_node.
data lo_nd_exporting type ref to if_wd_context_node.
data lo_nd_rt_zksb_cmx_show type ref to if_wd_context_node.
data lo_el_rt_zksb_cmx_show type ref to if_wd_context_element.
data lt_rt_zksb_cmx_show type table of wd_this->element_rt_zksb_cmx_show.
data wa_rt_zksb_cmx_show like line of lt_rt_zksb_cmx_show.
* navigate from <CONTEXT> to <Z_KSB_GET_PRCM> via lead selection
lo_nd_z_ksb_get_prcm = wd_context->get_child_node( name = wd_this->wdctx_z_ksb_get_prcm ).
* navigate from <Z_KSB_GET_PRCM> to <EXPORTING> via lead selection
lo_nd_exporting = lo_nd_z_ksb_get_prcm->get_child_node( name = wd_this->wdctx_exporting ).
* navigate from <EXPORTING> to <RT_ZKSB_CMX_SHOW> via lead selection
lo_nd_rt_zksb_cmx_show = lo_nd_exporting->get_child_node( name = wd_this->wdctx_rt_zksb_cmx_show ).
* @TODO handle not set lead selection
if lo_nd_rt_zksb_cmx_show is initial.
endif.
* get static attributes table
lo_nd_rt_zksb_cmx_show->get_static_attributes_table( importing table = lt_rt_zksb_cmx_show ).
* reduce data to only the data that shall be displayed----------------------------------------
loop at lt_rt_zksb_cmx_show into wa_rt_zksb_cmx_show.
move-corresponding wa_rt_zksb_cmx_show to wa_excel.
append wa_excel to lt_excel.
endloop.
* populate data as tab separated strings-----------------------------------------------------
data l_str type string.
data lv_struct type extdfiest.
data itab type ref to zksb_cmx_excel_download_t.
data r_xstring type xstring.
data s(256) type c.
field-symbols <wa_desc> like line of lv_struct.
field-symbols: <tab> type table.
field-symbols: <wa> type any.
field-symbols: <f> type any.
* populate the column headers----------------------
get reference of lt_excel into itab.
* assign lt_excel to <tab>.
assign itab->* to <tab>.
lv_struct = wd_this->get_table_structure( itab = itab ).
loop at lv_struct assigning <wa_desc>.
concatenate wa_cmx_line
<wa_desc>-coltitle
cl_abap_char_utilities=>horizontal_tab
into wa_cmx_line.
endloop.
concatenate wa_cmx_line
cl_abap_char_utilities=>cr_lf
into wa_cmx_line.
* loop through the data table-----------------------
loop at <tab> assigning <wa>.
loop at lv_struct assigning <wa_desc>.
assign component sy-tabix of structure <wa> to <f>.
check sy-subrc = 0.
if <wa_desc> is assigned and <wa_desc>-convexit is not initial.
* Process any output conversion routines
concatenate 'CONVERSION_EXIT_' <wa_desc>-convexit '_OUTPUT' into wa_cmx_line.
call function wa_cmx_line
exporting
input = <f>
importing
output = s.
else.
concatenate wa_cmx_line
<f>
cl_abap_char_utilities=>horizontal_tab
into wa_cmx_line.
endif.
endloop.
concatenate wa_cmx_line
cl_abap_char_utilities=>cr_lf
into wa_cmx_line.
endloop.
*Convert the strings to Binary strings (UTF-16le)------------------------------------------------
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = wa_cmx_line
mimetype = ''
importing
buffer = r_xstring.
*Add the UTF-16 Little Endian Byte Order Mark to the begining of the file
concatenate cl_abap_char_utilities=>byte_order_mark_little
r_xstring
into r_xstring in byte mode.
* set context
DATA lo_nd_excel_download TYPE REF TO if_wd_context_node.
DATA lo_el_excel_download TYPE REF TO if_wd_context_element.
DATA ls_excel_download TYPE wd_this->element_excel_download.
DATA lv_excel_download_data LIKE ls_excel_download-excel_download_data.
* navigate from <CONTEXT> to <EXCEL_DOWNLOAD> via lead selection
lo_nd_excel_download = wd_context->get_child_node( name = wd_this->wdctx_excel_download ).
* get element via lead selection
lo_el_excel_download = lo_nd_excel_download->get_element( ).
* set single attribute
lo_el_excel_download->set_attribute( name = `EXCEL_DOWNLOAD_DATA` value = r_xstring ).
endmethod.
and the parameters to the UI are as follows
behaviour: allowSave
data: <data that was created by supply method>
fileName: CMX.xls also tried CMX.cvs
mime-type: ms-excel also tried /vnd.ms-excel
text: $OTR:SOTR_VOCABULARY_BASIC/DOWNLOAD
textDirection: inherit
type: navigation
visible: Visible
Any suggestion of what I might have to change would be great!
Tx
Ana -
Palm Pre Headset Functions Not Working after 1.3.1
Anybody else lose the functionality in their headset (pause, skip to next song) after installing 1.3.1?
Post relates to: Pre p100eww (Sprint)I too have this headset issue on my Pre.
I have webOSDoctored my Pre back to 1.2.1, and yet the headset still doesnt work on voice calls.
I tested the ##8378# choosing manual test on audio then phone, and this does work. I can hear out of the headset just fine.
This stricks me as odd since testing the audio works but voice calls donot...
I then re-updated to 1.3.1 hoping somthing would magicly work for me again, but nothing. The headset still not working on voice calls.
My last resort is to either get some more ideas on this forum or use my Sprint insurance and get a new Pre... which ever comes first. -
Hello All,
Is there a function module that will get information regarding a Sales Order's or an Invoice's condition tab,(one that gets the individual conditions and any subtotals)? Thanks.
JohnHi John,
Set break-point at function 'PRICING_BUILD_XKOMV', goto VA02 item condition. That function module will return condition value and subtotals.
You need to pass internal table TKOMV which you can get using function module 'RV_PRICE_PRINT_ITEM' pass COMM_HEAD_I-BELNR (vbak-vbeln) and COMM_HEAD_I-KNUMV (vbak-knumv).
Kindly Reward if helpful.
Regards,
Jack -
Update Price Condition Function Module
I'm trying to identify the function or bapi that is used to update the pricing conditions for a line item in a purchase order. This is done manually by clicking the UPDATE button on the screen when in the PO item conditions view.
Specifically this FM will be used in visual composer to update pricing prior to goods receipt.
any help in identifing the code would be great.
ThanksHi simon,
Please check the following
RV_CONDITION_SAVE
RV_CONDITION_COPY
SD_SALES_CONDITION_MAINTAIN
Do you want to add one more pricing condition type to the existing sales order??
Use BAPI_SALESORDER_CHANGE.
Hope this help -
Palm Pre - USB Function via Bluetooth
Hi Folks,
Is there a way to to utilize the pre USB Date capability via Bluetooth? The idea it to transfer pics, music and media to/from the Pre and MS Vista without the cable? I have paired them without issue, though do not see how this would be done.
thanks for any comments,
rs
Post relates to: Pre p100eww (Sprint)Earlier, I was trying to do this today with my Dell Mini9, but it didn't work.
I called Palm Tech Assistance and after some time they informed me that currently the Pre will not perform this function. Specifically, (in my case) the Pre needs to support OBEX format and does not.
I was extremely frustrated by this, and after examining the forums, see now that many other folks are up cr@p creek without a paddle because of Palm's "oversight".
My Suggestion would be to follow the Carkit Bluetooth forum posters...
We need to consolidate the many many scattered posts on this issue and press for action from Palm!!!
Too many single post threads on this topic makes it a sleeper... a Non-issue in the eyes of Palm. Hopefully that changes and folks can consolidate their complaints here.
Its astounding that we got robbed of this ability... its so fundamental that I unfortunately didn't consider researching this before buying the Pre.
My fault obviously, and I sure do love many of the wonderous features of the Pre, but at the same time I have to practical and decide what will work for my uses: sure makes that HTC Hero coming up on Sprint look mighty appealing unless Palm makes this issue right. Pre-orders on my used Pre anyone? -
VPRS condition in export pricing procedure
Hi All,
I have done the configuration for export sale scenario. I created a complete cycle from sales to Billing and documents are getting created.
As there was no VPRS condition in standard pricing procedure for exports (JINEXPO), i have not included in my Pricing procedure. Pl note no "CIN" is introduced in our project.
My doubt is why "VPRS" is not included in the std pricing proced, and how cost will be captured in the export sale?
Regards
Anand.MHi,
please reff this link.
http://sapsdforum.com/2007/10/23/pricing-in-sd-in-great-detail
Maybe you are looking for
-
Downloading Oracle 10g Express Edition
Hello. I'm trying to access the webpage from oracle 10g express edition but the site return me this page isn't available anymore, i need to download this specific version, how am i supposed to go along with that? ps: if its not the right forum, pleas
-
Not sure if I am in the right forum, Has anyone used the hauppage for mac-suppose to let you watch and record TV shows on your mac and burn to dvd? If so, would appreciate their opinion ...... thanks.
-
Development tool for oracle 11g R1
hi all .. can someone plz guide me which dev tool can i use for oracle 11g R1? i want form builder and report builder for this. (i have been using oracle 9i with for builder 6i)
-
Cannot use iSQL*Plus to connect Oracle 9i for Intel Linux
When I try to use brower connecting to isql*plus , nothing appear. By performing the following steps : 1. Change directory to the Oracle HTTP Server home bin directory by entering: cd $ORACLE_HOME/Apache/Apache/conf 3. Parse the Oracle HTTP Server ht
-
Just installed Firefox on my second Windows machine (running XP Home). Unlike my other installation, every time I start Firefox I get TWO tabs - my home page AND a "Mozilla Firefox Start Page" that contains only a Google search input. I don't need th