on 2017 Sep 21 5:44 PM
Hi,
I have one DSO which contains some data. My requirement is to replace GL Account = X with 'Y'.
This DSO has 6 other key fields.
I am trying use the following code in start routine. However the below code is not changing the existing record , but it is creating a new record by copying the existing record, and replacing the GL account = Y.
In the end, i have two records, one with GL =X and another with GL = Y.
I just need only one record with GL = Y.
LOOP AT SOURCE_PACKAGE ASSIGNING <SOURCE_FIELDS>.
IF <SOURCE_FIELDS>-GL_ACCOUNT = 'X'
<SOURCE_FIELDS>-GL_ACCOUNT = 'Y'.
ENDIF.
ENDLOOP.
Hi
in this case you can use simple field routines
for each infobject that you need to modify, you can insert in the transformation a simple routine
IF.....<your condition>
RESULT = <your result>
ENDIF.
You will wind endless examples of these simple transformations in SDN
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
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.