cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action : Change of Address of a particular Subtype in 0006

former_member377111
Participant
0 Kudos

Hi Friends,

I want to know how i can create a dynamic action for address change in particular subtype when a action is being performed.

Im doing it for the first time and dnt have much knowledge abt it.

Please do help.

Thanks in advance,

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member377111
Participant
0 Kudos

Done using user exit for default values..

Thanks

Former Member
0 Kudos

Hi

please share the user exit with us

Regards

Vikas k Sharma

stuart_campbell
Active Contributor
0 Kudos

Hi Neliea

Here is a good reference document for Dynamic Actions

It might help

https://wiki.sdn.sap.com/wiki/display/Snippets/Dynamic%20Action

Best wishes

Stuart

former_member377111
Participant
0 Kudos

Sub area wise address is not available in the system.

If i create a Z table for Personnel Subarea Wise Address,depending on the Per.Subarea in 0001 infotype is it possible to dispaly the address from the Z table to the work address in 006 infotype

Please suggest

Thanks,

Former Member
0 Kudos

Hi,

Can u be a bit more clear on ur requirement?

former_member377111
Participant
0 Kudos

We need to maintain sub area wise address in a Z table.

While performing any action based on sub area the work address should be determined from the Z table based on personel sub area

Former Member
0 Kudos

Hi,

Since ur manatining a Z table u can take values from it to default in IT0006 becuase the Ztable will have a field and most importantly that field should be used in ur infotype then it can pick the values

swati

Former Member
0 Kudos

for eg if u want infotype 06 to pop up on any change in action such as transfer then you will have to create a dynamic action in the following manner:

Transfer action no: 01

Temporary Address subtype: 06

Infotype FC No S Text

0000 04 10 *** CREATE INFOTYPE 06 ****

0000 04 11 P P0000-MASSN='01'

0000 04 12 I INS,0006, 06

This should work

You should put the action infotype in the customizing infotype field.

Edited by: Sunitha Wilfred on Oct 7, 2009 9:13 AM

Former Member
0 Kudos

Hi,

For dynamic Action for Addess change with a subtype please go through SPRO or Table V_T588z

The maintenance of dynamic actions is done via the view V_T588Z.

A dynamic action has the following components

Infotype Number (INFTY)

Specifies the infotype for which you want the dynamic action triggered.

Subtype (SUBTY)

Narrows the focus to a specific subtype

Field Name (FIELDN)

Starts your action when a maintenance function is performed on a particular field

Function (FC)

This controls for which types of processing (create, change and/or delete a data record) a dynamic action should be carried out. The processing type is indicated by a two-digit numeric value. These values can be added up; in other words, you can enter several processing types for each infotype, subtype or field. A dynamic action can also be carried out independent of the current processing type.

00 for Independent of the current function carried out

02 for Change

04 for Create

06 for Change and create

08 for Delete

10 for Change and delete

12 for Create and delete

Dynamic actions are only applicable in maintenance operations

Not in display functions.

Examples

If you enter 06, an action is carried out if the specified infotype was created or changed.

If you enter 00, an action is carried out irrespective of whether the specified infotype was created, changed or deleted.

Sequence Number (NO)

Refers to a sequential number.

Step (A)

Specifies a particular type of action. No dynamic action is executed if the function character has a value other than one of the following:

P

Plausibility checks, which allow you to check certain conditions.

You can enter values for specific infotype fields. Field names must be entered in full. Literals and constants can serve as comparison values. These must be enclosed by inverted commas. Variables can also be used.

If u still require the code then please let us know so that we can help u .

Thanks

Swati

former_member377111
Participant
0 Kudos

Dear Swati,

Thanks for ur prompt reply,I went through the documnetation u have given.my doubt here is which infotye should i provide in the customising.the action infotye or the address.If u can help me with an expample id be greatfull.

While performing an action infotyep 0000 i need to change the address infotye 0006 subtype 06.

please help

Former Member
0 Kudos

Hi Neeli,

Okay so now when ur doing an Action so u want to change the Address Infotype.

In the first Column plzz put 0000 and then give 04 in FC so that the dynamic will trigger when ur creating an Action.

Now

04 11 P P0000-MASSN='01'

04 12 P T001P-MOLGA='99'

04 13 I INS,006 1,,(P0000-BEGDA),(P0000-ENDDA)/D

04 14 W P0006-BEGDA=P0000-BEGDA

04 17 W P0006-ENDDA=P0000-ENDDA

Hope it helps u

Swati