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

Inserting multipal ifields in Transparent Table

Former Member
0 Likes
622

Dear Friends,

I have created one table having fields mandt matnr menge now i have to creat one program to add multiple rows in that table and on input screen i have to give user to enter matnr & mseg fields when user enter the value in that fields then it automatically add to that table. how to write that program to add multiple fields.

please help me!!!!!!!!!!!!!!!!!!!!!!!

Thanks,

Vishal bhagwat

6 REPLIES 6
Read only

former_member194669
Active Contributor
0 Likes
597

Hi,

Check tranx ABAPDOCU. Its have lot examples

a®

Read only

former_member156446
Active Contributor
0 Likes
597

collect the given parametes in a internal table

and use update / modify statement to update the Transparent table

modify ZTAB from itab.

this ill work for sure.

Read only

0 Likes
597

Hi Jack,

Thanks for the sol'n but my prob is that user enter the value in fields on i/p screen and then that value will be inserted into transparent table but how to collect that value in internal table please guide me

Thanks,

Vishal Bhagwat.

Read only

0 Likes
597

ohh its a modyfiable report..

Take a look at the programs

BCALV_EDIT_06

BCALV_EDIT_07

award points if u think it was usefull

Read only

0 Likes
597

Hi jack ,

As per ur first answer only one row inserted into table. but when 2 nd rows wan't inserted into same table then first row deleted and second row will be updated in the table. can i see all or save all row which i added to that table?

Thanks,

Vishal bhagwat.

Read only

0 Likes
597

check for the documentation for modify and update statements in SAP

Modify will add the new fields based on the key field u assigned to the Transparent table...

so ur 1st record is being deleted because either the key is not mentiones in the table of both( 1 and 2 records) have the same key fields..