2007 Jan 26 3:58 PM
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.
2007 Jan 26 4:49 PM
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 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
2007 Jan 26 4:01 PM
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
2007 Jan 26 4:20 PM
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.
2007 Jan 26 4:33 PM
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.
2007 Jan 26 4:31 PM
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
2007 Jan 26 4:49 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |