cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of faulty Actions

Former Member
0 Kudos

Hello All

I want to delete some 'Actions' which were wrongly created as a result of a program gone wrong. An 'Action' is attached to an Infogroup which consists of Infotypes in a pre-defined sequence. Now, in this case, the number of Infotypes that have been maintained for the particular action range from 1(Actions) to 8(max defined in infogroup). So, basically I DONT know how many Infotypes were populated for the particular action.

My Question - I can create a program to delete a particular infotype. But how do I provide logic to the program as to delete all the Infotype associated with a particular action?

Hoping for an early response

Regards

Lincoln

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I Think U want to Skip the Infotypes based on your Flat File data During Running the action through Program... All u Need is Check for the Mandatory Fields Which Will be required for a Infotype , If u Dont Find Then SKIP the Screen.... for eg:

*- processing for the screen 2010 - Basic Pay infotype(0008)

PERFORM DYNPRO USING : 'MP000800' '2010'.

IF

  • I_FILE_HEADER-LGA01 IS INITIAL AND

I_FILE_HEADER-PREAS IS INITIAL AND

I_FILE_HEADER-trfar IS INITIAL AND

I_FILE_HEADER-trfgb IS INITIAL AND

I_FILE_HEADER-BET01 IS INITIAL.

***Skip the record.....

PERFORM DYNPRO_FIELD USING : 'BDC_OKCODE' '/ENXT'.

PERFORM DYNPRO USING : 'SAPLSPO1' '0200'.

PERFORM DYNPRO_FIELD USING : 'BDC_OKCODE' '=YES'.

ELSE.

PERFORM DYNPRO_FIELD USING : 'BDC_OKCODE' '/00',

'P0008-PREAS' I_FILE_HEADER-PREAS,

"reason

'P0008-TRFAR' I_FILE_HEADER-TRFAR,

"ps type

'P0008-TRFGB' I_FILE_HEADER-TRFGB,

"ps area

'P0008-TRFGR' I_FILE_HEADER-TRFGR,

"ps grp

  • 'P0008-TRFST' i_file_header-trfst,

  • "ps lvl

  • 'Q0008-ANSAL' i_file_header-ansal,

  • 'Q0008-LGART(01)' i_file_header-lga01,

'P0008-DIVGV' I_FILE_HEADER-DIVGV,

'Q0008-BETRG(01)' I_FILE_HEADER-BET01.

PERFORM DYNPRO USING : 'MP000800' '2010'.

PERFORM DYNPRO_FIELD USING : 'BDC_OKCODE' '/00'.

PERFORM DYNPRO USING : 'MP000800' '2010'.

PERFORM DYNPRO_FIELD USING : 'BDC_OKCODE' '=UPD'.

ENDIF.

Former Member
0 Kudos

Madhu

This wont solve our purpose as this program assumes that we are getting data from a flat file. In our case we have to select from database table and our only input to transaction PA30 will be the employee no. This solution works in case data is given from a flat file and we know before hand that certain data is not required for certain employee.

Regards

Lincoln

Answers (7)

Answers (7)

Former Member
0 Kudos

I dont Think U can do it Programatically...U have to delete them manually.....

Former Member
0 Kudos

DO u want to delete infotypes which are wrongly populated or which are error infotypes for a particular Pernr....

Former Member
0 Kudos

I want to delete Infotypes which are wrongly populated. There was a batch program gone wrong due to which sone actions were wrongly created. I have delete those actions for around 300 PERNRs.

Former Member
0 Kudos

Can u be Specific of what u want to do...What is the Functionality of ur Program......

Former Member
0 Kudos

Hello Livoln.

From Where u want to delete the Infotypes ? Skipping a infotype for a Action is What u need If u Dont want to Populate the Infotype.....

Former Member
0 Kudos

How can the same action Go thru diffreent Sequence of infotypes for different pernrs....??? Can u be more specific ... If u want to configure ur Personnel action ... GO to SPRO >Personnel Management > Personnel Administration >Customizing Procedures >Actions >Define InfoGRoups......

Better u take help of functional Guy if u are unable to Do the Configuration.....

Former Member
0 Kudos

Dear Madhu

I am not saying that the sequence in configuration is different. But it is not mandatory to populate all the Infotypes when a particular action is run. The user may well press F12 to skip an Infotype. My question is that we dont know which Infotypes have been populated during the action. So how can we write a program to delete the relevant Infotypes?

Regards

Lincoln

Former Member
0 Kudos

DO u Want Delete Actions(in PA40) or some Infotypes in some Actions....

Former Member
0 Kudos

Hi Lincoln,

Goto Infotype 0000 and choose the particular action and click the delete button. It will automatically popup all the infotypes associated with it. You can proceed deleting all.

Regards,

Balaji. D

Former Member
0 Kudos

Balaji

The number of actions to be deleted run into a couple of hundreds, so I cannot go on deleting them manually. I have to create a BDC for the same. The problem which I am facing is that for the different employees, the number of Infotypes maintained for that particular action is different. It is only 1 infotype in some cases and upto 8 infotypes in some.

Suppose, the infotypes maintained for Actions are 0,1,2,8,14,15,22,23 and 24. For sone PENRS, only 0 is there, for some 0,1,2 are there and so on. There is no pattern in which infotypes are maintained for which PERNR. And my BDC stops if it doesnt find an infotype in sequence. How do I counter this problem?

Regards

Lincoln