cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic action

Former Member
0 Kudos

Hi Experts,

i am learning more about about Dynamic Actions.

i have one SAP action as below-

P0367-AECD0+15(1)='X'

Please , can u help me to Understand that?, what does that mean?

Accepted Solutions (1)

Accepted Solutions (1)

former_member186667
Active Contributor
0 Kudos

Hi Anju,

This is actually part of ABAP coding, which is also being supported by Dynamic Actions (as you may know, dynamic actions are actually ABAP code which can be interpreted.

The command "P0367-AECD0+15(1)='X'" means that the system will place the value 'X' in the 15th position of P0367-AECD0 field.

The number in brackets define how many characters of the value will be used, e.g., if we would have written "P0367-AECD0+15(2)='XYZ'", then on the 15th position the system will write the characters XY.

Regards,

Liran

Former Member
0 Kudos


Hi Liran,

you mean to say - P0367-AECD0+15(3)='XYZ' ?

and AECD0 is a field in this, that should have its value in ranking order ?

rajkumarnarasimman
Active Contributor
0 Kudos

Hi anuj,

Here we are overwriting the value for the field AECD0.

Example:


P0367-AECD0='ABCDEFGHIJKLMNOPQRSTUVWXYZ'.


Here 15th character contains value 'P', we are going to replace as 'X' using the below statement.

P0367-AECD0+15(1)='X'

Explaination:

P0367   - Structure

AECD0 - Field

15         - represents the place at where we going to do the change

(1)         - Length of the string

'X'          -  Value we are assigning to the field

after the above statement executed, the value is changed as


P0367-AECD0='ABCDEFGHIJKLMNOXQRSTUVWXYZ'.

Regards

Rajkumar Narasimman

Former Member
0 Kudos


Thanks Rajkumar for the detailed Explaination.

Answers (0)