Condition check in PO
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
Alberto
when 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
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(); -
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. -
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 -
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 -
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... -
ABAP & Java conditional checks
Hi folks,
I'm running the IDM 7.1 Identity Centre, and when I assign a business role that has an ABAP and a Java privelege in it (And also when I unassign it...) the condition that checks whether the user has any priveleges in the system (and decides whether to delete him or not) seems to fail.
That means my ABAP and Java users both are left in the repository with no roles/groups assigned.
It seems to use the mxpt_check_account Stored procedure, which I've looked at, but cannot figure out why the condition is failing this check, and my users are not getting properly created/deleted.
Any insight? Thanks im advance!
Troy ShaneOk, I think you have it now, except for the exact order of things.
Here's what I face right now:
I assign a Business Role, with those 5 priveleges assigned to it, to my user, Larry.
Larry gets created ok in ABAP and Java, and actually, the roles get assigned just fine there. If i change the role he's assigned to (Manager West, instead of East for example) I see them get updated with no problems (Very smoothly, in fact) in both the ABAP and the Java. For example, if I simulate a promotion for Larry through the IDM User Interface, and assign him a VP role, I see the roles updated properly. (Besides some SPML Date format warnings on the MX_VALIDFROM & MX_VALIDTO, but those I can live with for now.)
However, I still, have two problems:
1. It seems that NOW...(sorry, different behaviour now than when I first posted this message, due to the recommendations I've implemented) when I remove the Role assignment in IDM, the user's roles get removed properly in the repository systems. Then the tasks to delete the Java and ABAP users run, but they BOTH error out. It seems that the jobs that modify the role/profile assignments for both my ABAP and Java system (Standard SAP Prov Framework tasks - SetJavaRole&GroupForUser & SetJavaRole&GroupForUser ) also effectively deletes the users, because by the time the delete tasks run, the users are no longer there. These tasks throw the errors:
Pass: DeleteJavaUser
Error in delete: Can not delete object with id SPML.SAPUSER.Larry because Could not delete object as id seems to be invalid SPML.SAPUSER.Larry
(...makes sense)
Pass: DeleteABAPUser
User Larry does not exist
(...also makes sense)
Ok, admittedly, this one is low impact, and I don't really need to get it fixed, I just want to understand why it is throwing an error...should it really be deleting the users when it first removes the roles, and then checks that there are no more privelege assignments for that system? (When I have 2 priveleges for the same system assigned through roles, it doesn't delete the user, just removes the role, as expected...no errors
Ok, this one is my real issue now (Thanks for reading this far):
2. I have the role configured as above, including priveleges from all 3 of my repositories (I hit "post" too early above):
Role = ROLE:BUSINESS:SALES_EAST
5 Priveleges total :
- Z_INNOTECH_EAST-Group (JV1)
- Eastern Region-Group (LABS)
- Sales-Group (LABS)
- Z_INNOTECH_SALES_EAST-Role (CR7)
- Z_INNOTECH_SALES_EAST-Role (JV1)
JV1 = AS Java 7.01 SP4 (EHP1 SP4)
CR7 = SAP CRM ABAP 7.01 SP2
LABS = Active Directory OU
The ABAP & Java tasks faithfully fire now, every time I assign or unassign a Business role to my user Larry. (Yay!)
There are also 2 AD groups (privelege) assigned to Larry through the role: Eastern Region group and Sales Group.
There is also an inherited "Employee" Business Role, which has the AD "Employees" Group - for base employee access.
The idea is that, a member of the Eastern Region Sales group would automatically be an Employee, so it is a Child Role of most of my major roles.
When I assign this Business Role, the Active Directory tasks very rarely and very inconsistently fire...I am watching th results in the Job Log and also through my AD tools...
I am using IDM 7.1 SP2 (Patched on Monday past)
Using individual tasks through the IDM UI, I can create Users, and enable them...but the Provisioning seems not to work. I have the tasks set properly in the Repository definition and am using the SAP delivered ones (I have tried using modified copies with limited success, and am now back to basics) This proves it isn't the repository definition, or permissions on the repository. I'm always using the same Administrative user to assign/unassign these users, so now I'm stumped!
Phew, ok that's enough for now...I'll post more error messages once I've investigated the AccountRepoName that you suggest...I haven't seen that Attribute and don't know if it is defined here.
TIA (and so far...),
Troy
(Ok...how come I don't have any line returns in my message?) -
Condition Checking with " IF " statement....
Hi All,
In one of my requirement ,the existing scenario is like this: IF currency is USD, then call subroutine X
ELSE call subroutine Y. i.e if po_headers-waers = 'USD'
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' 'US4'.
else.
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' po_headers-waers .
endif.
(The above code first check if po_header currency value is 'USD' then it calls subroutine to convert the currency to US4,else it calls other subroutine to convert currency as per po_header currency value.)
Now my new requirement is : if po_header currency value is USD and po item value(po_items-netpr) is greater than '10000000.00', then call subroutine to convert it into USD, else for po_header currency value USD and po item value(po_items-netpr) is lesser than '10000000.00', call subroutine to convert into US4(as written above US4 code line).
I have inserted code for the condition like this:
if po_headers-waers = 'USD'
and po_items-netpr GE '10000000.00'.
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' po_headers-waers.
else.
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' 'US4'.
endif.
But it only satisfies one condition i.e for po_items-netpr >= '10000000.00' with currency as USD , it is converting to USD,but for po_items-netpr < '10000000.00' with currency as USD, it is not converting to US4.where i am missing the steps? can you all through some light.
Thanx.
Debhi,
Modify the code as following.
if po_headers-waers = 'USD' .
if po_items-netpr GE '10000000.00'.
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' po_headers-waers.
else.
Perform fill_bdc_table using ' ' 'RV61A-KOEIN(01)' 'US4'.
endif.
endif.
Regards
Sharath -
X.12 EDI Relational Condition Check in Seeburger EDI Adapter
Hello,
We're in middle of implementing ANSI X.12 EDI message integration with
Seeburger BIC Module with SAP PI 7.0. In X.12 protocol, there are so called
Relational Condition constraints on particular fields of a EDI segment. For
example, for EDI 850, the segment REF is bound by a constraint R0203;
segment FOB is bound by C0302, C0405, C0706, C0809.
Can anyone clarify that the standard EDI-To-XML 1:1 mapping generated by
Seeburger BIC Mapping Designer include these check rules or not ?
Are these check rules mandatory for all inbound EDI message processing
according to industry common practise ?
Thank you for any idea you may provide !
Ying-Jie ChenHi Chirag,
For EDI 850, the segment REF has the following elements :
128
127
352
C040
The relational condition R0203 is bound to REF. This implies that elements 02 (ie 127) and 03 (ie 352) are Required, meaning at least one of both fields must exist.
The incoming EDI 850 data is validated by this rule.
Segment REF has several occurrances in the 850 schema and for all those occurances, the check rule applies.
For constraint C0302 on Segment FOB, it specifies that a "Conditional" condition
is bound on this segment, dictating that if element 03 exists, then element 02 must
also exist.
These constraints (aka Relational Condition) are expressed as "Syntax Notes"
on segments for a particular X.12 EDI message type.
FYI,
Ying-Jie Chen -
HOW TO CONFIGURED CONDITION CHECK IN RUN TIME
MY SCREEN LIKE WITH TWO TEXT BOX WITH ANY VALUE IN INTEGER OR LONG AND I WRITE CODE FOR CHECK CONDITION LIKE >,<=<=,>= ETC. SELECTION FROM DROP DOWN OR ENTER IN ANOTHER TEXT BOX SO HOW I CAN ACHIEVE MY REQUIREMENT.
In order to compare the values of two textboxes, you will need to convert the text to numbers. Use a code like this (in C#):
long number1 = long.Parse(textBox1.Text);
long number2 = long.Parse(textBox2.Text);
(Or consider long.TryParse).
Then use a switch statement to identify and perform the required comparison. -
Condition check befor exporting records
Can we put any condition before the records get exported.
I.e as the records reach syndication manager for syndication i want a condition to be executed and then based on the result of condition i want syndication map to be selected
Ex:-
if acount group=zind i want syndication map CREMDM04 to be exceuted
els i want CREMDM04_FI map to be executed.
Can i at any place check this,whether in workflow or somewhere but b4 syndicating.
Plz reply me
Regards
LakshmiHi Shifali,
It is like , since you are using conditional Validation you should use the Branch step instead of the individual Validation step firstly.
You can have your set of 20 Validations as designed which will be applicable to all the records.
Create 2 sets of this group Validations so say you have
- Group1_Validations
- Group2_Validations
The Group1_Validations will have all the common validations and along with that the Acct group validation also which, will check if the account group of the particular record is ZIND.
The Group2_Validations will have all the common validations and along with that the Acct group validation also which, will check if the account group of the particular record is ZMIS.
So all the records which will fulfill all the common validations and have acct group as ZIND will move in one path
and the other records having acct group ZMIS will take the default path.
For the records taking the first path you can hav ethe syndicate step which will save the desired CREMDM04 port
and the deafult records will go to the other syndicate where that port will have CREMDM04_Fi deatils in the map.
So accordingly your records will get routed.
Your workflow will look like this
/Syndicate1-----Stop
Start-Process>Branch----<
/Syndicate2-----Stop
Branch will have 2 Validtion groups
Group1_Validations- Syndicate1
Group2_Validations- Syndicate2
Syndicate 1 will have port storing all the necessary settings that match CREMDM04 map
and Syndicate 2 will have the port storing all the necessary settings that match CREMDM04_FI map
You can have a glance on the below links to get a betetr idea:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60f28084-b90e-2b10-3eb6-d6565367048a (LOOP in Workflows-Approvals)
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9180cbaf-0801-0010-f882-f2af6dc975d0 (Dynamism in mdm workflows)
Hope It Helped
Thanks & Regards
Simona Pinto -
Hi,
I am new in jsf, I have got a problem...
I have a bean named UserBean, It has a age property.
I want check a condition on Age property, and using JSTL for that, The Code is like that...
<c:if test ="${UserBean.age>17}">
<h:outputText value=" You are Adult"/>
</c:if>Can Any one help me?
It will be better if any one send me code....
Thanks
PalashThe 'rendered' attribute to be precise :) You can put any boolean expression in it. When this evaluates to true, then the component and it's children will be rendered, otherwise if false, then they will be hidden.
Some basic examples:<h:someComponent rendered="#{myBean.booleanValue}" />
<h:someComponent rendered="#{myBean.intValue > 10}" />
<h:someComponent rendered="#{myBean.objectValue == null}" />
<h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
<h:someComponent rendered="#{!empty myBean.collectionValue}" />
<h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
<h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" /> -
Hi All,
I have a scenario like this:
The data is coming from a system through a webservice and the SOAP data to be mapped to idoc.But the trick is the idoc is aasynchronous one and the webservice expects a response in return as its designed synchronous. please suggest.
Again the webservice data contains some specific data field and on checking the relevence of the data we need to post that to idoc otherwise we can rollback.can this be checked with BPM?
if possible please suggest elaborately and if possible through another way suggest that also.
AbhishekUse BPM. The Idoc Ack in the form of ALEAUD has to be configured at receiver. This Idoc can be caught in BPM in the form of acknowledgement idoc. Once received, u may use tranform step of BPM to map certain values to ur webservice response. Use Sync-Async bridge concept (many weblogs available on sdn)
checking the relevence of the data
What is the logic here. U may check certain conditions in mapping directly and raise an alert accordingly.
Regards,
Prateek
Maybe you are looking for
-
Target directory in file adapter
Hi, Please let me know how can we set the target directory in the receiver file adapter by reading the database (maybe from a table in the database). regards, Raghu
-
Suddenly can't connect to Time Capsule
I have had a Time Capsule now for over a year and have had few problems. Nothing a restart here and there wouldn't fix. However, tonight I came home and am unable to connect wirelessly. I checked my TC and it was solid green light. But my MacBook cou
-
Hi, i have developed a program in which the user opens often new windows (new frames)to do different jobs .how can i make the java frames not to show their names in the task bar just like the showOptionPane dialog. when you open such a dialog even wh
-
Odd behavior: empty optical drive makes eject sound with lid closed
Anyone heard of this? I've got a black MacBook (2.0Ghz) w/ Leopard. Laptop is plugged into outlet with lid closed & no disk in the optical drive. Every 2 minutes or so I can hear the eject sound like when you push the eject button. Any clues or sugge
-
Hi, I am in the process of investigating an upgrade from WASv5.1 to WASv6.0. When performing the upgrade, we need a contingencey plan in case the upgrade fails we can continue to run the application on WASv5.1. I plan to continue to run the applicati