Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call Transaction 'PA40' ALWAYS returns with error code

Former Member
0 Likes
924

Hi,

I'm having issues with updating personnel actions using CALL TRANSACTION 'PA40'. The call always ends with an error code.

I checked the message table and there are no error messages, only warnings and status messages. Warning and information messages are usually skipped in the BDC...I've coded an 'ENTER' to past the warning but this does not work either as the subsequent infotype screen fields are then not filled correctly.

The following values for addition OPTIONS are used:

data: opt like ctu_params.

opt-dismode = 'N'.

opt-updmode = 'A'. ('S' makes no difference)

opt-defsize = 'X'.

opt-nobinpt = 'X'. ( ' ' makes no difference)

I've tried using 'PA30' for the same actions but I get the same problem. I've used call transaction 'PA30' in many programs and I've never come across this problem.

Is there perhaps a config setting somewhere to fix this? I've tried hiring employees using HR_MAINTAIN_MASTERDATA with the employee existance check off but there's a couple of problems there as well - sample code for hiring an employee would be very helpful...

I need your help urgently and would appreciate your assitance immensely. (I'm working on 4.6C.)

Thank you.

LM

5 REPLIES 5
Read only

Former Member
0 Likes
809

Hi LM,

Have you tried your program in A mode and what was the outcome.

Regards,

Atish

Read only

0 Likes
809

When executing in 'A' mode the record is updated successfully as I go past the warning message when pressing ENTER.

Read only

0 Likes
809

That means you have not recorded for these warning messages in your BDC. You need to do the recorings for these also.

Regards,

Atish

Read only

0 Likes
809

Ok, do I have to code the ENTER after each warning? I've tried this before and it didn't work but I will try it again. I've lost my connection to the system and will try again later.

Thanks.

Read only

Former Member
0 Likes
809

The easiest way to resolve this is to set

opt-dismode = 'E'.

this way it will run in background and jump out when it hits an error, and it's much easier to see what the real issue is.

I'm assuming you used SHDB first to get the recording?