Q

Generating a condition in the FOX code

We wish to generate a condition in the FOX code that is conditional upon part of a characteristic value. Assume the characteristic has the following values 0006010B01, 0006020B01. We only wish to process a function where the value "B01" is part of the characteristic value.
Let's assume the characteristic you want to use in the condition is Cost Center, then following FOX code checks the Cost Center values and if Cost Center number includes 'B01,' program assigns 5000 to the quantity key figure for that record.

DATA CC TYPE 0COSTCENTER.

CC = OBJV().

IF CC CP '*B01*'.

{0QUANTITY} = 5000.

ENDIF.

You can include similar logic in your FOX code to transform data based on the characteristic value conditions. You can find detailed information about the usage of string functions in the FOX on screen help (documentation).

This was first published in December 2004

Dig deeper on SAP Basis administration and NetWeaver administration

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close