on 03-23-2009 9:05 AM
Moved to correct forum
hi friends,
i have a requirement in SMARTFORMS...
my requirement: i need to implement some logic which should effect only 3 countries out of 6 countries.
now i implemented my logic but the thing is how to restric only for 3 countries?
do i need to write the condition in program line like:
IS_BIL_INVOICE-HD_ORG-SALESORG = 'O110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'Y110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'W110'
or
do i need to write condition like:
IS_BIL_INVOICE-HD_ORG-SALESORG = 'O110'
OR
IS_BIL_INVOICE-HD_ORG-SALESORG = 'Y110'
OR
IS_BIL_INVOICE-HD_ORG-SALESORG = 'W110'
please guide me...
thanks in advance,
Edited by: Matt on Mar 23, 2009 10:09 AM
Hi,
your 2 (second) option (with the OR) is the right one.
Gr., Frank
added the SAP help for the operands to inform GURU RAM.
SAP Smart Forms: operand
Specification of a field name or operand
Use
Within a Smart Form a node and all inferior nodes are processed only if
the respective output condition is true. A condition can either be a
logical expression on field values or consist of events or position
queries in the form processing.
You can determine a condition as logical expression using a table
control. Each line of the table control consists of a field name, a
comparison operator, and a comparison value. The comparison value can
itself be a field name. As compariosn operators, the ABAP operators =,
<>, <, >, <=, >=, CP (contains pattern) and NP (not contains pattern)
are allowed.
All lines of the table control are linked with the logical AND. In
addition, you can use a pushbutton of the table control to insert an OR
link for comparisons. In the table control, it is displayed as line with
gray background. The Check function checks whether all field names that
appear in the comparisons are declared in the form interface or in the
global data of the form.
See also: Determining OutputConditions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can place your code
IS_BIL_INVOICE-HD_ORG-SALESORG = 'O110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'Y110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'W110'
in the smart form itself.
You have to place the code in the CONDITIONS tab of the window in which the change related to those countries are placed.
Field Name Relational Operator Comparision Value
IS_BIL_INVOICE-HD_ORG-SALESORG = 'O110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'Y110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'W110'
regards,
NIVAS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in the smartform builder.
in the node : add conditions.
IS_BIL_INVOICE-HD_ORG-SALESORG = 'O110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'Y110'
IS_BIL_INVOICE-HD_ORG-SALESORG = 'W110'
in 3 lines.
it act as OR.
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.