2006 Dec 08 4:52 AM
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
2006 Dec 08 5:11 AM
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
2006 Dec 08 5:01 AM
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?
2006 Dec 08 5:03 AM
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
2006 Dec 08 5:08 AM
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
2006 Dec 08 5:08 AM
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
2006 Dec 08 5:11 AM
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
2006 Dec 08 5:23 AM
Hi Arun,
Thanks. It is working.
How can I use through a dialog program.
Regards,
2006 Dec 08 5:28 AM
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
2006 Dec 08 5:29 AM
Hi Arun,
Thanks a lot. It is working.
Can i have ur mail id.
Regards,
Mark K
2006 Dec 08 5:33 AM
2006 Dec 08 5:45 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |