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

TO KEEP INTERNAL TABLE IN SESSION

Former Member
0 Likes
369

Hi,

in my program i am using the internal table XVBAP, and then i am calling a subroutine :

PERFORM repairitems_prepare IN PROGRAM sapfv45p TABLES da_itemkom

da_serikom

USING y_wa_output-posnr

CHANGING da_headkom.

in this subroutine in one place there is one statement:

Read table XVBAP.

There is nothing to pass in the subrouting excepte POSNR. That means the above statement will read XVBAP table by keeping them in session.

So please help me to how to keep in session or there is some other way.

Hi,

in my program i am using the internal table XVBAP, and then i am calling a subroutine :

PERFORM repairitems_prepare IN PROGRAM sapfv45p TABLES da_itemkom

da_serikom

USING y_wa_output-posnr

CHANGING da_headkom.

in this subroutine in one place there is one statement:

Read table XVBAP.

There is nothing to pass in the subrouting excepte POSNR. That means the above statement will read XVBAP table by keeping them in session.

So please help me to how to keep in session or there is some other way.

1 REPLY 1
Read only

Former Member
0 Likes
344

Hi ,

This FM will populate ur XVBAP structure - SD_STATUS_UPDATE_WBSTA.

But i will suggest you not to use the SAP std sub routine directly. becasue inside the sub routines it is refering to XVBAP which is populated conditionally from the previous sub routines.

Better, try using the Codes of the sub routines in ur code ( and do watever u want) , in that u ll be COPY-PASTE'ing the original code inside ur subroutine - yes it will be a little painfull but chances of getting it wrong will be ZERO.