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

can we update standard database table?

Former Member
0 Likes
1,570

HI experts,

I just want to know can we update standard database table using update statement?

i want to update some HR table with the data from flat file using update statement. please guide me.

Regards,

Murthy.

HI experts,

I just want to know can we update standard database table using update statement?

i want to update some HR table with the data from flat file using update statement. please guide me.

Regards,

Murthy.

13 REPLIES 13
Read only

former_member156446
Active Contributor
0 Likes
1,539

it is possible but its not prefered..

its always a good practice to either go with a BDC of a tr. or use Tr so update the changes... or a BAPI which suits to the requirement..

Read only

0 Likes
1,539

dear jay,

iam in an implementation project. During datatransfer we have ran LSMW to transfer the data to standard database table. but the database table contains some username and date fields which are system fields..so those two fields are updated by username and date who runs LSMW and LSMW runned date. so i need to update those two fields by another flatfile of data by running some report.

please guide me.

Read only

0 Likes
1,539

What's the table and transaction?

Rob

Read only

0 Likes
1,539

i need to update aedtm and uname fields in table pa9008 from the flatfile.

Read only

0 Likes
1,539

Why not you are writing A BDC for PA30 with Infotype 9008?It will Update PA9008 automatically.

Either Use FM HR_MAINTAIN_MASTERDATA

ACTIO = 'MOD'"This is for changing the Master data.

Read only

0 Likes
1,539

can u explain in detail? like what r the parameters to be passed to the FM?

Read only

0 Likes
1,539

What Fields you have in your hand(File)?

This is the Importing parameter of FM:

PERNR                           00001123               
 MASSN                                                  
 ACTIO                           MOD

And this is the Proposed_Values from tables parameter:

Tables                          Value             
                                                    
  PROPOSED_VALUES                    1 Entry"here pass INFT = '9008'

For More Assistance Check FM BAPI_PTMGRATTABS_MNGCHANGE line 220 in ECC.

Read only

0 Likes
1,539

can u give me entire FM structure with example?

Read only

0 Likes
1,539

FM BAPI_PTMGRATTABS_MNGCHANGE line 220 in ECC,Have an entire structure with Example.

Read only

0 Likes
1,539

Amit,

with that FM i can directly update the database table ? remember the data is large to update.

Read only

0 Likes
1,539

>

> Why not you are writing A BDC for PA30 with Infotype 9008?It will Update PA9008 automatically.

> Either Use FM HR_MAINTAIN_MASTERDATA

>

ACTIO = 'MOD'"This is for changing the Master data.

Amit - will this be able to update fields that are not changeable on the screen?

Rob

Read only

0 Likes
1,539

Dear amit,

i do have aedtm and uname fields to be modified for particular pernr. these 3 fiels will be taken from flat file. plz guide me with the example

Regards.

Read only

Former Member
0 Likes
1,539

closing