Try:
DO WHILE SQLCA.SQLCODE = 0
FETCH ft_sp_RankAffiliateRate2_pb
INTO :rate_rank;
LOOP
Also remember that SQL Server's INT matches PowerBuilder's long datatype.
hth
Arnd
Try:
DO WHILE SQLCA.SQLCODE = 0
FETCH ft_sp_RankAffiliateRate2_pb
INTO :rate_rank;
LOOP
Also remember that SQL Server's INT matches PowerBuilder's long datatype.
hth
Arnd
Vadim,
Thanks for the valuable input. my problem is that the report that needs to be refreshed in the sheet is hidden and not visible to the user. Nonetheless I came out with the VBA code to fix it:
Sub Refresh_on_Click_Validation()
'I first select the area where the report sits
Dim Y As Range
Set Y = Range("B1:B9")
Y.Select
'Then I refresh just the "Active Report" marked by the selection
Dim x As New FPMXLClient.EPMAddInAutomation
x.RefreshActiveReport
'Lastly I display a Message box indicating that only one report is being validated
Application.Visible = True
MsgBox "Only The Validation Data is Being Refreshed"
End Sub
Thanks.
Hi Sudhan,
As I mentioned earlier, you can use this BADI /SAPTRX/BADI_WDA_UI -> Interface /SAPTRX/IF_BADI_WDA_UI-> Method AFTER_SEARCH_BAPI to implement the logic.
Vishnu is already posted for you now. If doesn't work then let's know.
Regards
GGOPII
When using NWBC version 5.0 it appears that a new connection is opened with each tab and not a window in the existing session.
Is there a reason for the change, it is annoying to have to end each session thought the pop up.
Any suggestions, is there a setting I can change to have the windows work like 4.18?
Hello Ludek,
Just to give you an update on the keycode issue, had a conversation with sales/support and since the product is out of support they can not help. Thanks for pointing me in the right direction.
Hi Raja,
Pl check the below options:
1- Are you saving to the Base level members?
2- Do you have the authorizations on those members?
3- Is your cube in right mode(Plan Mode behavior in BI)?
Hope this helps.
Regards,
Raju.
Hello,
If you anticipate prompt responses on SCN then you will be sorely disappointed!
The best way to query the SAP workflow tables is by using the SAP_WAPI* function modules.
Take a look at them, especially the SAP_WAPI*GET* ones.
Only if they can't help you should you start accessing the tables directly.
SAP stores (almost) all of its information in tables, so it can be accessed. What exactly are you looking for?
regards
Rick
Hi Julie,
there is No full file of DS 4.2 SP6 P3 in instllatiion and upgrade area, but IPS 4.2 SP02 needs DS 4.2 SP6 P3.
i wanted to install IPS 4.2 Sp02, so i can install DS 4.2 SP6 SP02 and then SP03 from support packs and patches. let me know if this not correct way.
or
can i directly run "SBOP DATA SERVICES 4.2 SP06 PL 3" from Support Packages and Patches on top of IPS 4.2 SP02 ?
Thanks
Hi Claudio
No worries. SAP have come back to me and said a note to fix this will be released in
SP14, so keep an eye out for it.
Daniel
I've got the same problem. Studio 2.1.19 against SPS 9 REV 96, against a calculated view
basic count statement returns value of 1, when it should be 2.
selecting all columns from the same table for the same account returns the expected 2 rows.
wrapping a count around the basic select, does bring back the expected count of 2.
It looks like there's an implicit DISTINCT being used when a specific column is being selected.
This statement brings back the expected 10 rows.
select count(*), vkont
from
(select *
from "_SYS_BIC"."WIP.AVAYA_PM/ZQCV_M2C_CONTRACT_ACCOUNT" accts
)
group by vkont
having count(*) > 1
whereas, this brings back nothing
select count(*), vkont
from
(select accts.vkont
from "_SYS_BIC"."WIP.AVAYA_PM/ZQCV_M2C_CONTRACT_ACCOUNT" accts
)
group by vkont
having count(*) > 1
Message was edited by: Astrid Gambill
Hi Folks,
I could not access and find vendor price in EINP table??? anybody knows any other table? thanking you in anticipation
Discussão movida de Comunidade SAP em Português (Portuguese Language Community) para SAP Business One (Português)
Bom dia Pamela Damasio,
Particularmente não gosto de fomentar questões deste tipo no SCN, é bem contra producente ajudar a responder questões pontuais sem que o consultor sofra e crie uma casca grossa, entretanto vou deixar para a moderação do B1 avaliar.
Atenciosamente, Fernando Da Rós
Yes it is possible.
Suggested best practice is to keep the environments of the same OS flavor to avoid conversions if any and also support issue to avoid vendors doing finger pointing when you face issues.
Any specific reason(s) that you want to select this path ?
HTH
Avinash
As I already told you - merge cells will not work with dynamic EPM report. No way! You can use merged cells only in static report - with fixed columns...
Yes, that's doable. (I'm assuming you're referring to running ASE on AIX ... ?)
Check the associated installation guides and release bulletins for any OS requirements specific to the RS/ASE versions you'll be using.
To minimize problems and/or data loss you'll want to consider running all 3 servers (RS, both ASEs) with the same character set and sort order.
The RSSD can be placed in any ASE on the network but should by close network-wise (ie, low ping times) since the RS talks to the RSSD a lot. Alternatively, you could configure your RS to use a eRSSD (ie, a SQLAnywhere instnace running locally under the RS software directory).
Hi ,
I'm not sure if you already figured out the solution . Here is what you need to do
In Query designer, go to Product, Period and Revenue and select the option 'Master Data' or Characteristic Relationship in the 'Posted Values' setting.
Once you do that, go to filter and set variables on each of the above Characteristics.
This way the variables will pop up in the screen when you run the report.The values will be generated only for the selections made in the variables.
Regards,
Shashi
I am still completely stuck.
I have tried various ways to call the stored procedure.
I keep getting 'EXECUTE failed'. I have tried with and without the fetch statement. I have tried various variable types for rate_rank2 as int, integer and long. I tried changing the connection string to include StripParmNames = 'Yes'.
I cannot save the PB script without overriding the warning: "Database C0038: SQLSTATE = 22005[Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification". I turned on DB Trace, but I don't see anything that shows that the SP even tried to execute (shown at bottom of post). And I ensured that user PBApps has permission to exeucute the stored procedure.
Hopefully, someone can tell me what I am managing to screw up.
Thanks all!!
Paul
PB SCRIPT:
long rate_rank2
string sp_id
double a_identity
double b_identity
long vehicle_type
sp_id = 'F10600'
a_identity = 23864
b_identity = 4018
vehicle_type = 1
DECLARE ft_sp_RankAffiliateRate procedure for ft_sp_RankAffiliateRate
@sp_id = :sp_id,
@a_identity = :a_identity
@b_identity = :b_identity
@vehicle_type = :vehicle_type
@rate_rank = :rate_rank2 OUTPUT using sqlca;
IF SQLCA.SQLCode <> 0 THEN
MessageBox ( "Error", "DECLARE failed" )
RETURN -1
END IF
execute ft_sp_RankAffiliateRate;
//FETCH ft_sp_RankAffiliateRate INTO :rate_rank2;
IF ( SQLCA.SQLCode <> 0 ) and ( SQLCA.SQLCode <> 100 ) THEN
MessageBox ( "Error", "EXECUTE failed" )
RETURN -1
END IF
close ft_sp_RankAffiliateRate;
commit using sqlca;
messagebox("Rate Rank","Rate Rank for " + sp_id + " is: " + string(rate_rank2))
SQL SERVER STORED PROCEDURE SCRIPT:
USE LIMO
GO
CREATE PROCEDURE dbo.ft_sp_RankAffiliateRate2 @sp_id char(10), @a_identity numeric, @b_identity numeric, @vehicle_type int, @rate_rank int OUTPUT
AS
-- create the table variable
declare @raterank table (sp_id char(10) not null, a_identity numeric not null, b_identity numeric not null, ar_vehicle_type int not null, ar_total_from_airport money not null, rate_rank int not null)
insert into @raterank (sp_id,
a_identity,
b_identity,
ar_vehicle_type,
ar_total_from_airport,
rate_rank)
select sp_id,
a_identity,
b_identity,
ar_vehicle_type,
ar_total_from_airport,
DENSE_RANK() OVER(ORDER BY ar_total_from_airport) rate_rank
from ft_affiliate_rate_staged WITH (NOLOCK)
where ft_affiliate_rate_staged.a_identity = @a_identity and
ft_affiliate_rate_staged.b_identity = @b_identity and
ft_affiliate_rate_staged.ar_vehicle_type = @vehicle_type
select @rate_rank = rate_rank from @raterank where sp_id = @sp_id
GO
DB TRACE:
/*---------------------------------------------------*/
/* 4/19/2016 17:25 */
/*---------------------------------------------------*/
(df03c30): DIALOG CONNECT TO TRACE ODBC:
(df03c30): DBPARM=ConnectString='DSN=Picasso;UID=PBApps;PWD=<******>',StripParmNames='Yes',TrimSpaces='Yes'(DBI_DIALOG_CONNECT) (39.158 MS / 39.158 MS)
(df03c30): (DBI_ADJUST_CONNECT) (0.001 MS / 39.159 MS)
(df03c30): (DBI_CASE_SENSITIVE) (0.001 MS / 39.160 MS)
(df03c30): (DBI_CAN_ROLLBACK_DDL) (0.002 MS / 39.162 MS)
(df03c30): (DBI_SUPPORT_PRIMARYKEY_ALTER) (0.591 MS / 39.753 MS)
(df03c30): (DBI_SUPPORT_PRIMARYKEY_CREATE) (0.003 MS / 39.756 MS)
(df03c30): (DBI_SUPPORT_FOREIGNKEY_ALTER) (0.002 MS / 39.758 MS)
(df03c30): (DBI_SUPPORT_FOREIGNKEY_CREATE) (0.004 MS / 39.762 MS)
(df03c30): (DBI_CANNOT_ADD_COLUMN) (0.008 MS / 39.770 MS)
(df03c30): (DBI_SUPPORT_STORED_PROC) (0.003 MS / 39.773 MS)
(df03c30): (DBI_GET_DRIVER_OBJECTS) (0.003 MS / 39.776 MS)
(df03c30): (DBI_NOTSUPPORT_PRIMARYKEY_DROP) (0.014 MS / 39.790 MS)
(df03c30): (DBI_NOTSUPPORT_FOREIGNKEY_DROP) (0.004 MS / 39.794 MS)
(df03c30): (DBI_CASE_SENSITIVE) (0.000 MS / 39.794 MS)
(df03c30): (DBI_CAN_CHANGE_DATABASE) (0.000 MS / 39.794 MS)
(df03c30): (DBI_CAN_INCREASE_DEC_LEN) (0.009 MS / 39.803 MS)
(df03c30): (DBI_MAX_LONG_LENGTH) (0.025 MS / 39.828 MS)
(df03c30): (DBI_MAX_SHORT_LENGTH) (0.000 MS / 39.828 MS)
(df03c30): (DBI_NUM_OF_DATATYPES) (0.000 MS / 39.828 MS)
(df03c30): (DBI_MAX_SCALE) (0.003 MS / 39.831 MS)
(df03c30): (DBI_MAX_CONCAT) (0.000 MS / 39.831 MS)
(df03c30): (DBI_CAN_RENAME_TBL) (0.007 MS / 39.838 MS)
(df03c30): (DBI_CAN_RENAME_COL) (0.008 MS / 39.846 MS)
(df03c30): (DBI_CAN_DELETE_COL) (0.010 MS / 39.856 MS)
(df03c30): (DBI_CANNOT_ADD_COLUMN) (0.008 MS / 39.864 MS)
(df03c30): (DBI_CAN_INCREASE_COL_LEN) (0.009 MS / 39.873 MS)
(df03c30): (DBI_CAN_DECREASE_COL_LEN) (0.000 MS / 39.873 MS)
(df03c30): (DBI_CAN_CHANGE_NULL) (0.000 MS / 39.873 MS)
(df03c30): (DBI_CAN_ROLLBACK_DDL) (0.000 MS / 39.873 MS)
(df03c30): (DBI_INDEX_DESCEND) (0.013 MS / 39.886 MS)
(df03c30): (DBI_SERVER) (0.000 MS / 39.886 MS)
(df03c30): (DBI_SUPPORT_PRIMARYKEY_CREATE) (0.003 MS / 39.889 MS)
(df03c30): (DBI_SUPPORT_PRIMARYKEY_ALTER) (0.002 MS / 39.891 MS)
(df03c30): (DBI_PK_NAMEABLE) (0.012 MS / 39.903 MS)
(df03c30): (DBI_SUPPORT_FOREIGNKEY_CREATE) (0.003 MS / 39.906 MS)
(df03c30): (DBI_SUPPORT_FOREIGNKEY_ALTER) (0.002 MS / 39.908 MS)
(df03c30): (DBI_NOTSUPPORT_FOREIGNKEY_DROP) (0.004 MS / 39.912 MS)
(df03c30): (DBI_NOTSUPPORT_PRIMARYKEY_DROP) (0.004 MS / 39.916 MS)
(df03c30): (DBI_PARSE_SPECIAL_CHAR) (0.000 MS / 39.916 MS)
Thanks Ritesh
if am not wrong, the choice is made in Post Closing step