09-30-2014 9:42 AM
Hi,
I wanted to enhance the new VA06 transaction with new selection fields and also ALV fields. I created an implementation of Badi SD_OSO_MONITOR and added some standard fields like KNA1-KONZS and VBAK-VSBED to the ALV and that worked fine.
Now I wanted to add these fields as selection fields in the tab "Enhancements". I wanted to add selections like in the first screens, but I can't get it running. Either I don't see the fields or the fields are visible, but I am not able to retrieve the values entered.
How exactly do I need to create the dynpro/subscreen?
Thanks in advance for any help.
Regards
Stephan
09-30-2014 11:42 AM
11-27-2014 1:07 PM
Hi Stephan,
did you found a solution ? I'm facing the same problem and would like to know, how to create the dynpro / subscreen.
Can you give me any help ?
Regards
Heinz
07-15-2015 3:31 AM
Hi Stephan and Heinz
The subscreen may be created in a Z program. Create a new program and create a new (sub)screen in that program. Use the screen painter to add whatever you need and then in the PAI for the screen, you can read the values entered (if any). The new Z program and screen can then be entered in the appropriate fields for the Screen Enhancement in the implementation of the BAdi.
There may be a better way to do this, but at this point I exported to memory for retrieval..see below..
data: lv_mem1 type char16.
concatenate sy-uname 'VA06' into lv_mem1.
export kna1-kunnr
kunnr2
vbak-bstnk
vbap-prctr
vbap-ps_psp_pnr to memory id lv_mem1.
In your implementation of the BADI SD_OSO_MONITOR, you can then use those values to add appropriate additions in method CHANGE_SELECTION_TABLE
Hope this helps.
cheers
Craig