Application Development 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: 

Adding entries for vzsort-usr00

Former Member
0 Kudos
125

Hi,

Can I fill the entries for field USR00 in table VZSORT by a report program using INSERT , UPDATE or MODIFY statements.

Kindly help.

3 REPLIES 3

naveen_inuganti2
Active Contributor
0 Kudos
74

Yes, You can.

Type the Insert in ABAP Editor... and check the ABAP documentation.

You are not supposed to ask this basic question in forumns.

Thanks,

Naveen.I

Former Member
0 Kudos
74

Hi Abdul,

Just a sample code snippet for your reference :-

TABLES : vzsort.

DATA : BEGIN OF t_vzsort.

INCLUDE STRUCTURE vzsort.

DATA : END OF t_vzsort.

DATA : it_usr00 TYPE STANDARD TABLE OF vzsort,

wa_usr00 LIKE LINE OF it_usr00.

wa_usr00-snumobj = 'Your Value'.

wa_usr00-sobjekt = 'Your Value'.

wa_usr00-usr00 = 'Your Value'.

APPEND wa_usr00 TO it_usr00.

wa_usr00-snumobj = 'Your Value' .

wa_usr00-sobjekt = 'Your Value'.

wa_usr00-usr00 = 'Your Value'.

APPEND wa_usr00 TO it_usr00.

wa_usr00-snumobj = 'Your Value'.

wa_usr00-sobjekt = 'Your Value'.

wa_usr00-usr00 = 'Your Value'.

APPEND wa_usr00 TO it_usr00.

MODIFY vzsort FROM TABLE it_usr00.

Please set to resolve if it helps you.

Regards

Abhii...

christine_evans
Active Contributor
0 Kudos
74

>

> Hi,

>

> Can I fill the entries for field USR00 in table VZSORT by a report program using INSERT , UPDATE or MODIFY statements.

>

> Kindly help.

Well I woudn't, unless I had assurance from someone in SAP (in writing) that doing this wouldn't mess up my data. The standard practice is that if you need to update SAP standard tables you should always use a method of doing this provided by SAP - a BAPI, function module, or in the last resort a BDC.