I'm having trouble figuring out why two custom fields are not showing up in transaction VA05
(its output to be specific).
Before reading below: I didn't make any changes to the program because I wasn't assigned to this task. One of my colleagues did this change.
I followed this tutorial, which explains how to expand the VA05
output table with custom fields.
I didn't actually followed this guide. I followed this tutorial only to understand what my colleague might have done to achieve what we need and what might be needed to fix the issue.
So, as the tutorial suggests, this is what should be done in short:
- Go to
SE11
and search forVBEP
Database table and click display. - Click on
Append Structure
- Click on
Create Append
- Insert the name of the append name, in my case it's
ZZVBEP_MECC
- Insert two fields:
ZZDELIVERYDATE
andZZREQDELIVERYDATE
- Save and activate
If you go to VBEP
table now, you'll see at the bottom the field .APPEND
with the column Data Element
set to ZZVBEP_MECC
.
Now, following the tutorial, the include program V05TZZMO
need to be changed, and here's ours:
***INCLUDE V05TZZMO .
* This form is called in the include LV05TFMO.
FORM MOVE_USERFIELDS USING ZP.
CASE ZP.
WHEN 'VBAK'.
WHEN 'VBAP'.
CHECK LVBAP-PSTYV NE 'ZRAC'.
CHECK LVBAP-PSTYV NE 'ZCAC'. "Escl.acconti
MOVE LVBAP-KDMAT TO LVBMTV-ZZKDMAT.
PERFORM OFFENE_AUFTRAGSMENGE.
SELECT SINGLE * FROM VBKD WHERE VBELN = LVBAP-VBELN.
IF SUBRC = 0.
MOVE VBKD-KDGRP TO LVBMTV-ZZKDGRP.
ENDIF.
WHEN 'VBEP'.
MOVE LVBEP-ZZDELIVERYDATE TO LVBMTV-ZZDELIVERYDATE.
MOVE LVBEP-ZZREQDELIVERYDATE TO LVBMTV-ZZREQDELIVERYDATE.
ENDCASE.
ENDFORM.
When I run VA05
however, these two custom fields are not there nor are in the Change Layout
screen.
Is it possible that the code in V05TZZMO
is not in the right place? Looking at the tutorial's code I saw that they put those statements in WHEN 'VBAK'
instead of WHEN 'VBEP'
.
Also, the ENHANCEMENT 1 ZZ_SD_VBAK_VA05
is not present in my code.
There might be something I missed. As I said above, I didn't make these changes so I cannot tell exactly what my colleague did.
VBEP
. Could you edit and clarify your question pleas? – Sandra RossiVBAK
? – Diego