My exact requirement is :
Through QM02 (Notifications) create a Credit Memo.
I have an enhancement point in program : FV45PFAP_XVBAP_LESEN
I created a Zenhancement here and added the logic as below:
====
get parameter to get Notification Number.
Select MAterial and Quantity from table QMEL.
then I modified the VBAP structure data as below:
vbap-matnr = l_qmel-matnr.
vbap-zmeng = l_qmel-zmeng.
====
Nothing more than this.
This enhancement point is available in the PBO of SAPMV45A and screen : 4902
Now, when the control goes from QM02 to VA01 (Notification ->functions -> sales order -> create sales order)
my material and quantity could be seen on VA01 screen in the first row of table control.
When I hit enter button - nothing happens.
When I save - credit memo is created with No line item.
Ideally, when I press enter key - the line item is confirmed and the relevent information like desctiption, UOM etc comes automatically. This is not happening.
ANy idea??