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

modify

Former Member
0 Likes
487

i need to set the value of field in all the rows of internal table xvbap with my new value

Message was edited by:

Megan Flores

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Hi

XVBAP-FIELD = <NEW VALUE>

MODIFY XVBAP TRANSPORTING FIELD WHERE FIELD <> 'NEW VALUE'.

Max

3 REPLIES 3
Read only

Former Member
0 Likes
467

Hi

XVBAP-FIELD = <NEW VALUE>

MODIFY XVBAP TRANSPORTING FIELD WHERE FIELD <> 'NEW VALUE'.

Max

Read only

Former Member
0 Likes
466

Try something like this...


DATA: T_TABLE TYPE STANDARD TABLE OF SPFLI WITH HEADER LINE.
DATA: W_TABIX = SY-TABIX.
FIELD-SYMBOLS: <TABLE> LIKE LINE OF SPFLI.

LOOP AT T_TABLE ASSIGNING <TABLE>.
W_TABIX = SY-TABIX.
<TABLE>-CARRID = '012'.
MODIFY T_TABLE FROM <TABLE> INDEX W_TABIX.
ENDLOOP.

Greetings,

Blag.

Read only

ferry_lianto
Active Contributor
0 Likes
466

Hi,

Please try this.


MODIFY XVBAP FROM WA_XVBAP 
TRANSPORTING CHARG WHERE CHARG = <condition>

OR

LOOP AT XVBAP.
  XVBAP-CHARG = <new value>.
  MODIFY XVBAP.
ENDLOOP.

Regards,

Ferry Lianto