Web intalligence string condition checking
Hi All,
I am new to SAP BO. i have a requirement like a column has records like valid, SPACES and NULL. if valid i need to display 1, if SPACES or NULL i need to display '0'.
ex:
vendor name
abcd
xyz
NULL
abxy
expected results:
vendor name
format value
abcd
1
xyz
1
0
NULL
0
abxy
1
Thanks,
Poorna
Hi
try this
create a new variable
format value = =If(([vendor name]="NULL" Or IsNull([vendor name]) Or Length([vendor name])=0);"0";"1")
Similar Messages
-
How i can make in the same action 2 condition (check the exemple down)
how i can make in the same action 2 condition (check the exemple down)
this is an example and I really thank you for helping me(any body plz)
http://www.2shared.com/file/DPpdgC_a/Exemple_Edge.html1. make each rectangle a symbol (Symbol_1 and Symbol_2) and uncheck autoplay()
2. Delete your code on the click event and put the following code in compostion ready:
var toggle=true;
function btnPlay(){
if (toggle){
toggle=false;
sym.getSymbol('Symbol_1').play();
else{
toggle=true;
sym.getSymbol('Symbol_2').play();
sym.$('Ellipse').click(function(){
btnPlay(); -
EBS search string for check number
Hello Gurus
My client is using MT940 FORMAT for EBS,requirement is in a bank statement we are having 10 transactions which are having the same amount for ex:rs.1000 for ten payment transactions. now system is not able to post the document when we import the bank statement.
I wanted to use search string for check number, note to payee in bank statement is check number.Please find the below refference
/EI/400229001 010013
0000010013
Reference 010013
How could i use search string for this i tried but im not getting the solution im getting the following error difference is too large F5 263.
Appreciated for our help............
Thanks a lot in advance...............Hi Paulo,
Thanks for the reply. However i have the following setting and it still does not work..
Mapping -> AB01
When i do the simulation it shows the Number and the hits and mapping.
In the Seach String use i have following settings:
CC 1000
Interpretation : ALL Interpretation
Search String : TEST1 ( this is the name that i gave to above search string)
Target : Posting RUle
Active checked.
But still when i upload the bank statement it is posting to Rule AB03 and not AB01
Also when i try FEBSTS it says no document hits ???
Your answer is greatly appreciated. -
I want to create new popup block screen in CO11N SCREEN for condition check
in standard CO11N screen after completing filling the required field , when i click the save icon I NEED TO CREATE THE POBUP BLOCK SCREEN FOR CONDITION CHECKING WHICH CONSIST
YES NO CANCEL
IS THERE ANY FUNC MODULES TO DO THIS? OR IS IT POSSIBLE BY CODING?Don't rely on 'Preview'.
Share/Export as .ibooks file and then drag that to iTunes and sync to your iPad.
Still no joy, find a pre-processing recipe ( that includes export for iPad) that doesn't spoil the quality in the process.
Just keep in mind that low quality in means low or lower quality out, in this example. -
Hi,
Is there anyway i can ensure, let's say my "net income" is larger than 2 million before the user can submit the data? is there some sort of condition checking or locking mechanism that does this?
any input on this?
cheersYou can have something like that for submission
please check into help online the follow link
http://name of your application server/osoft/help/admin/helpstart.htm#Setting_application_set_parameters.htm
It is not exactly what you want but you can do something using this approach.
You can change the work status settings for each application. Changing the work status settings involves identifying three to five 'work status dimensions,' and then defining specific members for the remaining non-work status dimensions used for validation purposes. You must determine which account you will use for validation of the data at the time the work status is changed. The validation account must be ”0u201D at the intersection of the 3-5 variable members and the members designated for the non-work status dimensions. If the account is not ”0u201D then the owner/manager cannot set the work status. This is an option feature.
The dimensions you select as the work status dimensions are the variables in your business process. For example, the entity, category, and time might change based on who is submitting data, but the account, data source, reporting currency, etc., remains static. (Typically, Time is a work status dimension since data is usually segregated based on time.)
For example, lets say that you set Entity, Category, and Timeas your work status dimensions for a given application. You then set your other current view members to the following: Account: Validation; DataSrc: TotalAdj; Intco: All_Intco; and RptCurrency: LC. In addition to assigning work status dimensions, you also specify which dimension is the 'owner dimension.' The owner dimension includes the Owner property. The owner property determines who can edit a work status setting. The following figure shows this setup, where Entity is the Owner dimension.
A user attempts to post data to the current view shown in the following table. The system checks the 'validation' account to make sure the intersection equals zero (0). If so, the data is posted, and a success message is displayed. The user can now set the work state to 'submitted' on that intersection. Subsequent submissions to that exact intersection will be rejected. Users can only send data to the same intersection if the Entity, Category, or Time member changes.
Account
<All>
Category
Actual
DataSrc
<All>
Entity
SalesNE
Intco
<All>
RptCurrency
<All>
Time
Feb.2007
To change work status settings for applications
From the Admin Console, expand the Application node.
Expand the application for which you want to change the work status setting.
Select Work Status Settings.
In the Work State column, select Yes for each dimension you want to use to control the work status settings. Select Owner for the dimension that contains the Owner property.
In the Member Validation column, select a member for each non-work status dimensions. (Use the browse button to open the Member Lookup.)
From the action pane, select Save Work Status Settings. -
Can i turn a series of integers such as 1000-1200 into a string to check
can i turn a series of integers such as 1000-1200 into a string to check positions with charAt I need to scan numers 1000-9999 to add the digits 1+0+0+0=1 or 9+9+9+9=36 to find the ones that when the result ie 36 is rased to the 4th power equal the original number? I want to scan charAt(position) then add those 4 positions.please help me
heres my code so farpublic class Poweroffour
public static void main(String[] args)
int number;
String numberS;
int numtotal;
int numtotalpoweroffour;
int num1;
int num2;
int num3;
int num4;
for (number=1000;number<10000;number++)
numberS=number;
num1=numberS.charAt(1);
num2=numberS.charAt(2);
num3=numberS.charAt(3);
num4=numberS.charAt(4);
numtotal=num1+num2+num3+num4;
numtotalpoweroffour=numtotal*numtotal*numtotal*numtotal;
if (numtotalpoweroffour==number)
System.out.println(number);
}}public class Poweroffour
public static void main(String[] args)
int numb=0;
int thou=0;
int hund=0;
int tens=0;
int ones=0;
int total;
int count;
for (numb=1000;numb<10000;numb++)
thou = numb/1000;
hund = (numb -(thou *1000))/100;
tens = ((numb % 100)- ones)/10;
ones = numb % 10;
System.out.println( thou + " " + hund + " " + tens + " " + ones);
} -
Web Service Homepage: Authority check failed
Dear Colleagues,
I have created a Web Service and now I want to test it via its Web Service Homepage (TA WSADMIN). The Homepage is displayed correctly, but testing leads to an error:
Authority check failed
Are there any prerequisites I maybe do not accomplish?
(I tested a very similar web service in another system, and there it works)
Here are some more information about my service:
- Service was build with Web Service Wizzard out of a function module
- Here you can see the conversation resulting of the test:
POST /sap/bc/srt/rfc/sap/Z_TEST_Q73_CONFIG_WS?sap-client=003 HTTP/1.1
Host: bsl8011.wdf.sap.corp:50073
Content-Type: text/xml; charset=UTF-8
Connection: close
Cookie: <value is hidden>
Cookie: <value is hidden>
Authorization: <value is hidden>
Content-Length: 381
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:Z_TEST_WS_CONFIG xmlns:ns1='urn:sap-com:document:sap:rfc:functions'>
<INPUT>TEST</INPUT>
</ns1:Z_TEST_WS_CONFIG>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP/1.1 500 Internal Server Error
content-type: text/xml; charset=utf-8
content-length: 363
sap-srt_id: 20060404/125124/v1.00_final_6.40/1B0831447838C429E10000000A424016
server: SAP Web Application Server (1.0;700)
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<soap-env:Fault>
<faultcode xmlns:n0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">n0:FailedAuthentication</faultcode>
<faultstring xml:lang="e">Authority check failed</faultstring>
</soap-env:Fault>
</soap-env:Body>
</soap-env:Envelope>
The WSDL-Document looks as follows:
<?xml version="1.0" encoding="utf-8"?><wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified"><xsd:simpleType name="char60"><xsd:restriction base="xsd:string"><xsd:maxLength value="60"/></xsd:restriction></xsd:simpleType><xsd:element name="Z_TEST_WS_CONFIG"><xsd:complexType><xsd:sequence><xsd:element name="INPUT" minOccurs="0" type="tns:char60"/></xsd:sequence></xsd:complexType></xsd:element><xsd:element name="Z_TEST_WS_CONFIGResponse"><xsd:complexType><xsd:sequence><xsd:element name="OUTPUT" type="tns:char60"/></xsd:sequence></xsd:complexType></xsd:element></xsd:schema></wsdl:types><wsdl:message name="Z_TEST_WS_CONFIG"><wsdl:part name="parameters" element="tns:Z_TEST_WS_CONFIG"/></wsdl:message><wsdl:message name="Z_TEST_WS_CONFIGResponse"><wsdl:part name="parameters" element="tns:Z_TEST_WS_CONFIGResponse"/></wsdl:message><wsdl:portType name="Z_TEST_Q73_CONFIG_WS"><wsdl:operation name="Z_TEST_WS_CONFIG"><wsdl:input message="tns:Z_TEST_WS_CONFIG"/><wsdl:output message="tns:Z_TEST_WS_CONFIGResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="Z_TEST_Q73_CONFIG_WSSoapBinding" type="tns:Z_TEST_Q73_CONFIG_WS"><soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="Z_TEST_WS_CONFIG"><soap:operation soapAction=""/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="Z_TEST_Q73_CONFIG_WSService"><wsdl:port name="Z_TEST_Q73_CONFIG_WSSoapBinding" binding="tns:Z_TEST_Q73_CONFIG_WSSoapBinding"><soap:address location="http://bsl8011.wdf.sap.corp:50073/sap/bc/srt/rfc/sap/Z_TEST_Q73_CONFIG_WS?sap-client=003"/></wsdl:port></wsdl:service></wsdl:definitions>
Can anyone help me, I have no Idea
Message was edited by: Hans-Peter BauerThe message server defined in the SAP-Logon is us4278.wdf.sap.corp
But the url of the web service starts with http://us4185:58500/wsnavigator/jsps/explorer.jsp?description=WebServiceZ_TEST_Q73_CONFIG_WS
But I think that's not the problem, is it? As I mentioned above the test page can be shown, but the after filling in the input parameters an pressing send, there appears the authorisation error.
For better illustration I made some screenshots for you:
1) http://wipux2.wifo.uni-mannheim.de/~wi01211/sonstiges/WS_HOMEPAGE_OVERVIEW.gif
2) http://wipux2.wifo.uni-mannheim.de/~wi01211/sonstiges/WS_HOMEPAGE_TEST_INPUT_FORM.gif
3) http://wipux2.wifo.uni-mannheim.de/~wi01211/sonstiges/WS_HOMEPAGE_TEST_reqest_response.gif
What can be wrong, if the error "n0:FailedAuthentication" appears?
Regards,
Peter
Message was edited by: Hans-Peter Bauer -
Condition check (based on sender file name) at receiver determination step
Hi,
My scenario is File to AS2 (Sender side file adapter and receiver side AS2 adapter)
We have 5 customers, but the source location is same to pick the files, Here we are not using any ESR objects.
Based on the source file name PI need to determine to whoom this file need to send at receiver determination step
Craeted objects
1 Sender CC,
1 Sender agreement,
1 Receiver determination
5 Interface determinations
5 Receiver agreements
5 Receiver CCs.
Could you please provide me your valuable inputs.
Thanks
RameshHi Venkataramesh,
I understand your scenario as, picking files (different file naming standard for different target customer) from one source folder. Based on file name, that payload should be sent to corresponding target customer. You have mentioned u201CHere we are not using any ESR objectsu201D. I can see two reasons for this decision
1. PI is used to route the messages, i.e., no need to transform the payload. OR
2. Files can binary files like PDF, ZIP, JPG, GIFu2026
Now I can see two possible solutions
1. Simple solution, as proposed by u201CPrabhu Rajesh Janardananu201D, make it into 5 different scenarios (5 sender channels).
2. Bit complex solution, only one sender channel, using extended receiver determination
Step 1:- In Sender File channel check u201CAdapter u2013 Specific Message Adapteru201D in Advanced tab. File Name should be checked.
Step 2:- In Receiver Determination, Select Type of Receiver Determination as u201CExtendedu201D. http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce2a423a8e5430e10000000a42189b/frameset.htm
Step 3:- Do a Graphical Mapping (use it Operation Mapping in Receiver Determination).
Step 4:-
Source and target of graphical mapping will be same (below), because you donu2019t want to access input payload (it can be XML, flat file, JGP, GIF and you donu2019t have its structure).
<Receivers>
<Receiver>
<Party agency="" scheme=""></Party>
<Service></Service>
</Receiver>
</Receivers>
Step 5:- Write a UDF in Graphical mapping as below. http://help.sap.com/saphelp_nwpi71/helpdata/EN/43/03612cdecc6e76e10000000a422035/frameset.htm Pay attention to method declaration
public String Determine_Receiver( Container container) throws StreamTransformationException
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
String valueOld = conf.get(key);
//Put your logic here
if (valueOld.equal(u201Cuser1u201D)) {
return u201Cuser1u201D;}
if (valueOld.equal(u201Cuser2u201D)) {
return u201Cuser2u201D;}
if (valueOld.equal(u201Cuser3u201D)) {
return u201Cuser3u201D;}
Step 6: Now use this UDF to map to u201CReceiveru201D and u201C Serviceu201D.
This solution need more fine tuning.
Regards,
Raghu_Vamsee
Edited by: Raghu Vamsee on Jan 8, 2011 5:56 PM -
Negative Condition checking in read statement
Hi,
i have table, which i have to read, key on which i am going to read that will be determined dynamically. now i have to check the value for the key field is initial or not. i can't use a loop here as it doesn't allow me to mention where condition field dynamically.
thanks & regards,
prabhuHi use this:
DATA: BEGIN OF it OCCURS 0, "your dynamic table
field1 TYPE c,
field2 TYPE c,
END OF it.
it-field1 = '1'.
it-field2 = 'A'.
APPEND it.
it-field1 = ''.
it-field2 = 'B'.
APPEND it.
it-field1 = '2'.
it-field2 = 'C'.
APPEND it.
FIELD-SYMBOLS: <struct> TYPE ANY,
<comp> TYPE ANY.
LOOP AT it ASSIGNING <struct>. "loop at your dynamic table
ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <struct> TO <comp>. "FIELD1 is determined dynamically
IF sy-subrc = 0 AND <comp> is not initial.
WRITE <comp>. "will write out <comp> for each entry which has non initial value in <comp> (here FIELD1)
ENDIF.
ENDLOOP.
Please note that your <lfs> must hold name 'FIELD1' inside, than you can replace it with below code
ASSIGN COMPONENT <lfs> OF STRUCTURE <struct> TO <comp>.
Regards
Marcin
One thing to be added here:
You can't read table comparing its key field with negative condition NE , only comparison EQ are allowed in READ TABLE statement, that's why I chose above approach.
Edited by: Marcin Pciak on May 26, 2009 4:51 PM -
On the web how can I check the user role to display the form suitable for this role i
Hello
How can I check on the web the use role to display the a form for each role
Example
If the admin login I display admin_form.fmb and if user login I display
user_form.fmb
Thankx
TamerIn my forms I hide tab pages according the role using something like the following script in the WHEN_NEW_FORM_INSTANCE trigger.
So the user can not navigate to tabs which are vorbiden by his role.
CURSOR users_roles_cur IS SELECT granted_role FROM user_role_privs
WHERE username=(SELECT user FROM dual);
user_roles_rec users_roles_cur%ROWTYPE;
IF users_roles_cur%ISOPEN
THEN
CLOSE users_roles_cur;
END IF;
OPEN users_roles_cur;
LOOP
FETCH users_roles_cur INTO user_roles_rec;
EXIT WHEN users_roles_cur%NOTFOUND;
MESSAGE (user_roles_rec.granted_role);
PAUSE;
IF RTRIM(user_roles_rec.granted_role,' ') = 'BLA-BLA'
THEN
tb_pg_id := FIND_TAB_PAGE('activity');
IF GET_TAB_PAGE_PROPERTY(tb_pg_id, visible) = 'FALSE' THEN
SET_TAB_PAGE_PROPERTY(tb_pg_id, visible, property_true);
END IF;
END IF;
END LOOP;
CLOSE users_roles_cur;
Other solution may be is to use an initial form which only will detect the user role and run the appropriate form.
Other solutions are also possible.
Joseph -
Condition checking in Message Mapping
Hi
My scenario has a IDOC coming in XI and gets converted into a flat file
Idoc Structure
ControlRecord
ParentRecord
Field1
Field2
ChildRecord
Field3
Field4
Field5
Condition is Field2 = 0500 and Field5=""
If both the conditions are satisfied,then
For every occurence of child record,parent record needs to be repeated.
I used "useOneasMany" function to check ,but I am not able to check both the conditions.
Help needed on how to check these conditions
ThanksHi,
Try Like below.
Field2-----------
ChildRecord----Use One as many-->@
Field5-----------
@----equalsS("0500")----------and----if with out else---then(--@)----Target.
Field5--length--equalsS("0")--
If you required else condition then use "if" condition. As per above mapping any one condition fails target field will suppress.
Regards,
Prakasu.M -
Dear All,
attached is an NI that does the following.
1. The user inputs a frequency and amplitude range to drive a speaker.
2. A laser displacement sensor measure the speaker displacement, checks if it is in the desired range, and jumps on to the next frequency, if its not in the desired range it tries another drive voltage.
The program works fine, the problem is, is that the while loop checks the condition in the beginning or the middle of the loop, therefore if it is in range instead of stoping at that particular amplitude and frequency, it goes to the next amplitdue before going to the next frequency. Since at the begining of the loop execution the condition was different that in the middle.
How can I force the while loop to read the condition only after the sequence inside has completed.
Thank you
Ala
Attachments:
AmpFinder.vi 431 KBDear All,
I think this fixes the problem
Cheers,
Ala
Attachments:
AmpFinder.vi 431 KB -
Hi guys,
I've a problem: I have a condition type defined "Required" in calculation schema and the condition appear in PO with value zero. How can I do to check if the value is greater than zero ?
Regards
Albertowhen you mark a condition as "Required" , it only means that the condition type must mandatorily appear in the procedure , it however does not check the value at all , in order to check the value , you need do define Limits for conditions , you can define this under customizing for conditions in purchasing. apart from this, you can also define some routine and assign to the condition type.
If the value for that condition is based on some parameters ( e.g. plant/ p.org etc) , then you can define an access sequence and maintain condition records to default the same.
regards
Raviraj -
Exit Variables in web layout. Authority-check
Hi gurus!
i have a problem... i created a user-exit variable in my planning area that is filled by two variables
( low/high ).
In this user exit i check the values by authority-ckeck instruction. When i execute this on a planning folder it works rigth, the problem appears in web... the variable takes all the possible values!!! i'm turning mad!!! >:-I.
Do somebody have the solution?Never use a user with 'SAP_ALL'.... this job is going to kill me.
Sorry for spend your time. -
CSS load balancing, service dependancy condition check
Hi,
I would like to seek some advice regarding the CSS's service configuration.
Is there a way to configure the CSS such that it check for the condition/status of a independant service (not involved in the load balancing algorithm) is alive/down (using service mode keepalive port/type), before deciding whether to/not to load balance to a group of services?
Senario is as follwows:
We process incoming HTTPS request and load balance to 2 HTTPS Servers (HTTPS service SSL1 and SSL2), on condition that a independent service (HTTPS service SSL3) is alive (using the keepalive type/port check in service mode).
If the independant service (HTTPS service SSL3) is not alive, remove the HTTPS Servers (HTTPS service SSL1 and SSL2) from the load balancing algorithm.
Thanks in advance for assistance
!************************** CIRCUIT **************************
circuit VLAN1
ip address 192.168.103.35 255.255.255.192
!************************** SERVICE **************************
service SSL1
ip address 192.168.103.53
protocol tcp
port 443
keepalive type tcp
keepalive port 443
active
service SSL2
ip address 192.168.103.54
protocol tcp
port 443
keepalive type tcp
keepalive port 443
active
? This is the service condition that CSS will check before deciding to/not to load balance to SSL1 and SSL2.
? If SSL3 is down, do not load balance to SSL1 and SSL2. If SSL3 is up, load balance to SSL1 and SSL2
service SSL3
ip address 192.168.103.55
protocol tcp
port 443
keepalive type tcp
keepalive port 443
active
!*************************** OWNER ***************************
owner CISCO
content L5Rule_SSL
vip address 192.168.103.37
application ssl
protocol tcp
port 443
url "/*"
add service SSL1
add service SSL2
active
!*************************** GROUP ***************************
group SSL
vip address 192.168.103.37
add destination service SSL1
add destination service SSL2
activemaybe this?
circuit VLAN1
ip address 192.168.103.35 255.255.255.192
ip virtual-router 10 priority 100
ip redundant-vip 10 192.168.103.37
ip critical-service 10 SSL3
if I'm not mistaken the vip 192.168.103.37 will stop working when the service SSL3 goes down. I'm not sure that this is what you want though...
Maybe you are looking for
-
Hi I am a photographer and i do school proms. I previously linked several laptops up and created a network so that any photos i took when onto one laptop and then went staright onto 3 others. I am now looking to use ipads as viewing stations instead
-
Exposure problem with Lightroom 4 CS5 and Raw 6.7
Hi all I have recently upgraded from Lightroom 3.6 to the new Lightroom 4 and am genrally pretty happy with it, I tend to use it along with photoshop CS5 extended and also imagenomic Portraiture, but I have found an annoying little problem in doing t
-
Arch in virtual box gives me i686 instead of x86_64-failed retrieving
Hello, I tried arch in virtual box and when I do uname -a it gives me i686 instead of x86_64. So, trying to insert to repositories the multilib , it doesn't work (it gives me failed retrieving multilib). What can I do ? Thanks! (I download the dual I
-
SAP Smartform Timeout Dump in Production for the invoice form
Hi Friends, I am working on Invoice Smartform. It is working fine when it is having avg line items. where as in my case one invoice iss having more than 500 line items in production. For this in production it is giving timeout short dump. In that inv
-
I wanted to know how i can remove my account information off my iphone, because i keep trying to update my apps and it asks me to fix my billing information seeing as my card is now empty at the moment, it acts as if my updates cost money.