on 08-26-2014 12:48 PM
Dear TDMS Experts,
Could you please advice, to which scrambling types can be assing following rules, as sample:
1) Land + 1. Entry - select the first region, which belongs to selected country
2) KUNNR + "NAME"
is these no mapping type, or?
Thank you in advance!
Hello,
Could you Please be more specific on the requirement,
What do you mean by LAND + 1 and KUNNR + "Name". ?
Please provide the following details so that we can suggest a solution,
Regards,
Jerrin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jerrin,
first of all thanks for feedback. I will try to answer.
For example:
Table Table Field
ADRP PROFESSION
PERSNUMBER + fixed value "PROFESSION"
An example for output:
22989 "PROFESSION"
The problem is that the first value (PERSNUMBER) each time is different.
The TDMS offers us 8 types of scrambling:
1. Define Value
2. Fixed Value
3. Manuall 1:1 Mapping
4. No Mapping
5. Number Conversion
6. Random Selection Table with 1 Column
7. Random Table for Time Periods
8. Value Range Table
Well, which of them can be used?
Thanks in advanced.
BR,
Ilkin
Hello Ilkin,
For this requirement you have to use 'No Mapping' scrambling type while creating rule,
For creating a rule with 'NO Mapping' , we have to create an INCLUDE program which contains the Custom Scrambling Routines that is to be used for scrambling by the new rule.
For the above example, please refer the below include code,
*&---------------------------------------------------------------------*
*& Include ZCUST_INCLUDE
*&---------------------------------------------------------------------*
FORM scramble_adrp_profession USING p_rule_id
CHANGING p_value
p_changed.
DATA : lv_value type char40.
FIELD-SYMBOLS : <lv_varkey> TYPE ANY.
ASSIGN COMPONENT 'PERSNUMBER' OF STRUCTURE gd_original
TO <lv_varkey>.
IF sy-subrc = 0.
CONCATENATE <lv_varkey> '"Profession"' INTO lv_value.
IF sy-subrc = 0 .
p_value = lv_value.
p_changed = 'X'.
ENDIF.
ENDIF.
ENDFORM.
Note:
Above routine gets the PERSNUMBER for gd_orginal and concatenate "Profession" to it and assign the new value to changing parameter p_value, remaining scrambling is taken care by the engine.
After you create the include please proceed with the creation of rule ( use expert mode for creation),
Also refer the below link for information on rule creation or any scrambling objects,
http://scn.sap.com/docs/DOC-52263
Hope this answers your query.
Regards,
Jerrin
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.