2009 Dec 08 7:43 PM
Hi everyone,
When you are in transaction VA01 and you indicate a material, if this one has outline agreements associated, you can display a list. I would like to add some fields to this structure (LISTVBAP). I made this by se11 but when I try to fill these fields in MV45AFZZ, it doesn't work because the exit is executed before the filling of the structure. Besides, the function that creates the ALV doesn't consider these fields, so I can't see them in the window neither empty. I checked the others exits and i think none of them works for this. How can I make this modification ?
Thanks in advance!
2010 Mar 10 4:21 PM
Did this myself and found the necessary modifications to display the new fields. Contact me if interested!
2010 Apr 03 10:51 AM
The Data for the Popup is handled in internal tables using the structure LISTVBAP. The new fields must be inserted in this structure (modification in data dictionary). The new fields will show in the popup at the position where they are located in the structure.
For displaying the fields BSTNK and AUDAT, the form routine AUSGABE_LISTE_HINWEIS in include LV45CF0A must be modified. The new fields must be transferred to itab GT_LISTDOCU and in itab LT_FIELDCAT the flag TECH needs to be cleared for the fields to be displayed (coding below).
The variable KOPFEBENE is set by the calling program and used for varying the popup for different uses, so make your modification according to this.
For the usage of the popup in VA01 for the use descibed by Yelimar, the supplying of the data is found in include MV45AFDB_VAPMA_SELECT. Modify it to fill the new fields (coding snippet below).
*Include LV45CF0A ****
FORM AUSGABE_LISTE_HINWEIS.
*[...]
ELSEIF KOPFEBENE CA ' '.
GT_LISTDOCU-POSNR = LISTDOCU-POSNR.
GT_LISTDOCU-KWMENG = LISTDOCU-KWMENG.
GT_LISTDOCU-MEINS = LISTDOCU-MEINS.
GT_LISTDOCU-NETWR = LISTDOCU-NETWR.
GT_LISTDOCU-WAERK = LISTDOCU-WAERK.
*{ INSERT T02K948641 1
GT_LISTDOCU-BSTNK = LISTDOCU-BSTNK.
GT_LISTDOCU-AUDAT = LISTDOCU-AUDAT.
*[...]
WHEN 'POSNR' OR 'KWMENG' OR 'MEINS' OR 'NETWR' OR 'WAERK'.
IF KOPFEBENE CA ' '.
CLEAR <LS_FIELDCAT>-TECH.
ENDIF.
*{ INSERT T02K948641 2
WHEN 'BSTNK' OR 'AUDAT'.
IF kopfebene = ' '.
CLEAR <LS_FIELDCAT>-TECH.
ENDIF.
*} INSERT
** include MV45AFDB_VAPMA_SELECT
*[...]
CH_POSITION_EXIST = CHARX.
HNW_VBAP-VBELN = VAPMA-VBELN.
*{ INSERT T02K948641 1
HNW_VBAP-BSTNK = VAPMA-BSTNK.
HNW_VBAP-AUDAT = VAPMA-AUDAT.
*} INSERT
HNW_VBAP-POSNR = VAPMA-POSNR.
HNW_VBAP-MATNR = VAPMA-MATNR.
*[...]
Edited by: Jochen Lang on Apr 3, 2010 11:23 AM
2011 Jan 25 4:44 PM
I need to add vbap-netpr to the LISTVBAP. I inserted NETPR to LISTVBAP; added coding to LV45CF0A to populate the field NETPR.
I need to find out where to select the data for NETPR. Please help.
Jeanette