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

Regd: XVBUV structure

Former Member
0 Likes
1,922

Hi ,

Can anybody help with me XVBUV structure. What is it used for and what fields should i fill

with when appending a new row.

Please help.

Thanks,

Das.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,349

Hi Das,

Please check this sample code from other thread.


FORM set_so_incompletion_log using value(logid) type c.

case logid.
  when 'PONM'.
    read table xvbuv with key
    vbeln = xvbak-vbeln
    tdid = 'Z026'.

    if sy-subrc <> 0.
      XVBUV-MANDT = SY-MANDT.
      XVBUV-VBELN = XVBAK-VBELN.
      XVBUV-POSNR = '000000'.
      XVBUV-ETENR = '0000'.
      XVBUV-PARVW = ''.
      XVBUV-TDID = 'Z026'.
      XVBUV-TBNAM = 'FTEXT'.
      XVBUV-FDNAM = 'LTEXT'.
      XVBUV-FEHGR = '50'.
      XVBUV-STATG = '02'.
      XVBUV-UPDKZ = ''.
      XVBUV-FCODE = 'KTEX_SUB'.
      XVBUV-MSGKZ = ''.
      XVBUV-SORTF = '9999'.
      XVBUV-LFDNR = '0000'.
      APPEND XVBUV.
    endif.
  
  endcase.
ENDFORM.

Regards,

Ferry Lianto

Hi ,

Can anybody help with me XVBUV structure. What is it used for and what fields should i fill

with when appending a new row.

Please help.

Thanks,

Das.

5 REPLIES 5
Read only

Former Member
0 Likes
1,349

Hi,

XVBUV is the structure used for entering incompletion log..

In the customizing you can enter new fields for which you can create a incompletion log if the field is not field..

Check the transaction OVA2

Thanks,

Naren

Read only

0 Likes
1,349

Hi Naren,

Thank you. But what if i want to create a incompletion log on a field by programming in an user exit. That is i want it when the field is filled with a wrong value.

Please suggest.

Thanks,

Das.

Read only

0 Likes
1,349

I have seen the structure . But i am confused as of what fields are needed to be filled.

If some one could provide me with some notes or links where i can find info on that.

Please help.

Thanks.

Read only

Former Member
0 Likes
1,349

Hi,

I am not sure if you use incompletion procedure for checking wrong value..

Anyway try this..

Insert a record in the USEREXIT_SAVE_DOCUMENT_PREPARE..

  • I am assuming the field WERKS is not populated correctly..

LOOP AT XVBAP.

XVBUV-VBELN = XVBAP-VBELN.

XVBUV-POSNR = XVBAP-POSNR.

XVBUV-TBNAM = 'VBAP'.

XVBUV-FDNAM = 'WERKS'.

APPEND XVBUV.

ENDLOOP.

Other option

-


Check in the user exit USEREXIT_SAVE_DOCUMENT_PREPARE..

IF It is wrong value..raise an error message..

THanks,

Naren

Read only

Former Member
0 Likes
1,350

Hi Das,

Please check this sample code from other thread.


FORM set_so_incompletion_log using value(logid) type c.

case logid.
  when 'PONM'.
    read table xvbuv with key
    vbeln = xvbak-vbeln
    tdid = 'Z026'.

    if sy-subrc <> 0.
      XVBUV-MANDT = SY-MANDT.
      XVBUV-VBELN = XVBAK-VBELN.
      XVBUV-POSNR = '000000'.
      XVBUV-ETENR = '0000'.
      XVBUV-PARVW = ''.
      XVBUV-TDID = 'Z026'.
      XVBUV-TBNAM = 'FTEXT'.
      XVBUV-FDNAM = 'LTEXT'.
      XVBUV-FEHGR = '50'.
      XVBUV-STATG = '02'.
      XVBUV-UPDKZ = ''.
      XVBUV-FCODE = 'KTEX_SUB'.
      XVBUV-MSGKZ = ''.
      XVBUV-SORTF = '9999'.
      XVBUV-LFDNR = '0000'.
      APPEND XVBUV.
    endif.
  
  endcase.
ENDFORM.

Regards,

Ferry Lianto