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

SAP SCRIPT -READ STATEMENT

Former Member
0 Likes
477

hi ,

I used READ statement to read IN_TAB into work areaand it is working properly and i select tknum field into GV_SHIPNO workarea but I cant able to use READ statement from work area GV_SHIPNO and fill OUT_TAB value in sap script subroutines.

How to do code for this ?

2 REPLIES 2
Read only

Former Member
0 Likes
413

Hi

U need to select the record having the field has to be filled:

READ TABLE OUT_TAB WITH KEY NAME = <Sapscript variable name>.
IF SY-SUBRC = 0.
  OUT_TAB-VALUE = GV_SHIPNO-<FIELD>.
  MODIFY OUT_TAB INDEX SY-TABIX.
ENDIF.

Max

Read only

0 Likes
413

thank u