cancel
Showing results for 
Search instead for 
Did you mean: 

how to apply condition for 3 countries out of 6 counties (in smartforms)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi,

you mean i need to write my 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'

thanks in advance...

Former Member
0 Kudos

Yes.

Succes.

Gr., Frank

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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