Home > Ask the SAP software/management Experts > SAP SEM Questions & Answers > Generating a condition in the FOX code
Ask The SAP Expert: Questions & Answers
EMAIL THIS

Generating a condition in the FOX code

Nurullah Battal, Years 2003-2005 EXPERT RESPONSE FROM: Nurullah Battal, Years 2003-2005

Pose a Question
Other SAP Categories
Meet all SAP Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 21 December 2004
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).


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
SAP SEM
Improving SEM skills
List of SEM functionalities
Getting certified exclusively in SEM
I need lots of SEM information
SAP SEM partner products
Retract zero values in SEM to R/3
Two clients with only one BW?
How to work around with the retraction of data into R/3 from SEM
Getting started with SEM
Retrieving information from SEM to display in HTML

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SAP White Paper Topics
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts