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

Table PA0000

Former Member
0 Likes
2,346

Hi Friends,

Why the data is not getting inserted into the table PA0000, whereas I am able to insert the data into table PA0003.

I have written a dialog program to input the values.

Kindly clarify.

TIA.

Regards,

Mark K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,141

Hi Mark ,

I just wrote a small program the code is given below


Data : wa type pa0000.
start-of-selection.
wa-pernr = '1'.
wa-endda = '20061211'.
wa-begda = '20061201'.

insert into pa0000 values wa.

if sy-subrc = 0.
write: 'record updated'.
endif.

it inserts the record into the table.

could you please paste the code of the section where u insert the value in the table.

Regards

Arun

10 REPLIES 10
Read only

Former Member
0 Likes
2,141

Hi Mark,

To my knowledge, u can't insert data into PA0000 using HR_INFOTYPE_OPERATION. U can use the fm HR_MAINTAIN_MASTERDTA to insert data into PA0000. Let us know, how are you trying to insert data?

Read only

Former Member
0 Likes
2,141

data : it type table of pa0003,

wa type pa0003.

You can try this code.

update the table using the work area.

get the text fields in screen using ( Get from program , get the work area variables )

and then try to insert.

wa-pernr = '33333333'.

insert into pa0003 values wa.

sure it will work.

Regards

Purshoth

Read only

Former Member
0 Likes
2,141

data : it type table of pa0000,

wa type pa0000.

You can try this code.

update the table using the work area.

get the text fields in screen using ( Get from program , get the work area variables )

and then try to insert.

wa-pernr = '33333333'.

insert into pa0000 values wa.

sure it will work.

Note : When you are trying to see your record in table pls make sure that the hits should be blank.

Regards

Purshoth

Read only

Former Member
0 Likes
2,141

data : it type table of pa0000,

wa type pa0000.

You can try this code.

update the table using the work area.

get the text fields in screen using ( Get from program , get the work area variables )

and then try to insert.

wa-pernr = '33333333'.

insert into pa0000 values wa.

sure it will work.

Note : When you are trying to see your record in table pls make sure that the hits should be blank.

Regards

Purshoth

Read only

Former Member
0 Likes
2,142

Hi Mark ,

I just wrote a small program the code is given below


Data : wa type pa0000.
start-of-selection.
wa-pernr = '1'.
wa-endda = '20061211'.
wa-begda = '20061201'.

insert into pa0000 values wa.

if sy-subrc = 0.
write: 'record updated'.
endif.

it inserts the record into the table.

could you please paste the code of the section where u insert the value in the table.

Regards

Arun

Read only

0 Likes
2,141

Hi Arun,

Thanks. It is working.

How can I use through a dialog program.

Regards,

Read only

0 Likes
2,141

Hey Mark ,

The code will be the same , Please paste you code here let me see what excatly can be the problem.

And if the insert statement gives a SY-SUBRC = 0 . it indicates that the record has been inserted .

Regards

Arun

Read only

0 Likes
2,141

Hi Arun,

Thanks a lot. It is working.

Can i have ur mail id.

Regards,

Mark K

Read only

0 Likes
2,141

Hi Mark ,

It is [email protected]

Regards

Arun

Read only

0 Likes
2,141

Thank you.