Skip to Content
0
Former Member
Dec 03, 2008 at 07:32 PM

fill a field in every record of XVBAP in the form USEREXIT_SAVE_DOCUMENT

244 Views

Hi everybody,

In the transaction code VA02, I want to fill the field ARKTX_G of XVBAP in the form USEREXIT_SAVE_DOCUMENT.

The table XVBAP contains some records when this form is executed. And I want to read every record in a LOOP and fill the field ARKTX_G, which is blank, for every record.

I tried this :

DATA : w_arktx_g LIKE xvbap-arktx_g.

LOOP AT xvbap.
  SELECT matnr FROM mara INTO w_arktx_g WHERE...
  MOVE w_arktx_g TO xvbap-arktx_g.
ENLOOP.

But the value in XVBAP-ARKTX_G is only contained in the buffer. What can I do to record my value of ARKTX_G in XVBAP ? I musn't do an APPEND but I need a solution like that to record my value in XVBAP but I don't know how I can do that.

Maybe with the statement MODIFY or in using an internal table ?

Thanks in advance for your help.